smriti Posted May 26, 2005 Posted May 26, 2005 Hi friends, I am developing a windows forms application. I am strucked up with a problem. I had two forms. Main form sub form. First i displayed main form and from main form i invoked sub form. later i want to exit from sub form nd display some information on main form. My program flow is like this class MainForm sub Mainform_load GetData() end sub sub btn_click subform.activate() end sub sub dislayData() me.label1.text="hi" end sub end mainform class class subform subform_load() showData() end sub sub exitbtn_click() dim obj as new Mainform obj.displayData()-----here i am calling main form method so as to display the label on main form but the label is not getting displayed with the text. end sub Is there any other way to do this? Thanks Quote
stustarz Posted May 26, 2005 Posted May 26, 2005 First thing : do a search for 'Multiple Forms' on this forum, this question is extremely popular Secondly this post is a great starting point for you : http://www.xtremedotnettalk.com/showthread.php?p=406454#post406454 Quote Visit: VBSourceSeek - The VB.NET sourcecode library "A mere friend will agree with you, but a real friend will argue."
miwaypro Posted May 30, 2005 Posted May 30, 2005 Hi friends, I am developing a windows forms application. I am strucked up with a problem. I had two forms. Main form sub form. First i displayed main form and from main form i invoked sub form. later i want to exit from sub form nd display some information on main form. My program flow is like this class MainForm sub Mainform_load GetData() end sub sub btn_click subform.activate() end sub sub dislayData() me.label1.text="hi" end sub end mainform class class subform subform_load() showData() end sub sub exitbtn_click() dim obj as new Mainform obj.displayData()-----here i am calling main form method so as to display the label on main form but the label is not getting displayed with the text. end sub Is there any other way to do this? Thanks Can u pls use the VB Quote to make me able to solve ur problem easily Quote programing programer program
smriti Posted May 31, 2005 Author Posted May 31, 2005 Can u pls use the VB Quote to make me able to solve ur problem easily Thanks for your response. I solved the problem. No need to worry Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.