dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: horizontal line

  1. #1
    Join Date
    Mar 2007
    Posts
    375

    horizontal line

    How can i add a horizontal line to a dialog box? like in html <hr>

    I've seen this in many dialog boxes, but i dont know how i do it
    Please vote the posts you find usefull.

    ---

    I'm back
    Bigger and badder
    Better and bolder
    Explaining stuff -
    With an improved vocabulary!

  2. #2
    Join Date
    Jul 2002
    Location
    Portsmouth. United Kingdom
    Posts
    2,727

    Re: horizontal line

    The trick I use in Visual C++ is to add a picture control with the dialog editor, drag the height until it looks like a single line and set 'Static edge' to 'True'.
    Don't know if this is true in C#

  3. #3
    Join Date
    Mar 2007
    Posts
    375

    Re: horizontal line

    I got this result, and i aint too happy with it ^^'

    Isnt it a way i can make lines just like the likes in the groupbox around it?
    Attached Images Attached Images  
    Please vote the posts you find usefull.

    ---

    I'm back
    Bigger and badder
    Better and bolder
    Explaining stuff -
    With an improved vocabulary!

  4. #4
    Join Date
    Jul 2002
    Location
    Portsmouth. United Kingdom
    Posts
    2,727

    Re: horizontal line

    I get this... (see attached)
    Attached Images Attached Images  

  5. #5
    Join Date
    Jul 2002
    Location
    Portsmouth. United Kingdom
    Posts
    2,727

    Re: horizontal line

    This is the control I used.
    Attached Images Attached Images  

  6. #6
    Join Date
    Mar 2004
    Location
    3311'18.10"N 9645'20.28"W
    Posts
    1,808

    Re: horizontal line

    http://sanity-free.org/18/simple_line_control.html

    create a new class, paste that code in, compile, open your form in design mode, drag the line control from your toolbox onto your form and you're set.

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)