Results 1 to 2 of 2

Thread: picture

  1. #1

    Thread Starter
    Fanatic Member zmerlinz's Avatar
    Join Date
    May 2000
    Location
    in a world where the sun always shines on the bloody tv!!
    Posts
    604

    Talking

    hi,

    when i clcik on a form i want a picture to appear (this bit i can do)

    but what i want to do is where the mouse clicks i want the picture to appear there, so if the user clicks in the middle of the form then the picture will appear there

    Cheers

    Merlin ?

    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

    [Galahtech.com] | [My Site] | [Fishsponge] | [UnixForum.co.uk]

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    ...off...

    on my out the door..hope this gives you enough

    once you get your mouse position you can calculate
    out your image top and image left to set the
    imagebox or picbox to those cordinates..



    'find the mouse position anywhere on screen
    'other than over the taskbar if visible
    'text1 & text2 (2 textboxes)
    'click anywhere on form to unload

    'Wayne
    'http:\\webhome.globalserve.net\enyaw\


    Option Explicit

    Private Sub Form_Activate()
    Me.BorderStyle = 0 'none
    Me.WindowState = 2 'max
    End Sub

    Private Sub Form_Click()
    Unload Me
    Set Form1 = Nothing

    End Sub



    Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Text1.Text = X
    Text2.Text = Y
    End Sub

    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width