|
-
Mar 27th, 2000, 10:16 PM
#1
Thread Starter
Fanatic Member
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?
-
Mar 27th, 2000, 10:20 PM
#2
Lively Member
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".
-
Mar 27th, 2000, 10:22 PM
#3
Fanatic Member
Re : LineFeed
I don't think you can do it at design time. but at run time you can use : chr(13)
Give This a go
Code:
command1.caption = chr(13) & "Hello"
Or do what matey above says, as while i was typing this he posted one. DOH!
[Edited by Iain17 on 03-28-2000 at 10:23 AM]
-
Mar 27th, 2000, 10:24 PM
#4
Frenzied Member
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
-
Mar 27th, 2000, 10:26 PM
#5
Thread Starter
Fanatic Member
Thanks chaps! Shame about the desing time thing...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|