Hi there!
Search
To Bottom
The Archives
Hi there!
2012/10/06 16:34:39
Beepster
I just wanted to post a thread to get the "THIS FORUM SUCKS" thread off the mainpage. It was bothering me. Cheers.
2012/10/08 10:19:06
miguelito
Good job!
;-)
2012/10/08 11:02:47
Middleman
C #, there I added a developer term to make the thread legit..
2012/10/08 16:29:43
miguelito
Technically that would be C# (no space) ;-). Just saying...
Regards,
2012/10/08 16:40:06
Middleman
Those semantics will kill you when you compile.
2012/10/09 09:53:15
miguelito
Those semantics will kill you when you compile.
Ain't that the truth!
///
<summary>
///
Cycles through all of the controls seeking out the TextBoxes and ComboBoxes then get the label immediately
///
to the left of the Control and assign the Control to the label and the Labels.Click event to our EventHandler
///
</summary>
///
<param name="tloX">
TableLayoutPanel
</param>
private
void
MapControlsToLabels(
TableLayoutPanel
tloX)
{
try
{
foreach
(
Control
c
in
tloX.Controls)
{
if
((c
is
TextBox
) || (c
is
ComboBox
))
{
TableLayoutPanelCellPosition
pcpX = tloX.GetCellPosition(c);
Control
label = tloX.GetControlFromPosition((pcpX.Column - 1), pcpX.Row);
if
(c
is
TextBox
)
{
((
TextBox
)c).KeyUp +=
new
KeyEventHandler
(
this
.TextEnterKeyUp);
}
if
((label
is
Label
) && (((
Label
)label).Tag ==
null
))
{
((
Label
)label).Tag = c;
///// assign our control to this labels Tag
label.Click +=
new
EventHandler
(AllLabelsClick);
///// then assign the click event a handler
}
else
{
break
;
}
}
}
}
catch
(
Exception
ex)
{
MyTools
.ExceptionHandler(
new
AnvilApplicationException
(ex.Message,
"AobMain:MapControlsToLabels"
));
}
}
// Just saying... ;-)
2012/10/09 16:10:44
Beepster
It got all sorts o' nerdy up in here. lol
2012/10/09 22:28:13
miguelito
Sorry Beep, didn't mean to hi-jack your thread...or did I?
Regards,
2012/10/10 12:28:02
Beepster
There wasn't much to jack. ;-)
2012/10/10 21:17:42
Beepster
It's back again. Therefore... bump.
1
2
Send to Recycle Bin
Delete Permanently
© 2024
APG vNext
Commercial Version 5.1
Latest
Active
Sign up
Log in
Full Ver.
back
Use My Existing Forum Account
Username:
Password:
Verification:
Log in
Use My Social Media Account