
November 23rd, 2011, 03:07 PM
|
|
Registered User
|
|
Join Date: Nov 2011
Posts: 2
Time spent in forums: 23 m 37 sec
Reputation Power: 0
|
|
VB Issue
I'm creating a game in Visual Basic and what I have right now is a main form with the buttons "New game", "Options" , ..
each of them opening a different form.
On the options form I have 2 radiobuttons, one of them makes an object in the "New game" form move using the mouse, the other one using the arrows.
The problem right now is that I cant find a way to make it functional.
I have this sub to move the object using the mouse cursor:
Public Sub mousemove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseMove
bar.Left = e.X - (bar.Width / 2)
End Sub
I've been doing if statements for the radiobutons inside a sub in "New Game" form but I cant put "mousemove()" in there because I will get this error:
Error 1 Argument not specified for parameter 'e' of 'Public Sub mousemove(sender As Object, e As System.Windows.Forms.MouseEventArgs)'.
I'm struggling with this issue for some weeks now and I cant figure it out.
I'm not experienced in any way so if you can help me I'd b really appreciated.
Thanks in advance
|