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 12786
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: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM).
In this month's session, the creator of the excellent VBE...
|
by: DolphinDB |
last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation.
Take...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: Aftab Ahmad |
last post by:
Hello Experts!
I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
|
by: marcoviolo |
last post by:
Dear all,
I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
| |