In every cmndbutton click a new picture box appears with an individual Index in my project....I want to separate this picture box as From_shape index and To_shape index......I tried it with Vbleftbutton and vbrightbutton .....the code is
VB Code:
  1. If Button = vbleftbutton Then
  2.               From_shape = Index
  3.               End If
  4.               If Button = vbRightButton Then
  5.               To_shape = Index
  6.               End If
The main problem is when I m going to add a new picture this picturebox is automatcally restore as From_shape...coz I use mouse leftbutton to drag it....Is there any option to Separate From_shape and To_shape index from common picturebox index?????