a form without an icon but with close, minimize & maximize buttons

C

Cristian Balcanu

Hi


I want to create a Form that don't have an icon in title (as it is for
ControlBox = false) but with close, minimize and maximize buttons. Even this
seems trivial to me I coudn't do-it.
(Setting form.Icon property to null was what I expected but don't woked. )

I'm using VStudio 2003 (7.1)
 
G

Guest

I would believe the most simplest of solutions would be to make a blank icon
and set that as the icon of the form. You can do this very easily using
VS.net or another app such as IconWorkshop (Shareware)
 
H

Herfried K. Wagner [MVP]

Cristian Balcanu said:
I want to create a Form that don't have an icon in title (as it is for
ControlBox = false) but with close, minimize and maximize buttons. Even
this seems trivial to me I coudn't do-it.
(Setting form.Icon property to null was what I expected but don't woked. )

Set the form's 'FormBorderStyle' property to 'FixedDialog' and its
'ShowInTaskbar' property to 'False'. Then set the 'Icon' property to
'Nothing' at runtime (for example, in the form's 'Load' event handler).
 
C

Cristian Balcanu

I forgot to mention that I also want the form to be resizable. (i.e. Open
File Dialog in Windows XP).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top