Hi,
Thanks for your reply. I still seen some difficulties to work on it.
My Question : And the image viewer should have Scroll bars to view it up and down, left and right.
Your Reply: set the Form's AutoScroll property to true
My Ques: I couldn't find any property based on this.
My Ques: I want to have Shortcut Keys by using Function Keys
Your Reply : Use the form's KeyPress event & check for the function key.
My Ques: I tried but i don't know how to do this.
My Ques: I want to zoom in and zoom out
Your Reply: Before you load a picture, set the PictureBox's SizeMode to AutoSize. After loading the picture, save the width & height of the PictureBox. Then to Zoom, set the SizeMode to StretchImage and change the size of the PictureBox (ie double the size for a 2X zoom). The form will automatically create scroll bars if needed (and automatically remove them if you make the form large enough)
My Ques: Still i couldn't get this.
Can you send me some example codes for me which is related to this if possible. So that i can easily got the idea. I send you the code which i did with this mail. Please check it out and alter it if there is a need.
*************** *************** *************** *************** *
- Private Sub Form_Load()
-
ConnString = "Provider=MSDASQL.1;Persist Security Info=False;Extended Properties=""DSN=MS Access Database;DBQ=" & App.Path & "\bckauto.mdb;DefaultDir=" & App.Path & ";DriverId=25;FIL=MS Access;"""
-
SQLtwoString = "SELECT tblformname.Form_Name FROM tblformname;"
-
DbAdo.Open ConnString
-
Set RsAdo = DbAdo.Execute(SQLtwoString)
-
If RsAdo.BOF = False Or RsAdo.EOF = False Then
-
Do While Not RsAdo.EOF
-
Me.Form_nobox.AddItem (RsAdo("Form_Name").Value)
-
RsAdo.MoveNext
-
Loop
-
End If
-
-
End Sub
-
-
Private Sub Form_nobox_LostFocus()
-
Form_Picturebox = LoadPicture("F:\Myprojects\Automobile\Images\" & Form_nobox & ".jpg")
-
End Sub
*************** *************** *************** **************