Solved

Windows Forms showing the form but its elements

Posted on 2011-02-11
2
228 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
Comment Utility
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
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Article by: Ivo
Anonymous Types in C# by Ivo Stoykov Anonymous Types are useful when  we do not need to follow usual work-flow -- creating object of some type, assign some read-only values and then doing something with them. Instead we can encapsulate this read…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now