Hiding controlbox icon

  • Thread starter Thread starter Tim
  • Start date Start date
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
 
Hi,

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

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

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

-Tim
 
Back
Top