RBT Accounting .Net, VB & Sql -  MainForm.vb.
 
 
 
          
      The Form design, Mainform.vb
 



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

 
Classes used in this Form:
          MainMenu, PictureBox and Label

 

Rename  Form1.vb, add Picture files and Modify the Form Properties corresponding ...
 
1- Rename the Form
  • On the View menu , click  Solution Explorer
  • In Solution Explorer, expand the RBT Accounting Net project node  and select Form1.vb
  • In Properties windows, Type the new File Name
      Old New
    Filename : Form1.vb MainForm.vb

 
2- Add  Folder and all picture files to by be used by this  form or other forms of the current application
 
  • Create new Folder
     
    • On the View menu , click  Solution Explorer
    • In Solution Explorer, expand the RBT Accounting Net project node, click Right mouse Button, click Add of the Popup menu, and the click New Folder
    • New Folder appears in the Solution Explorer. Rename it - pic
       
  • Add all Picture Files to be used by this form or other forms of the current application
     
    • Copy the following Picture files from the source folder -  \\RBT Accounting Net\pic of  CD-Rom - Teach_VNet  to the destination folder  -  c:\RBT Accounting Net\pic
       
      Picture files
       
      Picture files Picture files
      ageneral.ico
      aRBT.bmp
      CLOSE.BMP
      Delete.bmp
      exchange.ico
      FIRST.BMP
      guide.ico
      LAST.BMP
      NEW.BMP
      NEXT.BMP
      PREV.BMP
      product.ico
      RBTdesn.bmp
      RBTdesn1.bmp
      RBTdesn2.bmp
      sales.ico
      SAVE.BMP

       

    •  On the Projet menu , click Add Existing Item ..., Add Existing Item - RBT Accounting Net dialog box appears, select all Picture files  of the folder c:\RBT Accounting Net\Pic, and then click Open. All these  Picture files added to the folder pic

       

 3- Modify the Form Properties ...
  • On the View menu , click  Solution Explorer
  • In Solution Explorer, expand the RBT Accounting Net 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
    472,328
    Main Form ...
    Maximized

 

 Startup object - Sub Main  ...

 

 Add the following controls to ...

 

 The codes  corresponding ...

 

 Introductory Form ....
 



 


Previous Home
4
Next