Groups | Blog | Home
all groups > vb.net controls > july 2006 >

vb.net controls : Cut And Paste Controls


Lou
7/31/2006 12:52:41 PM
I have a command Button (btnSend) with code in the Click
Event(btnSend_Click).
When I cut the control and then paste it back in the code no longer runs.
Seems
it creates another sub btnSend1_Click
Why?
Do I have to cut and paste the code as well> This doesn't work like VB6.

-Lou

PGC
8/2/2006 2:26:48 PM
Hi Lou,

Check if a "Handles btnSend.Click" exists at the end of the sub declaration.
If not, type it in or use AddHandler.
This seems to happen as part of the built-in refactoring, not sure why.

Paul

[quoted text, click to view]

AddThis Social Bookmark Button