Results 1 to 4 of 4

Thread: Problem maker =)

  1. #1
    Guest
    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

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  3. #3
    Guest
    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

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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
  •  



Click Here to Expand Forum to Full Width