VB.NET - Design View of Windows Form has no Controls on it

LeighWardle
LeighWardle used Ask the Experts™
on
Hi Experts,

I'm running VS2013.

The Main form of my production app, when viewed in Design View, just appears as an empty form:

Design View screen
But when I run the project, all the expected controls appear:

Run time screen
I want to do more work on the form in design view - how can I restore the real form in design view?

The source files are here.

Regards,
Leigh
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Éric MoreauSenior .Net Consultant
Top Expert 2016

Commented:
do you have any error message?
AndyAinscowFreelance programmer / Consultant

Commented:
Click onto the client area of the form.  Does it all appear selected?  In other words do you have something covering the whole of the client area in front of the other controls?
ste5anSenior Developer

Commented:
SCNR..
1) Ever heard of systems like CVS, SVN, Mercurial or Git? Over the half of your LoC is information which is stored by code repository systems and requirement/bug tracking systems..
2) Global variables are bad. The represent global state, which makes code behavior unpredictable and hard to test.
3) It contains way to much dead code. Use a source code repository and remove it.
4) It contains way to much internal comments. Everything which is worth a comment is worth to be refactored (Extract Method), then the comment is no longer necessary.
5) Review your update strategy. There should be no code in the main form for doing this (L2919 "Create Missing Fields In Table AppUsage"). Here also look at your bootstrapping/house keeping code. This belongs to a separate class.
6) A class should have a single responsibility. This responsibility of the main form is represent the UI. nothing else. Anything else belongs to separate classes. See SOLID and SRP. In this sense, look at the MVC, MVP, MVVM patterns. Consider using a view model class, where you store your data access and data logic.
7) Review your user role model and the debug mode. This should be on closed permission concept. And obviously: in a separate class.
8) Review your logging and debug.print usage.

And for your actual problem:

- Check whether you have opened the correct solution/project.
- Check your VS installation, check whether you have installed all necessary libraries.
- Check whether you have correctly referenced what's necessary in your project.
- Try to resize the window in design mode..

Cause works here:
Capture.PNG
Thank you, Éric, Andy & ste5an, for your suggestions.

On further investigation if found that the vb project was wrongly pointing to .resx and .designer localization.

Regards,
Leigh

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial