|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
click handler for Button in TableLayoutPanelHello,
I have an array of Buttons down a column of a TableLayoutPanel. They all share a common click handler. In the handler, how can I determine the row of the TableLayoutPanel for the Button that got clicked? Bill swartzbill2***@yahoo.com wrote:
> Hello, Check out the GetPositionFromControl method of the TableLayoutPanel.> I have an array of Buttons down a column of a TableLayoutPanel. They > all share a common click handler. In the handler, how can I determine > the row of the TableLayoutPanel for the Button that got clicked? > Bill It works. Thanks.
Chris Dunaway wrote: Show quoteHide quote > swartzbill2***@yahoo.com wrote: > > Hello, > > I have an array of Buttons down a column of a TableLayoutPanel. They > > all share a common click handler. In the handler, how can I determine > > the row of the TableLayoutPanel for the Button that got clicked? > > Bill > > Check out the GetPositionFromControl method of the TableLayoutPanel. On 15 Jun 2006 09:11:41 -0700, swartzbill2***@yahoo.com wrote:
>Hello, In the handler, determine the Sender which exposes the control's Name,>I have an array of Buttons down a column of a TableLayoutPanel. They >all share a common click handler. In the handler, how can I determine >the row of the TableLayoutPanel for the Button that got clicked? >Bill Text and Tag properties (among others). Dim WhichBtn As Button = DirectCast(sender, Button) WhichBtn.Name WhichBtn.Text WhichBtn.Tag Gene
How to Send an SMS
URI IsFile Streaming a file to text? How to force upper case in a DataGridView column? Handle pointers from delphi client to a vb.net dll VB.net 2005 splash screen How to get Windows XP Edition? Updating a DataSet while using DataGridView "Optional ByVal SomeDate As Date = Nothing" in VB2005 writing a text in a file in vb.net not working properly |
|||||||||||||||||||||||