Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
![]() |
•
•
Join Date: Oct 2005
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 1
I dont know if this would help you, but...
Here is an example code for creating any object y execution time
'first create a new object
dim chkbox as CheckBox
Set chkbox = Controls.Add("VB.CheckBox", "chhboxname", "the container")
'the container could be a picturebox, frame....
'now you can set all the properties
chkbox.top = ....
chkbox.left = ....
...
...
'and make it visible
chkbox.visible = true
that code can be used with any object (at least all i tried works for me, i used to create an array of pictureboxes, (with redim preserve))
greeting,
Mauricio Stange H.
Here is an example code for creating any object y execution time
'first create a new object
dim chkbox as CheckBox
Set chkbox = Controls.Add("VB.CheckBox", "chhboxname", "the container")
'the container could be a picturebox, frame....
'now you can set all the properties
chkbox.top = ....
chkbox.left = ....
...
...
'and make it visible
chkbox.visible = true
that code can be used with any object (at least all i tried works for me, i used to create an array of pictureboxes, (with redim preserve))
greeting,
Mauricio Stange H.
•
•
Join Date: Aug 2005
Posts: 24
Reputation:
Rep Power: 4
Solved Threads: 0
•
•
•
•
Originally Posted by macka007
are you after a new picture for a checkbox instead of the traditional tick?
yes, i`m replacing the checkbox wif a picture.
until now w00dy have help me alot on this.
really hav to thanks alot to him.
for now the pictureBox is working fine, but i got a problem..
i need a back and prev button..
now i`m trying to change from pictureBox to SStab, therefore i not need to use the back and prev button.
Mm.. how to do
"Set Check1(x).Container = SSTab1.Tab" in tab 2
"Set Check1(x).Container = SSTab1.Tab = y" y is my number of tab
•
•
Join Date: Jun 2005
Posts: 70
Reputation:
Rep Power: 4
Solved Threads: 2
Hi Macka,
I must admit SStab is something I never heard of either, so I guess I wouldn't be any help to Bang with that, but here it is on MSDN:
http://msdn.microsoft.com/library/de...logcontrol.asp
I must admit SStab is something I never heard of either, so I guess I wouldn't be any help to Bang with that, but here it is on MSDN:
http://msdn.microsoft.com/library/de...logcontrol.asp
•
•
Join Date: Aug 2005
Posts: 24
Reputation:
Rep Power: 4
Solved Threads: 0
•
•
•
•
Originally Posted by w00dy
Hi Macka,
I must admit SStab is something I never heard of either, so I guess I wouldn't be any help to Bang with that, but here it is on MSDN:
http://msdn.microsoft.com/library/de...logcontrol.asp
hi w00dy,
but now i got error with the back and prev button with the file "CControls"
it cannot go all the way back ..
![]() |
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: How can i access Time from Server ?
- Next Thread: Bandwidth Meter
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)





Linear Mode