Results 1 to 15 of 15

Thread: Image clickable

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Location
    Beach Alley
    Posts
    86

    Image clickable

    is it possible that an image will be clickable ? example this image ... is it possible that when i click it it will go to form2 ....
    Attached Images Attached Images  

  2. #2
    Hyperactive Member
    Join Date
    May 2005
    Posts
    307

    Re: Image clickable

    Yeah just add a PictureBox or Image to your form and put the form2.show code in the Click Event

  3. #3
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: Image clickable

    VB Code:
    1. Private Sub Image1_Click()
    2.     Form2.Show
    3. End Sub

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Location
    Beach Alley
    Posts
    86

    Re: Image clickable

    hmph ... thank you ... but can i put an image GIF ... and how can i put a small video clip i dont know how to use the video clip in components

  5. #5
    PowerPoster gavio's Avatar
    Join Date
    Feb 2006
    Location
    GMT+1
    Posts
    4,462

    Re: Image clickable

    You'll need to use MS Windows Common Controls... click Project>>Components and select it. Then search for Animation control. It supports simple AVIs. For more advanced video playback, use MS Windows Media Player control.

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Location
    Beach Alley
    Posts
    86

    Re: Image clickable

    there is many MS common control in the components should i check it all

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Location
    Beach Alley
    Posts
    86

    Re: Image clickable

    Quote Originally Posted by LegoKid
    there are many MS common control in the components should i check it all

    and about the video clip i put a video and i type the URL like this

    D:\Documents and Settings\Administrator\My Documents\My Videos\Movie.wav

    is this correct

  8. #8

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Location
    Beach Alley
    Posts
    86

    Re: Image clickable

    i have a version of "5.0" "6.0" "2.5.0" "2.6.0" "2.3.0"

    why it didnt run ... i dnt know what should i put .avi, .mp3. wmp .....
    D:\Documents and Settings\Administrator\My Documents\My Videos\Movie.wav

  10. #10
    PowerPoster gavio's Avatar
    Join Date
    Feb 2006
    Location
    GMT+1
    Posts
    4,462

    Re: Image clickable

    You'll need to use MS Multimedia Control to play WAV. Try with 2.5.0 or 2.6.0 for Animation control... but it can play only AVI (as i know)

  11. #11

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Location
    Beach Alley
    Posts
    86

    Re: Image clickable

    But How Can I Put A Gif Image ..... Cause My Plan Is I Have A Gif And I Set That To Be Clicken ......

  12. #12

  13. #13

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Location
    Beach Alley
    Posts
    86

    Re: Image clickable

    the video type of my video is " Windows Media Audio/vido file" what is the code for this ? wma ?

  14. #14
    PowerPoster gavio's Avatar
    Join Date
    Feb 2006
    Location
    GMT+1
    Posts
    4,462

    Re: Image clickable

    Quote Originally Posted by LegoKid
    the video type of my video is " Windows Media Audio/vido file" what is the code for this ? wma ?
    Yes... wma or wmv... you can play this with the MS Windows Media Player control

  15. #15

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Location
    Beach Alley
    Posts
    86

    Re: Image clickable

    http://www.vbforums.com/showthread.php?t=350570 ... i upload it but only a error ... its a incomplte file ....

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