Click here to Skip to main content
16,012,082 members
Home / Discussions / C#
   

C#

 
Questionstatic constructors & late binding with reflection Pin
gilaz1111-Nov-07 6:05
gilaz1111-Nov-07 6:05 
AnswerRe: static constructors & late binding with reflection Pin
Justin Perez11-Nov-07 7:07
Justin Perez11-Nov-07 7:07 
QuestionCall function of Form1 from Form2? Pin
I'm a beginner11-Nov-07 3:57
I'm a beginner11-Nov-07 3:57 
AnswerRe: Call function of Form1 from Form2? Pin
Giorgi Dalakishvili11-Nov-07 4:06
mentorGiorgi Dalakishvili11-Nov-07 4:06 
GeneralRe: Call function of Form1 from Form2? Pin
I'm a beginner11-Nov-07 4:15
I'm a beginner11-Nov-07 4:15 
GeneralRe: Call function of Form1 from Form2? Pin
Giorgi Dalakishvili11-Nov-07 4:24
mentorGiorgi Dalakishvili11-Nov-07 4:24 
GeneralRe: Call function of Form1 from Form2? Pin
I'm a beginner11-Nov-07 4:32
I'm a beginner11-Nov-07 4:32 
GeneralRe: Call function of Form1 from Form2? Pin
Giorgi Dalakishvili11-Nov-07 5:01
mentorGiorgi Dalakishvili11-Nov-07 5:01 
In order to do that you should make draw method of class static. As for the second question you can call either Show or ShowDialog method on the new instance depending on whether you want it to be non-modal or modal. By the way, all drawing code should be placed in the Paint event of the form so that it gets drawn when the form is repainted

#region signature
my articles
#endregion

GeneralRe: Call function of Form1 from Form2? Pin
I'm a beginner11-Nov-07 5:11
I'm a beginner11-Nov-07 5:11 
AnswerRe: Call function of Form1 from Form2? Pin
Colin Angus Mackay11-Nov-07 4:51
Colin Angus Mackay11-Nov-07 4:51 
GeneralRe: Call function of Form1 from Form2? Pin
I'm a beginner11-Nov-07 5:02
I'm a beginner11-Nov-07 5:02 
GeneralRe: Call function of Form1 from Form2? Pin
Colin Angus Mackay11-Nov-07 5:11
Colin Angus Mackay11-Nov-07 5:11 
GeneralRe: Call function of Form1 from Form2? Pin
I'm a beginner11-Nov-07 5:33
I'm a beginner11-Nov-07 5:33 
AnswerRe: Call function of Form1 from Form2? Pin
Luc Pattyn11-Nov-07 6:23
sitebuilderLuc Pattyn11-Nov-07 6:23 
GeneralRe: Call function of Form1 from Form2? Pin
I'm a beginner11-Nov-07 23:03
I'm a beginner11-Nov-07 23:03 
AnswerRe: Call function of Form1 from Form2? Pin
Christian Graus11-Nov-07 10:15
protectorChristian Graus11-Nov-07 10:15 
GeneralRe: Call function of Form1 from Form2? Pin
I'm a beginner11-Nov-07 23:04
I'm a beginner11-Nov-07 23:04 
Questiona problem related to scroll Pin
Seraph_summer11-Nov-07 2:48
Seraph_summer11-Nov-07 2:48 
AnswerRe: a problem related to scroll Pin
Adeel Chaudhry11-Nov-07 18:15
Adeel Chaudhry11-Nov-07 18:15 
QuestionHow to Interacting with PenTablet.cpl in Vista Pin
I_Need_Help11-Nov-07 1:46
I_Need_Help11-Nov-07 1:46 
QuestionWriting serial port does not work Pin
nasif400311-Nov-07 1:45
nasif400311-Nov-07 1:45 
AnswerRe: Writing serial port does not work Pin
Luc Pattyn11-Nov-07 3:46
sitebuilderLuc Pattyn11-Nov-07 3:46 
Questionhow to check if any textbox has changed on a form? Pin
Cptkli11-Nov-07 1:21
Cptkli11-Nov-07 1:21 
AnswerRe: how to check if any textbox has changed on a form? Pin
Giorgi Dalakishvili11-Nov-07 1:37
mentorGiorgi Dalakishvili11-Nov-07 1:37 
AnswerRe: how to check if any textbox has changed on a form? Pin
Luc Pattyn11-Nov-07 3:48
sitebuilderLuc Pattyn11-Nov-07 3:48 

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.