November 23rd, 2011, 03:07 PM
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)
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