Click here to Skip to main content
15,887,596 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Layout Pin
Michael Sync13-Jul-07 20:24
Michael Sync13-Jul-07 20:24 
GeneralRe: C# Layout Pin
satsumatable13-Jul-07 20:28
satsumatable13-Jul-07 20:28 
GeneralRe: C# Layout Pin
Michael Sync13-Jul-07 20:45
Michael Sync13-Jul-07 20:45 
QuestionHow do I make a URL safe? Pin
Winkles13-Jul-07 19:13
Winkles13-Jul-07 19:13 
AnswerRe: How do I make a URL safe? Pin
Michael Sync13-Jul-07 20:07
Michael Sync13-Jul-07 20:07 
AnswerRe: How do I make a URL safe? Pin
Guffa13-Jul-07 23:29
Guffa13-Jul-07 23:29 
QuestionGet Control from another form Pin
T.EDY13-Jul-07 19:01
T.EDY13-Jul-07 19:01 
AnswerRe: Get Control from another form Pin
Michael Sync13-Jul-07 20:22
Michael Sync13-Jul-07 20:22 
#1. Lets say there are two forms (form1, form2) in your application. you put one button called button1 in form2. You wanna get the control (button1) of form2 from form1.

Add one public property which is returned the control that you required in form2

eg:
<br />
public Button Button1<br />
        {<br />
            get<br />
            {<br />
                return button1;<br />
            }<br />
        }<br />


Then, you can access this control from form1.

eg:
<br />
Form2 obj = new Form2();<br />
MessageBox.Show(obj.Button1.Text);<br />



There are another way to get the control from other form or assembles. I'm not gonna mention here. If you are interest about this, please "Reflection" class from MSDN or google.

Hope it helps.

Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)


GeneralRe: Get Control from another form Pin
T.EDY15-Jul-07 17:39
T.EDY15-Jul-07 17:39 
AnswerRe: Get Control from another form Pin
Urs Enzler14-Jul-07 4:45
Urs Enzler14-Jul-07 4:45 
QuestionOnComm Events in MSCOMM OCX control Pin
AmarjeetSinghMatharu13-Jul-07 18:38
AmarjeetSinghMatharu13-Jul-07 18:38 
AnswerRe: OnComm Events in MSCOMM OCX control Pin
Dave Kreskowiak14-Jul-07 4:00
mveDave Kreskowiak14-Jul-07 4:00 
QuestionWin32 API? Pin
andyvm13-Jul-07 15:33
andyvm13-Jul-07 15:33 
AnswerRe: Win32 API? Pin
Ky Nam14-Jul-07 4:42
Ky Nam14-Jul-07 4:42 
Questionmore datails about flash files properties Pin
monamour13-Jul-07 15:30
monamour13-Jul-07 15:30 
Questionlistview item backcolor - XP problem [modified] Pin
Glen Harvy13-Jul-07 15:07
Glen Harvy13-Jul-07 15:07 
AnswerRe: listview item backcolor - XP problem Pin
martin_hughes14-Jul-07 2:50
martin_hughes14-Jul-07 2:50 
GeneralRe: listview item backcolor - XP problem Pin
Glen Harvy14-Jul-07 3:56
Glen Harvy14-Jul-07 3:56 
GeneralRe: listview item backcolor - XP problem Pin
martin_hughes14-Jul-07 4:35
martin_hughes14-Jul-07 4:35 
GeneralRe: listview item backcolor - XP problem Pin
Glen Harvy14-Jul-07 5:17
Glen Harvy14-Jul-07 5:17 
GeneralRe: listview item backcolor - XP problem Pin
martin_hughes14-Jul-07 9:51
martin_hughes14-Jul-07 9:51 
QuestionProblems with GUI class design Pin
User 665813-Jul-07 14:06
User 665813-Jul-07 14:06 
AnswerRe: Problems with GUI class design Pin
Luc Pattyn13-Jul-07 14:38
sitebuilderLuc Pattyn13-Jul-07 14:38 
GeneralRe: Problems with GUI class design Pin
User 665814-Jul-07 0:21
User 665814-Jul-07 0:21 
GeneralRe: Problems with GUI class design Pin
Luc Pattyn14-Jul-07 1:36
sitebuilderLuc Pattyn14-Jul-07 1:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.