Click here to Skip to main content
15,896,269 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Everyone
I am trying to set a multiline caption for a Grid. But the second line of caption is not visible. I tried the following line of code. But it shows only "Multi-Line"
Any help is highly appreciated Thanks in advance.
VB
TDBGrid1.Caption = "Multi-line" & vbCrLf & "Text"
Posted
Comments
[no name] 15-Sep-11 3:01am    
What you want achieve from this

1 solution

Have you made the caption tall enough to show two lines? If not, stretch it out in the designer until it is tall enough, or programmatically increase the height by setting the .Height property to a large enough value to show the number of lines of text you need to display.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900