הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
Question
Friday, August 22, 2014 2:08 AM
Hello, I'm using Visual Studio Pro 2013 (Visual Basic). I'm working on an SDI application that has an existing TabControl with several TabPage controls for displaying a series of forms/pages. It was there and working fine until yesterday, then suddenly it was NOT there. I've searched and not found this particular problem anywhere. Details:
The TabControl and Tabs are no longer displayed in the Design view (It WAS between a toolbar and the client area).
Both the TabControl and all of the TabPage controls are listed under the app main form, but when I view the properties for each in the Properties pane, all of them only show the Name property.
I do NOT get any compile/build errors, and yes, I've tried running a Clean Build.
When I run the app, it runs fine, but the Tabs are NOT THERE. BUT, the code works! For example, there is a statement that sets the current/active Tab, which, when executed, displays the specified tab page.
I've tried making the TabControl visible by setting it's Visible property to True in the code (both in the Designer and in the code file), but it still won't display. I've printed the current ClientRectangle, ClientSize and Visible properties for the TabControl and the first TabPage control to a messagebox, and they are all the expected height/width and "visible", but they are NOT THERE in the GUI.
I've tried deleting the latest Visual Studio Solution User Options (.suo) file, closing all open files/forms, exiting Visual Studio, and rebooting the computer. Nothing helps.
I've scanned the code in the .Designer.vb and .resx and .vb files, and cannot find anything wrong. Anyway, if there was any missing/corrupted code, I would get compile errors. I'm really stuck. Please help!
All replies (7)
Friday, August 22, 2014 3:07 AM ✅Answered
Sparky,
That really sounds like everything is there but something has accidentally been moved in front of it.
Have you tried to select it, then set "Move To Front" in the z-order?
You might also want to go to designer view and choose to view the Document Outline (View >> Other Windows >> Document Outline).
Still lost in code, just at a little higher level.
:-)
Friday, August 22, 2014 6:07 AM
Hello, I'm using Visual Studio Pro 2013 (Visual Basic). I'm working on an SDI application that has an existing TabControl with several TabPage controls for displaying a series of forms/pages. It was there and working fine until yesterday, then suddenly it was NOT there. I've searched and not found this particular problem anywhere. Details:
The TabControl and Tabs are no longer displayed in the Design view (It WAS between a toolbar and the client area).
Both the TabControl and all of the TabPage controls are listed under the app main form, but when I view the properties for each in the Properties pane, all of them only show the Name property.
I do NOT get any compile/build errors, and yes, I've tried running a Clean Build.
When I run the app, it runs fine, but the Tabs are NOT THERE. BUT, the code works! For example, there is a statement that sets the current/active Tab, which, when executed, displays the specified tab page.
I've tried making the TabControl visible by setting it's Visible property to True in the code (both in the Designer and in the code file), but it still won't display. I've printed the current ClientRectangle, ClientSize and Visible properties for the TabControl and the first TabPage control to a messagebox, and they are all the expected height/width and "visible", but they are NOT THERE in the GUI.
I've tried deleting the latest Visual Studio Solution User Options (.suo) file, closing all open files/forms, exiting Visual Studio, and rebooting the computer. Nothing helps.
I've scanned the code in the .Designer.vb and .resx and .vb files, and cannot find anything wrong. Anyway, if there was any missing/corrupted code, I would get compile errors. I'm really stuck. Please help!
Whenever people work on projects it is a good idea to save a copy of a project that is working to a new folder prior to beginning working again on it. So that various builds of the project are backed up. I believe Visual Studio has a capability for this called Team Foundation Server or perhaps that is something that has to be downloaded separately. I've never used it. Other software is available for doing that too. So you can go to the last build of an app that was working correctly.
Every so often a question like yours comes up in this forum regarding controls disappearing. Perhaps a search result in the below link can assist you. The ones with a green check mark to the right of them are answered.
MSDN Library search results for "Controls disappeared from application MSDN"
La vida loca
Friday, August 22, 2014 6:28 AM
Sparky,
That really sounds like everything is there but something has accidentally been moved in front of it.
Have you tried to select it, then set "Move To Front" in the z-order?
You might also want to go to designer view and choose to view the Document Outline (View >> Other Windows >> Document Outline).
Still lost in code, just at a little higher level.
:-)
Gee, thanks for the tips! I didn't know about the Document Outline feature. Here's what happened...
The top of the TabControl outline is at the TOP of the Toolbar. I was able to drag it down to be below the toolbar, where it is supposed to be, and now I can see both the toolbar and the tabs. Yea!
BTW, calling the BringToFront method for the TabControl DID bring the Tabs to the top of the z-order as you said it would.
Now that I can click on the TabControl, I can edit its properties in the Properties pane.
This brings up a related question: When I click on my container class, or any of the elements in it in the Solution Explorer, only the "Name" property shows up in the Properties window below. Why is that? Is there some display option for the Properties window that limits which properties get listed in it???
Friday, August 22, 2014 1:48 PM
Sparky,
That really sounds like everything is there but something has accidentally been moved in front of it.
Have you tried to select it, then set "Move To Front" in the z-order?
You might also want to go to designer view and choose to view the Document Outline (View >> Other Windows >> Document Outline).
Still lost in code, just at a little higher level.
:-)
Gee, thanks for the tips! I didn't know about the Document Outline feature. Here's what happened...
The top of the TabControl outline is at the TOP of the Toolbar. I was able to drag it down to be below the toolbar, where it is supposed to be, and now I can see both the toolbar and the tabs. Yea!
BTW, calling the BringToFront method for the TabControl DID bring the Tabs to the top of the z-order as you said it would.
Now that I can click on the TabControl, I can edit its properties in the Properties pane.
This brings up a related question: When I click on my container class, or any of the elements in it in the Solution Explorer, only the "Name" property shows up in the Properties window below. Why is that? Is there some display option for the Properties window that limits which properties get listed in it???
I'm glad it helped. :)
As for your other issue, you might want to start a new question for it and if possible, show a screenshot of your form showing the properties window. I'm not sure what you're seeing, honestly.
Still lost in code, just at a little higher level.
:-)
Friday, August 22, 2014 3:26 PM
Sparky,
That really sounds like everything is there but something has accidentally been moved in front of it.
Have you tried to select it, then set "Move To Front" in the z-order?
You might also want to go to designer view and choose to view the Document Outline (View >> Other Windows >> Document Outline).
Still lost in code, just at a little higher level.
:-)
Gee, thanks for the tips! I didn't know about the Document Outline feature. Here's what happened...
The top of the TabControl outline is at the TOP of the Toolbar. I was able to drag it down to be below the toolbar, where it is supposed to be, and now I can see both the toolbar and the tabs. Yea!
BTW, calling the BringToFront method for the TabControl DID bring the Tabs to the top of the z-order as you said it would.
Now that I can click on the TabControl, I can edit its properties in the Properties pane.
This brings up a related question: When I click on my container class, or any of the elements in it in the Solution Explorer, only the "Name" property shows up in the Properties window below. Why is that? Is there some display option for the Properties window that limits which properties get listed in it???
You should propose the post that answered your question as the answer so that this thread is answered. Which it is according to the quoted post.
La vida loca
Friday, August 22, 2014 4:33 PM
Sparky,
That really sounds like everything is there but something has accidentally been moved in front of it.
Have you tried to select it, then set "Move To Front" in the z-order?
You might also want to go to designer view and choose to view the Document Outline (View >> Other Windows >> Document Outline).
Still lost in code, just at a little higher level.
:-)
Gee, thanks for the tips! I didn't know about the Document Outline feature. Here's what happened...
The top of the TabControl outline is at the TOP of the Toolbar. I was able to drag it down to be below the toolbar, where it is supposed to be, and now I can see both the toolbar and the tabs. Yea!
BTW, calling the BringToFront method for the TabControl DID bring the Tabs to the top of the z-order as you said it would.
Now that I can click on the TabControl, I can edit its properties in the Properties pane.
This brings up a related question: When I click on my container class, or any of the elements in it in the Solution Explorer, only the "Name" property shows up in the Properties window below. Why is that? Is there some display option for the Properties window that limits which properties get listed in it???
I'm glad it helped. :)
As for your other issue, you might want to start a new question for it and if possible, show a screenshot of your form showing the properties window. I'm not sure what you're seeing, honestly.
Still lost in code, just at a little higher level.
:-)
Thanks, I'll do that.
Thursday, October 1, 2020 10:38 PM
Thanks a million. You've been a life saver.
I have a very large Insurance application that user complicated usercontrols and other shared controls. All of a sudden, all my Insurance Properties e.g. Fire policies, Home Policies) screens went blank. I almost pulled all the hair of my head of. I have to say I really panicked for the first time in my developer's life. So you can't imagine how this unknown-to-me feature saved my career.