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

1st Feb 2017, 12:20 AM
John A
John A - avatar
2 ответов
+ 1
Awsomeee thanks a lot it works!!
1st Feb 2017, 1:15 AM
John A
John A - avatar
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
1st Feb 2017, 12:44 AM
Bill
Bill - avatar