To create Visual C# 2010 Form, MainForm.cs.
 
 
 
          
      The Form design, Mainform
 



   
Rename  the Form  Form1.cs created and add new controls to it  -  (New name - MainForm)

 
Classes used in this Form:
          MainMenu, Timer, PictureBox, Label and  StausBar

 

Rename the Form - Form1.cs and Modify the Properties corresponding ...
 1- Rename the Form
  • On the View menu , click  Solution Explorer
  • In Solution Explorer, expand the App_CAKJV10 project node  and select Form1.cs
  • In Properties windows, Type the new File Name
      Old New
    Filename : Form1.cs MainForm.cs
 1- Modify the Form Properties ...
  • On the View menu , click  Solution Explorer
  • In Solution Explorer, expand the App_CAKJV10 project node
  • Right click the MainForm.cs and click View Designer on the shortcut menu to open the  Properties Windows.
  • In Properties windows, modify ...
      Old New
    Name:
    FormBorderStyle
    Icon:
    Menu:
    Size:
    Text:
    Window State:
    Form1
    Sizable
    Icon
    (none)
    300,300
    Form1
    Normal
    MainForm
    FixedSingle
    Icon
    mainMenu1
    630,500
    Main Form ...
    Maximized

 

 Modify the Startup Object ...
  • On the Project menu , click  App_CAKJV10 Properties ..., the App_CAKJV10 Property Pages dialog box appears
  • In the Startup object combo box, choose and  select MainForm
  • Click OK
 

 

 Add New Folder and  ...

 

 Add the following controls to ...

 

 The codes  corresponding ...

 

 

 


Previous Home
3
Next