Questions tagged [controlbox]

20 questions
11
votes
3 answers

How to fully hide the top bar in Windows Form using C#

I am working in C#. I know that this question is commonly asked, it's just that I still cannot fully hide the top bar when I set the the form text string to be "" and controlbox = false. I still want the shadow effect: The border on the side is…
user3811284
  • 123
  • 2
  • 7
5
votes
1 answer

Adding items to the Windows control box

Is there anyway to add an item to the control box (wheres the close, minimize and maximize buttons are) with my custom icon in C#? Thanks.
Alon Gubkin
  • 56,458
  • 54
  • 195
  • 288
4
votes
0 answers

control box showing twice

In my opening form I am using an MdiParent but the ControlBox is showing twice (see image). I set the ControlBox's property to false in all the child forms. But it didn't change. How could I close the control boxes?
witchqueen
  • 73
  • 3
  • 12
3
votes
1 answer

Hide controlbox on Process.Start() cmd window

I am using process.Start(); to start a batch file. The CMD windows appears fine and works perfectly. How can I disable the controlbox (minimize, maximize, close) on the upper right of the cmd window progmatically. I wish for the CMD window to be…
bulltorious
  • 7,769
  • 4
  • 49
  • 78
3
votes
2 answers

Add buttons to a form's control box?

I am looking for a way to add buttons to a form's control box. I don't care in which language it is, but I'd love to have it in .NET (C#, VB.NET or C++). Yes, I have seen this and none of the solutions in the answer work, at least for Windows…
Vercas
  • 8,931
  • 15
  • 66
  • 106
3
votes
0 answers

C# WPF - Timer Stops on ControlBox Click

I have a WPF Application using a DispatcherTimer. When the user MouseDowns on any button in the ControlBox ('-' Minimize, '□' Maximize, 'X' Exit), the DispatcherTimer stops - even if the buttons are disabled. If the user moves the mouse outside of…
2
votes
2 answers

Disable Close Button without Disabling Icon

my problem is so simple but I can't seem to get it solved. I just want to remove the Close Button from my form and don't remove the icon. I used ControlBox = false but it removes the form's icon as well, I just want to keep it. Is there anyway I can…
White8Tiger
  • 294
  • 4
  • 19
1
vote
1 answer

Hide form caption bar but keep the taskbar entry and borders?

I would like to hide the whole caption bar of a form while keeping the/a title in the task bar and form borders (like Sizable). How do I do that? Edit: Windows (Vista/7) Explorer hides the title but has a name in the taskbar!
Vercas
  • 8,931
  • 15
  • 66
  • 106
1
vote
2 answers

Duplicate ControlBox

I have inherited an application that was started as an MDI program, but the necessary background work was never put in place to fully support MDI. I'm trying to build in just enough MDI support to make the application look good and work properly as…
Superhuman
  • 149
  • 1
  • 2
  • 13
1
vote
2 answers

MDI child shows icon when maximized

I have an MDI parent and MDI child. I want to hide the icon of the child form in a maximized state, so I tried the following: g.WindowState = FormWindowState.Normal; g.ShowIcon = false; g.Show(); g.WindowState = FormWindowState.Maximized; The…
mucisk
  • 247
  • 5
  • 13
0
votes
0 answers

Mouse leave event of a Form and its ControlBox

I want to detect if a user leaves the Form. The following code works well but it fires off even when I'm still over the ControlBox of the Form. What I thus want (was expecting) is that the the ControlBox also made up part and only after the mouse…
LabRat
  • 1,996
  • 11
  • 56
  • 91
0
votes
0 answers

C++ CListControl - check if selected

I've got a ListControl box and I want to enable a textbox if the user clicks on a button there. I've allready tried to update the dialog via an "OnLeftButtonUp" function which works quite well if I click outside the ListControl but when I click…
0
votes
1 answer

Make a combo box list item open a webpage?

if (comboBox1.Text == "Asus"; System.Diagnostics.Process.Start("http://www.asus.com"); This is basically what I am trying to do, but it seems so hard to find some good combo box tutorials! I am doing this with a windows form (not WPF). Thank you…
DDJ
  • 807
  • 5
  • 13
  • 31
0
votes
2 answers

Disable the Close button without hiding the Controlbox

I have an application where I do not want the user to be able to close the form. Okay, easy enough. Just set ControlBox = false for the form. However, I would like to keep the application icon in the upper left corner of the form. Minor I know,…
busarider29
  • 185
  • 5
  • 18
0
votes
1 answer

Combobox selectedValue crashes ControlBox in C#

When ever i assign the selected value from my combo box my Winforms application wont close via the controlBox (Minimise, Maximise work but close does not!) If i comment out the following code it seems to work: private void Form1_Load(object…
PriceCheaperton
  • 5,071
  • 17
  • 52
  • 94
1
2