Thx for relpy Shaggy Hiker.
I think I couldn't be much understandable. I'm making sub, and copying codes in it and I'm calling this sub from Button1_Click event. Bu the code -->""System.Diagnostics.Process.Start(e.Link.LinkData)"" needs variable "e".
Code:Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Call link( ///// What should I send ? ///// ) End Sub Sub link( //// What should I get ? //// ) System.Diagnostics.Process.Start(e.Link.LinkData) End Sub
I can't send anything about "e" from Button1_Click sub, so naturally Sub link() needs an "e" value.
When I tried to set value of the "e" in Button1_Click sub like;
and tried to send "e" from Button1_Click to Sub link() it's warning me as ""e is already decleared as a parameter of this method""Code:Dim e as System.Windows.Forms.LinkLabelLinkClickedEventArgs
Then I tried to use another variable instead of "e", but I don't know what values have to be added in this variable. When i use this variable, naturally sub link() can't find anything in my new variable, and program gives runtime error.
I couldn't cope with this situation![]()




Reply With Quote