Results 1 to 4 of 4

Thread: How to create an ocx to skin form

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2010
    Posts
    10

    Arrow How to create an ocx to skin form


    It is good if our application have a different skin other than the O.S's default skin.Do you know how to implement this. Please help.....

    The skin must be.....

    Movable by titlebar(don't forget titlebar shuld be skinned.)
    and resizable at run time.

    If you have answer at brain. Just copy to this forum.

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

    Re: How to create an ocx to skin form

    A quality skinning project is a huge undertaking, and that is probably understated.

    When you take control over drawing a window, including titlebar, borders, menus you are now faced with subclassing and drawing into the non-client area of the form. You have to literraly intercept any message that would tell VB to repaint the window.

    Controls are similar. To skin a control requires knowledge of each control you want to skin and again, subclassing. Some controls get their "appearance" colors/messages from the control's container while others get it directly from the control.

    What I just described would be a professional approach. There are others that have tried using borderless forms with, ugh labels, for borders and the titlebar. Like any coding, there are various levels of quality.

    Recommend searching the this forum and other sites like PlanetSourceCode where you will find many examples of varying qualities. I once was interested in the idea too many years ago and created a project just to see how difficult it would be -- extremely. Here is that project and I'm sure is not exactly what you are looking for, but may be a starting point for you
    Last edited by LaVolpe; Jan 16th, 2010 at 11:41 AM.
    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}

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2010
    Posts
    10

    Re: How to create an ocx to skin form

    Thank you for your interest in my problem.

    I am on learning your project.

    I have used vbskinner. But i hate it. Because not only need license but it's control box(min,max,close buttons) is too small.

    I am on the development of an ocx control to use instead of vbskinner. I hope it can be posted in this forum soon. But i don't know how to skin message boxes.

    By....

  4. #4
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: How to create an ocx to skin form

    There is a commercial component for skinning... Just see this link: http://www.codejock.com/downloads/sa...nframework.asp

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

Tags for this Thread

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