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 12804
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 User Group meeting will be on Wednesday 3 Apr 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 former...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |