Click here to Skip to main content
15,901,205 members
Home / Discussions / C#
   

C#

 
GeneralRe: "Dictionary with int and Tuple" Or Separate Class? Pin
PIEBALDconsult20-Jun-11 13:53
mvePIEBALDconsult20-Jun-11 13:53 
GeneralRe: "Dictionary with int and Tuple" Or Separate Class? Pin
BobJanova20-Jun-11 23:00
BobJanova20-Jun-11 23:00 
QuestionWindows Form control property issue Pin
venomation20-Jun-11 9:25
venomation20-Jun-11 9:25 
AnswerRe: Windows Form control property issue Pin
Dave Kreskowiak20-Jun-11 11:29
mveDave Kreskowiak20-Jun-11 11:29 
GeneralRe: Windows Form control property issue Pin
venomation21-Jun-11 6:00
venomation21-Jun-11 6:00 
GeneralRe: Windows Form control property issue Pin
mahendren29-Jun-11 2:15
mahendren29-Jun-11 2:15 
QuestionMonthCalendar Usage Pin
dipuks20-Jun-11 6:19
dipuks20-Jun-11 6:19 
AnswerRe: MonthCalendar Usage Pin
PanchoM20-Jun-11 7:10
PanchoM20-Jun-11 7:10 
The way I do it :

On Form1 I listen for the Form2.FormClosed event like this

Form2 myForm2;
      private void textBox1_TextChanged(object sender, EventArgs e)
      {
          myForm2 = new Form2();
          myForm2.FormClosed += new FormClosedEventHandler(myForm2_FormClosed);
          myForm2.Show();
      }

Then when the event happens :

void myForm2_FormClosed(object sender, FormClosedEventArgs e)
     {
         this.TextBox1.Text = myForm2.TheDate;
     }

On Form2 you need to have a Public property TheDate which you set when they click on your calendar
OnOkClick you just close the form.

hope that makes sense.
SuggestionRe: MonthCalendar Usage Pin
theanil20-Jun-11 7:20
theanil20-Jun-11 7:20 
QuestionSplashscreen with taskbar icon Pin
lukeer20-Jun-11 3:57
lukeer20-Jun-11 3:57 
AnswerRe: Splashscreen with taskbar icon Pin
Pete O'Hanlon20-Jun-11 4:19
mvePete O'Hanlon20-Jun-11 4:19 
GeneralRe: Splashscreen with taskbar icon Pin
lukeer20-Jun-11 22:39
lukeer20-Jun-11 22:39 
GeneralRe: Splashscreen with taskbar icon Pin
BobJanova20-Jun-11 22:58
BobJanova20-Jun-11 22:58 
QuestionProject Deployment Pin
sarang_k20-Jun-11 1:55
sarang_k20-Jun-11 1:55 
AnswerRe: Project Deployment Pin
Pete O'Hanlon20-Jun-11 2:15
mvePete O'Hanlon20-Jun-11 2:15 
QuestionQuestion For Road Finding Software from an Image Pin
Anubhava Dimri20-Jun-11 0:18
Anubhava Dimri20-Jun-11 0:18 
AnswerRe: Question For Road Finding Software from an Image Pin
Pete O'Hanlon20-Jun-11 1:00
mvePete O'Hanlon20-Jun-11 1:00 
AnswerRe: Question For Road Finding Software from an Image Pin
Member 79570022-Jun-11 4:34
Member 79570022-Jun-11 4:34 
QuestionHow to record any activity in a form to a movie Pin
yvesc9119-Jun-11 22:38
yvesc9119-Jun-11 22:38 
AnswerRe: How to record any activity in a form to a movie Pin
Blue_Boy19-Jun-11 23:35
Blue_Boy19-Jun-11 23:35 
AnswerRe: How to record any activity in a form to a movie Pin
yvesc9120-Jun-11 0:21
yvesc9120-Jun-11 0:21 
GeneralRe: How to record any activity in a form to a movie Pin
Blue_Boy20-Jun-11 4:52
Blue_Boy20-Jun-11 4:52 
AnswerRe: How to record any activity in a form to a movie Pin
yvesc9120-Jun-11 4:54
yvesc9120-Jun-11 4:54 
GeneralRe: How to record any activity in a form to a movie Pin
Blue_Boy20-Jun-11 5:01
Blue_Boy20-Jun-11 5:01 
AnswerRe: How to record any activity in a form to a movie Pin
yvesc9120-Jun-11 19:56
yvesc9120-Jun-11 19:56 

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.