Click here to Skip to main content
15,887,267 members
Home / Discussions / C#
   

C#

 
QuestionEvent in a Thread Pin
QzRz5-May-08 10:49
QzRz5-May-08 10:49 
AnswerRe: Event in a Thread Pin
Jimmanuel5-May-08 11:17
Jimmanuel5-May-08 11:17 
AnswerRe: Event in a Thread Pin
K.L.K5-May-08 14:26
K.L.K5-May-08 14:26 
QuestionDataGridView null row Pin
tjschilling5-May-08 10:12
tjschilling5-May-08 10:12 
AnswerRe: DataGridView null row Pin
Ennis Ray Lynch, Jr.5-May-08 10:32
Ennis Ray Lynch, Jr.5-May-08 10:32 
GeneralRe: DataGridView null row Pin
tjschilling5-May-08 11:24
tjschilling5-May-08 11:24 
QuestionHow to refresh a comboBox that is bind to a table from a SqlDataBase? Pin
ioanap_855-May-08 8:59
ioanap_855-May-08 8:59 
AnswerRe: How to refresh a comboBox that is bind to a table from a SqlDataBase? Pin
SomeGuyThatIsMe5-May-08 9:34
SomeGuyThatIsMe5-May-08 9:34 
you can add a handler to the Closed event of the add user form that calls the bindComboBox function. before you do form.show you'd have form.closed += new eventhandler ect... calling update on a data adapter simply tells the adapter to update the table in the db with any changes that have happened to its data..not the other way around. Unless the stored update command has a select appended to it to return the new result set of the initial select query.

to summarize you'd need a function that loads the data to the comboBox (be sure to clear its items before you update it again or the items could duplicate), and in the btnAddUser_Click event you just add a new event handler to the AddUserForm.Closed event that will then call your function that loads the comboBox...i dont know if this is the best way to do it, but its probably the simplest.
AnswerRe: How to refresh a comboBox that is bind to a table from a SqlDataBase? Pin
Dave Kreskowiak5-May-08 9:34
mveDave Kreskowiak5-May-08 9:34 
QuestionUse a maked textbox to limit entry to some char Pin
baranils5-May-08 8:56
baranils5-May-08 8:56 
AnswerRe: Use a maked textbox to limit entry to some char Pin
#realJSOP5-May-08 9:51
mve#realJSOP5-May-08 9:51 
GeneralRe: Use a maked textbox to limit entry to some char Pin
baranils5-May-08 10:07
baranils5-May-08 10:07 
GeneralRe: Use a maked textbox to limit entry to some char Pin
#realJSOP5-May-08 11:03
mve#realJSOP5-May-08 11:03 
GeneralRe: Use a maked textbox to limit entry to some char Pin
baranils5-May-08 19:14
baranils5-May-08 19:14 
AnswerRe: Use a maked textbox to limit entry to some char Pin
Christian Graus5-May-08 18:08
protectorChristian Graus5-May-08 18:08 
GeneralRe: Use a maked textbox to limit entry to some char Pin
#realJSOP6-May-08 3:30
mve#realJSOP6-May-08 3:30 
QuestionHow to traverse class properties for Nunit tests? Pin
pankazmittal5-May-08 6:47
pankazmittal5-May-08 6:47 
AnswerRe: How to traverse class properties for Nunit tests? Pin
Gareth H5-May-08 7:36
Gareth H5-May-08 7:36 
AnswerRe: How to traverse class properties for Nunit tests? Pin
Brady Kelly5-May-08 8:37
Brady Kelly5-May-08 8:37 
AnswerRe: How to traverse class properties for Nunit tests? Pin
Ed.Poore5-May-08 12:02
Ed.Poore5-May-08 12:02 
QuestionLoadPostData Error Pin
ceetee5-May-08 5:53
ceetee5-May-08 5:53 
AnswerRe: LoadPostData Error Pin
Gareth H5-May-08 6:21
Gareth H5-May-08 6:21 
GeneralRe: LoadPostData Error Pin
ceetee5-May-08 7:12
ceetee5-May-08 7:12 
Questiondisable taskmanager Pin
False Chicken5-May-08 5:03
False Chicken5-May-08 5:03 
AnswerRe: disable taskmanager Pin
tgrt5-May-08 5:42
tgrt5-May-08 5:42 

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.