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 6 3252
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***@discussi ons.microsoft.c om> wrote in message
news:0A******** *************** ***********@mic rosoft.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
"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
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 compactframewor k, you will get better answers there.
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"David++" <Da***@discussi ons.microsoft.c om> wrote in message
news:0A******** *************** ***********@mic rosoft.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
> 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***@discussi ons.microsoft.c om> wrote in message
news:23******** *************** ***********@mic rosoft.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
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***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:OB******** ********@TK2MSF TNGP10.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***@discussi ons.microsoft.c om> wrote in message news:23******** *************** ***********@mic rosoft.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
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.mach in AT dot.state.fl.us > wrote
in message news:eK******** ******@TK2MSFTN GP09.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***@DIESPAMM ERSDIEtakempis. com> wrote in message news:OB******** ********@TK2MSF TNGP10.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***@discussi ons.microsoft.c om> wrote in message news:23******** *************** ***********@mic rosoft.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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 Stout
|
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 form2, it will close form2, and then enable
the button in form1. Could you please give me some hints about this?
Thanks,
Suni
|
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 asp.net 1.x will
not pick up the button click event.
Instead, it monitors the on submit event of the form and the
_doPostBack event of the asp.net page.
It overrides the _doPostBack and onsubmit events and checks whether
the page has already...
|
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
|
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 readonly form (with no
write access).
But i cannot find any easy way of doing this,
i've tried using the OnEnabledChanged() event, & exposing such other custom
events.
| |
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)
Private Const WS_MAXIMIZEBOX = &H10000
Private Const WS_MINIMIZEBOX = &H20000
Private Const WS_SYSMENU = &H80000
|
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 Web Form,Web Form1.aspx and Web Form2.aspx,Now From Web
Form1.aspx When I Click One Button (Disable), Then Web Form2.aspx Buttons
|
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 in general
and force users to use a button on the switchboard to close (because I
run important code on the close of the database from that button).
Any ideas are always appreciated.
Thanks!
|
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 button operations, all the text fields get cleared and all my buttons get disabled, except my insert button. I do have code to disable this button in my procedure as well. But for some reason, every other button gets disable except the button which...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |