Click here to Skip to main content
15,894,546 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i have steering of acar on my form when the user press on the left part of the steering it wil move to the left(rotate90) how can i do this??????????????
i am trying to put picture box but it is not true
also i put boutton on the left part of the steering and make it invisable but i does not come plzzzzzzzzzzzzz help meeeeeeeeeeeeeee


this is code (picture box invisble:)
VB
Private Sub PictureBox1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
    Dim w As Integer = Me.PictureBox2.Width
    Dim h As Integer = Me.PictureBox2.Height

    Me.PictureBox2.Image.RotateFlip(RotateFlipType.Rotate90FlipNone)
    Me.PictureBox2.Width = h
    Me.PictureBox2.Height = w
    Me.PictureBox2.Refresh()
End Sub
Posted
Updated 29-Mar-12 22:44pm
v2
Comments
Rajeev Jayaram 30-Mar-12 6:47am    
Did your finger stick to your keyboard when typing '?', 'z', 'e'?
dr.dream 30-Mar-12 7:53am    
this is my handwriting i cant change it...thanks
Rajeev Jayaram 2-Apr-12 12:49pm    
handwriting?

If your buttons are invisible they won't respond to mouse clicks.

A better way to do this is to use a mouse click event on your picturebox and then work out which half of the picturebox the user clicked on to determine whether they want to turn left or right.
 
Share this answer
 
Please do not write things like pllzzzzzz, it is what children, muggles and the dim do.

However, please show your code, no-one will be able to help you without it.

I would guess that you would need a series of images showing the car in different positions, and as you rotate the wheel, the car image changes.

But as I say, without seeing your code I can be of only limited help.
 
Share this answer
 
Comments
dr.dream 30-Mar-12 4:45am    
Private Sub PictureBox1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
Dim w As Integer = Me.PictureBox2.Width
Dim h As Integer = Me.PictureBox2.Height

Me.PictureBox2.Image.RotateFlip(RotateFlipType.Rotate90FlipNone)
Me.PictureBox2.Width = h
Me.PictureBox2.Height = w
Me.PictureBox2.Refresh()
End Sub
dr.dream 30-Mar-12 7:50am    
plzzz is same as please i dont mean any thing diffrent..any why i am in hury that why i write it like that thanks for your help!!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900