Application creation with File System Control 600459– Visual Programming Anna University lab manual download fourth semester - Computer Programming

Latest

C C++ Java Python Perl Programs Examples with Output -useful for Schools & College Students

Saturday, January 29, 2011

Application creation with File System Control 600459– Visual Programming Anna University lab manual download fourth semester


Application creation with File System Control 600459– Visual Programming Anna University lab manual download fourth semester
To create an employee application using VB that demonstrates the File System Control used

Algorithm:

      1. Start a new project by selecting standard exe from  new project dialog box
2. Add a File List Box, Directory List Box, Drive List Box and command 
     buttons to the form
      3. Add appropriate code to display the files in FileList Box  of Normal file,
                 Hidden Files, ReadOnly Files, System Files, Files with archive bit on
      4. Add appropriate code to display the selected files in the File List Box by  
    Selecting the drive from the DriveList Box and sub directory from the     
     directory List Box


Source Code:

Private Sub Check1_Click()
File1.System = Check1.Value
End Sub

Private Sub Check2_Click()
File1.ReadOnly = Check2.Value
End Sub
Private Sub Check3_Click()
File1.Normal = Check2.Value
End Sub

Private Sub Check4_Click()
File1.Hidden = Check2.Value
End Sub

Private Sub Command1_Click()
File1.FileName = "f:\de\cc\*.mdb*"
End Sub


Private Sub Dir1_Change()
File1.Path = Dir1.Path
Dir2.Path = Drive1.Drive
End Sub

No comments:

Post a Comment