Results 1 to 3 of 3

Thread: Word Wrap + another questions

  1. #1

    Thread Starter
    Frenzied Member SomethinCool's Avatar
    Join Date
    Jan 2001
    Location
    Malvern, PA
    Posts
    1,407

    Talking Word Wrap + another questions

    Ok..here are those questions..

    1) how would you make a text box with vertical and horizontal scroll bars use word wrap?

    2) How would you make the title of each text box Untitled and then for every new MDIwindow (like MSWord) whenever someone makes a new window it will start with Untitled to Untitled1 then Untitled2..does anyone understand that?

    3) how would you make the caption of that title bar the document file name?

    4) and how would you change the font in the text box? like bring up the font box and stuff? yeah.


    does anyone understand this? i need help badly....
    Last edited by SomethinCool; Sep 4th, 2001 at 07:44 PM.

  2. #2
    Fanatic Member Patoooey's Avatar
    Join Date
    Aug 2001
    Location
    New Jersey, USA
    Posts
    774
    Question 1 and 4) What's wrong with using a RichTextbox ?? Get the scrollbars and the fonts, wordwrap, etc. Textboxes don't support anything special with fonts.(bold, italic, etc)

    2) From VB Application Wizard.

    VB Code:
    1. ' each new MDI form
    2. Private Sub LoadNewDoc()
    3.     Static lDocumentCount As Long
    4.     Dim frmD As frmDocument
    5.     lDocumentCount = lDocumentCount + 1
    6.     Set frmD = New frmDocument
    7.     frmD.Caption = "Document " & lDocumentCount
    8.     frmD.Show
    9. End Sub

    3) When they save the file. frmD.Cation = sfilename

  3. #3
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923

    Re: Word Wrap + another questions

    Originally posted by SomethinCool
    Ok..here are those questions..

    1) how would you make a text box with vertical and horizontal scroll bars use word wrap?
    It does by default even with both scroll bars
    2) How would you make the title of each text box Untitled and then for every new MDIwindow (like MSWord) whenever someone makes a new window it will start with Untitled to Untitled1 then Untitled2..does anyone understand that?
    See your other post http://www.vbforums.com/showthread.p...hreadid=101388
    3) how would you make the caption of that title bar the document file name?
    Depends how you're loading it. There should be a string somewhere containing it because you have to use that to use the Open statement (if you are).
    4) and how would you change the font in the text box? like bring up the font box and stuff? yeah.
    Only with the RichTextBox...yeah...http://www.vbforums.com/showthread.p...hreadid=101338

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