Form Shape

good day to all...


how can i personalize the shape of my form? the default shape of form s quadrangle. i want it to be roundsided quadrangle or the other way around...


from red3warlord with gratitude always saying...

"live your life the way you like and everything will be alright..."

Comments

  • : good day to all...
    :
    :
    : how can i personalize the shape of my form? the default shape of
    : form s quadrangle. i want it to be roundsided quadrangle or the
    : other way around...
    :
    :
    : from red3warlord with gratitude always saying...
    :
    : "live your life the way you like and everything will be alright..."

    -----
    :it can be done using API(advanced windows programming interface)
    :if u wish to change the shape of form in vb here is the code


    private declare function SetWindowRgn lib "user32.dll" (byval hwnd as long,byval rgn as long,byval ars as boolean)as long

    private declare function CreateRoundRectRgn lib "gdi32"(byval x1 as long,byval y1 as long,byval x2 as long,byval y2 as long,byal x3 as long,byval y3 as long)as long

    private sub form_load()
    SetWindowRgn hwnd,CreateRoundRectRgn(100,100,300,300,50,50),true
    End Sub

    Private sub form_Dblclick()
    unload me
    End sub






Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion