Anyone know if VB6 can do this? With VBA you can, at design-time, press ctrl+enter and a linefeed is entered into the caption of your button. Anyone?
Printable View
Anyone know if VB6 can do this? With VBA you can, at design-time, press ctrl+enter and a linefeed is entered into the caption of your button. Anyone?
I did not get it to work at design time, but it will at run time. all you need to do is set the caption property of the command button to "TEXT" & vbcrlf & "MORE TEXT".
I don't think you can do it at design time. but at run time you can use : chr(13)
Give This a go
Or do what matey above says, as while i was typing this he posted one. DOH!Code:
command1.caption = chr(13) & "Hello"
[Edited by Iain17 on 03-28-2000 at 10:23 AM]
No I don't think so!
you can insert vbcrlf at run time though
Code:Private Sub Form_Load()
Command1.Caption = "Line1" & vbCrLf & "line2" & vbCrLf & "line3"
End Sub
Thanks chaps! Shame about the desing time thing...