Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Vanishing Textboxes

Status
Not open for further replies.

shavon

Programmer
Jun 18, 2001
102
CA
Good afternoon:

I have a form containing the tab pro tab control. I have two(2) tabs showing on the control. On each tab there are textboxes.

VB crashed and when i restarted it I got an error on the form and my text boxes on one of the tabs are now invisible.

I know that they are still there because i can see them in the properties window. at runtime i changed their position(left, top) and i was able to see them but at design time they vanish again.

Is there some way to get them to be visible at design time?

Thanks in advance
 
Sounds like the form is corrupt. Try opening the file representing the form (<yourform>.frm in Notepad. The format is pretty straightforward, and you should quickly be able to see what edits you need to make to bring the tabs back into the visible area (I suspect they'll have some large negatve number associated with bith their left and top properties)
 
I would try opening the form in design view (the form view, not the code view), choosing one of the &quot;invisible&quot; controls form the combo box at the top of the property page(this will highlight the object, whether you can see it or not), and clicking 'Bring to Front' from the 'Order' submenu on the 'Format' menu in the VB IDE. I am not familiar with the tab control you're talking about but it sounds like your textboxes are hidden &quot;under&quot; one of the other objects on a form. Even a control with it's visibility property set to false is visible at design time, so the only explanations i know of for not seeing a control at design time are
1) it's under another control. Each control has a Z-Order, which is it's position on an imaginary Z axis. This could also be called it's depth. This controls object visibility when 2 or more objects occupy the same space on a form. The Bring to Front solution i suggested above should fix this unless the control that is covering the text boxes is in a different graphic layer. This is a similar concept to Z-Order but is not user selectable. Certain controls will always be on top of other controls because of what type of object they are, and regardless of how you try to change the Z order.
2) It's outside the visible edge of the form. If the bring to front doesn't fix the problem try setting the text boxes left and top properties to 1 at design time. If the controls are past the forms edges for whatever reason this will allow you to see and reposition the control.
HTH Ruairi

Could your manufacturing facility benefit from real time process monitoring? Would you like your employees to be able to see up to the minute goal and actual production?
For innovative, low cost solutions check out my website.
 
Thank you all very much. I got them back by changing the top and left property in the properties window. They had ridiculously large(small) negative numbers.

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top