Click here to Skip to main content
15,898,938 members
Home / Discussions / C#
   

C#

 
GeneralRe: Keyboard hooks and sendinput.. Pin
Bakaneko15-Apr-08 12:55
Bakaneko15-Apr-08 12:55 
QuestionUpdate/Refresh Form Pin
Alessandra7715-Apr-08 5:41
Alessandra7715-Apr-08 5:41 
GeneralRe: Update/Refresh Form Pin
Waleed Eissa15-Apr-08 5:56
Waleed Eissa15-Apr-08 5:56 
GeneralRe: Update/Refresh Form Pin
Alessandra7715-Apr-08 6:04
Alessandra7715-Apr-08 6:04 
GeneralRe: Update/Refresh Form Pin
Waleed Eissa15-Apr-08 6:06
Waleed Eissa15-Apr-08 6:06 
GeneralRe: Update/Refresh Form Pin
Alessandra7715-Apr-08 6:24
Alessandra7715-Apr-08 6:24 
GeneralRe: Update/Refresh Form Pin
Anthony Mushrow15-Apr-08 7:07
professionalAnthony Mushrow15-Apr-08 7:07 
GeneralRe: Update/Refresh Form Pin
Waleed Eissa15-Apr-08 20:44
Waleed Eissa15-Apr-08 20:44 
ok, you didn't say anything about data, I thought you just want to refresh the form .. anyways, the dirty solution is to reassign the data source that contains the data (whatever that is, a collection or a data table or view) to the datasource of the combobox, I think there's also a method on the data source property that you may call, you may check the documentation for that, so, create a public method in your parent form, something like RefreshComboBox(), and call it from the child form, (don't forget to pass a reference to your parent form in the constructor of the child form) .. the other solution is to bind your combobox to a BindingList (or a class that implements IBindingList), and pass a reference to the binding list to the child form, beware though that whenever the data in the binding list changes the data in the combobox will change regardless of whether the data was saved to the database or not, this will work very well with addition and deletion from the binding list, if you also want the combobox to display modified data, ie. the data of an item was changed, you have to implement INotifyPropertyChanged in the class of the objects contained in the binding list ..

hope this helps...


GeneralShowDialog from seperate thread Pin
lgelliott15-Apr-08 5:06
lgelliott15-Apr-08 5:06 
GeneralRe: ShowDialog from seperate thread Pin
Judah Gabriel Himango15-Apr-08 6:19
sponsorJudah Gabriel Himango15-Apr-08 6:19 
GeneralRe: ShowDialog from seperate thread Pin
lgelliott15-Apr-08 7:44
lgelliott15-Apr-08 7:44 
GeneralRe: ShowDialog from seperate thread Pin
Judah Gabriel Himango15-Apr-08 10:02
sponsorJudah Gabriel Himango15-Apr-08 10:02 
GeneralRe: ShowDialog from seperate thread Pin
lgelliott15-Apr-08 10:34
lgelliott15-Apr-08 10:34 
GeneralRe: ShowDialog from seperate thread Pin
Judah Gabriel Himango15-Apr-08 11:37
sponsorJudah Gabriel Himango15-Apr-08 11:37 
GeneralRe: ShowDialog from seperate thread Pin
lgelliott15-Apr-08 14:15
lgelliott15-Apr-08 14:15 
GeneralRe: ShowDialog from seperate thread Pin
lgelliott15-Apr-08 15:10
lgelliott15-Apr-08 15:10 
GeneralRe: ShowDialog from seperate thread Pin
Judah Gabriel Himango16-Apr-08 4:13
sponsorJudah Gabriel Himango16-Apr-08 4:13 
GeneralRe: ShowDialog from seperate thread Pin
lgelliott17-Apr-08 2:48
lgelliott17-Apr-08 2:48 
GeneralRe: ShowDialog from seperate thread Pin
Judah Gabriel Himango17-Apr-08 4:46
sponsorJudah Gabriel Himango17-Apr-08 4:46 
GeneralRe: ShowDialog from seperate thread Pin
lgelliott17-Apr-08 7:18
lgelliott17-Apr-08 7:18 
Generaldispose wrapped resource Pin
George_George15-Apr-08 4:46
George_George15-Apr-08 4:46 
GeneralRe: dispose wrapped resource Pin
Simon P Stevens15-Apr-08 5:03
Simon P Stevens15-Apr-08 5:03 
GeneralRe: dispose wrapped resource Pin
George_George15-Apr-08 5:07
George_George15-Apr-08 5:07 
GeneralRe: dispose wrapped resource Pin
Simon P Stevens15-Apr-08 7:34
Simon P Stevens15-Apr-08 7:34 
GeneralRe: dispose wrapped resource Pin
George_George15-Apr-08 23:25
George_George15-Apr-08 23:25 

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.