Jump to content

Visual C# - λίγη βοήθεια παρακαλώ!


papias
 Κοινοποίηση

Recommended Posts

Γειά χαρά.

 

Πρώτη μέρα σήμερα που ασχολούμαι με C# (παλιότερα είχα ασχοληθεί με VB) και έχω κολλήσει σε κάτι - θεωρητικά - τραγικά απλό.

 

Εχω σχεδιάσει 2 forms (Form1 και Form2). Στη Form1 έχω βάλει ένα κουμπί που θέλω να μου ενεργοποιεί (εμφανίζει) τη Form2 και να εξαφανίζει τη Form1. Ποιός είναι ο κώδικας που πρέπει να βάλω στο button_click...?

Link to comment
Share on other sites

Link to comment
Share on other sites

Μήπως

Form2.Show();
this.Close();

 

Error 1 An object reference is required for the nonstatic field, method, or property 'System.Windows.Forms.Control.Show()'

 

επίσης για το unload:

 

Error 1 'WindowsApplication1.Form1' does not contain a definition for 'Unload'

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Επισκέπτης
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Κοινοποίηση

×
×
  • Create New...