Re: Create controls at runtime
- From: "R. MacDonald" <scitec@xxxxxxxxxxxxxxx>
- Date: Thu, 06 Apr 2006 13:16:21 +0200
Hello, Tony,
Hey, nothing to be sorry about. Things like that happen to us all.
Quite seriously, when things stop making any sense at all, I find it is helpful to just step back for a breather and focus on something else for a while. This is particularly true if you start saying to yourself "I can't...". Our minds, being the amazing things that they are will try to protect us by making us right. Hence, when you think you can't, you find out that you're right, you can't...
But when you come back to the problem with a different perspective, i.e. "I can..." or "I will..." often things work much better and begin to make sense again.
Keep at it, and good luck.
Cheers,
Randy
TonyMast wrote:
Sorry, for some reason it wasn't working in my form. I copied the example exactly to the form load and it didn't work. However I created a new form and it works fine. Very strange why it wasn't working in the first form but when I created another it did..
Thanks and again sorry
Tony
"R. MacDonald" <scitec@xxxxxxxxxxxxxxx> wrote in message news:4434231e$0$42166$dbd49001@xxxxxxxxxxxxxxxxxx
Hello, Tony,
Ummm... Maybe a good night's sleep and then a fresh look through the example in the morning will help. :-)
Try pasting the example exactly as it is into the default Form created when you create a new project. Then hit the F5 key.
Cheers,
Randy
TonyMast wrote:
Thanks to both, but I'm still stuck on how to use the
me.controls.add
Do I have to do this 300 times to create 300 controls?
I wanted to use some loops to create the objects.
I wanted to create objects with a for next loop,
for x =1 to 100
object = "label" & format (X)
dim object as new label
'I would also add the sizes and location here
next
Just can't figure out how to do it.
Thanks
Tony
- References:
- Create controls at runtime
- From: TonyMast
- Re: Create controls at runtime
- From: Scott M
- Re: Create controls at runtime
- From: R. MacDonald
- Re: Create controls at runtime
- From: TonyMast
- Re: Create controls at runtime
- From: R. MacDonald
- Re: Create controls at runtime
- From: TonyMast
- Create controls at runtime
- Prev by Date: Re: multiple selection from checkboxes into text box
- Next by Date: Re: Dummy question
- Previous by thread: Re: Create controls at runtime
- Next by thread: Interpret HTML <Script> in Visual Basic
- Index(es):
Relevant Pages
|