Community discussion forum

Need Help on Pointing to an open form

  • 1 year ago
    I have 2 forms, 1 for Viewing Info and the other for adding info. After adding the info, I need to fill page 1 (already opened) with the info from the database without having to implement a refresh button on page 1 How do I go about doing this from page 2(adding) I'm using VB 2005 Expess Edition. Thanks for all the Help.
  • 1 year ago
    hi i dont know much about vb 2005. i work in vb6. i refresh the page in Form_activate event to auto-refresh the page. hope this hint will help you regards manpreet singh dhillon hoshiarpur
  • 1 year ago

     hi,

     

    maybe this will help.

    you mentioned about having a refresh button on the form1...why dont you just put your refresh button codes after the adding process from form2.

    'on form2 put there your

    'form1.refresh

    just to give you a hint...hope it's a help.^_~
     

  • 1 year ago

    Hi,

     The best way to do it is creating a sub in the form that needs to be refreshed that handles the refreshing, and instead of type Private, declare this sub as public and this way you will be able to call it from the any other form ex: form2.RefreshForm()    that is if created a sub called "Public Sub RefreshForm()"

     

     This is my first post in this forum since about a year, it is nice to be back.

  • 1 year ago
    Thans You all for the help,

Post a reply

Enter your message below

Sign in or Join us (it's free).

Want to stay in touch with what's going on? Follow us on twitter!