Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Including a text box on a toolbar

Status
Not open for further replies.

CraigBest

Programmer
Aug 1, 2001
545
0
0
US
In VB6 I was able to set a text box into a toolbar, which I used as an indicator (flashed) when new task list items were found.

I'm working on upgrading the all to .NET and the upgrade wizard did not cover the Toolbar (or ImageList) controls. I am now trying to replace them with the equivalent .NET controls, but I can't seem to figure out how to tell the toolbar to host this text box the way I did under VB6.

Can anyone help me with this? Did I miss something in the methods and properties of the toolbar?

THanks in advance

Craig in NJ
 
Create a new textbox and add it to the controls collection of the toolbar

For example:

dim txt as new textbox
txt.text="my textbox"
txt.left=48
txt.top=4
me.toolbar1.controls.add(txt)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top