No new form opens

Discussion in 'C#' started by El_pacco, Feb 9, 2013.

  1. El_pacco

    El_pacco New Member

    Joined:
    Aug 30, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    I'm kinda new in C# so be kind plz.
    I'm tring to write an app with Monodevelop so i designed a second form to link it with a button. When a user click it automatically opens the new form (that simply and i can't do it)

    Code:
    protected void OnAddDatesClicked (object sender, EventArgs e)
        {
                Calendar DatesPanel = new Calendar();
                DatesPanel.Show();       
        }
    so what am i missing here?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice