Results 1 to 2 of 2

Thread: load a form but don't show the same

  1. #1

    Thread Starter
    Lively Member sameer spitfire's Avatar
    Join Date
    Nov 2001
    Location
    India
    Posts
    120

    load a form but don't show the same

    Hi friends

    I want to load a form from a particular form but the same should not be visible to the user

    this is because

    I want to add some of the data to the controls of new form from the original form and then i have to show it to the user

    in VB6 i used

    load formxyz

    formxyz.textbox = "New form"

    formxyz.show

    how i can do this in VB net

    please help
    with Regards
    sameer Mulgaonkar

  2. #2
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Dublin (Ireland)
    Posts
    304
    dim f1 as new myform
    (the name of the form you eventully want to show)

    create a Public sub say called loadme in myform which:

    loads the controls with data you want the user to see:

    and then:

    myform.loadme(any pararmeters passed as a list)

    this will execute that sub

    and finally:

    myform.showdialog()

    shows the form with the controls loaded with the user data you have passed in the Public sub or loaded from other sources

    i.e

    dim f1 as new myform
    myform.loadme(parameter list values to be passed)
    myform.showdialog()

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