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# > april 2004

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

DataGrid Column Headres
Posted by msnews.microsoft.com at 4/30/2004 10:42:46 PM
How can I write multi line DataGrid Column Headres? ...more >>


Pretty UI in C#
Posted by Eric at 4/30/2004 9:17:30 PM
I'm interested in creating a rich user interface in my Windows forms applications that can be completely customized via GDI+. I've been able to subclass controls such as the panel control, button, radio button, and checkbox, but other form controls are frustrating to work with because some of th...more >>

Simple Question on Docking Settings?
Posted by Peter at 4/30/2004 7:36:02 PM
Hello Thanks for reviewing my question. I have a simple question. I would like to know how you can arrange the docking order? For example, when I add a toolbar and I set the dock to TOP and then add a listview and set its dock to LEFT, the listview goes to left top to left bottom and my toolbar...more >>

Sorted datagrid on a form and display selected row on a dialog-HELP
Posted by kll at 4/30/2004 6:26:02 PM
I have been on newsgroup for week. I have seen anything that will help me. Basically, I have a form with a datagrid that can be sorted or unsorted (it is up to the user). Then, I display the data of the selected row in textboxes on dialog that execute by the user press a button. The following co...more >>

Update Another Application's Form Within Your Own App?
Posted by War Pickle at 4/30/2004 4:16:02 PM
How do you update another application's form elements from your own application?...more >>

why we must use region?
Posted by Arda Han at 4/30/2004 4:06:19 PM
what is region? which time we must use it? ...more >>

Where can I find wmppia.dll
Posted by Rene at 4/30/2004 4:04:54 PM
I am trying to use the Windows Media Player in my C# application, in order to do this I need to the wmppia.dll file! I tried searching my hard drive and the Visual Studio .Net CDs and was not able to find it. Could someone please tell me where it is? Thank you. ...more >>

Retrieving dataset (or datatable) from datagrid
Posted by VM at 4/30/2004 4:03:47 PM
How can I retrieve a datatable or datatable from a datagrid? I don't know where the grid is filled up, and I only have the datagrid data to work with. Thanks. ...more >>



Calling inherited constructor with formatted parameters
Posted by Claire at 4/30/2004 3:23:12 PM
My descendent constructor takes a string and an integer as parameters. I'd like to format the message string before passing it to it's parent class but it looks as though base(message,ErrorCode) has to be called too early. Is this possible please? Parent constructor public class CommExcepti...more >>

Justification of using C# over VB.NET
Posted by Jack at 4/30/2004 2:45:40 PM
Hi, I'm starting on a new project to develop Windows application run on the .NET Frame work. Would you please give me some justifications to present to management on why we should use C# over Visual Basic .NET. Right now we don't have any code written for the .NET yet and this would be ...more >>

Calling a C Function from CSharp
Posted by JimT at 4/30/2004 2:41:03 PM
Is there someone who can tell me how to call a piece of legacy code written in C from a CSharp program? I downloaded Eric Gunnerson's stuff and it doesn't work I want to reuse a string manipulator which was written in C in ancient times to operate on some strings I am reading with a C# program I'...more >>

Help With Registry; CreateSubKey
Posted by Yogi_Bear_79 at 4/30/2004 2:32:14 PM
I'm Creating new Keys in the registry, but when I do, they always have a Vaule called (Default) type RG_SZ. I need them to be DWord dword:00000005 Is there a way to automaticaly make the (Default) a Dword using the CreateSubKey method? If not, How can I use the SetValue Method t change the ...more >>

Query for an Interface from a Object
Posted by Kiran at 4/30/2004 1:46:12 PM
Hi, I was wondering if there is any method that I can override on my Object which will be called when somewhere try's to Query for an interface from my object. for e.g. IMyInterface x = myObject as IMyInterface ; will there be any method that will be called in myObject which can be us...more >>

