Results 1 to 16 of 16

Thread: making an image move?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2004
    Posts
    27

    making an image move?

    hi i would like a image in my vb.net programe to move on thescreen when a user clicks a button, how would i do this?

    Regards

    Homer

  2. #2
    Frenzied Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1,026
    Are you planning on using directional buttons?

    If so... you might try something like

    VB Code:
    1. 'Right Button:
    2. image.left = image.left + 100 'any movement interval
    3.  
    4. 'Left Button:
    5. image.left = image.left - 100 'again, whatever u want here
    6.  
    7. 'Up Button:
    8. image.top = image.top - 100
    9.  
    10. 'Down Button:
    11. image.top = image.top + 100

    Just a thought...

    Squirrelly1
    Now happily married and still crankin' away at the keyboard. Life is grand for a coder, no?

  3. #3
    Addicted Member
    Join Date
    Aug 2002
    Posts
    224
    Hi,

    Making an image move inside the form like a Screen Saver

    Look at the attached example

    Have a nice day
    Attached Files Attached Files

  4. #4

    Thread Starter
    Junior Member
    Join Date
    May 2004
    Posts
    27
    thanks ive d/l the file but it won't open in visual studio says theres files missing?

  5. #5
    Addicted Member
    Join Date
    Aug 2002
    Posts
    224
    Hi,

    I Download the file that I sent
    and I open it again in my computer
    and it working Ok.

    Try again

    Have a nice day

  6. #6
    Frenzied Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1,026
    Make sure you have the right version of .Net... I've heard of this happening before...

    Did you ever get it to open?

    Squirrelly1
    Now happily married and still crankin' away at the keyboard. Life is grand for a coder, no?

  7. #7
    Addicted Member
    Join Date
    Aug 2002
    Posts
    224
    Hi,

    I wrote it with vs 7.0 (2002)

    Have a nice day

  8. #8
    Frenzied Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1,026
    Yeah, I figured...

    If you just upgrade it to 2003 it should work (I got it to on my machine)...

    Are you using this for the program I was talking to you about Homer?

    ~Squirrelly1
    Now happily married and still crankin' away at the keyboard. Life is grand for a coder, no?

  9. #9
    Addicted Member
    Join Date
    Aug 2002
    Posts
    224
    Hi,

    I do not have 2003.

    But I have the program "VSConvert"

    If I convrt it to vs 2003 with this program
    I do not know if it will work with 2003
    because I do not have vs 2003.

    I upload a new one

    Have a nice day
    Attached Files Attached Files

  10. #10
    Frenzied Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1,026
    I don't think you need the Convert program, do you? When I tried to open the older file, my VB.Net told me it needed to be upgraded to the new "version format"...

    Thanx for the new file tho... Homer's software may not have this functionality...

    Squirrelly1
    Now happily married and still crankin' away at the keyboard. Life is grand for a coder, no?

  11. #11
    Addicted Member
    Join Date
    Aug 2002
    Posts
    224
    Hi,

    Did it work with vs 2003 ?

  12. #12
    Frenzied Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1,026
    I have not checked yet... I can if you want me to though...


    Gimme a sec.. I'll post back..

    Squirrelly1
    Now happily married and still crankin' away at the keyboard. Life is grand for a coder, no?

  13. #13
    Addicted Member
    Join Date
    Aug 2002
    Posts
    224
    Hi,

    I mean the new one

    Yes please I am waiting...

  14. #14
    Frenzied Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1,026
    Yeah, it works just fine...

    Squirrelly1
    Now happily married and still crankin' away at the keyboard. Life is grand for a coder, no?

  15. #15
    Addicted Member
    Join Date
    Aug 2002
    Posts
    224
    Hi,

    Thanks

    In my clock is 18:57
    I do not what is yours

    Have a nice day

  16. #16
    Frenzied Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1,026
    You mean the time?

    It's almost 11 A.M. here...

    Squirrelly1
    Now happily married and still crankin' away at the keyboard. Life is grand for a coder, no?

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