Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
all groups > c# > june 2006 > threads for thursday june 1

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

Adding reference of same assmebly with different version in one application.
Posted by archana at 6/1/2006 11:18:23 PM
Hi all, I want to add reference of two dlls which have two different version and two different public key and i want to insert reference of both dll in my application. How could i do this. Please help me. Thanks in advance. ...more >>


timers
Posted by Learning C# via DotNetMonster.com at 6/1/2006 10:42:14 PM
i am useing 1label,1timer,2buttons i am trying to make so the label will countdown 3hrs in the Hr:Min:Sec format -- Message posted via DotNetMonster.com http://www.dotnetmonster.com/Uwe/Forums.aspx/dotnet-csharp/200606/1...more >>

user rights managemnt
Posted by Pohihihi at 6/1/2006 10:34:10 PM
Hello NG, I guess this problem is more towards design than toward C# language so = if you think that is the case then please kindly point me to the right = NG or articals.=20 Problem is, in my application, I need a have users go through the rights = check before performing any function. Now...more >>

string / char[] question
Posted by Zach at 6/1/2006 9:59:48 PM
Hello, This might be a rather basic question, but I've tried a few things and I can't really find a solution as elegant as what I'd like for this problem. The situation is this - I have a file that's written to disk in a binary format. Basically it's a bunch of records, one after the other,...more >>

Returning memory
Posted by victor at 6/1/2006 9:24:07 PM
Hi, I've the following question: in my app I used the following construct to acquire images: Image imgImage; Stream myStream=null; .... private void GetImageObject() { imgImage = new Bitmap(myStream); picboxImageHolder.Image=imgImage; .... } -------------- The GetImage method is being...more >>

I'm a newbie...and stuck on System.NullReferenceException error - please help!
Posted by sans_spam NO[at]SPAM yahoo.com at 6/1/2006 8:52:52 PM
OK - I have a very simple 6 field form and I'm getting this error upon submission: System.NullReferenceException: Object reference not set to an instance of an object. at Intellect.Website.RequestInfoPage.cmdPost_Click(Object sender, EventArgs e) My Validation controls work great but as soo...more >>