read a web page
Posted by Mike at 4/30/2004 1:32:33 PM
Is there anyway to read a Web page and do a search for a particular word or section on the web page? I have a web page that reads a queue that has docs from many apps, I want to search the web page and only get docs related to my app and create a text file with the names of the doc in the qu...more >>

Structs
Posted by Jasper Kent at 4/30/2004 1:17:56 PM
Can anyone explain the logic behind structs being allowed neither memeber initialisers or default constructors. Doesn't this just encourage developers to create constructors with dummy arguments? Thanks in advance, Jasper Kent. ...more >>

(OT) To C# Learner
Posted by some_spare_id NO[at]SPAM yahoo.com at 4/30/2004 1:07:26 PM
Dear C# Learner, [reposted with censor] You swine. You vulgar little maggot. You worthless bag of filth. As we say in Texas, you couldn't pour water out of a boot with instructions printed on the heel. You are a canker, an open wound. I would rather kiss a lawyer than be seen with you. You ...more >>

Drawing Board (White Board)
Posted by Champika Nirosh at 4/30/2004 12:52:30 PM
Hi, I want to create drawing board application that can draw Line, rectagle, circle and free hand drawing. Each drawing need to be transparent, moveable (draggable), have bring to front and send to back feature etc. How can I do this .. where should I start? Right now I have used a pan...more >>

How to retrieve a list of disk drives in the system
Posted by dev at 4/30/2004 12:14:37 PM
Hi to all, What is the class/technique to retrieve a list of all drive letters available on the computer? Thanks Dev ...more >>

writing and reading to a serial port in c#
Posted by Gayathri Subramaniam at 4/30/2004 12:08:45 PM
hai, im a student. i am assigned a task to instruct a robot. for this i want to write and read from com1. i do not know how to configure the port using DCB structure. i have a data rate of 9600bps, odd parity, 7 data bits, hardware flow control. i do not know how to do this in c#. tha...more >>

DropDown web control
Posted by Julie at 4/30/2004 12:06:06 PM
I need a DropDown web control (not DropDownList). What I'm after is a combo box that allows the user to either enter in text directly, or to select an item from the drop list. The DropDownList doesn't allow for use editing of the text, just selection of items from the list. Any clues?...more >>

(OT) Group Moderated?
Posted by some_spare_id NO[at]SPAM yahoo.com at 4/30/2004 11:49:11 AM
Is this group moderated? My recent post appears to have been cancelled....more >>

Highlighting a row in a Windows data grid
Posted by Red Green at 4/30/2004 11:46:24 AM
In a Delphi datagrid there is a RowSelect property that highlights the currently selected row and does not allow the user to edit individual fields. Is there anything like this in the windows .NET datgrid? ...more >>

Sharing data between forms
Posted by Red Green at 4/30/2004 11:43:33 AM
I am trying to switch to C# from Delphi and I am having some trouble finding some information. What I need to do should be simple but I have been through a dozen books and done web searches that don't help me out at all. Delphi had a data module that was shared between an applications forms but I...more >>

How can I override a public virtual method to be private in my derived class?
Posted by Ken Varn at 4/30/2004 11:32:53 AM
Is there anyway to override a public virtual method or property so that it is private in my derived class? I tried using new on the property and making it private, but no luck. -- ----------------------------------- Ken Varn Senior Software Engineer Diebold Inc. EmailID = varnk Domai...more >>

Dependencies in my Setup project
Posted by hangten at 4/30/2004 11:14:40 AM
I have created a setup project for my application. Within this setup project I need to install another .exe file. When I add the .exe file to the setup program, I get a message "unable to find dependency 'MICROSOFT.OFFICE.INTEROP.EXCEL'. So I added this interop dll but it is not adding it to ...more >>

off-the-shelf xml tool for end-users?
Posted by Jason Shohet at 4/30/2004 10:30:14 AM
Might be the wrong ng, but not sure where to go here :) I am reading data from an xml 'database' -- basically an xml file containing information on school classes that we created. I don't want to maintain this xml document my whole life -- i want certain power-users to maintain classes, the teac...more >>

