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 2008 > threads for monday april 7

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

Auto send email without confirmation
Posted by Boki at 4/7/2008 10:49:28 PM
Hi All, I want to create a program that auto send out email ( not email bomb ) to myself. I tried the MAPI, but it will show a notiifcation message, user need to confirm that. My target is the program can auto send out email for a while ( with a timer, no prob ) because I need to leav...more >>


Insert object serialized as xml into sql server 2005 xml column
Posted by Andy B at 4/7/2008 10:12:31 PM
I got an object to serialize into an xml file. Now, instead of putting it into an xml file, I need it to go to and from an xml database column. How do you do this? ...more >>

Just checking: BindingList<T> is the only generic list supporting change notifications?
Posted by Steve K at 4/7/2008 9:04:47 PM
I've just recently added support for IChangeTracking to my business objects and came up against a bit of a snag. I have many List<T> fields in my objects that are exposed as properties. My application can get a reference to the lists and do just about anything with them.... all of this hap...more >>

when to use lock
Posted by Andy Wynn at 4/7/2008 8:36:21 PM
I have written a windows service that will be used as a licensing server for a desktop application. I was planning to use a generic list to hold the license objects. For the majority of the time the service will see a small about of traffic, since the number of licenses that will need to be ...more >>

How to make CLR stored procedure generate comments in TSQL when it is deployed via visual studio?
Posted by DR at 4/7/2008 6:55:31 PM
How to make CLR stored procedure generate comments in TSQL when it is deployed via visual studio? e.g. when i right click the project and hit deploy, i want some comments to appear in or around the SQL wrapper that calls the CLR function. ...more >>

ObjectBuilder method or loose code
Posted by Andy B at 4/7/2008 4:53:16 PM
I have a complex object that is made up of 17 other objects and 2 dynamic dictionary collections. Would it be safe to say that I should possible make some sort of ObjectBuilder method in the main/root object to help contain the creation code? Or should it be broken up into smaller parts before...more >>

.NET Framework 3.5 redistributable
Posted by Jigar_Patel@nospam.nospam at 4/7/2008 4:42:00 PM
Hi, Is .NET Framework 3.5 redistributable available? If, not what is expected timeframe for it? -- Jigar...more >>

data type for 2 D data
Posted by Tem at 4/7/2008 3:59:18 PM
What would be the best data type for storing objects in a 2D array. the ideal type would be one like generic List but Lists are only 1D. i don't think i can have an array of lists. The size of either the row or column is given while the size of the other dimension can be dynamically changed. ...more >>



Custom Control via wrapper
Posted by Ron at 4/7/2008 3:58:37 PM
Hi, I have a Janus GridEX third party control. I need to add some custom properties of my own to it. I tried building a User Control and dragged a GridEX onto the designer surface, but the GridEx has many custom properties and designers and obviously my control only show the base control ...more >>

COME ON MICROSOFT - CLEAN THIS NEWSGROUP - IT'S BECOMING UNUSABLE !!!!!!!
Posted by Pete Kane at 4/7/2008 3:22:55 PM
COME ON MICROSOFT - CLEAN THIS NEWSGROUP - IT'S BECOMING UNUSABLE !!!!!!!...more >>

Directory selection
Posted by CSharper at 4/7/2008 3:18:55 PM
Is there a control I can use where user can enter server name and then discover the server, something like folderbrowser? folderbrowser doesn't allow user to explore the network. I want user to explore or enter the server name and discover the network. Thanks....more >>

C# and COM Object
Posted by Trecius at 4/7/2008 3:01:04 PM
Hello, Newsgroupians: I have a question that is troubling me. I have a COM / OLE component that I am adding to my C# project. In creating a wrapper class for the component, I have declared the class as static as well as every member and function in the class, which is -- of course -- requ...more >>

Question on non-modal form
Posted by Dom at 4/7/2008 2:22:29 PM
In my program, the user can create a non-modal form (Is that the right phrase? I mean form.Show, not form.ShowDialog). This is important, because the user must go back and forth between the main and non-modal window. The user can "X" out of the non-modal form. I will know that the form is ...more >>

I want study CS.Could you tell me some book with it.
Posted by You Lei at 4/7/2008 2:18:07 PM
Same as title. ...more >>

Question on non-modal form
Posted by Dom at 4/7/2008 2:16:50 PM
In my program, the user can create a non-modal form (Is that the right phrase? I mean form.Show, not form.ShowDialog). This is important, because the user must go back and forth between the main and non-modal window. The user can "X" out of the non-modal form. I will know that the form is ...more >>

