How can I have a Non-squared form?
In an application I saw a form which was like a Star.
is it possible to have such a forms in VB?
Thanks in advance
Reza
Printable View
How can I have a Non-squared form?
In an application I saw a form which was like a Star.
is it possible to have such a forms in VB?
Thanks in advance
Reza
Yes its possible. You need to use the CreateRectRgn or CreatePolygonRgn for example.
Here are a few links, relating to this you may find interesting:
Cheers and hope that helps,
RyanJ
Here are some examples I got from PlanetSourceCode.
Hope it helps! :wave:
how can create forum remove pixel transparent and view pixel <> transparent (ex jetaudio, window media player
Do you mean to make part of you form transparent? Like where there is a color to make it transparent?
Quote:
Originally Posted by manavo11
I don't know how it is possible.
for example i want to have a form like a Star.
if it is possible by making some part of form transparent I would apprecitae if you let me know.
i see, it draw form , remove region of transparent thanks
Look at the links Ryan and Rob provided.Quote:
Originally Posted by Reza
This is done via regions.
If you want to make one colour transparent or translucent then you can use alpha-blending with a colour key.Quote:
Originally Posted by Reza
Head over to the alpha-blending link in my sig, and include this as well:
VB Code:
Private Const LWA_COLORKEY As Long = &H1 ' For each line with SetLayeredWindowAttributes, ' change the 2nd parameter to a Long RGB value for your colorkey ' you can get this through RGB([r], [g], [b]) with each val 0-255 ' And to the end of each of those lines, add this Or LWA_COLORKEY
HTH