VB Developer Getting Started
|
VB Developer Getting Started |
Assuming that you have already run the Image Viewer CP Pro 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 "Image Viewer CP Pro ActiveX Control" into the new project
|
Select Control
Click on the Image Viewer CP Pro 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 Image Viewer CP Pro ActiveX Control's properties.
.
Add Command Button in Form, add this line of code, which will load the image file.
Private Sub Command1_Click()
ImageViewer1.FileName="c:\test.jpg"
End Sub