I have three (3) form namely Form1, Form2 and Form3 with button.
Form1 is my main form, window state as MAXIMIZED and form border style as NONE.
My code from Form1 inside a button click event
Dim form2 As New Form2
form2.show()
Form2 is a pup-up form that displays some details. Window state as NORMAL and form border style as FIXED. It is opened using a button in Form1.
My code from Form2 inside a button click event
Dim form3 As New Form3
form3.showdialog()
Form3 is another pop-up form but is opened using showdialog(). This form hosts some input. When hitting a button in Form3, it must close Form2 and refresh Form1. Window state as NORMAL and form border style as NONE (hiding X to close the form, it will only use the button to close the form)
My code from Form3 inside a button click event
me.hide()
Dim form2 As New Form2
form2.hide() '<--- not working
Dim form1 As New Form1
form1.refresh() '<--- not working