To create Visual Basic 2010 Form, mainform.vb.
 
 
 
          
      The Form design, mainform.vb
 



   
Rename  the Form  Form1.vb created and add new controls to it

 
Classes used in this Form:
          Timer, ImageList, ToolBar, Label, Panel, PictureBox, Button, MainMenu

 

Rename the Form - Form1.vb and Modify the Properties corresponding ...
 1- Rename the Form
  • On the View menu , click  Solution Explorer
  • In Solution Explorer, expand the work_VBNet project node  and select Form1.vb
  • In Properties windows, Type the new File Name
      Old New
    Filename : Form1.vb mainform.vb

 
2-
Picture files used by this form ...
 
  • The folder  c:\work_VBNet_10\work_VBNet_10\pic  stored the bmp files
                       z_calculator.bmp,  z_booknot.bmp,  z_agenda.bmp,  z_intro.bmp, z_about.bmp
                      calculator_2.bmp, address book_2, agenda_1. bmp, intro_icon_2.bmp, about_icon_2

     

  •  

 3- Modify the Form Properties ...
  • On the View menu , click  Solution Explorer
  • In Solution Explorer, expand the work_VBNet project node
  • Right click the mainform.vb 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
    940, 758
    work VB 2010, main
    Maximized

 

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

 

 Add the following controls to ...

 

 The codes  corresponding ...

 

 


 


Previous Home
3
Next