473,385 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Add button to ControlBox -- How??

Hi

I need to add to my form ControlBox(this three buttons in right top
corner), one button with "."(dot), which will minimize my App to
SysTray. This button I sow e.g. in eMule;) How I can do that??
Thx Mrozu

Dec 14 '05 #1
7 3158
Mrozu wrote:
Hi

I need to add to my form ControlBox(this three buttons in right top
corner), one button with "."(dot), which will minimize my App to
SysTray. This button I sow e.g. in eMule;) How I can do that??
Thx Mrozu

eMule is written in C++, it is easier to do all sorts of things that
way. However, you can change the actions of the x button to hide the
program and show it in the system tray instead of actually closing the
program. I believe that's what McAfee does.

Tom

Dec 14 '05 #2
That's actually a pretty good suggestion. We should be able to put in as many
boxes we want next to Max, Min and X. As far as I know (I'll check when I get
back to my VB stuff) the only way to do this is manipulate the window through
APIs.

Randy

"Mrozu" wrote:
Hi

I need to add to my form ControlBox(this three buttons in right top
corner), one button with "."(dot), which will minimize my App to
SysTray. This button I sow e.g. in eMule;) How I can do that??
Thx Mrozu

Dec 14 '05 #3
Thx ;):)
So that problem is solved. I have another question:
How I can disable Controlbox(ControlBox=false), but don't hide icon in
left top corner?? When I Hide ControlBox, icon is hide too...
Mrozu

Dec 15 '05 #4
"Mrozu" <gr************@gmail.com> schrieb
Thx ;):)
So that problem is solved. I have another question:
How I can disable Controlbox(ControlBox=false), but don't hide icon
in left top corner?? When I Hide ControlBox, icon is hide too...

The icon *is* the control box. :)
Armin
Dec 15 '05 #5
Wow;D:D Nice

So how i can hide this three f****n buttons(in right, top corner),
without hide ControlBox?? Don't tell me that it is impossible;P

Thx Mrozu

Dec 15 '05 #6
"Mrozu" <gr************@gmail.com> schrieb
Wow;D:D Nice

So how i can hide this three f****n buttons(in right, top corner),
without hide ControlBox?? Don't tell me that it is impossible;P

As you don't want these buttons, you don't want that the user can close,
maximize or minimize the Form. As you don't want him to do this, you don't
need a controlbox. But this question is different from the one before.
Armin

Dec 15 '05 #7
Yes I don't want ControlBox, but I want Icon in left, top corner;P
thx Mrozu

Dec 16 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Colin McGuire | last post by:
Hi - this was posted last weekend and unfortunately not resolved. The solutions that were posted almost worked but after another 5 days of working on the code everynight, I am not further ahead....
1
by: Lance | last post by:
Is there a "best" technique for hiding a form's Close ControlBox button (i.e., the button with an "X" in the top-right corner of a form) but still show the minimize and maximize buttons? I've found...
24
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
13
by: Sylo | last post by:
Hi, I'm french and I don't find the answer at my question. You are my last chance and sorry for my english... I'm in VB .NET 2002 I have a MDI form with the property ControlBox at FALSE. When...
1
by: Saso Zagoranski | last post by:
Hi, In .NET 2.0 I have a MDI (parent) form with a menu and a toolbar. I also have a MDI child form displayed in the mdi parent form. The problem is, that when I maximize the child form it's...
6
by: David++ | last post by:
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...
2
by: ohadasor | last post by:
Hello, I have an MDI child, which I need to be opened as long as the mainframe is opened. The problem is that the user can close it using the X button in the form's top-right edge. How can I...
21
by: Darin | last post by:
I have a form w/ a textbox and Cancel button on it. I have a routine to handle textbox.validating, and I have the form setup so the Cancel button is the Cancel button. WHen the user clicks on...
4
by: mhifd009 | last post by:
I have disabled a close button in the property section of a form (FRM1), as i open the form the close button has gone (i have programmed close button), but as i close the form, the form that opened...
0
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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$) { } ...
0
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
marktang
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.