473,324 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Command button not show up on a form

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

--

Nov 12 '08 #1
4 2096
Lee
Ben,

How did you add the buttons? Can you post come code for us to see?

L. Lee Saunders
http://oldschooldotnet.blogspot.com

Nov 12 '08 #2
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
Nov 12 '08 #3
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
--

"Lee" wrote:
Ben,

How did you add the buttons? Can you post come code for us to see?

L. Lee Saunders
http://oldschooldotnet.blogspot.com

Nov 12 '08 #4
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

--

"rajesh" wrote:
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
Nov 12 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Brad Pears | last post by:
Can someone give me some sample code on how one would go about executing a command line "command" from within an ASP form? We need to run an application called GnuPG which allows us to encrypt an...
2
by: Chris Bolus | last post by:
I'm a teacher using MS Access on an RMConnect 2.4 network. On some workstations both I and my students sometimes get an error message when attempting to insert a command button on a form which...
9
by: Melissa | last post by:
What is the code to delete a command button from a form? Can the code be run from the click event of the button to be deleted? Thanks! Melissa
7
by: Mindy | last post by:
Hey, on the form, I set up a "Search" button, which is a command button. After a user select the city and state on the form , and hit the "search" button, I hope another form will show up...
14
by: Kevin | last post by:
A couple of easy questions here hopefully. I've been working on two different database projects which make use of multiple forms. 1. Where's the best/recommended placement for command buttons...
4
by: John Smith | last post by:
I have a continuous form. there is a command button with the following code for the OnClick event: DoCmd.OpenForm "frmPlants", , , "PlantsID =" & Me!PlantsID I click the button and frmPlants...
3
by: afr0ninja | last post by:
Hello! I'm currently working on a form that has several input fields and a subform. What I'm trying to accomplish is that when I first open the form I'd like to have the input fields displayed...
3
by: WiscCard | last post by:
This seems simple enough, but I am having problems. I have a table of customer information. I have a form with various combo boxes displaying unique customer information (in this case, zone and...
5
by: Mike | last post by:
I am calling an event from the on click event of a command button. I cant however figure out how to refrence "which" button was clicked in the first procedure, in the second procedure... In...
16
by: Steve | last post by:
I am working on a database that has a main menu, many sub-menus and some sub-sub-menus. They are all forms that have numerous command buttons on them to open forms and reports in the database. The...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.