Results 1 to 3 of 3

Thread: [RESOLVED] [2005] User-drawn Form Titlebar?

  1. #1

    Thread Starter
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Resolved [RESOLVED] [2005] User-drawn Form Titlebar?

    I've recently delved into the world of overriding the rendering events for menus and toolbars and such.... now, I need (want) to override how the titlebar of the form is done.... specifiaclly, regardless of what theme the user has, I want the title to look a specific way.

    I've been working with a mock up for the app I'm working on and I realized that the title bar looks stoopid with the design I've got and I want something that will compliment the form.

    As an alternative, I can get rid of the title bar, and make my own directly on the form, but then I lose the ability to move the form around (although if there's a solution to this, I'll take that too.)

    All I really want to do is to paint the title bar a specific color. Otherwise, it's just a standard titlebar.

    help?

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] User-drawn Form Titlebar?

    The title bar of the form is part of the non-client area of the form so it is outside .NET. If you want to change its appearance then it would definitely require APIs and I wouldn't have a clue which. There are numerous threads on the forum about drag and drop for a form with no title bar or border. It's would be a little tedious but it's just drag and drop like any other.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: [2005] User-drawn Form Titlebar?

    That's what I had suspected. I've decided that it's not worth the effort at this point (for v.01) and so have scrapped the idea (at least for now, will revisit later).

    Thanks

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

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