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 Sergey Alexandrovich Kryukov 370
1 OriginalGriff 195
2 Zoltán Zörgő 124
3 Dave Kreskowiak 120
4 DamithSL 115
0 OriginalGriff 7,610
1 DamithSL 5,559
2 Sergey Alexandrovich Kryukov 5,324
3 Maciej Los 4,961
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web01 | 2.8.141223.1 | Last Updated 6 Dec 2012
Copyright © CodeProject, 1999-2014
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