|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
accessing properties dynamically created controls
Hi,
I am trying to create a restaurant layout with tables on it. So, I represent the tables as command buttons. I am creating them dynamically and also removing them but now I need to be able to rotate their position and also want to save their CurrentX, CurrentY, Top and Left properties in a database. I am trying to access the properties of a command control created dynamically. How can I do something like that since the command button name is stored in one of my variables and I can't use my variable.property syntax to access it. Unless there is another way all together to do what I want to do. Thanks in advance. |
|
#2
|
|||
|
|||
|
May be this helps...
U can add WithEvents in the declaration? Dim WithEvents cmdButt As CommandButton After declaring it if the button is loaded U can use all the property and method as of control loaded at designTime?
__________________
I May Have Misinterpret U'r Post Correct Me If I Am Wrong......// Enjoy Coding........................../// zak2zak |
|
#3
|
|||
|
|||
|
zak2zak!yes!
|
|
#4
|
|||
|
|||
|
But you can find it in the microsoft's ActiveX development Manual..
|
|
#5
|
|||
|
|||
|
I figured out another way.
form.controls("controlname").property Thanks anyway guys. |
|
#6
|
|||
|
|||
|
Nice & quickly Way!
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > accessing properties dynamically created controls |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|