|
-
Nov 15th, 1999, 11:06 PM
#1
Thread Starter
Hyperactive Member
Can a command button caption have multiple lines?
I am trying to read in a text file or a rich text file at run time and assign the text to a text box and a command button. If the user clicks the text box its visible property becomes false and the command button becomes visible.(these two items cover the exact same space) This is giving me a selected unselected state. The command button has a different look then the rich text box. I would like to be able for them both to have the same text. Is this possible? I do not need rich text I just used the rich text box to start with.
thank you for your time and have a good day
-
Nov 15th, 1999, 11:15 PM
#2
Addicted Member
Hi
I am not quite shure what you want but heres what you can do:
Command1.Caption = "line 1" & vbCrLf & "line 2"
Also by the way the Microsoft RichText control supports loading a file directly into the control. IE richtextbox1.LoadFile "myfile.txt".
Geoff
-
Nov 15th, 1999, 11:30 PM
#3
Hyperactive Member
It is possible to have multiple lines on a command button:
Code:
Command1.Caption = "line" & vbCrLf & "another line"
-
Nov 15th, 1999, 11:44 PM
#4
Just assign the Text property of the RichTextBox to the Caption of the command button.
Command1.Caption = RichText1.Text
Regards,
------------------
Serge
Software Developer
[email protected]
[email protected]
ICQ#: 51055819
-
Nov 15th, 1999, 11:47 PM
#5
Thread Starter
Hyperactive Member
-
Nov 16th, 1999, 03:50 PM
#6
Addicted Member
You can use the 'toggle button' from
component 'Microsoft Forms 2.0 Object Library'
HTH
-
Nov 16th, 1999, 06:46 PM
#7
Instead of a toggle button you can use an option/chackbox with its style set to graphical.
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
|