Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
P

PanchoM

@PanchoM
About
Posts
2
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • MonthCalendar Usage
    P PanchoM

    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.

    C# question

  • if and if not do it anyway
    P PanchoM

    I agree with KarstenK it boils down to: if(A!=B) { if(A) {//do stuff} else {// do something else} }

    The Weird and The Wonderful
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups