Command button not show up on a form

B

Ben

Hi all,

My environment is VS2008,C#. I am experimenting with C#.
I have a form with a few controls on it. Two of them are buttons but for
some reason, they do not show up at all during run time. I check their
visible property and they are set to true. I am no sure why they are not
showing up. Any ideas? Thanks, for sharing your thought.

Ben



--
 
R

rajesh

1. Check the Location property of the button control-- if still unable
to locate try setting the location of the button by giving single
digit values.
2. Make sure the button is added to Forms controls collection (ie.
check for "this.Controls.Add" in InitializeComponent)
-Rajesh Gupta
 
B

Ben

Lee,

I just drag the buttons from the toolbox and drop them on the form. I
deleted them and re-created thembut still the same.

I moved the buttons around a few times and I did a few built, it finally
came out.

Thank you for your help.

Ben
 
B

Ben

Rajesh,

Thanks for suggesting the pointers. I still don't know what happened(I am
just starting to experiment with C# with vs2008) but it finally worked after
I deleted and moved around and re-build a few times

Thanks again for sharing your ideas, I will keep them in mind.

Ben
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top