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 !




Regarding windows form


Posted Date: 22 May 2007      Total Responses: 3

Posted By: kintu gandhi       Member Level: Silver     Points: 2


how to get a value from one windows form in another windows form????



Responses

Author: Jay Dubal    22 May 2007Member Level: BronzeRating:     Points: 2
hello, what you can do is create a public property, or a public variable.... then say there are two Form1 and Form2 and you want to pass value to Form2 from Form1, then create object of form2 where the public member is .... then do this
objForm2.Member = "your value"

then do objForm2.Show.... or you can create a new constructor, apart from the default one, and then pass this value in the constructor....

Also you can download some useful books regarding winforms from here: http://www.free-ebooks-download.org


Thanks
Jay Dubal
http://www.free-ebooks-download.org


Author: Cema Indumathy V    22 May 2007Member Level: DiamondRating:     Points: 2
In form1: Dim obj as new Form2() obj.Method1("values","that u want to pass") obj.Show() In Form2: Dim str1 as string Dim str2 as string Public Sub Method1(v1 as string, v2 as string) str1 = v1 str2 = v2 End sub


Author: Jay Dubal    22 May 2007Member Level: BronzeRating:     Points: 2
NEVER SPOON FEED, LET THEM LEARN :) :)

anyways... thanks!


Post Reply
You must Sign In to post a response.
Next : Regarding windows form
Previous : Interview Questions
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

doors in nj

Contact Us    Privacy Policy    Terms Of Use