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 !




button click event in windows application C#


Posted Date: 19 Jul 2008      Total Responses: 4

Posted By: raniiswathy       Member Level: Silver     Points: 1


hi,

if i click a button in one form the fields in that form as well as in another form should become enable. how to make the fields in another form enable . i am writing the code in that button click event, the fields in that form are becomming enable but i want the fields to be enable in another form.

thank you




Responses

Author: saji    19 Jul 2008Member Level: GoldRating:     Points: 2
Hii,

I want know some more details. both form is active in same time.
is it asp.net or windows application?


thanks..


Author: vasanthiraajan    19 Jul 2008Member Level: GoldRating:     Points: 1
hi,

Your need is

Windows applicatio or
Web Application


Author: Lakshmi    19 Jul 2008Member Level: GoldRating:     Points: 4
Assuming that u r asking to enable the button in the second form:
keep the another form button control modifier[u could find in properties] as public
Create a instance for the second form,say
form2 instance = new form2();
now,
instance.button1.enabled = true;
Note:button1 is public of another form.



Author: Dharmaraj    19 Jul 2008Member Level: DiamondRating:     Points: 3
Hi,
You can achieve through creating instance of the form where you want to access the control.

dim frm as new form2()
frm.controls



Post Reply
You must Sign In to post a response.
Next : Datagridview
Previous : Combobox in Datagridview
Return to Discussion Forum
Post New Message
Category: Windows

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

budget conference call

Contact Us    Privacy Policy    Terms Of Use