Results 1 to 7 of 7

Thread: Update Controls of other forms

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Posts
    484

    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

  2. #2
    Frenzied Member mar_zim's Avatar
    Join Date
    Feb 2004
    Location
    Toledo Cebu City.
    Posts
    1,416

    Re: Update Controls of other forms

    What control would you like to update? datagrid? combobox? listview?
    or update the data in that control.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Posts
    484

    Re: Update Controls of other forms

    update the data in the control, it is a combo box

  4. #4
    Frenzied Member mar_zim's Avatar
    Join Date
    Feb 2004
    Location
    Toledo Cebu City.
    Posts
    1,416

    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.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Posts
    484

    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???

  6. #6
    Frenzied Member mar_zim's Avatar
    Join Date
    Feb 2004
    Location
    Toledo Cebu City.
    Posts
    1,416

    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?

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Posts
    484

    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...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width