C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




how to access a object from one form to another form in VB.Net


Posted Date: 22 Mar 2007      Total Responses: 2

Posted By: senthil kumar       Member Level: Bronze     Points: 2



Example,

I have a mdiForm in that i use textbox control, if i working in child form, in some condition i
have to assign some value to the textbox in mdiform.




Responses

Author: suyambu    22 Mar 2007Member Level: GoldRating:     Points: 2
create object of mdi form in child form. from that you can access all control of mdi form and assing value


Author: Dhimant Trivedi    27 Mar 2007Member Level: SilverRating:     Points: 2
well, i think creating an instance of the mdi form will create a new instance of the mdi and that's why all the controls will be having a new instance also. the better option in my mind is that, if you don't have a security problem then you can make the control of your mdi form to be public ( by default it is private ) and then you can go on to access the control.

this way you will be accessing the same mdi form and same control in your current context.

Hope this will help...


Post Reply
You must Sign In to post a response.
Next : what is com,com+ and dcom
Previous : difference
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

SPOC

Contact Us    Privacy Policy    Terms Of Use