Results 1 to 33 of 33

Thread: Simple example on how to skin a form

  1. #1

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Simple example on how to skin a form

    The demo is pretty simple.
    The color that is made transparent is the color of top left most pixel, in my case it's bright purple.

    WOka
    Attached Files Attached Files

  2. #2
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Simple example on how to skin a form

    awesome!

  3. #3
    Hyperactive Member DarkX_Greece's Avatar
    Join Date
    Jan 2004
    Location
    Athens (Greece)
    Posts
    315

    Re: Simple example on how to skin a form

    Very very nice!
    Short CV:
    1. Visual Basic 6 Programmer
    2. Web Expert


    Botonakis Web Services

  4. #4
    Member Birth's Avatar
    Join Date
    Jan 2003
    Location
    Montreal
    Posts
    57

    Re: Simple example on how to skin a form

    Excellent!

    Used it in a brand new Splash Screen.

    Is there any way to compile this so that we don't need to distribute the DLL? I'm not very familiar with Classes.

    Thanks!

    ~~~~~~~~~~~~~~~~~~~~
    There's always something
    ~~~~~~~~~~~~~~~~~~~~
    <Any link censored by moderator>

  5. #5

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Re: Simple example on how to skin a form

    Just add the class directly into your EXE project. No need to reference the DLL project.
    It will work exactly the same.
    Hang on...I'll write a demo.

    OK...here it is.

    Woof
    Attached Files Attached Files

  6. #6

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Re: Simple example on how to skin a form

    And to take it one step further and remove the need for the class at all.

    Hope these have helped.

    WOka
    Attached Files Attached Files

  7. #7
    Member Birth's Avatar
    Join Date
    Jan 2003
    Location
    Montreal
    Posts
    57

    Thumbs up Re: Simple example on how to skin a form

    Thanks a lot!

    It works perfectly now with no DLL's.

  8. #8
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Simple example on how to skin a form

    hi woka..is it possible to blend a form itself? no menu bars or anything..

  9. #9

  10. #10
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Simple example on how to skin a form

    i mean delete the top left most pixel all over the form like yours does, except not with a picture box but a form

    i hope you understand my bable

  11. #11

  12. #12
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Simple example on how to skin a form

    okay, a form has a .picture property, im setting that picture property to an actual picture.

    I would like to do as you do in your projects posted above, but not with a picture box. I would like to do it with the form itself, is that possible? I dont think i can explain any clearer..

  13. #13

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Re: Simple example on how to skin a form

    Now I understand
    Try it. Just change to code so it uses the forms hwnd and HDC instead of the picture boxes.
    really busy now, but will take a look at it in a few hrs.

    Woka

  14. #14
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Simple example on how to skin a form

    FYI, i dont think its possible..i tried to change sooo much code, and it didnt work..

    edit**
    I even switched to picture boxes and it doesnt work..try your project with this
    Attached Images Attached Images  
    Last edited by |2eM!x; Oct 25th, 2005 at 07:48 PM.

  15. #15
    Addicted Member thamizhinpan's Avatar
    Join Date
    Dec 2005
    Location
    TE
    Posts
    243

    Re: Simple example on how to skin a form

    Thanks a lot. This is a good project!...
    If above question or answer will help to you
    Don't forget to rate me
    தமிழ்இன்பன்

  16. #16
    Addicted Member thamizhinpan's Avatar
    Join Date
    Dec 2005
    Location
    TE
    Posts
    243

    Talking Re: Simple example on how to skin a form

    Your program is working correctly. But it shows a pink border in the out side of my form. How can I hide it?(look attachment)
    Attached Images Attached Images  
    If above question or answer will help to you
    Don't forget to rate me
    தமிழ்இன்பன்

  17. #17
    Addicted Member
    Join Date
    Jan 2006
    Posts
    247

    Re: Simple example on how to skin a form

    Is there anyway to make it so that I can make it my "Office Assistant" like object. I want to make it so that it helps my people during writing in my text editor. But I want it to Overlay so that it does not go behind the form when people click.

    I want to make it like that paper clip in word or something like that.

  18. #18
    Member Birth's Avatar
    Join Date
    Jan 2003
    Location
    Montreal
    Posts
    57

    Re: Simple example on how to skin a form

    thamizhinpan, the pink border around your pic is because of antialiasing generated by your graph editor. Try to turn this off or remove the pink pixel by pixel.

    ~~~~~~~~~~~~~~~~~~~~
    There's always something
    ~~~~~~~~~~~~~~~~~~~~
    <Any link censored by moderator>

  19. #19
    Junior Member
    Join Date
    Nov 2009
    Posts
    19

    Re: Simple example on how to skin a form

    can you make a windows vista skin like a form will be like a glasses...please? i really need a skin for my program!..if anyone knows a thing that can skin a program perfectly for free please help me...!!

  20. #20

  21. #21
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Simple example on how to skin a form

    Quote Originally Posted by Wokawidget View Post
    Vista skin...glasses?
    Not sure I follow.

    Woka
    The OP probably means Vista glass effect.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  22. #22
    Junior Member
    Join Date
    Nov 2009
    Posts
    19

    Re: Simple example on how to skin a form

    i mean a form will be look likes a glasse's or something...but anyway i just want to skinned my form,i dont mind if i cant get a glasses effect skin but all i just want is to skinned the form so that my form will look like a professional..i try'd vbSkinner Pro 2 before but i hate license key so i ddnt continue using it...and also i try'd ActiveSkin 4.3 but its seems not to be perfect to my project so i need help into this...amm i just want to my form to skinned by so that it will looks nice and wow....thank you so much..any help will be appreciated..

  23. #23
    Member
    Join Date
    Sep 2008
    Location
    Turkey
    Posts
    37

    Re: Simple example on how to skin a form

    awesome

  24. #24
    Hyperactive Member Trusted's Avatar
    Join Date
    Jun 2010
    Location
    Don't Know, Cause, I am a Newbie :P
    Posts
    269

    Re: Simple example on how to skin a form

    I cannot open it.

    I am using VS 2010 / VB 10. It says you cannot open this file...

    How can I open it?

  25. #25
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Simple example on how to skin a form

    That project is meant for VB6.
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  26. #26

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Re: Simple example on how to skin a form

    Yup. this is for VB 6 (Visual Studio 6).
    VB.NET is essentially VB7, and has an entirely different language structure.

    This VB6 project uses APIs that can be messy and complex.
    Using VB.NET things like this can be done much simpler and safer using the .NEt framework.

    Woka

  27. #27
    Hyperactive Member Trusted's Avatar
    Join Date
    Jun 2010
    Location
    Don't Know, Cause, I am a Newbie :P
    Posts
    269

    Re: Simple example on how to skin a form

    Is it possible for you to make something in .NET for us?

    Thanks in advance,

    Trusted




    <= Please click on and rate if you like this post

  28. #28

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Re: Simple example on how to skin a form

    Hi,

    Sorry I don't have time.
    Plus a million other people beat me to it

    Here's a link Hack once posted for some code on CodeProject.com.

    Code is simple and easy to change.
    It could do with some cleaning up though...like renaming all the controls to something instead of Button1, Panel9 etc.

    http://www.codeproject.com/KB/vb/Ski...in_VB.Net.aspx

    Hope that helps.

    Woka

  29. #29
    Hyperactive Member Trusted's Avatar
    Join Date
    Jun 2010
    Location
    Don't Know, Cause, I am a Newbie :P
    Posts
    269

    Re: Simple example on how to skin a form

    Thanks Woka,

    I will check it out...

    Thanks again,

    Trusted




    <= Please click on and rate if you like this post

  30. #30
    New Member
    Join Date
    Sep 2010
    Posts
    2

    Re: Simple example on how to skin a form

    Hi thanks for the code..
    Can you tell me how to skin the form to the shape of the text in a Label... I am trying to make a transparent clock. Is it possible with this code..?? please help..!!

  31. #31

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Re: Simple example on how to skin a form

    You would need to store the numbers as seperate images, with a purple background color.
    Then every minute, using a timer, add the required images to a picture box and positiojn them correctly. then reskin.
    I think if you want to display seconds then you may have an issue due to the overhead of the skinning process.

    Woka

  32. #32
    New Member
    Join Date
    Sep 2010
    Posts
    2

    Re: Simple example on how to skin a form

    thanks a lot..
    now I am rebuilding it in vb.net.
    i am trying to rotate an image every second. thus the memory usage of the app. keeps increasing. please hekp how can i restrict the memory usage..!

  33. #33

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Re: Simple example on how to skin a form

    This is a VB6 example. NONE of the code here applies to .NET.
    .NET allows you to skin forms much more easily and effeciently.
    You will need to ask this is the relevant .NET section.

    Woka

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width