Solved

Windows Forms showing the form but its elements

Posted on 2011-02-11
2
229 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

867 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

18 Experts available now in Live!

Get 1:1 Help Now