By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,766 Members | 1,584 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,766 IT Pros & Developers. It's quick & easy.

Disable the 'ok' button - Forms application

P: n/a
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
Share this Question
Share on Google+
6 Replies


P: n/a
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

P: n/a
"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

P: n/a
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

P: n/a
> 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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.