Re: button array
From: Cor Ligthert (notmyfirstname_at_planet.nl)
Date: 11/04/04
- Next message: Cor Ligthert: "Re: button array"
- Previous message: Steve Smith: "Dropping a User Control on a form causes strange error."
- In reply to: Tombatore: "button array"
- Next in thread: Cor Ligthert: "Re: button array"
- Reply: Cor Ligthert: "Re: button array"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 4 Nov 2004 20:11:35 +0100
Tombatore
Assuming you have used the text to set in the row and the tag for the col.
(text is string, tag is object). Just typed in here so watch typos
\\\
MyhandledButtonCol = Cint(directcast(sender,button).text)
MyhandledButtonRow = Cint(directcast(sender, button).tag)
///
Just an idea I hope this helps?
Cor
"Tombatore" <stevendegroote@gmail-dot-com.no-spam.invalid>
> hello people,
>
> I've created an array of buttons by code to have an array :
> buttons(size, size)
> I am programming a version of mine sweeper, and one button is a
> clickable rectangle with an image on each of them.
>
> For each of these buttons I do the following after their declaration:
> AddHandler buttons(row, col).MouseUp, AddressOf buttonclick
>
> My question is, how do I know in my eventhandler which button was
> pressed?
>
> Thanks in advance!
>
> *-----------------------*
> Posted at:
> www.GroupSrv.com
> *-----------------------*
- Next message: Cor Ligthert: "Re: button array"
- Previous message: Steve Smith: "Dropping a User Control on a form causes strange error."
- In reply to: Tombatore: "button array"
- Next in thread: Cor Ligthert: "Re: button array"
- Reply: Cor Ligthert: "Re: button array"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|