Visual Basic Question

Status
You're currently viewing only Bryan CS's posts. Click here to go back to viewing the entire thread.
Not open for further replies.
Originally posted by jerkins:
PreciousRoy, Global forms collection? I didn't think that existed. Ubound(Forms) gives me an error when I try to run it.

Let me retype that now that I've had a chance to try it out on a VB6 machine:

code:<HR>
Code:
Dim f as Form

For Each f in Forms
  If f.Name = strForm then f.Load
Next

Now, I'm not sure if the Forms collection only has loaded forms or not...that I can't tell you. But you can load controls by name, I'll look it up if I have a chance. I don't have Vb6 so I Remote Desktoped into a coworkers machine while he was in the bathroom. :)
 
Originally posted by jerkins:
So how about it PreciousRoy? Did you remember or figure out how to do it? Unfortunately DaleDBeast's solution isn't generic enough for what I need to do.

I actually got tied up and this is the first chance I've had to get back to the idea since I last posted. I dug up some extensive code that creates everything in the world on the fly (using Controls.Create), and builds a completely functional form from any database table. However, I can't seem to find any code that creates a form in this manner, just everything on it. Crap. I'll keep thinking, but maybe there's another way you can approach this issue?
 
Status
You're currently viewing only Bryan CS's posts. Click here to go back to viewing the entire thread.
Not open for further replies.