0

I want to make a function in my main form that uses a variable from another function in the form. Also i want to call the first function in another file in the same solution. Is that possible in vb.net?

Vangelis
  • 37
  • 6

1 Answers1

0

Yes, it is possible. Just as you called it: With global variables. See the following link for a related question on SO:

You can call your function from another place in your solution if that method is delared to be Public (=visible from outside the class). Take a look here:

Community
  • 1
  • 1
Waescher
  • 5,361
  • 3
  • 34
  • 51