Looking to buy a new laptop
Posted by Richard Carpenter at 4/7/2008 2:15:25 PM
For a while my wife and I have shared my current laptop (Dell Inspiron 6000D), and it's worked out ok. However, lately she's kind of caught the bug and finally started getting a feel for all the wonderful things she can do on a computer from getting some of her office tasks done at home to proce...more >>

How do you know that the gc runs
Posted by GG at 4/7/2008 1:14:37 PM
Is there a way to know when the garbage collection runs? We would like to see how an app performs and when various gc levels kick in. Thanks *** Sent via Developersdex http://www.developersdex.com ***...more >>

How to Capture the screen of another application?
Posted by JB at 4/7/2008 1:07:23 PM
I'm trying to write an application to read another program, to capture the screen, read some text and then write it into a database. The data i need to get will always be at the same point on the program's window - but i dont have the first idea how to go about starting it.. First I need to s...more >>

DatagridView, stop sorting, please
Posted by stocki at 4/7/2008 1:05:08 PM
Hi, On my WinForm I have a DataGridView, which contains four columns and four rows. The last row contains only a sum of the values of the cells of the previous rows in column 3. The cells [3,0], [3,1], [3,2] are empty ( [row,column] ). [0,0]="Mr." ; [0,1]="Smith" ; [0,2]="David" ; [0,3...more >>

Creating a unit test in vs2008 for an object that holds strings?
Posted by Andy B at 4/7/2008 12:51:08 PM
I have a class called Address. It holds strings to represent different parts of an address (street, city, state, zipCode). It doesn't really have anything in it other than a blank constructer and some default properties to set and get the string values. How would you write tests on this class ...more >>

Databindings and invalid values being displayed
Posted by Claire at 4/7/2008 12:41:31 PM
Hi, I have a form with 3 textboxes. My code is below (short working example from vs 2005). The value "_cm" is the only stored data, km and miles are calculated values. The text boxes work fine until an invalid value is entered. In that case, the incorrect value is displayed in the text box rat...more >>

ridViewColumn_that_…
Posted by LuisP at 4/7/2008 11:36:01 AM
How to create a customized DataGridViewColumn that … 1) Host controls of my choice (i.e. depending on the value of other cells in the row ) 2) Display the control even when the cell is not in edition. I was able to obtain 1 following the guide in “How to: Customize the Appearance of C...more >>

which implement interface to use
Posted by rodchar at 4/7/2008 11:07:00 AM
hey all, when i implement my interface i built i get a choice of 1. Implement Inteface 2. Explicitly Implement Interface can someone please tell what the difference is? thanks, rodchar ...more >>

Trying to understand interfaces
Posted by AMP at 4/7/2008 9:42:57 AM
Hello, I am using the Head First book to try and understand interfaces.There is one thing I dont understand about the following code: public void Sort() { cards.Sort(new CardComparer_bySuit()); } Calls the function Compare() in this class: namespace __Two_D...more >>

Can streamreader change a file?
Posted by PSiegmann@mail.nu at 4/7/2008 9:27:19 AM
Hello group, if I open with streamreader a file to read in that way: StreamReader sr = new StreamReader(c:\\test.txt, System.Text.Encoding.GetEncoding(10000)); Is it possible that it can change the file in any way? (Change the encoding of the actual file as example)...more >>

COME ON MICROSOFT - CLEAN THIS NEWSGROUP - IT'S BECOMING UNUSABLE !!!!!!!
Posted by Pete Kane at 4/7/2008 9:19:16 AM
XXX...more >>

