Avatar of Olukayode Oluwole
Olukayode Oluwole
Flag for Canada asked on

How do I make the 'X' default button on a form either invisible or disabled

I have a windows SignIn form in my c# application (see below)

I want to ensure that users only exit this form by using the exit

button created by me and NOT  the default 'X'.


How do i make the 'X' button in red above either invisible or disabled

on this form.

The minimize and maximize button should be left as is.


Thanks

Windows OSC#* Form/Control events

Avatar of undefined
Last Comment
Olukayode Oluwole

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
arnold

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ste5an

You simply don't. Don't mess with the Windows standards when there is no absolute need.

Just react the same way, when it is clicked. Thus call your exit button code.
Olukayode Oluwole

ASKER
Thanks all
Olukayode Oluwole

ASKER
Thanks all
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23