picture box in visual basic

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sivamathi
    New Member
    • Mar 2008
    • 1

    picture box in visual basic

    Sir/madam
    i have a doubt in VB.
    I am not an excellent programmer in VB.

    I want to know how to get more than two points of a same image at runtime and how to store those points geneated by click event

    so kindly consider it and help me
  • pureenhanoi
    New Member
    • Mar 2007
    • 175

    #2
    Originally posted by sivamathi
    Sir/madam
    i have a doubt in VB.
    I am not an excellent programmer in VB.

    I want to know how to get more than two points of a same image at runtime and how to store those points geneated by click event

    so kindly consider it and help me
    Option Explicit
    dim mX As Single
    dim mY As Single 'store mouse X, and mouse Y


    Private Sub Picture1_MouseD own(Button As Integer, Shift As Integer, X As Single, Y As Single)
    mX = X
    mY = Y
    End Sub

    Private Sub Picture1_Click( )
    Dim pointRGB As Long
    pointRGB = Picture1.Point( mX,mY)
    'now, store this value any where you want
    Ens Sub

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      Originally posted by sivamathi
      I want to know how to get more than two points of a same image at runtime and how to store those points geneated by click event
      Can you please explain what you mean by "getting points" of an image? Also, what version of VB are you using?

      Oh and by the way, I think the word you want is "question", not "doubt".

      Comment

      Working...