Click here to Skip to main content
15,897,371 members
Home / Discussions / C#
   

C#

 
GeneralRe: Passng TextBox Object.... Pin
Korjiro3-Aug-04 19:41
Korjiro3-Aug-04 19:41 
GeneralRe: Passng TextBox Object.... Pin
Jay Shankar3-Aug-04 19:52
Jay Shankar3-Aug-04 19:52 
GeneralRe: Passng TextBox Object.... Pin
exhaulted3-Aug-04 22:51
exhaulted3-Aug-04 22:51 
GeneralVS 2003 Designer bug? -- Duplicate declaration error Pin
ddelapasse3-Aug-04 16:04
ddelapasse3-Aug-04 16:04 
General"sizeof" in C# Pin
crushinghellhammer3-Aug-04 12:55
crushinghellhammer3-Aug-04 12:55 
GeneralRe: "sizeof" in C# Pin
Member 11737603-Aug-04 13:31
Member 11737603-Aug-04 13:31 
GeneralRe: "sizeof" in C# Pin
NietzscheDisciple3-Aug-04 13:35
NietzscheDisciple3-Aug-04 13:35 
GeneralFilling a combo box from a database Pin
Jefferys3-Aug-04 12:25
Jefferys3-Aug-04 12:25 
I am wanting to know what is the best way to fill a combo box from data in a database. Right now I am using an data adapter to fill a dataset that is set as the datasource for the combo box. This seams to work ok.

From reading about datasets and dataadapter it looks to me that using this method keeps the link to the database open. Is that true?

On another combo box I have in my program I use a dataset to read an xml file. Then I use a foreach loop to add the data to the combobox. It is a small list of 10 or so records. The only problem with this is that I haven't found a way to add a value to each item in the combo box.

Using the dataset I can set the display member and value member. Just wanted to know what everyone though about this.

I am also concerned about how much memory is taken up by the comboboxes and the datasets that fill them.

Please let me know what you think about this. I know it is a small thing I want to make sure I'm using the best method.

Thanks,

JefferyS Smile | :)
GeneralRe: Filling a combo box from a database Pin
DougW483-Aug-04 12:38
DougW483-Aug-04 12:38 
GeneralListcontrol text alignment. Pin
Christian Graus3-Aug-04 12:22
protectorChristian Graus3-Aug-04 12:22 
GeneralRe: Listcontrol text alignment. Pin
Member 11737603-Aug-04 16:18
Member 11737603-Aug-04 16:18 
GeneralRe: Listcontrol text alignment. Pin
Christian Graus3-Aug-04 16:22
protectorChristian Graus3-Aug-04 16:22 
GeneralRe: Listcontrol text alignment. Pin
Member 11737603-Aug-04 16:37
Member 11737603-Aug-04 16:37 
GeneralRe: Listcontrol text alignment. Pin
Christian Graus3-Aug-04 16:44
protectorChristian Graus3-Aug-04 16:44 
GeneralRe: Listcontrol text alignment. Pin
Member 11737603-Aug-04 17:06
Member 11737603-Aug-04 17:06 
GeneralRe: Listcontrol text alignment. Pin
Christian Graus3-Aug-04 17:09
protectorChristian Graus3-Aug-04 17:09 
GeneralRe: Revenue Counter Pin
Colin Angus Mackay3-Aug-04 12:00
Colin Angus Mackay3-Aug-04 12:00 
GeneralRe: Revenue Counter Pin
RadioButton3-Aug-04 12:13
RadioButton3-Aug-04 12:13 
Generalbeginning a c# database Pin
Miles Roberts3-Aug-04 11:12
Miles Roberts3-Aug-04 11:12 
GeneralRe: beginning a c# database Pin
Nick Parker3-Aug-04 11:27
protectorNick Parker3-Aug-04 11:27 
GeneralRe: beginning a c# database Pin
Colin Angus Mackay3-Aug-04 11:48
Colin Angus Mackay3-Aug-04 11:48 
GeneralRe: beginning a c# database Pin
Miles Roberts3-Aug-04 11:53
Miles Roberts3-Aug-04 11:53 
GeneralRe: beginning a c# database Pin
Colin Angus Mackay3-Aug-04 12:12
Colin Angus Mackay3-Aug-04 12:12 
GeneralRe: beginning a c# database Pin
Miles Roberts4-Aug-04 2:06
Miles Roberts4-Aug-04 2:06 
GeneralRe: beginning a c# database Pin
Christian Graus3-Aug-04 12:19
protectorChristian Graus3-Aug-04 12:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.