|
-
Sep 18th, 2000, 12:04 PM
#1
Hi!
I'm back again, but this time I'm going to write all my questions at once:
1) I have a few pixels between the Rich Text Box and the borders of the form, but when I run the program and I resize the form my Rich Text Box doesn't get resized. How do I fix that?
2) How do I Save files with my own extension?
3) How do I Open files with my own extension?
And by the way: Thanks to all of you who helped me. Hopefully, soon I will be answering questions =)
/ Erik
-
Sep 18th, 2000, 12:32 PM
#2
Monday Morning Lunatic
1. In your Form_Resize event, simply resize the RichTextBox.
2&3. This isn't a problem - just open and save the files as myfile.ext or whatever. If you mean using the CommonDialog control, set your filter to this or similar:
Code:
cdlg.Filter = "MyProg Files (*.ext)|*.ext|All Files (*.*)|*.*|"
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Sep 18th, 2000, 01:57 PM
#3
Hi!
I'm sure that works, but I have no clue what you are talking about. For example, how do I resize the Rich Text Box and what the **** is filters? As you hear I'm like the newest guy in the world..
/ Erik
-
Sep 18th, 2000, 02:01 PM
#4
Monday Morning Lunatic
Use
Code:
RichTextBox1.Move 0,0,Me.Width,Me.Height
to resize the RTB.
For the common dialogues, the Filter is what it uses to decide on file names. For example, open Notepad and go File->Open. The filter is what you have in the File Type combo box.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
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
|