473,382 Members | 1,078 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,382 software developers and data experts.

VB Accept and Cancel Buttons

How do I change the Accept and Cancel Buttons while running the application.
There dosen't seem to be a Accept or Cancel Button property for the form
class
Nov 22 '05 #1
4 2662
Yes there is an AcceptButton property for the form class as well as a
CancelButton property, and these properties are available at run time and
design time. I am using them in my code and it is working fine.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"Michael Beatty" <be****@buckeye-express.com> wrote in message
news:Ab********************@buckeye-express.com...
How do I change the Accept and Cancel Buttons while running the application. There dosen't seem to be a Accept or Cancel Button property for the form
class

Nov 22 '05 #2
Michael:

The Form object has an AcceptButton and CancelButton property, they are
available in the designer or at runtime.
"Michael Beatty" <be****@buckeye-express.com> wrote in message
news:Ab********************@buckeye-express.com...
How do I change the Accept and Cancel Buttons while running the application. There dosen't seem to be a Accept or Cancel Button property for the form
class

Nov 22 '05 #3
Yes there is an AcceptButton property for the form class as well as a
CancelButton property, and these properties are available at run time and
design time. I am using them in my code and it is working fine.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"Michael Beatty" <be****@buckeye-express.com> wrote in message
news:Ab********************@buckeye-express.com...
How do I change the Accept and Cancel Buttons while running the application. There dosen't seem to be a Accept or Cancel Button property for the form
class

Nov 22 '05 #4
Michael:

The Form object has an AcceptButton and CancelButton property, they are
available in the designer or at runtime.
"Michael Beatty" <be****@buckeye-express.com> wrote in message
news:Ab********************@buckeye-express.com...
How do I change the Accept and Cancel Buttons while running the application. There dosen't seem to be a Accept or Cancel Button property for the form
class

Nov 22 '05 #5

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

Similar topics

0
by: William Ryan | last post by:
I have two Image Buttons btnOk, btnCancel which used to just be regular forms buttons. They worked fine when I set them as the default Accept and Cancel buttons on a Windows form. However, I...
2
by: Michael Beatty | last post by:
How do I change the Accept and Cancel Buttons while running the application. There dosen't seem to be a Accept or Cancel Button property for the form class
6
by: Patrick Coghlan | last post by:
I want to create about 4 forms with the same dimensions and background colours, similar to the forms one has to traverse when installing various software packages. I'm using Visual Studio and...
0
by: Rachel Suddeth | last post by:
I have a tabbed ap, and I want to provide a message and give the user a chance to change there mind if they try to change tab pages in the middle of an update (otherwise just cancel the update and...
3
by: CroDude | last post by:
Hi all! I've made a button from scratch derived from a Control class. The main reason why Control and not Button class is used for inheritance is that when deriving from a control class it's...
0
by: Steve Kallal | last post by:
I have a DataGrid with an EditCommandColumn column set to a type of PushButton. I want to set set CssClass on these buttons and cannot without using code-behind code on the ItemDataBound event. The...
2
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I change the confirm box to say yes/no or default to cancel?...
2
by: Matuag | last post by:
Hi All, I want to create following command buttons on a Form which users can edit. Save ( Save Changes made) Cancel ( Undo data changes) Exit ( Close form) I am using Macros for each of...
4
by: MaxMax | last post by:
I have a dialog box with a Cancel button that I want to be activable with the ESC key. In the form the Cancel button is connected to the CancelButton property. Now my problem is that the OnClick...
7
by: Terry Carroll | last post by:
I'm trying to use wx.ProgressBar, and the cancel button is not responding. Here is a simple program that exhibits the problem: ######################################################### import...
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
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.