How can i open a form in visual basic using the result of equation? If IMC <=18.5 then open de form. How i can do that in VB? | Sololearn: Learn to code for FREE!

+1

How can i open a form in visual basic using the result of equation? If IMC <=18.5 then open de form. How i can do that in VB?

visual basic

2/1/2017 12:20:32 AM

John A

2 Answers

New Answer

+1

Awsomeee thanks a lot it works!!

0

If IMC <= 18.5 Then FormName.ShowDialog() End If Or depending on how you are declaring it or if you want to access the results of the form later Dim myForm As New FormName() If IMC <= 18.5 Then myForm.ShowDialog() End If