redeagle68
Programmer
Hi,
I'm pretty new with vb.net 2005, so it's possible that someone wrote something about my question.
My question is if i want to browse controls in a form or another control, i can do somthing like this:
Dim ctrlX As Control = Nothing
For Each ctrlX In MyForm.Controls
if ctrlX.Name = "MyControlName" then Exit For
Next
But, for any reason that i don't know why SerialPort, Timer, StatusStrip and ContextMenuStrip could not be found on Form.Controls. How to do?
Thanks in advance
Rui
"To be is to do"--Socrates.
"To do is to be"--Jean-Paul Sartre.
"Yabba Dabba Doo"--Fred Flintstone.
I'm pretty new with vb.net 2005, so it's possible that someone wrote something about my question.
My question is if i want to browse controls in a form or another control, i can do somthing like this:
Dim ctrlX As Control = Nothing
For Each ctrlX In MyForm.Controls
if ctrlX.Name = "MyControlName" then Exit For
Next
But, for any reason that i don't know why SerialPort, Timer, StatusStrip and ContextMenuStrip could not be found on Form.Controls. How to do?
Thanks in advance
Rui
"To be is to do"--Socrates.
"To do is to be"--Jean-Paul Sartre.
"Yabba Dabba Doo"--Fred Flintstone.