How to determine the instant name of a class?
Posted by Ole at 6/1/2006 8:47:57 PM
If I define a class and create a instant of it like e.g.: UserClass instantName = new UserClass(); how do I then determine the defined name "instantName" in the UserClass e.g. in a method (or a property) like this: public void userFunction() { string Var = new string(); V...more >>

Unboxing to get Original Class
Posted by ahmadjufri NO[at]SPAM telkom.net at 6/1/2006 7:04:31 PM
Execuse me. I do boxing, for example Employee class, as object: public object ManipulateObject(object objInput) { ... Object obj; obj = objInput; ... //Manipulate obj here.. ... return obj; } Assume, then the client procedure/function exactly not know what the original c...more >>



filling forms on the web?
Posted by navilon at 6/1/2006 6:48:54 PM
is it possible to fill out a form on a website using C#? for example, logging in to a website such as myspace. ...more >>

problem in display on panel
Posted by lodhaakhil85 NO[at]SPAM gmail.com at 6/1/2006 5:33:17 PM
Hi, I am graphics object of the panel to draw Strings on the panel, but when I scroll down I cannot see the remaining strings and when I move up the scroll bar the orginial strings that were visible initially seem to get erased ?? What's happening ne Idea ?? Thanks, Akhil ...more >>

IDE's for 2.0 (of the open source variety)
Posted by sloan at 6/1/2006 4:48:16 PM
Are there any IDE's (open source) for DotNet 2.0 (c# specific). I have VS2005 on my home laptop (legally obtained), but my company has a strict policy about putting licensed software on work computers. But a open source IDE wouldn't pose that internal type problem. ... I have the 2.0 fr...more >>

Run command on remote system
Posted by Ambica Jain at 6/1/2006 4:27:01 PM
Hi, I want to run a command on remote system using C#. Is it possible to do that? Any pointers to it are appreciated. Thanks Ambica...more >>

Hold Scroll Bar on the bottom
Posted by Kevin at 6/1/2006 3:58:17 PM
Hi! Im writing a simple chat, using ReachTextBox as chat viewer, but when the RTB begins to scroll, the scrollbar not scroll down. How can i do scroll down automatically? Thanks! ...more >>

PlaceHolder Disappears on Page PostBack
Posted by Vishal Gupta at 6/1/2006 3:54:22 PM
Hi all, I have a placeholder control on an ASPX page. I dynamically add a few button control and label control to the placeholder from code - all is well with the world. But on post back the control disappears from the placeholder. Am I missing something here Please help Vishal Gupta ...more >>

how to silently install app & Frameworks 2.0
Posted by Steve Teeples at 6/1/2006 3:52:02 PM
I have created an application install project that conditionally installs ..NET Frameworks 2.0 if it doesn't already exist on the target system before the app is installed. What I want to do is silently install both my application and Frameworks 2.0. Does someone know the command line para...more >>

About load app in my app
Posted by cfyam at 6/1/2006 3:51:39 PM
How can I load MS Word in my C# app Form Container? Or load the MS Word as a child form? ...more >>

ASP.NET: Getting value back from web user control?
Posted by planetthoughtful at 6/1/2006 3:46:22 PM
Hi All, I have a relatively simple web user control I've included in a page that simply presents 3 drop down lists and a submit button, that I use as a date picker (ie one list for day, one for month, one for year). I have the control registered on the page and it displays fine, but I haven...more >>

i want to run my app in STA, not MTA
Posted by Tarren at 6/1/2006 3:44:03 PM
Hi: How would I go about making sure my C# 2.0 app runs under STA, not MTA? Do I add something in the Main method? Thanks ...more >>

Panel Problem
Posted by lodhaakhil85 NO[at]SPAM gmail.com at 6/1/2006 2:45:33 PM
Hi I'm a newbie to C# and GDI+.I am writing an application that will display some strings from a file on a panel. There are a few of problems I am facing : 1.How do make the panel re-adjust its size when maximizing the form window ?? 2. I'm drawing the strings on the panel. if the number o...more >>

How to construct a Timer object in a class library
Posted by muzilli NO[at]SPAM sercomtel.com.br at 6/1/2006 2:32:15 PM
Howdy all, I would like to know how can I insert a Timer object in my class library? This timer object will start and stop in a determinated part or event of my program. I know how to do this in Delphi or using a RAD tool and insert the Timer object in a form, but how to do in C# by hand a...more >>

Data in a local file
Posted by David P. Donahue at 6/1/2006 2:17:56 PM
How would I have a SqlConnection object point to a local file as a database, for example a file named tables.db that's in the same folder as the program output directory?...more >>

Using COM with C#
Posted by Patrick McGovern at 6/1/2006 1:51:41 PM
Hi. I'm new to COM programming and I'm looking for some references to using COM with C#. I've looked on the MSDN site but all of the references are for C++ and VB. Does anyone know of any good reference sites? thanks. Pat ...more >>

Debug - return value ; ?
Posted by Jarod at 6/1/2006 1:14:30 PM
Hey Let's say I have following code: return db.ExecuteDataSet(...); Works ok, but I want to see what's in the dataSet. Normally visualizer will do the job, but how to set up visiualizer on object created dynamically like this one here ? I don't want to change code just to add: DataSet d...more >>

From where is the assembly name taken when you build a user control dll
Posted by tony at 6/1/2006 12:57:18 PM
Hello! I just want to find out how the system find the name to set on a assembly User control dll. I have done this. 1. Create a user control - Here the namespace was set by the system to WindowsControlLibrary2 - The name of the class was also set by the system to UserControl1 - The name ...more >>

How to manually generate a SQL statement (SQLCommand) containing binary data ?
Posted by TheSteph at 6/1/2006 12:41:37 PM
How can I manually generate a SQL statement (SQLCommand) containing binary data ? I'd like to write all the text of the SQL statement for that operation... Example : I Have Binary data (that represent an image) Byte[] TmpByte; TmpByte = ....BINARY DATA OF AN IMAGE.... Now I want to gene...more >>

Regular expression groupings/collections
Posted by Michael Russell at 6/1/2006 12:40:40 PM
Hi, I'm having trouble retrieving matches from strings using regular expressions. I'm parsing a string that's a date with either a 2 or 4 digit year (ex. "1/15/2005"). The RegExp object is created as such: m_rx = new Regex( @"^(\d{1,2})/(\d{1,2})/(\d{2,4})$", RegexOptions.IgnoreCase );...more >>

foreach null
Posted by Peter Kirk at 6/1/2006 12:07:20 PM
Hi if I have a foreach loop over a list, do I get a NullReferenceException if one of the objects in the list is null? For example, say I have a list "persons" of IPerson objects, but one of the objects in the list is actually null. foreach (IPerson person in persons) { // do somethi...more >>

Size of Dictionary Object
Posted by shrishjain NO[at]SPAM gmail.com at 6/1/2006 11:58:09 AM
Hi All, I have to make multiple dictionary objects(Dictionary<string key, int value>) with same set of string keys, and that really eats up lot of space. I am trying to find a solution where I can save space- In my current implementation all dictionary objects store the same keys repetitivel...more >>

Memory error on pda
Posted by Jorge at 6/1/2006 11:42:33 AM
Hello. I use the following instructions to create and to show the "forms": Form_Exportar Ficha = new Form_Exportar(); // Project has form_exportar Ficha.ShowDialog(); Ficha.Dispose(); Nevertheless, if I do a follow-up of the memory occupation on the PDA, I see it's growing and It doesn't ...more >>

A Strange c# - vb Difference
Posted by Tina at 6/1/2006 11:08:04 AM
This C# code produces a value of 0.0 in myAspectRatio.... int myWidth = 1200; int myHeight = 1600; double myAspectRatio = 0.0; myAspectRatio = myWidth / myHeight; This VB code produces a value of .75 (the correct answer) in myAspectRatio.. Dim myWidth As Integer = 1200 Dim myHeight As...more >>

cannot uninsatll IE
Posted by Sh at 6/1/2006 11:03:26 AM
I am having trouble uninstalling internet explorer in my Windows XP environment. I cannot see it in add/remove programs. How should I uninstall it. I need the latest version maybe 6.0 and above. Anyone please let me know any site where I can find any steps or anyone can give me the steps as well...more >>

ConfigurationSettings.GetConfig .Net 2.0 equivalent
Posted by Glenn at 6/1/2006 10:39:28 AM
Hi Anyone know the equivalent to NameValueCollection nvc = ConfigurationSettings.GetConfig( "SectionGroup/Section" ) as NameValueCollection; in .Net 2.0. All the examples I've seen involve creating a customer handler. Surely there's still a simple way of obtaining key/pair values, b...more >>

ADO.NET - Transparent Client Redirect (not working?)
Posted by Ian Jenkins, MCSD at 6/1/2006 10:38:21 AM
I have a database setup using SQL Server Mirroring. My database servers are running SQL Server 2005 SP1, Enterprise Edition. I have created a windows application that will insert a record into my mirrored database by clicking a button. (connection string below) If I run my test application...more >>

Detect orphan files after program crash
Posted by Gunnar at 6/1/2006 10:35:19 AM
Are there any way of detecting that a program have crashed and left an orphan file? I have tried with the filesystemwatcher, but that didn't work. Maybe I can use a polling strategy and keep polling the file and check if it is locked. But can I do this without trying to open the file and cat...more >>

Is running a Control in a separate thread allowed?
Posted by RWF at 6/1/2006 10:31:03 AM
I have a form, and from the form when a user clicks a button, it instantiates control that will be doing a lot of logic. I am trying to use System.Threading.ThreadPool.QueueUserWorkItem to spawn a background thread off the pool. I stepped through the logic, and everything seems to go throu...more >>

drop down list
Posted by puja at 6/1/2006 9:32:37 AM
hi all, I have a requirement where I need to populate drop down list (which is not run at server control. i.e it is an html control ) using server side code in C#? How can I add option values to drop down list in page load event. Thanks puja ...more >>

Writing BLOBs (through C#)
Posted by Marc Gravell at 6/1/2006 9:24:35 AM
Following up on a question somebody asked a day-or-so ago... When /reading/ BLOBs in C# I can use sequential access and GetBytes(); fine, sorted. However, is there a similar equivalent for /writing/ BLOBs? *Without* having to buffer the entire thing into a byte[] to set into param.Value? Or ...more >>

Generic Collection Pattern
Posted by Brian Richards at 6/1/2006 9:15:50 AM
Without generics generally I'd dervie from CollectionBase to create typed collections. Generics mostly fill in this gap except that there are no virtual methods on List<T> so we can no longer notify other object when a collection changes during add, remove and set operations. I was curious how O...more >>

ending a thread
Posted by RobcPettit NO[at]SPAM yahoo.co.uk at 6/1/2006 9:08:36 AM
Hi, Im using public void threadcontrol() { Thread scan = new Thread (new ThreadStart(GethtmlStream)); scan.Start(); name = "Scanning"; } in a class, and calling it from button1 with BJresults sr = new BJresults(); sr.threadcontrol(); np problems here, th...more >>

Drag and Drop
Posted by Nathan Laff at 6/1/2006 9:06:48 AM
I am dragging a link from Internet Explorer... I can get the URL fine, but i have seen some software that is able to get the alt text of links, i.e. the popup hint on an image link. How would I go about grabbing that as well? ...more >>

Alway got System.byte[] from SQL server
Posted by :) at 6/1/2006 9:00:54 AM
Hi: I tried to write C# code to display the data which is from SQL server to the console, but I always got System.byte[] instead of actual number. If I run query directly in the SQL Server Studio I can get the right number such as 0x0010384E0F which is HEX. Any help will be great. Thanks in adv...more >>

loading frames (asp)
Posted by Jessica Weiner at 6/1/2006 8:46:08 AM
I have a website with the company logo on top. Underneath the logo there is a menu which has links. When the user clicks on a link, I want to be able to take them to that page without having to reload the company logo on top. Here is a good example of what I am trying to do. http://www.jets...more >>

Windows Service "Start In" Folder
Posted by Brian at 6/1/2006 8:43:49 AM
Is there a way to set the "start in" folder for a windows service? I am running under the Local System account, and the start in folder seems to be "c:\windows\system32". I use some relative filenames in my application and would really like the start in folder to be something more like "c:...more >>

Dynamic Forms -- OO Design dilemma
Posted by Nate at 6/1/2006 8:39:01 AM
Good Morning All, What we have is a dynamic business object that has varying numbers and types of properties. What it models is a generic saleable product. Not all products have the same properties. For instance, if you were selling software you wouldn't have a color, if you were selling...more >>

How to configure the numeric keypad
Posted by Melson at 6/1/2006 8:35:09 AM
Hi Does anyone know how to configure the numeric keypad on the keyboard. For example, by pressing button 7, it displays a character. I must also be able to display number 7 whenever I pressed the 7 button (probably with Ctrl button). Should I create a windows service or just an applicati...more >>

XML Serialization or parsing
Posted by ginguene NO[at]SPAM gmail.com at 6/1/2006 8:33:15 AM
hello I have a configuration file for my program. This file contains some list of files, and some other random infos like this : <pdod> <Project> <Name>My Project Name</Name> <Id>4242</Id> </Project> <Config> <Platform>All</Platform> <OutputType>Dll</OutputType> ...more >>

Multiple Namespaces in Separate File
Posted by Jack Li at 6/1/2006 8:29:43 AM
Hi, If I declare multiple namspaces, each in a separate file, how do I specify their path with the "using" directives? Say I have 2 namespaces and 1 main function, all in separate files such as follows ===================================== File1.cs: namespace A { public class Foo ...more >>

Problems with form Inheritence
Posted by Zull at 6/1/2006 8:29:30 AM
I've got a base form wich is a parent form for few others. On this base form I have dataGridView control, which has Modifiers property set on 'Protected Internal'. Unfortuantely, it does not work as I expected... :( I wanted to link Data Set on every inherited form with inherited dataGridV...more >>

code need for extrating the data into an excel file
Posted by vijayan veeraragavan at 6/1/2006 8:25:21 AM
hai, i want to extract the data from the datagrid or custom table and copy as excel file. how to do this using DDE ( Dynamic Data Exchange) *** Sent via Developersdex http://www.developersdex.com ***...more >>

Polymorphic property How?
Posted by Gerald at 6/1/2006 8:24:04 AM
Hi, suppose i have a simple class consist of two properties ValueType which is an enum consisting of (integer,boolean,string,datetime,color) And a property called Value which is of type object I want Visual studio 2005 to display a coloreditor for property Value when Valuetype == col...more >>

Storing Hyperlinks
Posted by jez123456 at 6/1/2006 6:47:02 AM
Hi Experts I have a working c# application that users can store files (.doc, .xls, ..bmp, etc) as binary data into an Access database. I now need to extend this to also store hyperlinks. First of all I need some way of searching for the hyperlink. In Access there is an Insert Hyperlink d...more >>

How to download a file from Server to client
Posted by ad at 6/1/2006 6:39:43 AM
How can I download a file form Server to client? ...more >>

MAPI in .NET 2.0 without Outlook installed to work with Exchange 2003?
Posted by Tarren at 6/1/2006 6:28:45 AM
Hi, All: I am tasked with the following. I need to write a service to monitor an Exchange mailbox and take action when an email is received, put it in a db, etc. I do not need to send emails through MAPI, only monitor a folder in exchange. Can I use .NET objects to do this or do I abso...more >>

Can't convert string to double!
Posted by zelyal at 6/1/2006 5:54:02 AM
I got : An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll Additional information: Input string was not in a correct format. at execution of simple line: double v1 = Double.Parse ("7200.0"); What's wrong?...more >>

Strategic Functional Migration and Multiple Inheritance
Posted by Shawnk at 6/1/2006 5:39:02 AM
Some Sr. colleges and I have had an on going discussion relative to when and if C# will ever support 'true' multiple inheritance. Relevant to this, I wanted to query the C# community (the 'target' programming community herein) to get some community input and verify (or not) the following ...more >>

Winsock in C#
Posted by Rain at 6/1/2006 4:56:02 AM
Does anybody know where i can get a winsock class for C#? badly needed. ANy help would be very much appreciated. Thank you so so much! -Stan...more >>

Struct verses class.
Posted by archana at 6/1/2006 4:55:34 AM
Hi all, Can someone tell me meaning of this stmt:- 'A structure must have at least one nonshared variable or event member; a class can be completely empty'. Because if i have code like class a { } struct a1 { } As above declaration i have declared cla...more >>

Cookie Expires In 2.0 Framework
Posted by Adam Bates at 6/1/2006 4:50:02 AM
Hello, I have a problem, I have been using Cookie Authentication on the 1.1 framework for around 3 months, when I moved the site internally within my hosting company from a server with 1.1 framework to a server with 2.0 framework I have had cookie expiring problems. Since moving to the 2...more >>

The operation has timed-out & Web Service
Posted by Dmitry Markin at 6/1/2006 3:56:01 AM
I've faced one cunning problem recently: I'm using IIS 6.0 as a web server, running on 1.1 framework. When i'm accessing my .net web service all goes fine, until I receive "The operation has timed-out." exeption after some time of usage. After such occurence all futher calls to web service res...more >>

MSDN in shared location
Posted by Dhans at 6/1/2006 2:19:02 AM
I have Installed MSDN for VS 2003 and VS 2005 in single machine. I have to access those msdn separately (User can choose the documentaion either 2003 or 2005) from other client machines over intranet. How can acheive this? Thanks in Advance, Dhans...more >>

Re-Throwing Exceptions
Posted by sternr at 6/1/2006 2:14:58 AM
Hey, I use the following code: try { //Some code that has an exception } catch (Exception ex) { if (ex.innerException!=null) {throw ex.innerException;} } All works well, but the problem is that the exception's stacktrace is changed because of the throw! Is there a way to throw an exc...more >>

Adding ListBoxItems in a form, troughout a thread
Posted by Lakesider at 6/1/2006 1:37:32 AM
Hi Community, I want to write loginformation in my mainform. The information should tell the user about the workprogress of a thread in another class. Is this possible with .Net 2.0? Thanks ...more >>

Integer Callback from an ActiveX Component
Posted by (flamage82 NO[at]SPAM hotmail.com) at 6/1/2006 1:36:29 AM
I have a component for an external device which has a callback for when the user presses one of its buttons. The definition is void IAvLCD.setCallback(int funcAddr) How can I assign a function to this callback in c#? I've tried delegates, but I can't figure out how to convert anything in...more >>

datagridview - Get index of selected row
Posted by Lars Erik Nes at 6/1/2006 1:21:01 AM
Hi all. How can i get the index (number) of the selected row in a datagridview. (just one row can be selected) Thanks....more >>

How to get fixed font width ?
Posted by Polaris at 6/1/2006 1:06:34 AM
Hi: For a fixed width font (like Courier New), the Font.Height gives the height of the font, but is there a way to get the width of the font also? Thanks ! Polaris ...more >>

Starting an exe from within a service
Posted by ludwig.stuyck NO[at]SPAM coders-lab.be at 6/1/2006 12:57:01 AM
Hi all, I need to start an executable from within a windows service. I tried the following code in the windows service: ProcessStartInfo psi = new ProcessStartInfo(); psi.FileName = "filename.exe"; psi.Arguments = "arg1 arg2"; psi.UseShellExecute = false; psi.Domain = "domain"; psi.Use...more >>

SQLException timeout with nested Queries
Posted by Gerrit.Horeis NO[at]SPAM web.de at 6/1/2006 12:53:41 AM
Hi All, I have a problem with nested SQLQueries. I will give here an abstract sample of code which I wrote Method A { createSqlTransaction and call SQL Insert Statement including "Select ScopeIdentity();" try { call Method B } catch { Rollback Transaction } }...more >>


DevelopmentNow Blog