How to hide a form

pmk2000

Member
Joined
Mar 31, 2005
Messages
6
Programming Experience
1-3
hi all

i have an application in which there is only one single form

in the code i have written like this
module m1
public f as new form1
sub main()
f.showdialog()
end sub
end module

in form button1_click event
f.hide()

the problem is when i click button1 the form is closing and coming out of application.

how to hide the form without closing the application

please help me out
 
instead of using f.ShowDialog use f.Show then on form f the button1 click event use me.hide

that should work
 
JuggaloBrotha
thanx for the reply

but i tried that code already but it didn't work

when i executed the application it didn't display the form at all and came out of application
 
hi Weismana81,

i saw ur code just now but i already got the solution for it.
i tried in the same way what u wrote, its working really fine.

thanx for the help
 
Back
Top