VB Developer Getting Started
  | 
VB Developer Getting Started  | 
Assuming that you have already run the VideoEdit Gold ActiveX Control installation program and started Visual Basic, the next step is to create a project. To do this begin by selecting the "New Project" command from the file menu and select "Standard EXE" as your project type. Then use the "Project/Components.." command to include the file "VideoEdit Gold ActiveX Control" into the new project
  | 
  | 
Select Control
Click on the VideoEdit Gold ActiveX Control icon and draw it on the form. A rectangle should appear on the form, and the Visual Basic Project window form on the right should display VideoEdit Gold ActiveX Control's properties.
.
Add Command Button in Form, add this line of code, which will automatically convert video file into VCD format.
Private Sub Command1_Click ()
 iDur = VideoEdit1.GetFileDuration("c:\sourcefile.mpg")
 VideoEdit1.OutputType=VCD_PAL
 VideoEdit1.InitControl
 VideoEdit1.AddVideo "c:\sourcefile.mpg", 0, iDur, 0
 VideoEdit1.AddAudio "c:\sourcefile.mpg", 0, iDur
 VideoEdit1.Save "c:\outputvcd.mpg"
End Sub

