Disable the 'ok' button - Forms application

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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.
 
Kevin Spencer said:
Set the Enabled property to false initially. When you want to enable the
button, set it to true.

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
 
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.
 
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.
 
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.
 
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.
 
Back
Top