PC Review


Reply
Thread Tools Rate Thread

How to disable event

 
 
=?Utf-8?B?RHVkaSBOaXNzYW4=?=
Guest
Posts: n/a
 
      15th Feb 2005
Hello,
I am writing vb .net win form application.
The code for disable button event at C# is:
button1.Click -= new System.EventHandler(button1_Click);
How can this be done at vb .net?

Thank you.

 
Reply With Quote
 
 
 
 
=?Utf-8?B?Um9sYW5kIFBvbHplcg==?=
Guest
Posts: n/a
 
      15th Feb 2005
Hi Dudi,

try

RemoveHandler(button1.Click, AddressOf(button1_Click))

Roland

"Dudi Nissan" wrote:

> Hello,
> I am writing vb .net win form application.
> The code for disable button event at C# is:
> button1.Click -= new System.EventHandler(button1_Click);
> How can this be done at vb .net?
>
> Thank you.
>

 
Reply With Quote
 
=?Utf-8?B?RHVkaSBOaXNzYW4=?=
Guest
Posts: n/a
 
      15th Feb 2005
Hi Roland
I get syntax error message
Thank you.

"Roland Polzer" wrote:

> Hi Dudi,
>
> try
>
> RemoveHandler(button1.Click, AddressOf(button1_Click))
>
> Roland
>
> "Dudi Nissan" wrote:
>
> > Hello,
> > I am writing vb .net win form application.
> > The code for disable button event at C# is:
> > button1.Click -= new System.EventHandler(button1_Click);
> > How can this be done at vb .net?
> >
> > Thank you.
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
disable event =?Utf-8?B?Y2xhcmE=?= Microsoft Excel Programming 3 14th May 2007 01:29 PM
Disable SelectionChange Event =?Utf-8?B?QmlsbENQQQ==?= Microsoft Excel Misc 2 17th Feb 2006 06:45 PM
Disable mousewheel event? kai Microsoft Access Forms 2 3rd Jul 2004 04:16 AM
How to disable event in C#? Gianco Microsoft Dot NET Compact Framework 6 24th Jun 2004 11:30 AM
How to disable an event =?Utf-8?B?TGVl?= Microsoft VB .NET 2 20th Jan 2004 10:48 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:56 AM.