Re: Seeking Textbox with "popout" for longer text - like Vis Studio 05 Project Settings by justin
justin
Mon Apr 30 15:47:00 CDT 2007
On Apr 27, 4:59 pm, Dave <goo...@dcbarry.com> wrote:
> I'm confessing my lack of skills here.
>
> I'm rusty at best at vb6, and just a newbie to .NET, so I'm just
> getting my feet wet. Just doing proper Class programming is taking me
> a while. I'll get to speed eventually, was hoping I had missed
> something in the framework.
>
> In the meanwhile, I've tried exploring some other approaches I thought
> might be easier to implement for the time being, but still aren't. For
> example, implementing / simulating some form of autosize on a textbox
> (possibly with a min and max size), so that if I am building a form
> dynamically, I don't waste a lot of space if a lay a bunch of texboxes
> inside a flowcontrol box with a scroll bar.
>
> But if you think my control idea is interesting .... 'll withdraw my
> patent application and you can have at it! ;-)
>
> thanks
> d.
>
> > Dave:
>
> > What do you mean by "I'm far from making my own controls at this
> > point"? Are you saying you are not willing to make a custom control
> > for this functionality or that you have no problem with making a
>
> > For this particular problem, I don't think you're going to find
> > anything in the .NET Framework that already has what you need. You
> > will either have to find a third party tool or hack up your own custom
> > control. If you decide to go the custom control path and you're having
> > trouble post back here and I'll try to help out. Sounds like an
> > interesting control to make.
>
> > Good luck.
>
> > Justinwww.immergetech.comwww.immergecomm.com-Hide quoted text -
>
> > - Show quoted text -
haha, not that interested Dave. If you do decide to go the custom
control route, I would extend the Panel class and give your new class
a TextBox and a Button (or another control to act like a Button, which
is probably what I would do). On the click event of the button you
would make your TextBox.Multiline = true and change the size, then
probably the location of the button.
You would still have more functionality like un-expanding the control
and so forth, but that should be a start. If you get working and can't
finish just post back here. Good luck!