|
-
Jun 17th, 2003, 02:47 PM
#1
Thread Starter
Frenzied Member
Calling(firing) buttons click event
Hi,
I have an application in VB 6 that I'm converting to VB.NET.
In a listbox's double click event I have the following code:
btnOk = True
This no longer works in VB.NET.
How do I change this. I can call the btnOK_Click but then what do I put in for the sender and eventargs parameters?
Thanks in advance.
Don't anthropomorphize computers -- they hate it
-
Jun 17th, 2003, 03:42 PM
#2
Frenzied Member
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
-
Jun 17th, 2003, 06:21 PM
#3
Code:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Button1_Click(Me, e)
End Sub
~
if a post is resolved, please mark it as [Resolved]
protected string get_Signature(){return Censored;}
[vbcode][php] please use code tags when posting any code [/php][/vbcode]
-
Jun 17th, 2003, 08:05 PM
#4
Sleep mode
Or
VB Code:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Button1_Click(Me, nothing)
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|