Closing all Windows in Windows Application
Posted by aagarwal8@gmail.com at 4/7/2008 8:38:24 AM
Hi, I have a chat application which i have created using WinForms 2.0 (C# lang). The situation i am faced with is that i need to close all the opened (chat, public chat, chat invite, chat history, user profile) windows at the time of logout, except for the main window. In my application,...more >>

Array length
Posted by raulavi at 4/7/2008 8:00:04 AM
vs 2005 c# How do I get the number of filled item from an array? string[] myArr = {"","","",""}; myArr[0] = "one"; myArr.Length = 4; How do I get the number of filled item from an array in this case 1. or is any other way to define arrays as unlimited ? Thanks ...more >>

property in an interface
Posted by rodchar at 4/7/2008 7:30:05 AM
hey all, can and should a property be included in an interface class? if so, can someone please show me a simple example? thanks, rodchar...more >>

How do I show dialog boxes in Csharp?
Posted by COHENMARVIN@lycos.com at 4/7/2008 7:19:20 AM
I was told on this forum that a good way to display dialog boxes is with the following code: using (MyDialog myDialog = new MyDialog()) { if (myDialog.ShowDialog(this) == DialogResult.OK) { someValue = myDialog.SomeValue; } } Now I notice tha...more >>

Windows Service UnauthorizedAccessException
Posted by Greyhound at 4/7/2008 7:18:01 AM
I have created a Windows Service with C# in VS2008. I created the file processing code first in a Windows Forms application that reads a flat file on a network share. I am able to access the directory on the network and access the files from the Windows Forms application. When I create and ...more >>

C# version of VB.NET "AddRange" method w/generic collection
Posted by dgraper at 4/7/2008 7:07:33 AM
Friends: I'm an ex-VB programmer with a new job in an all C# shop. No problems the past few months thinking/converting between the two, but I just ran into a problem translating some working VB code from C#: Dim enClr As System.Drawing.KnownColor Dim clrs As New System.Collections.Generic....more >>

Deep Clones
Posted by richard d at 4/7/2008 6:23:56 AM
I can basically see two ways of doing this, in both cases implementing Clone() from the ICloneable interface: Given: class A : ICloneable { ... } class B : A { ... } 1) In (A) public virtual object Clone() { return new A(this); } protected A (A clonee) { /* copy from clonee, making...more >>

Locating a Datagrid Row from the Datasource Row, FAST
Posted by Ty at 4/7/2008 6:16:52 AM
Hi all Short version of my problem: i have a Datagrid (Flexgrid from ComponentOne) with a Datatable as source. I need to search a row in the datatable, using a primary key column in the datatable, and then figure out wich row this currently is in the Datagrid. This should probably be done usi...more >>

Pass a function as an argument
Posted by Magnus.Moraberg@gmail.com at 4/7/2008 5:43:51 AM
Hi, I have a function within which I would like to call another function. Id like to pass the second function into the first as an argument. As follows: Function1(Function2a); Function1(Function2b); void Function1(? Function2) { Function2(); } Is this possible? Thanks, Bar...more >>

Installer Class Question
Posted by S Chapman at 4/7/2008 3:40:34 AM
How to get the folder in which the MSI is present? What I am trying to do is, basically my app has a config file and within this the connection string is stored, when I distribute the MSI, the sys-admin normally puts the MSI on a network and installs the clients from there. I want to put a cop...more >>

index loop in a dataset
Posted by nologo at 4/7/2008 3:10:17 AM
hi all, having a few problems with a index loop on a dataset im using. basically i have a datagrid displaying rows of data. i select 1+ rows, it deletes them but misses the last row. for (int iIndex=0; iIndex<this.ultraGrid1.ActiveRow.Index; iIndex++) { // Store the schemeID to int i...more >>

nested query and dataset
Posted by nannu at 4/7/2008 2:18:08 AM
Hi, i am using the following query string query = "SELECT *"+ "FROM DataSet"+ "WHERE Param_ID =(Select Data1 from testcases where TestCaseID='TC001') DataAdapter da=new DataAdapter(); mycommand = new OleDbComman...more >>

c# 2.0 combobox with a locator
Posted by Chris at 4/7/2008 2:14:01 AM
Now, I have combo that after user presses a key it scrolls to the first value in combo that starts with the pressed key. Imagine that these values are in combo: Amanda Alice Carol Lewis Now, If you presses "a" and then "l" it will scroll first to amanda then to lewis. I want it to w...more >>

DataSet append
Posted by SePp at 4/7/2008 2:06:22 AM
Hi, I have one dataset which is exported to an external file (excel) My problem is that I want to append the data of two different views to one dataset. (because they have to be displayed in an sheet among each other) Something like: cmd = new OracleDataAdapter("Select * from view1"); cmd...more >>

What am I doing wrong with LINQ and XML
Posted by Bernard at 4/7/2008 2:02:01 AM
I have an xml fragment that looks like this assigned to doc variable: <charge_details> <charge> <type>Maintenance Charge</type> <currency>GBP</currency> <percentage>0.35000</percentage> <frequency>Monthly</frequency> <term>31</term> ...more >>

traping all combinations of keypress in overriding ProcessCmdKey
Posted by Peted at 4/7/2008 12:40:16 AM
Hello, i am lookinf for the best way to trap any alphanumeric keypress in all multi key combminations and execute some code For example , i have a form visible using the form.showdialog method, then the user can press keys A, D, E, F, T, and C to peform a function. What i want is that...more >>

Dynamic memory allocation for an array
Posted by Vicky at 4/7/2008 12:22:41 AM
I need to know how to set the size of an array at runtime (ie) a[] should have the its size increased/decreased as its contents are added/ deleted. Can u tell me how to do it?...more >>


DevelopmentNow Blog