Update Controls of other forms
Dear all,
I am trying to code something that I update the database with one form, then I check if there is any other forms opened, if the specific forms opened, then I have to update a specific control that's in that form....
Any idea???
Thanks
PlayKid
Re: Update Controls of other forms
What control would you like to update? datagrid? combobox? listview?
or update the data in that control.
Re: Update Controls of other forms
update the data in the control, it is a combo box
Re: Update Controls of other forms
if so clear the combobox then populate again the data.
or you have a method that populates to your combobox and declare it public so that it can be access to your mainform.
Re: Update Controls of other forms
but then do I have to say
Dim NewForm as new Form1
NewForm.ComboBox = "something"
NewForm.combobox.show()
but that form is showed already, do I have to use this code to change???
Re: Update Controls of other forms
ok. Questions.
What kind of application you develop?
Is it an mdiparent mdichild application?
You have a mainform and lots of child forms?
Re: Update Controls of other forms
yes, it is a mdiparent and lots of mdichildren, but I want to update the database with one form, while the other forms are still open, the other forms that need that specific data need to be update without closing the form...