Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
I am using .Net.I create a form & add Button in it.
When I Run the form that button is not getting displayed.
 
Which property i use to make button visible in Run time mode.
Posted 6-Dec-12 4:21am
Comments
ryanb31 at 6-Dec-12 10:11am
   
Set Visible = True

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Unless you changed the Visible property of the button when you dropped it on the designer, or altered any of it's other properties in code yourself, and you dropped it directly on the form, then if you can see it in the Design View, you will see it when you run the application.
 
So check in the design mode:
1) Can you see the control on the form?
2) Look at the Properties window - is Visible true (it is by default).
3) Check the button is in a visible container - if you right click it in the designer, the context menu will show the hierarchy of containers, starting with the form name. If you have dropped it into a container, that container will be listed under the form.
 
Drag a new button to the form (and only the form) and do nothing else to it. Run your app - can you see it? If so, then in the designer, compare the two buttons manually and make sure their properties are the same.
  Permalink  
Comments
ridoy at 6-Dec-12 12:43pm
   
+5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 520
1 Maciej Los 205
2 Suvendu Shekhar Giri 159
3 Peter Leow 140
4 Kornfeld Eliyahu Peter 133
0 Sergey Alexandrovich Kryukov 9,623
1 OriginalGriff 8,895
2 Peter Leow 5,044
3 Kornfeld Eliyahu Peter 3,333
4 Maciej Los 2,561


Advertise | Privacy | Mobile
Web03 | 2.8.150327.1 | Last Updated 6 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100