Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


transparent form


transparent form

Author
Message
T1nM4n
T1nM4n
Forum God
Forum God (2.4K reputation)Forum God (2.4K reputation)Forum God (2.4K reputation)Forum God (2.4K reputation)Forum God (2.4K reputation)Forum God (2.4K reputation)Forum God (2.4K reputation)Forum God (2.4K reputation)Forum God (2.4K reputation)

Group: Forum Members
Posts: 42, Visits: 1
is there some sort of way to make a form have transparent parts, like lets say ia have an image that has transparent parts, how could i make that image be the background of my form and have the transparent parts of the image be transparent so like if i have an image of a ball, how could i make it so the form was shaped liek a circle

thnx
t1n
pso
pso
Forum God
Forum God (72K reputation)Forum God (72K reputation)Forum God (72K reputation)Forum God (72K reputation)Forum God (72K reputation)Forum God (72K reputation)Forum God (72K reputation)Forum God (72K reputation)Forum God (72K reputation)

Group: Forum Members
Posts: 794, Visits: 338
You could trythis page from TheScarms. Here is just a snippet from the page...

...forms with rounded corners...

..forms with Transparent or Gradient Backgrounds
Make a form's background ..or make it completely transparent...





Tongue

TallOne
TallOne
Forum God
Forum God (49K reputation)Forum God (49K reputation)Forum God (49K reputation)Forum God (49K reputation)Forum God (49K reputation)Forum God (49K reputation)Forum God (49K reputation)Forum God (49K reputation)Forum God (49K reputation)

Group: Forum Members
Posts: 370, Visits: 212

Nice find P_S_O.  Lota nice tips. Now get to work on my Keyboard Hook!!!!!!  J/K



TallOne
TrickyRic
TrickyRic
Forum God
Forum God (89K reputation)Forum God (89K reputation)Forum God (89K reputation)Forum God (89K reputation)Forum God (89K reputation)Forum God (89K reputation)Forum God (89K reputation)Forum God (89K reputation)Forum God (89K reputation)

Group: Forum Members
Posts: 711, Visits: 6
this old wannabe-project is still on my server, and about all it does so far is shape a form based on an image . handy for these questions...

http://62.164.176.91/temp/NK5.zip

someone also made a control to do the same... james i think? (sorry i'm out of memory i think... wonder if my body accepts ddr...)




API Guide - VB/MySQL - W3Schools - WinsockVB

James
James
Forum God
Forum God (114K reputation)Forum God (114K reputation)Forum God (114K reputation)Forum God (114K reputation)Forum God (114K reputation)Forum God (114K reputation)Forum God (114K reputation)Forum God (114K reputation)Forum God (114K reputation)

Group: Forum Members
Posts: 653, Visits: 14

hey there tinny.

have a look here.
http://www.a1vbcode.com/vbforums/shwmessage.aspx?ForumID=7&MessageID=970
To make the form have transparent parts draw a graphic with a certain colour in the top left corner. This will be the color the app makes transparent. then design your form and place shapes of your color where you want "holes".

NB: try to have a boarder around you shape but don't antialias it. For example if you are using white as your transparent color and you have a red circle put a hard line black border around it. Hope this helps.

OH and make sure you ship the app with the .ocx file

James






  


James
James
Forum God
Forum God (114K reputation)Forum God (114K reputation)Forum God (114K reputation)Forum God (114K reputation)Forum God (114K reputation)Forum God (114K reputation)Forum God (114K reputation)Forum God (114K reputation)Forum God (114K reputation)

Group: Forum Members
Posts: 653, Visits: 14

Her is an example of what I was talking about.

James






  


T1nM4n
T1nM4n
Forum God
Forum God (2.4K reputation)Forum God (2.4K reputation)Forum God (2.4K reputation)Forum God (2.4K reputation)Forum God (2.4K reputation)Forum God (2.4K reputation)Forum God (2.4K reputation)Forum God (2.4K reputation)Forum God (2.4K reputation)

Group: Forum Members
Posts: 42, Visits: 1
ok well i got urs to work but i cant quite get it to integrate with mine, how would i go about doing this?

thnx
James
James
Forum God
Forum God (114K reputation)Forum God (114K reputation)Forum God (114K reputation)Forum God (114K reputation)Forum God (114K reputation)Forum God (114K reputation)Forum God (114K reputation)Forum God (114K reputation)Forum God (114K reputation)

Group: Forum Members
Posts: 653, Visits: 14

Ok heres a step by step guide.

  • Open Standard Exe
  • Add an image to the forms picture property
  • Go Projects > Components>Browse find the .OCX file I put in the zip file
  • Click ok
  • Add the control to your form
  • In the Form_Load() event add
  • CustomScreen1.Run FormName
  • And in the Unload event
  • CustomScreen1.Und FormName
  • Add an exit command button and code to unload not end
  • Run and test the app

This is the image I used. You'll notice I've picked pink as my background. What the control will do is analyse twip 0,0 (top left twip in this case pink) and then search every twip looking for the same color. Upon finding the color the control makes that twip transparent and enables you to use cusom regions.

Hope this helps

James






  


GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search