Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted
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

programing programer program
Posted
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...