Can you tell me what is ur forms name.. In my code give below you will have to replace form1 text with your forms name... Please try this and let me know if you are still getting any error write back to me with exact error message you are getting...
i want to create pop-up as new form.
I tried to put your code
dim obj as new form1
but, Stackoverflow exception is there.
I want that whenever i click a button, a new pop-up window be opened.
hi all... i am with a lil bit diff problem.. i need to have a subform or panel/frame whatever we can say to appear in the main form depending on some condition. I don't want visibility option as i had successfully tried it but i need to make my form generic... kindly help
Hi rohitgeek! Please start a new thread for your question. You're not answering or solving the original question about pop-up windows. You'll get answers to your question when everybody sees what you are asking :)
em...if your first form is startup form and you want call the new form and close the startup form, i think the better way is setup the solution/project properties at "Shutdown mode" choose "when last form-closes". If you choose this you can dispose the object (startup form) and the second form is not close.
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...