Seeking Textbox with "popout" for longer text - like Vis Studio 05 Project Settings

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

Still a newbie at this:

I'm trying to find a ways to get a textbox control to behave similar
to the beahvior of the control
seen in the Visual Studio IDE > Project ? [Application Name]
Properties > Settings tab.


On that page, the 'value' column is normlly displayed as a single
line. However, it is possible to click the down arrow in the cell to
pop-out a larger editor to accomodate more text.

can something like this be easily accomplished with a standard textbox
(i.e., without a grid?)? I'm far from making my own controls at this
point, and this functionaility is just the thing I need for cases
where 90% the data fits a single line, but ocassionally is much
longer.

thanks in advance

d.
 
Still a newbie at this:

I'm trying to find a ways to get a textbox control to behave similar
to the beahvior of the control
seen in the Visual Studio IDE > Project ? [Application Name]
Properties > Settings tab.

On that page, the 'value' column is normlly displayed as a single
line. However, it is possible to click the down arrow in the cell to
pop-out a larger editor to accomodate more text.

can something like this be easily accomplished with a standard textbox
(i.e., without a grid?)? I'm far from making my own controls at this
point, and this functionaility is just the thing I need for cases
where 90% the data fits a single line, but ocassionally is much
longer.

thanks in advance

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
customer control?

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.

Justin
www.immergetech.com
www.immergecomm.com
 
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.
 
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.

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!
 
Back
Top