newby - declaring a descendent class
Posted by Claire at 4/30/2004 10:24:36 AM
I want to declare a set of descendent exception classes that contains no extra code to the base. It's so I can test the class type of exception and handle its error code differently depending on the exception that was thrown. I come from a delphi background so for this I would have something ...more >>

How to enforce coding style conventions
Posted by Ron Burd at 4/30/2004 10:23:35 AM
Hi, As my company is moving into C# they are enforcing the use of styling convention in the source code, such as methods naming conventions, newlines, etc. Does someone know of products that are good at this job? (free and/or commercial) ...more >>

SMTP sending
Posted by Jason at 4/30/2004 9:49:00 AM
Hi all I have a problem...i am sending emails using SmtpMail in .NET. now it gives me the following error "Could not access 'CDO.Message' object.", BUT it still sends the email to the recipient!! here is my code. mailMess = new MailMessage(); mailMess.To = strRecipien...more >>

Disabling checkbox in treeview
Posted by Andrew at 4/30/2004 9:41:03 AM
Some way to disable checkboxes in a treeview sellectively by nodes I mean, some nodes in my treeview have the checkbox enable but some others don't....more >>

DataTable sorting, determining type of a column during the sort.
Posted by Clinton Pierce at 4/30/2004 8:54:38 AM
I've filled a DataTable with columns that have custom type (a class that I'm using to keep track of other things, not just a value). When the .Select method goes to sort this column, how do I let .Net know what value I want used for the sort? Sometimes it's going to be sorted as a decimal and...more >>

Crystal references in a project
Posted by google at 4/30/2004 7:56:04 AM
I have studio 2003 and also have Crystal reports 9 installed on my machine The problem this causes is that its mixing up the version of the dlls to pick up. I am adding a Crystal report viewer 9.2 control and it adds references to the 9.1 instead of the 9.2 libraries which i want. I can change the ...more >>

Tool to check mem leak???
Posted by Thonglao Rud at 4/30/2004 6:03:34 AM
Hi, Is there any free tool to check memory leak in C# (.NET) application? tnx...more >>

"C# Unleashed" code
Posted by nihil at 4/30/2004 1:32:04 AM
Where can I download the code used in this book? Thanks in advance!...more >>

Cheapest version of C# Visual Studio
Posted by Michael A. Covington at 4/29/2004 11:52:50 PM
Does the cheap ($100) version of Visual C# include a setup (deployment) generator? -- Michael A. Covington - Artificial Intelligence Ctr - University of Georgia "In the core C# language it is simply not possible to have an uninitialized variable, a 'dangling' pointer, or an expression th...more >>

Windows Error Notification Sounds
Posted by pnp at 4/29/2004 11:41:22 PM
Hi all, How can I call the functions that play the error messages from the User32.dll? Thanks in advance, Peter. ...more >>

FileSystemWatcher
Posted by Tom Jones at 4/29/2004 11:34:46 PM
Is there a way to watch multiple file types with a single instance of FileSystemWatcher? For example, what I would like to do is this: FileSystemWatcher fsw = new FileSystemWatcher(); fsw.Filter = "*.txt;*.doc"; The only other thing I can think of is having a seperate instance for each fil...more >>

COM+ Remoting
Posted by Richard Bell at 4/29/2004 10:42:26 PM
I have a typical class factory framework scenerio working using remoting with the class factory hosted inside the IIS process. I now want my class factory to use transactions and run inside COM+. However, I keep getting an error saying that no channel is registered when I make calls on objects r...more >>

DataSet Append Attempt Produces Error
Posted by Steven C at 4/29/2004 10:13:20 PM
Hello: I am trying to append a dataset that draws its data from a MSDE instance, and I keep getting the exception: Can't create a child list for field tblCustomers. conn = new SqlConnection("Data Source=SWC_K7\\CHRISMON1;User Id=yadda;password=yadda;Initial Catalog=Chris...more >>

