I have a StatusBarPanel set to OwnerDraw, and I've overriden DrawItem, but I
can't seem to figure out how to draw another control (a TextBox in this
case) within the StatusBarPanel. I've run across several progress bar
examples, but they tend to draw rectangles rather than an actual control. I
figure there's some way to connect the Graphics object to a TextBox, but I
can seem to figure out how.

Re: Drawing a control within a StatusBarPanel by hirf-spam-me-here

hirf-spam-me-here
Sat Oct 11 18:51:52 CDT 2003

* "Keith Patrick" <richard_keith_patrick@nospamhotmail.com> scripsit:
> I have a StatusBarPanel set to OwnerDraw, and I've overriden DrawItem, but I
> can't seem to figure out how to draw another control (a TextBox in this
> case) within the StatusBarPanel. I've run across several progress bar
> examples, but they tend to draw rectangles rather than an actual control. I
> figure there's some way to connect the Graphics object to a TextBox, but I
> can seem to figure out how.

I would add a real TextBox control to the panel instead of drawing it.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Re: Drawing a control within a StatusBarPanel by Keith

Keith
Sat Oct 11 21:57:34 CDT 2003

Unfortunately, it isn't a container, so it cannot have child components.

"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:u4rF%23LFkDHA.3732@tk2msftngp13.phx.gbl...
> * "Keith Patrick" <richard_keith_patrick@nospamhotmail.com> scripsit:
> > I have a StatusBarPanel set to OwnerDraw, and I've overriden DrawItem,
but I
> > can't seem to figure out how to draw another control (a TextBox in this
> > case) within the StatusBarPanel. I've run across several progress bar
> > examples, but they tend to draw rectangles rather than an actual
control. I
> > figure there's some way to connect the Graphics object to a TextBox, but
I
> > can seem to figure out how.
>
> I would add a real TextBox control to the panel instead of drawing it.
>
> --
> Herfried K. Wagner
> MVP · VB Classic, VB.NET
> <http://www.mvps.org/dotnet>