Click to See Complete Forum and Search --> : Objects not there


RSH
April 21st, 2001, 01:31 PM
This is a dumb one. I have a form with about 100 different objects. Buttons textboxes etc. Now I find that In trying to add a button or textbox or label that these show up fine on the template but at run time they are just not there . Not even when they are declared visible in code. Like I said "a dumb one"
73 RSH

John G Duffy
April 21st, 2001, 03:14 PM
You might make make sure they are in the visible bounds of the container and that the container is visible.
A quick and dirty check would to put a Debug.print in the Forms_Click event that displays the missing controls top, Left, width and height, etc properties to see where they are located.

John G

John G Duffy
April 21st, 2001, 03:16 PM
Also chack and make sure they are not Hiding behind another control. Look at the .ZOrder method to determine the pecking order for controls that occupy the same space on a form. The pecking order is listed in the bottom couple of paragraphs of the .Zorder method in MSDN Help

John G

RSH
April 21st, 2001, 03:56 PM
Sorry Fellers, Like I said it was a dumb one.
I had turned off all objects on load with the (for each) Statement when I wrote the program
a year ago. I forgot it was there.
73 and Thanks