Calling sub from another form

does anyone know how to call a sub that you created in one form1 from form2?

Comments

  • Hi,
    You can use a public variable or boolean to get the info from another form, but you have to declare it in a module which you ca create in the solution explorer. right click on your project and then click on add module. Then you can declare a public variable:

    "public strvariable as string"

    or boolean for that matter. Then you can use info form other forms

    : does anyone know how to call a sub that you created in one form1 from form2?
    :

  • Hi,
    You can use a public variable or boolean to get the info from another form, but you have to declare it in a module which you ca create in the solution explorer. right click on your project and then click on add module. Then you can declare a public variable:

    "public strvariable as string"

    or boolean for that matter. Then you can use info form other forms
    HTH
    Dhruv(BattleGuard)

    : does anyone know how to call a sub that you created in one form1 from form2?
    :

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion