Solved

Windows Forms showing the form but its elements

Posted on 2011-02-11
2
230 Views
Last Modified: 2012-05-11
I added a combobox and some buttons to a form. When I run, it doesn't show these elements. What could be wrong?
0
Comment
Question by:DistillingExperts
2 Comments
 
LVL 7

Accepted Solution

by:
jdavistx earned 500 total points
ID: 34872158
Check that the Visible property for these controls is True, and also check in your Program.cs that you're starting your program with the expected Form.


//In Program.cs
Application.Run(new FormYouWantToRunFirst());

Open in new window

0
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 34872186
Are the controls set with visible = false?
Are they on a panel (or other control) that is hidden?
Are they within the visible area of the form?
Do you have any code to do anything with these controls?
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question