shadow on form!
Use this board to post your code snippets - tips and tricks
Ok so my friend gave me this cool snippet all credits to him it is suppose to add a shadow to a form! omg;
Put this code in the form class and wala should add a shadow!
Put this code in the form class and wala should add a shadow!
Code: Select all
Protected Overrides ReadOnly Property CreateParams() As System.Windows.Forms.CreateParams
Get
Const CS_DROPSHADOW = &H20000
Dim cParam As CreateParams = MyBase.CreateParams
cParam.ClassStyle = cParam.ClassStyle Or CS_DROPSHADOW
Return cParam
End Get
End Property
<a href="http://www.points2shop.com/s/xbox_point ... 5082"><img src="http://points2shop.com/images/promotion ... ricoxg.gif" border="0"/></a>
mshimranpro wrote:explain more really i didnt get itumm it is hard to explain but i guess it is suppose to make the border slightly more shiny lol i could not tell when i used it but it does have a difference i know that
<a href="http://www.points2shop.com/s/xbox_point ... 5082"><img src="http://points2shop.com/images/promotion ... ricoxg.gif" border="0"/></a>
#pip do i have to add a new class and paste this in ? What is the place to paste this code ?
I havent seen this code before so i dont know about this code .
I havent seen this code before so i dont know about this code .
Find my programs on Softpedia
Bogoh67 wrote:didnt mike just post about this? correct me if im wrongThis was my first thought too, but for me as well: correct me if im wrong!
Practice makes perfect!
VIP since: 6-10-2011
VIP since: 6-10-2011
mshimranpro wrote:#pip do i have to add a new class and paste this in ? What is the place to paste this code ?No, I don't think you have to create new class. I will try when I get on pc.
I havent seen this code before so i dont know about this code .
#mshimranpro you just paste it anywhere in an existing class. In your Form1.vb file (for example), paste it under "Public Class Form1" (or anywhere else for that sake).
#Bogoh67 #clanc789 Yea Mike just posted this, the only difference in the code is that pip uses hexadecimal numbers and not normal decimal numbers :P
#Bogoh67 #clanc789 Yea Mike just posted this, the only difference in the code is that pip uses hexadecimal numbers and not normal decimal numbers :P
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!
:lol: funny i don't see any shadow :lol:
visit us on:
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
MrAksel wrote:#mshimranpro you just paste it anywhere in an existing class. In your Form1.vb file (for example), paste it under "Public Class Form1" (or anywhere else for that sake).thanks for the help #MrAksel cooll; lmao;
#Bogoh67 #clanc789 Yea Mike just posted this, the only difference in the code is that pip uses hexadecimal numbers and not normal decimal numbers :P
Find my programs on Softpedia
Copyright Information
Copyright © Codenstuff.com 2020 - 2023