Click here to Skip to main content
15,899,754 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionDrawing Sunpath in my WinForms Pin
Member 38458153-May-08 0:05
Member 38458153-May-08 0:05 
AnswerRe: Drawing Sunpath in my WinForms Pin
Christian Graus3-May-08 1:39
protectorChristian Graus3-May-08 1:39 
QuestionDrawing Sunpath in my WinForms Pin
Member 38458153-May-08 19:30
Member 38458153-May-08 19:30 
AnswerRe: Drawing Sunpath in my WinForms Pin
Christian Graus4-May-08 11:34
protectorChristian Graus4-May-08 11:34 
QuestionTwo TextBoxs and only one can contain any text at a given time [modified] Pin
Steve Messer1-May-08 9:11
Steve Messer1-May-08 9:11 
AnswerRe: Two TextBoxs and only one can contain any text at a given time Pin
SomeGuyThatIsMe2-May-08 8:46
SomeGuyThatIsMe2-May-08 8:46 
GeneralRe: Two TextBoxs and only one can contain any text at a given time Pin
Steve Messer2-May-08 11:57
Steve Messer2-May-08 11:57 
Questioncalling event from inside another event Pin
raydona1-May-08 7:34
raydona1-May-08 7:34 
How can I call one event from within another? For example, say I have the two events, one for a button and one for a textbox.
private: System::Void Button_Click(System::Object^ sender, System::EventArgs^ e)
private: System::Void TextBox_KeyPress(System::Object^ sender, System::Windows::Forms::KeyPressEventArgs^ e)

In the button’s click event after processing something I wish to focus on text box and validate user input in textbox. I have tried the following:

private: System::Void Button_Click(System::Object^ sender, System::EventArgs^ e)
{ // Do something
if(TextBox->CanFocus == true)
{ TextBox->Focus();
}
TextBox_KeyPress();
}
It doesn’t work because I do not know what arguments to pass. Also after validating user input in KeyPress event I wish to return to Button_Click event. Can I do that by simply saying ‘return’ in KeyPress event? Thank you for all help. Shucks | :-\
AnswerRe: calling event from inside another event Pin
Luc Pattyn1-May-08 9:45
sitebuilderLuc Pattyn1-May-08 9:45 
QuestionConvert txt to sysmbols!! Pin
s3rk430-Apr-08 23:46
s3rk430-Apr-08 23:46 
AnswerRe: Convert txt to sysmbols!! Pin
Kschuler1-May-08 3:43
Kschuler1-May-08 3:43 
GeneralRe: Convert txt to sysmbols!! [modified] Pin
s3rk41-May-08 6:52
s3rk41-May-08 6:52 
GeneralRe: Convert txt to sysmbols!! Pin
Kschuler1-May-08 7:27
Kschuler1-May-08 7:27 
GeneralRe: Convert txt to sysmbols!! Pin
s3rk41-May-08 9:56
s3rk41-May-08 9:56 
QuestionEnumChildWindows Pin
mehmetned30-Apr-08 20:59
mehmetned30-Apr-08 20:59 
AnswerRe: EnumChildWindows Pin
Christian Graus30-Apr-08 23:20
protectorChristian Graus30-Apr-08 23:20 
QuestionHow to display a Winform as rounded rectangle Pin
Member 391904930-Apr-08 9:08
Member 391904930-Apr-08 9:08 
AnswerRe: How to display a Winform as rounded rectangle Pin
Giorgi Dalakishvili30-Apr-08 9:17
mentorGiorgi Dalakishvili30-Apr-08 9:17 
GeneralRe: How to display a Winform as rounded rectangle Pin
Member 391904930-Apr-08 10:55
Member 391904930-Apr-08 10:55 
QuestionDATABOUND DATAGRIDVIEW Pin
Linn7230-Apr-08 2:46
Linn7230-Apr-08 2:46 
AnswerRe: DATABOUND DATAGRIDVIEW Pin
SomeGuyThatIsMe2-May-08 8:54
SomeGuyThatIsMe2-May-08 8:54 
QuestionRegarding Message Box size Pin
mrcsn30-Apr-08 0:29
mrcsn30-Apr-08 0:29 
AnswerRe: Regarding Message Box size Pin
N a v a n e e t h30-Apr-08 3:20
N a v a n e e t h30-Apr-08 3:20 
AnswerRe: Regarding Message Box size Pin
Hamid_RT4-May-08 4:51
Hamid_RT4-May-08 4:51 
Questionwindows programming Pin
Knowledgestudent29-Apr-08 22:48
Knowledgestudent29-Apr-08 22: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.