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

Disable the 'ok' button - Forms application

Dear list,

I have a smartphone Forms application built using C#. When I display the
Form I would like the 'ok' button which resides at the top right of the
screen to be disabled, so the user cant exit the application without setting
some value first.

Is there any way to disable the 'ok' button and then re-enable it?

Thanks for any tips,

Cheers,
David
Mar 28 '06 #1
6 3238
Set the Enabled property to false initially. When you want to enable the
button, set it to true.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

"David++" <Da***@discussions.microsoft.com> wrote in message
news:0A**********************************@microsof t.com...
Dear list,

I have a smartphone Forms application built using C#. When I display the
Form I would like the 'ok' button which resides at the top right of the
screen to be disabled, so the user cant exit the application without
setting
some value first.

Is there any way to disable the 'ok' button and then re-enable it?

Thanks for any tips,

Cheers,
David

Mar 28 '06 #2
"Kevin Spencer" wrote:
Set the Enabled property to false initially. When you want to enable the
button, set it to true.

--
HTH,


Sounds good, but where is the 'ok' button in the Form Properties? Or what is
the 'ok' button called in C# Forms? Sorry, I know its probably a simple
question but I'm new to C# and .NET forms.

Thanks,
David
Mar 28 '06 #3
Hi,

Not sure if this apply to smartphone ( it does to PPC ) but you can set the
ControlBox property to false. Also check the Maximixe/Minimixe box


btw, there is a NG for compactframework, you will get better answers there.
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"David++" <Da***@discussions.microsoft.com> wrote in message
news:0A**********************************@microsof t.com...
Dear list,

I have a smartphone Forms application built using C#. When I display the
Form I would like the 'ok' button which resides at the top right of the
screen to be disabled, so the user cant exit the application without
setting
some value first.

Is there any way to disable the 'ok' button and then re-enable it?

Thanks for any tips,

Cheers,
David

Mar 28 '06 #4
> Sounds good, but where is the 'ok' button in the Form Properties? Or what
is
the 'ok' button called in C# Forms? Sorry, I know its probably a simple
question but I'm new to C# and .NET forms.
Form Properties? What development software are you using?

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

"David++" <Da***@discussions.microsoft.com> wrote in message
news:23**********************************@microsof t.com... "Kevin Spencer" wrote:
Set the Enabled property to false initially. When you want to enable the
button, set it to true.

--
HTH,


Sounds good, but where is the 'ok' button in the Form Properties? Or what
is
the 'ok' button called in C# Forms? Sorry, I know its probably a simple
question but I'm new to C# and .NET forms.

Thanks,
David

Mar 28 '06 #5
Hi,

In a PocketPC or a Smartphone app you get either a "Ok" or a "X" in the top
right corner of your window, where the controlBox is for desktop apps.
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:OB****************@TK2MSFTNGP10.phx.gbl...
Sounds good, but where is the 'ok' button in the Form Properties? Or what
is
the 'ok' button called in C# Forms? Sorry, I know its probably a simple
question but I'm new to C# and .NET forms.


Form Properties? What development software are you using?

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

"David++" <Da***@discussions.microsoft.com> wrote in message
news:23**********************************@microsof t.com...
"Kevin Spencer" wrote:
Set the Enabled property to false initially. When you want to enable the
button, set it to true.

--
HTH,


Sounds good, but where is the 'ok' button in the Form Properties? Or what
is
the 'ok' button called in C# Forms? Sorry, I know its probably a simple
question but I'm new to C# and .NET forms.

Thanks,
David


Mar 28 '06 #6
Ah, in that case, he just needs to set the ControlBox property to false.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:eK**************@TK2MSFTNGP09.phx.gbl...
Hi,

In a PocketPC or a Smartphone app you get either a "Ok" or a "X" in the
top right corner of your window, where the controlBox is for desktop apps.
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:OB****************@TK2MSFTNGP10.phx.gbl...
Sounds good, but where is the 'ok' button in the Form Properties? Or
what is
the 'ok' button called in C# Forms? Sorry, I know its probably a simple
question but I'm new to C# and .NET forms.


Form Properties? What development software are you using?

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

"David++" <Da***@discussions.microsoft.com> wrote in message
news:23**********************************@microsof t.com...
"Kevin Spencer" wrote:

Set the Enabled property to false initially. When you want to enable
the
button, set it to true.

--
HTH,

Sounds good, but where is the 'ok' button in the Form Properties? Or
what is
the 'ok' button called in C# Forms? Sorry, I know its probably a simple
question but I'm new to C# and .NET forms.

Thanks,
David



Mar 28 '06 #7

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

Similar topics

2
by: Les Stout | last post by:
Hi all, as a newbie to this game, i am not sure how to disable the application close button and for forms as well. Could you please help me some code. thanks in advance. best regards, Les...
1
by: Suni | last post by:
Hi everybody, But what I am trying to do is like, there are 2 forms, and if I click on the button in form1, it'll open up form2 and disable the button in form1. Then when I click on the button in...
2
by: Ghafran Abbas | last post by:
Call this function from the Page_OnLoad event of your asp.net page. This will prevent the user from doing multiple post backs or button clicks. This was designed to not disable the button, because...
24
by: Agnes | last post by:
I need to disable the exit button in the form . However, the min. and max. button need to keep it How ? Thanks a lot From Agnes
8
by: Antuane | last post by:
please help, i'm trying to find a simple & easy way of enabling & disabling (generally making them readonly) most of the controls in my form. Cuz i want to create a form, for the user but only a...
7
by: Wayne | last post by:
I have found the following code on this newsgroup that removes the Access Application minimize, restore and close buttons. Private Const GWL_EXSTYLE = (-20) Private Const GWL_STYLE = (-16) ...
0
by: Ahmad Jalil Qarshi | last post by:
Hi! I have a problem while developing some webpages.The Problem is that:- How We Can Disable The Controls Of One Web Form From Other Web Form In Asp.net? Explanation:- There Should Be Two...
2
by: PamelaDV | last post by:
I am wondering if there is a way to disable the "X" used to close the Access application window? I know how to disable it for individual forms, but I would like to disable it for the application...
1
by: eeriehunk | last post by:
Hi All, I wrote a procedure to clear all my text fields and disable all buttons in my form. And I call this procedure in a button (insert button). when I presses the insert button, after all my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.