Hey guys & gals
I am havng trouble modifying the control box. I want to make the
maximise button invisible and have minimisise button instead of it.
Like this _ X (not like _ o X )
How to do this... and eventually i want to modify the control box in
the form of ? _ X ... I.e. adding a new button to control box. I need
to detect the click events.
Please help 9 12747
i don't know about your control box. Is it a form ?
if it's a form, you can set Form 's property MaximizeBox or
FormBorderStyle.
Sincerely,
simida mo*******@gmail.com 写道:
Hey guys & gals
I am havng trouble modifying the control box. I want to make the
maximise button invisible and have minimisise button instead of it.
Like this _ X (not like _ o X )
How to do this... and eventually i want to modify the control box in
the form of ? _ X ... I.e. adding a new button to control box. I need
to detect the click events.
Please help
Yes it is the control box on the form and i want to take the maximise
button out. thing is when I disable it from settings then it is
disabled and still visible. I don't want it to be visible and need a ?
button there... plz help...any1... i know someone has done this for
sure...
simida wrote:
i don't know about your control box. Is it a form ?
if it's a form, you can set Form 's property MaximizeBox or
FormBorderStyle.
Sincerely,
simida
mo*******@gmail.com 写道:
Hey guys & gals
I am havng trouble modifying the control box. I want to make the
maximise button invisible and have minimisise button instead of it.
Like this _ X (not like _ o X )
How to do this... and eventually i want to modify the control box in
the form of ? _ X ... I.e. adding a new button to control box. I need
to detect the click events.
Please help
The problem not resolved yet ??? !!! mo*******@gmail.com wrote:
Yes it is the control box on the form and i want to take the maximise
button out. thing is when I disable it from settings then it is
disabled and still visible. I don't want it to be visible and need a ?
button there... plz help...any1... i know someone has done this for
sure...
simida wrote:
i don't know about your control box. Is it a form ?
if it's a form, you can set Form 's property MaximizeBox or
FormBorderStyle.
Sincerely,
simida mo*******@gmail.com 写道:
Hey guys & gals
>
I am havng trouble modifying the control box. I want to make the
maximise button invisible and have minimisise button instead of it.
Like this _ X (not like _ o X )
>
How to do this... and eventually i want to modify the control box in
the form of ? _ X ... I.e. adding a new button to control box. I need
to detect the click events.
Please help
Hi Simida,
The control box is the right-most button on the title bar of your Form. It is not the entire title bar.
You can get a "?" button, called a help button, to appear on your Form without creating your own. To show the help button you must
disable both maximize and minimize buttons and set the Form's HelpButton property to true.
I suggest that you leave the functionality as is because that's what is normal to Windows users . In other words, trying to leave
the minimize button while showing the help button is going to be difficult and provide a strange user experience. It is common for
the help button to appear on modal dialogs, which usually can't be resized at all. If you want to provide help to a non-dialog Form
you could still use the HelpProvider class by adding "?" links near your controls and calling the methods programmatically.
If you really need to simultaneously display a minimize button and a help button you could remove the border chrome of the Form
completely and paint your own border chrome with a title bar. Then you can add as many buttons as you'd like, but you'll lose the
system menu, which is the left-most dropdown list although technically that could be recreated.
--
Dave Sexton
<mo*******@gmail.comwrote in message news:11**********************@p79g2000cwp.googlegr oups.com...
The problem not resolved yet ??? !!! mo*******@gmail.com wrote:
Yes it is the control box on the form and i want to take the maximise
button out. thing is when I disable it from settings then it is
disabled and still visible. I don't want it to be visible and need a ?
button there... plz help...any1... i know someone has done this for
sure...
simida wrote:
i don't know about your control box. Is it a form ?
if it's a form, you can set Form 's property MaximizeBox or
FormBorderStyle.
Sincerely,
simida mo*******@gmail.com ??:
Hey guys & gals
>
I am havng trouble modifying the control box. I want to make the
maximise button invisible and have minimisise button instead of it.
Like this _ X (not like _ o X )
>
How to do this... and eventually i want to modify the control box in
the form of ? _ X ... I.e. adding a new button to control box. I need
to detect the click events.
>
Please help
Thanks Dave for the reply,
Unfortunately I am not able to find help regarding the border chrome
for windows form. I think I forgot to mention its for windows form.
Will it make any difference? For my GUI is want the user to see the
control box in that form so i don't have any other option :( Could you
please tell me about some tutorial or some code where this has been
implemented.
Thanks alot
mohit
Dave Sexton wrote:
Hi Simida,
The control box is the right-most button on the title bar of your Form. It is not the entire title bar.
You can get a "?" button, called a help button, to appear on your Form without creating your own. To show the help button you must
disable both maximize and minimize buttons and set the Form's HelpButton property to true.
I suggest that you leave the functionality as is because that's what is normal to Windows users . In other words, trying to leave
the minimize button while showing the help button is going to be difficult and provide a strange user experience. It is common for
the help button to appear on modal dialogs, which usually can't be resized at all. If you want to provide help to a non-dialog Form
you could still use the HelpProvider class by adding "?" links near your controls and calling the methods programmatically.
If you really need to simultaneously display a minimize button and a help button you could remove the border chrome of the Form
completely and paint your own border chrome with a title bar. Then you can add as many buttons as you'd like, but you'll lose the
system menu, which is the left-most dropdown list although technically that could be recreated.
--
Dave Sexton
<mo*******@gmail.comwrote in message news:11**********************@p79g2000cwp.googlegr oups.com...
The problem not resolved yet ??? !!!
mo*******@gmail.com wrote:
Yes it is the control box on the form and i want to take the maximise
button out. thing is when I disable it from settings then it is
disabled and still visible. I don't want it to be visible and need a ?
button there... plz help...any1... i know someone has done this for
sure...
simida wrote:
i don't know about your control box. Is it a form ?
if it's a form, you can set Form 's property MaximizeBox or
FormBorderStyle.
>
Sincerely,
simida
> mo*******@gmail.com ??:
>
Hey guys & gals
I am havng trouble modifying the control box. I want to make the
maximise button invisible and have minimisise button instead of it.
Like this _ X (not like _ o X )
How to do this... and eventually i want to modify the control box in
the form of ? _ X ... I.e. adding a new button to control box. I need
to detect the click events.
Please help
Hi mohit,
This is not something that is normally required when designing a Windows GUI so I don't have any links to which I can refer you.
It's probably not worth the effort, but you can remove the border chrome of your System.Windows.Forms.Form class by setting the
FormBorderStyle property to FormBorderStyle.None.
You can just Dock a Panel control to the top of the Form and add as many buttons as you'd like in the Panel. Set the
BackgroundImage of the Panel to a custom image if you want the Form to appear as if it has a border, but realize that this is not
functionally equivalent to actually having a border. You'd have to go a step father by handling mouse events and using Interop to
create an actual border. An Image of a border should probably suit your needs just fine.
You can also set the TransparencyKey of your Form to any Color that you'd like, after which when that Color appears anywhere on the
Form or in it's child controls the Color is rendered as transparent by Windows so that the underlying desktop will show through.
This will allow you to reshape your Form as you see fit by setting the BackgroundImage of the Form to a custom Image that makes use
of the TransparencyKey Color that you have selected.
GL
--
Dave Sexton
<mo*******@gmail.comwrote in message news:11*********************@p79g2000cwp.googlegro ups.com...
Thanks Dave for the reply,
Unfortunately I am not able to find help regarding the border chrome
for windows form. I think I forgot to mention its for windows form.
Will it make any difference? For my GUI is want the user to see the
control box in that form so i don't have any other option :( Could you
please tell me about some tutorial or some code where this has been
implemented.
Thanks alot
mohit
Dave Sexton wrote:
>Hi Simida,
The control box is the right-most button on the title bar of your Form. It is not the entire title bar.
You can get a "?" button, called a help button, to appear on your Form without creating your own. To show the help button you must disable both maximize and minimize buttons and set the Form's HelpButton property to true.
I suggest that you leave the functionality as is because that's what is normal to Windows users . In other words, trying to leave the minimize button while showing the help button is going to be difficult and provide a strange user experience. It is common for the help button to appear on modal dialogs, which usually can't be resized at all. If you want to provide help to a non-dialog Form you could still use the HelpProvider class by adding "?" links near your controls and calling the methods programmatically.
If you really need to simultaneously display a minimize button and a help button you could remove the border chrome of the Form completely and paint your own border chrome with a title bar. Then you can add as many buttons as you'd like, but you'll lose the system menu, which is the left-most dropdown list although technically that could be recreated.
-- Dave Sexton
<mo*******@gmail.comwrote in message news:11**********************@p79g2000cwp.googlegr oups.com... The problem not resolved yet ??? !!!
mo*******@gmail.com wrote:
Yes it is the control box on the form and i want to take the maximise
button out. thing is when I disable it from settings then it is
disabled and still visible. I don't want it to be visible and need a ?
button there... plz help...any1... i know someone has done this for
sure...
simida wrote:
i don't know about your control box. Is it a form ?
if it's a form, you can set Form 's property MaximizeBox or
FormBorderStyle.
Sincerely,
simida
mo*******@gmail.com ??:
Hey guys & gals
I am havng trouble modifying the control box. I want to make the
maximise button invisible and have minimisise button instead of it.
Like this _ X (not like _ o X )
How to do this... and eventually i want to modify the control box in
the form of ? _ X ... I.e. adding a new button to control box. I need
to detect the click events.
Please help
Thanks alot for your feed back. I have decided to keep it simple. Not
using that fancy option which i wanted to use. But i do not want the
user to have a option of maximised. Is there any way to remove the
maximise button. As I am able disable it but not able to make it
invisible. Any dieas
Mohit
Dave Sexton wrote:
Hi mohit,
This is not something that is normally required when designing a Windows GUI so I don't have any links to which I can refer you.
It's probably not worth the effort, but you can remove the border chrome of your System.Windows.Forms.Form class by setting the
FormBorderStyle property to FormBorderStyle.None.
You can just Dock a Panel control to the top of the Form and add as many buttons as you'd like in the Panel. Set the
BackgroundImage of the Panel to a custom image if you want the Form to appear as if it has a border, but realize that this is not
functionally equivalent to actually having a border. You'd have to go a step father by handling mouse events and using Interop to
create an actual border. An Image of a border should probably suit your needs just fine.
You can also set the TransparencyKey of your Form to any Color that you'd like, after which when that Color appears anywhere on the
Form or in it's child controls the Color is rendered as transparent by Windows so that the underlying desktop will show through.
This will allow you to reshape your Form as you see fit by setting the BackgroundImage of the Form to a custom Image that makes use
of the TransparencyKey Color that you have selected.
GL
--
Dave Sexton
<mo*******@gmail.comwrote in message news:11*********************@p79g2000cwp.googlegro ups.com...
Thanks Dave for the reply,
Unfortunately I am not able to find help regarding the border chrome
for windows form. I think I forgot to mention its for windows form.
Will it make any difference? For my GUI is want the user to see the
control box in that form so i don't have any other option :( Could you
please tell me about some tutorial or some code where this has been
implemented.
Thanks alot
mohit
Dave Sexton wrote:
Hi Simida,
The control box is the right-most button on the title bar of your Form. It is not the entire title bar.
You can get a "?" button, called a help button, to appear on your Form without creating your own. To show the help button you
must
disable both maximize and minimize buttons and set the Form's HelpButton property to true.
I suggest that you leave the functionality as is because that's what is normal to Windows users . In other words, trying to
leave
the minimize button while showing the help button is going to be difficult and provide a strange user experience. It is common
for
the help button to appear on modal dialogs, which usually can't be resized at all. If you want to provide help to a non-dialog
Form
you could still use the HelpProvider class by adding "?" links near your controls and calling the methods programmatically.
If you really need to simultaneously display a minimize button and a help button you could remove the border chrome of the Form
completely and paint your own border chrome with a title bar. Then you can add as many buttons as you'd like, but you'll lose
the
system menu, which is the left-most dropdown list although technically that could be recreated.
--
Dave Sexton
<mo*******@gmail.comwrote in message news:11**********************@p79g2000cwp.googlegr oups.com...
The problem not resolved yet ??? !!!
mo*******@gmail.com wrote:
Yes it is the control box on the form and i want to take the maximise
button out. thing is when I disable it from settings then it is
disabled and still visible. I don't want it to be visible and need a ?
button there... plz help...any1... i know someone has done this for
sure...
simida wrote:
i don't know about your control box. Is it a form ?
if it's a form, you can set Form 's property MaximizeBox or
FormBorderStyle.
>
Sincerely,
simida
> mo*******@gmail.com ??:
>
Hey guys & gals
I am havng trouble modifying the control box. I want to make the
maximise button invisible and have minimisise button instead of it.
Like this _ X (not like _ o X )
How to do this... and eventually i want to modify the control box in
the form of ? _ X ... I.e. adding a new button to control box. I need
to detect the click events.
Please help
Hi Mohit,
No. There is no way to simply remove the maximize button.
--
Dave Sexton
<mo*******@gmail.comwrote in message news:11**********************@p79g2000cwp.googlegr oups.com...
Thanks alot for your feed back. I have decided to keep it simple. Not
using that fancy option which i wanted to use. But i do not want the
user to have a option of maximised. Is there any way to remove the
maximise button. As I am able disable it but not able to make it
invisible. Any dieas
Mohit
Dave Sexton wrote:
>Hi mohit,
This is not something that is normally required when designing a Windows GUI so I don't have any links to which I can refer you. It's probably not worth the effort, but you can remove the border chrome of your System.Windows.Forms.Form class by setting the FormBorderStyle property to FormBorderStyle.None.
You can just Dock a Panel control to the top of the Form and add as many buttons as you'd like in the Panel. Set the BackgroundImage of the Panel to a custom image if you want the Form to appear as if it has a border, but realize that this is not functionally equivalent to actually having a border. You'd have to go a step father by handling mouse events and using Interop to create an actual border. An Image of a border should probably suit your needs just fine.
You can also set the TransparencyKey of your Form to any Color that you'd like, after which when that Color appears anywhere on the Form or in it's child controls the Color is rendered as transparent by Windows so that the underlying desktop will show through. This will allow you to reshape your Form as you see fit by setting the BackgroundImage of the Form to a custom Image that makes use of the TransparencyKey Color that you have selected.
GL
-- Dave Sexton
<mo*******@gmail.comwrote in message news:11*********************@p79g2000cwp.googlegro ups.com...
Thanks Dave for the reply,
Unfortunately I am not able to find help regarding the border chrome
for windows form. I think I forgot to mention its for windows form.
Will it make any difference? For my GUI is want the user to see the
control box in that form so i don't have any other option :( Could you
please tell me about some tutorial or some code where this has been
implemented.
Thanks alot
mohit
Dave Sexton wrote: Hi Simida,
The control box is the right-most button on the title bar of your Form. It is not the entire title bar.
You can get a "?" button, called a help button, to appear on your Form without creating your own. To show the help button you must disable both maximize and minimize buttons and set the Form's HelpButton property to true.
I suggest that you leave the functionality as is because that's what is normal to Windows users . In other words, trying to leave the minimize button while showing the help button is going to be difficult and provide a strange user experience. It is common for the help button to appear on modal dialogs, which usually can't be resized at all. If you want to provide help to a non-dialog Form you could still use the HelpProvider class by adding "?" links near your controls and calling the methods programmatically.
If you really need to simultaneously display a minimize button and a help button you could remove the border chrome of the Form completely and paint your own border chrome with a title bar. Then you can add as many buttons as you'd like, but you'll lose the system menu, which is the left-most dropdown list although technically that could be recreated.
-- Dave Sexton
<mo*******@gmail.comwrote in message news:11**********************@p79g2000cwp.googlegr oups.com... The problem not resolved yet ??? !!!
mo*******@gmail.com wrote:
Yes it is the control box on the form and i want to take the maximise
button out. thing is when I disable it from settings then it is
disabled and still visible. I don't want it to be visible and need a ?
button there... plz help...any1... i know someone has done this for
sure...
simida wrote:
i don't know about your control box. Is it a form ?
if it's a form, you can set Form 's property MaximizeBox or
FormBorderStyle.
Sincerely,
simida
mo*******@gmail.com ??:
Hey guys & gals
I am havng trouble modifying the control box. I want to make the
maximise button invisible and have minimisise button instead of it.
Like this _ X (not like _ o X )
How to do this... and eventually i want to modify the control box in
the form of ? _ X ... I.e. adding a new button to control box. I need
to detect the click events.
Please help
Thanks Dave. there goes another idea out of window... lol... thanks
alot... I might stick to regular stuff... as more coding means more
documentation...lol... thanks alot for ur help... u been of gr8 help...
Regards
Mohit
Dave Sexton wrote:
Hi Mohit,
No. There is no way to simply remove the maximize button.
--
Dave Sexton
<mo*******@gmail.comwrote in message news:11**********************@p79g2000cwp.googlegr oups.com...
Thanks alot for your feed back. I have decided to keep it simple. Not
using that fancy option which i wanted to use. But i do not want the
user to have a option of maximised. Is there any way to remove the
maximise button. As I am able disable it but not able to make it
invisible. Any dieas
Mohit
Dave Sexton wrote:
Hi mohit,
This is not something that is normally required when designing a Windows GUI so I don't have any links to which I can refer you.
It's probably not worth the effort, but you can remove the border chrome of your System.Windows.Forms.Form class by setting the
FormBorderStyle property to FormBorderStyle.None.
You can just Dock a Panel control to the top of the Form and add as many buttons as you'd like in the Panel. Set the
BackgroundImage of the Panel to a custom image if you want the Form to appear as if it has a border, but realize that this is not
functionally equivalent to actually having a border. You'd have to go a step father by handling mouse events and using Interop
to
create an actual border. An Image of a border should probably suit your needs just fine.
You can also set the TransparencyKey of your Form to any Color that you'd like, after which when that Color appears anywhere on
the
Form or in it's child controls the Color is rendered as transparent by Windows so that the underlying desktop will show through.
This will allow you to reshape your Form as you see fit by setting the BackgroundImage of the Form to a custom Image that makes
use
of the TransparencyKey Color that you have selected.
GL
--
Dave Sexton
<mo*******@gmail.comwrote in message news:11*********************@p79g2000cwp.googlegro ups.com...
Thanks Dave for the reply,
Unfortunately I am not able to find help regarding the border chrome
for windows form. I think I forgot to mention its for windows form.
Will it make any difference? For my GUI is want the user to see the
control box in that form so i don't have any other option :( Could you
please tell me about some tutorial or some code where this has been
implemented.
Thanks alot
mohit
Dave Sexton wrote:
Hi Simida,
The control box is the right-most button on the title bar of your Form. It is not the entire title bar.
You can get a "?" button, called a help button, to appear on your Form without creating your own. To show the help button you
must
disable both maximize and minimize buttons and set the Form's HelpButton property to true.
I suggest that you leave the functionality as is because that's what is normal to Windows users . In other words, trying to
leave
the minimize button while showing the help button is going to be difficult and provide a strange user experience. It is
common
for
the help button to appear on modal dialogs, which usually can't be resized at all. If you want to provide help to a
non-dialog
Form
you could still use the HelpProvider class by adding "?" links near your controls and calling the methods programmatically.
If you really need to simultaneously display a minimize button and a help button you could remove the border chrome of the
Form
completely and paint your own border chrome with a title bar. Then you can add as many buttons as you'd like, but you'll lose
the
system menu, which is the left-most dropdown list although technically that could be recreated.
--
Dave Sexton
<mo*******@gmail.comwrote in message news:11**********************@p79g2000cwp.googlegr oups.com...
The problem not resolved yet ??? !!!
mo*******@gmail.com wrote:
Yes it is the control box on the form and i want to take the maximise
button out. thing is when I disable it from settings then it is
disabled and still visible. I don't want it to be visible and need a ?
button there... plz help...any1... i know someone has done this for
sure...
simida wrote:
i don't know about your control box. Is it a form ?
if it's a form, you can set Form 's property MaximizeBox or
FormBorderStyle.
>
Sincerely,
simida
> mo*******@gmail.com ??:
>
Hey guys & gals
I am havng trouble modifying the control box. I want to make the
maximise button invisible and have minimisise button instead of it.
Like this _ X (not like _ o X )
How to do this... and eventually i want to modify the control box in
the form of ? _ X ... I.e. adding a new button to control box. I need
to detect the click events.
Please help
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ron James |
last post by:
I have a Dialog type form that starts a worker thread,
allows the thread to update its progess and provides a
Cancel button. Following advice from Chad Meyers in a
recent posting, the worker...
|
by: Dave |
last post by:
How do I check in a Windows Forms app if any controls have changed? I have
a form that collects data, and I want to prompt the user if they try to exit
the app, or load a new file, without saving...
|
by: Rajat Tandon |
last post by:
Hello there,
I am relatively new to the newsgroups and C#. I have never been disappointed
with the groups and always got the prompt replies to my queries.This is yet
another strange issue, I am...
|
by: blesh |
last post by:
Is it possible to remove the Titlebar from a Windows Form?
I know I can create a custom region to essentially "hide" the title
bar... but the only problem with that is the fact the the Width /...
|
by: Alison |
last post by:
Hi, Al
I am trying to design a user interface which provides both menus and toolbars for some users to click on whatever they want to do, at the same time, I would like to have a console window...
|
by: Dennis |
last post by:
I have a simple Windows form that has the ControlBox property set to False as
well as the Maximize and Minimize are set to False. The start position is
set to "Manual" and borderstyle is set to...
|
by: Rod Gill |
last post by:
Hi,
I have a form that when opened in the designer appears of the screen. The
form selector can't be dragged (or resized) and if I scroll right and down
to centralise it the form simply jumps...
|
by: Alan T |
last post by:
I want to put an icon on a Windows Form top left hand corner but would like
to hide the maximize and close box on the top right hand corner.
Can I do that?
|
by: Jwe |
last post by:
Hi,
I've written a program which has both a command line interface
and Windows form interface, however it isn't quite working
correctly.
When run from command line with no arguments it should...
|
by: lllomh |
last post by:
Define the method first
this.state = {
buttonBackgroundColor: 'green',
isBlinking: false, // A new status is added to identify whether the button is blinking or not
}
autoStart=()=>{
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: Aliciasmith |
last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
|
by: tracyyun |
last post by:
Hello everyone,
I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
|
by: NeoPa |
last post by:
Hello everyone.
I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report).
I know it can be done by selecting :...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
|
by: Teri B |
last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course.
0ne-to-many. One course many roles.
Then I created a report based on the Course form and...
|
by: isladogs |
last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, Mike...
|
by: GKJR |
last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
| |