Drawing

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Boo K.M.

    #1

    Drawing

    I think I have come to a problem once or twice before.
    In VB6, we have Shape to draw lines and rectangle/triangle stuffs, but how
    do we do that in VB.NET? I don't know if I missed any Toolbox there, but
    just simply couldn't find.

    Boo K.M.


  • Herfried K. Wagner [MVP]

    #2
    Re: Drawing

    "Boo K.M." <boo_k.m.NOSPAM @bkm-researcher.com> schrieb:[color=blue]
    >I think I have come to a problem once or twice before.
    > In VB6, we have Shape to draw lines and rectangle/triangle stuffs, but how
    > do we do that in VB.NET? I don't know if I missed any Toolbox there, but
    > just simply couldn't find.[/color]

    Handle the form's 'Paint' event and draw the shapes there
    ('e.Graphics.{D raw*, Fill*}').

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://classicvb.org/petition/>

    Comment

    • Frank Hileman

      #3
      Re: Drawing

      There are also commercial libraries that perform this task far better than
      the old Shape classes.

      Regards,
      Frank Hileman

      check out VG.net: http://www.vgdotnet.com
      Animated vector graphics system
      Integrated Visual Studio .NET graphics editor

      "Boo K.M." <boo_k.m.NOSPAM @bkm-researcher.com> wrote in message
      news:4354b748$1 _1@news.tm.net. my...[color=blue]
      >I think I have come to a problem once or twice before.
      > In VB6, we have Shape to draw lines and rectangle/triangle stuffs, but how
      > do we do that in VB.NET? I don't know if I missed any Toolbox there, but
      > just simply couldn't find.
      >
      > Boo K.M.
      >[/color]


      Comment

      • Boo K.M.

        #4
        Re: Drawing

        OK, thank you everyone.
        I just want to know the answer and it is enough now (library - 3rd party,
        code).
        Normally now whenever I want to draw separator (3D lines), I just use frame
        or (what's it called now?) without caption (yeah, text property, in VB.NET),
        and size it properly to have gray and white line side by side.

        Just a quick way.
        I don't think drawing with code is efficient in the first place, such as one
        I am encountering now, drawing tables in RTF document with
        code......Someb ody else please do the dirty job for me......

        Boo K.M.

        "Frank Hileman" <frankhil@no.sp amming.prodiges oftware.com> wrote in message
        news:Okh8MeL1FH A.2064@TK2MSFTN GP09.phx.gbl...[color=blue]
        > There are also commercial libraries that perform this task far better than
        > the old Shape classes.
        >
        > Regards,
        > Frank Hileman
        >
        > check out VG.net: http://www.vgdotnet.com
        > Animated vector graphics system
        > Integrated Visual Studio .NET graphics editor[/color]


        Comment

        Working...