Re: button array

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Cor Ligthert (notmyfirstname_at_planet.nl)
Date: 11/04/04


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
> *-----------------------*



Relevant Pages

  • Re: Fast list lookup
    ... Is the combination of Lcase and binary InStr faster than ... string parsing. ... Each webpage has a GUID in the HEAD tag. ... Then I tried using an array as a string builder. ...
    (microsoft.public.scripting.vbscript)
  • Re: Compare and delete element from an array
    ... I try to compare an arroy of Tag and an array of string. ...
    (comp.lang.ruby)
  • Re: Upload a file to a web using VBA
    ... The tag "Input" is an array You may be putting filename in the wrong ... There is a search box in the developers tool where you can ... search for the string that you put into the box. ...
    (microsoft.public.excel.programming)
  • Compare and delete element from an array
    ... I try to compare an arroy of Tag and an array of string. ...
    (comp.lang.ruby)
  • RE: SignedXml to X509Certificate?
    ... The string found in the X509Certificate tag is a Base64, ... to call Convert.FromBase64String to convert it into a byte array which can ...
    (microsoft.public.dotnet.security)