Home » Category » Microsoft Visual Basic

Microsoft Visual Basic: Zooming problem

206| Fri, 04 Jan 2008 17:16:00 GMT| aniketsingh| Comments (2)
i m doing project in VB
what i want is when i wll click on zoomin and take mouse pointer over the map it should show zoomin image and same zoom out
in my project there r three images. 1> image displaing map 2>displaing zoomin and 3> displaing zoomout
in imagedisplay(of map) and event mouse move i have written the coding
Code: ( vb )
  1. If zoomani = 1 Then
  2. Imgdisplay.MousePointer = LoadPicture(Apppath + "maps\zoomin.jpg")
  3. Else
  4. Imgzoomout.MousePointer = LoadPicture(Apppath + "maps\index\zoom-out-icon.jpg")
  5. End If
  6. End Sub

and i have decleared zoomani as integer
and in zoonin zoomani = 1 (in private sub zoomin())
and in zoomout zoomani = 2 (in private sub zoomout())
and when i m running the program it is showing runtime error 6
overflow
so i wnt 2 know where i m wrong

Keywords & Tags: zooming, microsoft, visual basic, vb

URL: http://www.programmerbase.com/visual-basic/560810/
 
«« Prev - Next »» 2 helpful answers below.
Moving to the Visual Basic Forum and recommending that you read our Posting Guidelines. Welcome to msdner.com.

bartonc | Fri, 04 Jan 2008 17:18:00 GMT |

I found the question quite difficult to follow. Could you show us the statement (and the context) where the error is reported?

Also, does "displaing" mean "displaying"?

And finally, what version of VB are you using?

killer42 | Fri, 04 Jan 2008 17:19:00 GMT |

Microsoft Visual Basic Hot Answers

Microsoft Visual Basic New questions

Microsoft Visual Basic Related Categories