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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Expand text box

Status
Not open for further replies.

din2005

Programmer
Mar 22, 2005
162
GB
Hi all i am using a continous form. Which shows patient data and address fields and so on. The problem i am having is that there are too many controls and it goes off screen. i.e u need a horizontal scrollbar to view other fields.

What i would like to do is if person clicks on the textbox it will expand vertically i.e can display text on 3 lines. if he click outside the control/loose focus i would like to revert back to its origional size!

Can this be done?
 
In the Click event procedure of the textbox:
SendKeys "+{F2}"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
I don't think it can be.
I am using a simple method to show all the data in the ZoomBox
here is an example
Code:
Private Sub WorkToBeDone_Click()
    DoCmd.RunCommand acCmdZoomBox
End Sub

________________________________________________________
Zameer Abdulla
Help to find Missing people
There’s a world of difference between editorials and advertorials
 
thanks guys for the replys!

Could i somehow use control tip and view like that?
 
Code:
Me.WorkToBeDone.ControlTipText = Me.WorkToBeDone.Value
not working well with continues form. Try it on different events of the control.

________________________________________________________
Zameer Abdulla
Help to find Missing people
There’s a world of difference between editorials and advertorials
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top