Can't Dynamically Size RichTextBox Control??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • vanvee

    Can't Dynamically Size RichTextBox Control??

    Hi

    I have a user control that contains a RichTextBox in vb.net. In my
    program, I create multiple instances of this control (with the
    RichTextBox being in each one), that appear one above the other on a
    panel. The problem is that each control may have varying amounts of
    data, and so each RichTextBox (within each control) needs to size to
    fit the amount of text within that RichTextBox. I've tried
    multiplying the size of a single line times the number of lines in the
    RichTextBox but that doesn't seem to work. Any help would be
    fantastic!!!

    If there is any other control (other than RichTextBox) which might
    handle this better, or perhaps a third party control, I would love to
    hear about it!!!!

    Thanks SO much in advance!!
  • Rick Rothstein

    #2
    Re: Can't Dynamically Size RichTextBox Control??

    Almost everybody in this newsgroup is using VB6 or lower. While you may get
    a stray answer to VB.NET questions here, you should ask them in newsgroups
    devoted exclusively to .NET programming. Look for newsgroups with either the
    word "dotnet" or "vsnet" in their name.

    For the microsoft news server, try these newsgroups...

    microsoft.publi c.dotnet.genera l
    microsoft.publi c.dotnet.langua ges.vb
    microsoft.publi c.vsnet.general

    There are some others, but these should get you started.

    Rick - MVP



    "vanvee" <vanvee@comcast .net> wrote in message
    news:497ae3c2.0 401092033.3c1a0 943@posting.goo gle.com...[color=blue]
    > Hi
    >
    > I have a user control that contains a RichTextBox in vb.net. In my
    > program, I create multiple instances of this control (with the
    > RichTextBox being in each one), that appear one above the other on a
    > panel. The problem is that each control may have varying amounts of
    > data, and so each RichTextBox (within each control) needs to size to
    > fit the amount of text within that RichTextBox. I've tried
    > multiplying the size of a single line times the number of lines in the
    > RichTextBox but that doesn't seem to work. Any help would be
    > fantastic!!!
    >
    > If there is any other control (other than RichTextBox) which might
    > handle this better, or perhaps a third party control, I would love to
    > hear about it!!!!
    >
    > Thanks SO much in advance!![/color]


    Comment

    Working...