Command button not show up on a form

  • Thread starter Thread starter Ben
  • Start date Start date
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



--
 
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
 
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
 
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
 
Back
Top