Community discussion forum

Need Help on Pointing to an open form

  • 11 months 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.

  • Advertisement

    Simply the fastest line-level profiler for .NET ever

    “The low overhead means it has minimal impact on the execution of my program”
    Mark Everest, Development Team Leader, Renault F1 Team Ltd.

    Try out the new ANTS Profiler 4 for yourself. Download your 14-day trial now

  • 11 months 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

  • 9 months 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.^_~
     

  • 9 months 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.

  • 8 months ago

    Thans You all for the help,

Post a reply

Enter your message below

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