informations between two forms

faisalali129

New member
Joined
May 7, 2005
Messages
4
Programming Experience
3-5
hi... i want to show the points of the mouse movement on other form while the mouse is moving on other form
 

kulrom

Well-known member
Joined
May 10, 2005
Messages
2,854
Location
Republic of Macedonia
Programming Experience
10+
Within single app:




VB.NET:
Private[size=2][color=#000000] [/color][/size][size=2][color=#0000ff]Sub[/color][/size][size=2][color=#000000] Form1_MouseMove([/color][/size][size=2][color=#0000ff]ByVal[/color][/size][size=2][color=#000000] sender [/color][/size][size=2][color=#0000ff]As[/color][/size][size=2][color=#0000ff]Object[/color][/size][size=2][color=#000000], _[/color][/size]
[size=2][color=#0000ff]ByVal[/color][/size][size=2] e [/size][size=2][color=#0000ff]As[/color][/size][size=2] System.Windows.Forms.MouseEventArgs) [/size][size=2][color=#0000ff]Handles[/color][/size][size=2][color=#0000ff]MyBase[/color][/size][size=2].MouseMove[/size]
[size=2]
Form2.pos.Text = Cursor.Position().ToString 'pos is shared label and passed value of Label1 in form2
 
[/size][size=2][color=#0000ff]End[/color][/size][size=2][color=#0000ff]Sub



VB.NET:
Private[size=2][color=#000000] [/color][/size][size=2][color=#0000ff]Sub[/color][/size][size=2][color=#000000] Form1_MouseMove([/color][/size][size=2][color=#0000ff]ByVal[/color][/size][size=2][color=#000000] sender [/color][/size][size=2][color=#0000ff]As[/color][/size][size=2][color=#0000ff]Object[/color][/size][size=2][color=#000000], _[/color][/size]
[size=2][color=#0000ff]ByVal[/color][/size][size=2] e [/size][size=2][color=#0000ff]As[/color][/size][size=2] System.Windows.Forms.MouseEventArgs) [/size][size=2][color=#0000ff]Handles[/color][/size][size=2][color=#0000ff]MyBase[/color][/size][size=2].MouseMove[/size]
[size=2]
Form2.pos.Text = MousePosition().ToString 'pos is shared label and passed value of Label1 in form2
 
[/size][size=2][color=#0000ff]End[/color][/size][size=2][color=#0000ff]Sub
[/color][/size]

Cheers :)

[/color][/size]
 
Top Bottom