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# > july 2005 > threads for saturday july 23

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 31

converting textbox.text to real number
Posted by Homer Simpson at 7/23/2005 11:28:27 PM
How do I convert a value in a textbox to a real number so I can perform some math ops on it? I understand I will need to validate the textbox's input to make sure it is a real number and not a string so any suggestions along those lines are also appreciated. Thanks, Scott ...more >>


collapsable datagrids
Posted by The Bear at 7/23/2005 10:39:00 PM
Is there a way to create a collapsable datagrid. Where multiple areas of the grid can be expanded or collapsed? Using C# and Windows Forms ...more >>

Generics question
Posted by Greg Bacchus at 7/23/2005 9:32:22 PM
Hi I have a question that is difficult to explain so I'll use code snippets to help me... I have my object: public abstract class MyTemplate<TKey> { public <TKey> Key; } public class MyObject : MyTemplate<int> { public string Code; } and I want to make a data access class that ...more >>

A question about sql connection in C# code.
Posted by Wing at 7/23/2005 7:53:39 PM
Hi all, I am writing the C# code function that take 2 parameters and access the data in the MS SQL database and return a SqlDataReader object. In my funtion, a SQL connection is established and open the connnection before reading the data. Everything seem to be fine, but once I add the close(...more >>

IViewObject
Posted by Eric at 7/23/2005 7:44:31 PM
Hi, How I get the interface IViewObject of a RichTextBox Control? I would like to call the Draw Method with C#. Thanks Eric ...more >>

Extract file name from full path?
Posted by Bill at 7/23/2005 7:09:07 PM
Is there a method that will take a full path and filename as a parameter and return just the filename? I am currently using the following code but it is extremely slow for files on a DVD. for (int I = 0; I < openVobDialog.FileNames.Length; I++) { FileInfo vobInfo = new FileInfo(openVobDialog...more >>

DataView.get_Item throws a NullReferenceException
Posted by Jonathan Allen at 7/23/2005 6:34:52 PM
What could cause a stack trace like this? Message:Object reference not set to an instance of an object. Stack Trace: at System.Data.DataView.GetRecord(Int32 recordIndex) at System.Data.DataView.get_RowViewCache() at System.Data.DataView.GetElement(Int32 index) at System.Data.Da...more >>

License or Serial Numbers
Posted by max at 7/23/2005 4:56:52 PM
Where whould I look to get find out how to implement a License or Serial number for software products? I would like some ideas for impleting a fairly simple solution, basically where can I look to find out what to do? Thanks, max...more >>



Converting image to byte array
Posted by Luis Arvayo at 7/23/2005 1:03:53 PM
Hello, I am trying to convert a jpeg image stored in a PictureBox to a byte array in order to later save it to a database, but I get this error : "Generic Error in GDI+". The source code is the following (when clicking in a button): MemoryStream ms = new MemoryStream(); pictureBox1.Ima...more >>

RichTextbox scroll to a line
Posted by Rachel Suddeth at 7/23/2005 12:38:29 PM
I have the index of a line in the Lines array of a RichTextBox. I would like to have it scroll so that line displays at the top. Is there no way to do this? The only way I can see to make it scroll is with ScrollToCaret(). But I don't know how to set the "caret" to a particular line. Any su...more >>

VISIO clobbers code
Posted by carqs123 at 7/23/2005 12:17:32 PM
I used Rational Rose UML for quite some time. When I generated code it didn't clobber my code. Rose put little markers which stated here you can put your personal modifications and Rose will preserve them after regenerating code. VISIO seems not to put any markers into the code it generates ...more >>

Reusing Delegate objects
Posted by Tedb at 7/23/2005 9:38:20 AM
Is there any reason why you can't reuse a delegate object instance versus creating a new one each time? For example in the following scenario I have a DataPoints object with an array of DataPoint objects, each of these has a Changed event. My Client objects subscribe to some or all of the Da...more >>

Dataset -> Collection
Posted by Craig Lister at 7/23/2005 9:17:31 AM
Newish to c#, so go easy... I have a data class that does all my database work.. One method is 'getData'. I pass it a string which contains the SQL string, and it returns me a SqlDataReader. However, this means that where ever I call this class from, I need to include 'using System.Data...more >>

regexp
Posted by Arda Zuber at 7/23/2005 1:59:02 AM
Hi everyone!!! I want to find all the words in a text that are different from the one i am looking for by one letter... It is hard to explain but maybe an example does the job. For example, i am looking for the word "working" These findings will be fine torking worsing workimg ...more >>

adding XML documentation to dll in C#
Posted by teenagarg NO[at]SPAM hotmail.com at 7/23/2005 12:37:56 AM
Hi, I want to add description of my functions in C#. I have there dll. This is for sure that I had to add XML documentation. But I don't know how to begin. I am new to C#. Help me by giving some example. Thanks in advance Teena ...more >>

listview item selection..??
Posted by Maheshkumar.R at 7/23/2005 12:00:00 AM
hi groups, I have placed an listview control, i want to iterate thru the control = and find the clicked event items. listView2.Items.Add(fname[i].ToString(), i); how i can perform the iteration to find the item clicked...? and its = item. thankz--=20 M=E4h=E9sh Kum=E4r. R=20...more >>

ADSI adding a group to a group
Posted by Russ Ferrill at 7/23/2005 12:00:00 AM
I have a C# application in which I need to add one Active Directory group as a member of another group. I have tried using the same steps that work for adding a user to a group, but that isn't working. I'm just adding the distinguished name of one group to the member property of another. Eithe...more >>

DirectPlay
Posted by Téo at 7/23/2005 12:00:00 AM
Hi, Do you know where i could find some interesting documentation about DirectPlay for managed dev. I have been searching for a long time on the web without any success. Thanks. ...more >>


DevelopmentNow Blog