Lumi mail pop3
Posted by nevin at 4/29/2004 9:03:49 PM
Hello all, if anyone has used the lumisoft controls and managed to get an attachment downloaded, extracted, decoded (from base64) and saved to disk/stream can they please show me how they did it? Seems easy to get attachments into a message but not out. Thanks nev. ...more >>

Same Class....Different File
Posted by Scatropolis at 4/29/2004 9:01:45 PM
Is there a way in C# to have more code of the same class in a different file? This would be mostly for organization. thanks...more >>

MDI child access to it's parents' controls
Posted by Lucas Graf at 4/29/2004 8:46:27 PM
This sounds so easy to me and feel like an idiot that I can't figure it out, but....how can I have a MDI child access it's parents control(s)?? Seems like it should be as easy as making the controls on the parent public, so i created a new project real quick w/2 forms. One is the MDIParent co...more >>

Change HTTP headers
Posted by Janus Knudsen at 4/29/2004 8:31:36 PM
Hello. Im trying to change the httpheaders of a WebRequest, but I cant seem to be able to change 'Referer' Is it impossible? - Is some of the headers restricted and if yes, then whom? Kind regards ...more >>

XmlSerializer question
Posted by Dirk Reske at 4/29/2004 8:28:22 PM
Hello, how can I create following file with the Serializer? <xml ...> <Items> <Item Key="1">Item 1</Item> <Item Key="2">Item 2</Item> ... </Items> </xml> ...more >>

Sourcecode format
Posted by kuya789 NO[at]SPAM yahoo.com at 4/29/2004 8:23:20 PM
I would like to display my sourcecode(plain text) in a html page. I found this website that does exactly that. http://www.manoli.net/csharpformat/ Does anyone know where I can download the script? or teach me how to write one. Thanks in advance...more >>

Definition of "N-Tier"
Posted by Patrick at 4/29/2004 6:32:57 PM
I'm writing a winforms database application in C#. I've come across a lot of stuff lately about "N-Tier" architecture. Can anyone give me a simple explanation of N-Tier? The descriptions that I've found online are chock full of lingo that I simply don't know. I need the "N-Tier" for Dummies de...more >>

Deep Copy of an ArrayList ?
Posted by Marc Lefebvre at 4/29/2004 6:12:27 PM
there is an easy way to make a deep copy of an arraylist ? suppose I have an arraylist of COptions implements ICloneable I have need to overload the Clone() methode of a derived ArrayList (OptionsArrayList) And Overload the Clone() methode of my COptions There is an otherway to do deep co...more >>

posting daqta to an asp.net page from a console application
Posted by Ollie at 4/29/2004 5:41:55 PM
I have an aspx page that contains a web control that contains 2 text boxes and button to submit the text. I am trying to submit text and collect the response from a console application, but it is not working correctly it is just returning the original page I am expecting it to return the a subse...more >>

passing SAFEARRAY from COM to C#
Posted by yinjentam NO[at]SPAM hotmail.com at 4/29/2004 5:20:04 PM
Hi all, I'm very new to C#, and I've tried to find an answer to my problems. We've got a method in an existing COM object as follows: BOOL CCacheCtrl::IdFromStringRep(LPCTSTR lpszIdStringRep, const VARIANT FAR& vaResult) { ID id; if ((vaResult.vt == (VT_VARIANT | VT_BYREF)) || (vaR...more >>

Download file from a location on the WWW
Posted by mphanke at 4/29/2004 5:06:09 PM
Hi, how can I connect to a restricted directory on a server and download a file, if there is a newer version, than the one on the local file system? Something like http://user:pass@www.myserver.com/restricted/directory/thefile.file Thanks, Martin...more >>


DevelopmentNow Blog