PC Review Forums Newsgroups Microsoft DotNet Microsoft VB .NET Array of Buttons WithEvents

Reply

Array of Buttons WithEvents

 
Thread Tools Rate Thread
Old 21-05-2006, 12:58 PM   #1
=?Utf-8?B?Q3JhaWc=?=
Guest
 
Posts: n/a
Default Array of Buttons WithEvents


In VB.net I am trying to make an array of dynamically generated buttons. I
can do that but I cant figure out how to get them to work "WithEvents."

Can someone tell me if and how this can be done?

Thanks,
Craig
  Reply With Quote
Old 21-05-2006, 01:52 PM   #2
Cor Ligthert [MVP]
Guest
 
Posts: n/a
Default Re: Array of Buttons WithEvents

Craig,

It is a standard question.

It is in this simple sample on our (under reconstruction) website,

http://www.vb-tips.com/default.aspx...02-03abce36aa60

I hope this helps,

Cor

"Craig" <Craig@discussions.microsoft.com> schreef in bericht
news:6C7F7294-D9BC-4C37-AED5-4D8E0297CB46@microsoft.com...
> In VB.net I am trying to make an array of dynamically generated buttons. I
> can do that but I cant figure out how to get them to work "WithEvents."
>
> Can someone tell me if and how this can be done?
>
> Thanks,
> Craig



  Reply With Quote
Old 21-05-2006, 02:16 PM   #3
Michel Posseth [MCP]
Guest
 
Posts: n/a
Default Re: Array of Buttons WithEvents

to dynamicly created controls ,, you can programaticly add handlers for the
events you might want to catch

regards

Michel posseth

"Craig" <Craig@discussions.microsoft.com> schreef in bericht
news:6C7F7294-D9BC-4C37-AED5-4D8E0297CB46@microsoft.com...
> In VB.net I am trying to make an array of dynamically generated buttons. I
> can do that but I cant figure out how to get them to work "WithEvents."
>
> Can someone tell me if and how this can be done?
>
> Thanks,
> Craig



  Reply With Quote
Old 21-05-2006, 10:23 PM   #4
Herfried K. Wagner [MVP]
Guest
 
Posts: n/a
Default Re: Array of Buttons WithEvents

"Craig" <Craig@discussions.microsoft.com> schrieb:
> In VB.net I am trying to make an array of dynamically generated buttons. I
> can do that but I cant figure out how to get them to work "WithEvents."
>
> Can someone tell me if and how this can be done?


F1 (Help) + 'AddHandler' statement.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off