Hiding controlbox icon

T

Tim

Hi,
I am trying to create a form with the following
attributes:
1. A sizable border
2. Min, Max, and Close buttons
3. No icon in the upper left hand corner
All of this can be accomplished using the Sizable
FormBorderStyle, but the icon remains. I read something
about needing to overload CreateParams to disable the
icon. Does anyone know how to do this?

Thanks,
Tim
 
K

Ken Tucker [MVP]

Hi,

Try this.
Dim bm As New Bitmap(16, 16)

Me.Icon = Icon.FromHandle(bm.GetHicon)

Ken
 
T

Tim

Hi,
While the space the icon is in does remain,
I believe it will suit my purposes, thank you.

-Tim
 

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