473,396 Members | 1,961 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,396 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 2665
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.