Custom Form Border

Use this board to post your code snippets - tips and tricks
3 posts Page 1 of 1
Contributors
User avatar
Reaper
Linux Users
Linux Users
Posts: 20
Joined: Tue Oct 04, 2011 9:22 pm

Custom Form Border
Reaper
Ok, so i found this by accident if someone already posted this, please let me know, but i was surprised when i found this out





Just go to your Forms properties and under the "Window Style" properties you can find "Control Box", set it to "false", you will lose the minimize "_", maximize "[]" and close button "X", now go to your Forms "Text" property and set nothing - "" and it will look like that so you get something like border less form with border lol, without icon,text and min/max/close button You can use this to create custom form, just add a panel with "Top" dock, and drag your controls onto it

Hope this was resourceful
Image
Image
Image
Image
Image
User avatar
zulfikar
Member
Member
Posts: 30
Joined: Fri Aug 19, 2011 4:22 am

Re: Custom Form Border
zulfikar
you can always photoshop yourself the maximize, minimize and other buttons and then put picture boxes with transparent backrounds. Have the code for each the following :

Maximine :

Me.Maximize

Minimize :

Me.Minimize

Close :

Me.Close


I think i put the wrong code...but im not sure, too lazy to open up vb to make sure.
Image
User avatar
clanc789
Coding Guru
Coding Guru
Posts: 786
Joined: Tue Nov 02, 2010 4:45 pm

Re: Custom Form Border
clanc789
Yea this was alrdy posted on the site earlier. But thanks for showing anyhow.
Practice makes perfect!

VIP since: 6-10-2011
3 posts Page 1 of 1
Return to “Quick Snips”