Results 1 to 6 of 6

Thread: is it notepad?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2009
    Posts
    492

    is it notepad?

    I have problem

    My Step:

    Start> Programs > VB
    Select VB app.Wiz.
    next
    select MDI
    rpt.7 next
    done

    When Start Run )Ctrl+F5_

    I can see that Windows "Document 1"

    what is that, is simple notepad ?

    Please!

  2. #2
    Frenzied Member
    Join Date
    Mar 2009
    Posts
    1,182

    Re: is it notepad?

    Yes, but it still needs a whole lot of code to work properly...



    Good Luck
    Option Explicit should not be an Option!

  3. #3
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: is it notepad?

    i guess it is a richtextbox on a child form, it could be used to make your own notepad or other editor type program
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2009
    Posts
    492

    Re: is it notepad?

    Code:
    My Step:
    
    Start> Programs > VB
    Select VB app.Wiz.
    next
    select MDI
    rpt.7 next
    done
    
    In "frmDocument.frm"
    that "rtfText" deleted
    insert "Text1" object
        Text1.MultiLine "True"
        Text1.ScrollBars "Both"

    Problem Is where can found some information To: selText

    Ctrl+A
    Ctrl+C
    Ctrl+V

    any example
    Please!

  5. #5
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: is it notepad?

    Search this forum... You will find lots of examples....

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2009
    Posts
    492

    Re: is it notepad?

    :ALL EDIT:
    yes, I found solution Ctrl +A,C,V.

    Now, I have problem, how to say: goodbye (child_form.caption) ?



    my step:
    File>New
    show windows; "mydoc1"
    File>New
    show windows; "mydoc2"
    File>New
    show windows; "mydoc3"



    Code:
    'frmMain.frm
    Private Sub MDIForm_Unload(Cancel As Integer)
    
    '//how to goodbye Each.caption ?
    
    Dim objForm As frmDocument
    
      For Each objForm In Forms
         msgbox "goodbye" & objForm.Caption
    
    'msgbox "goodbye mydoc1"
    'msgbox "goodbye mydoc2"
    'msgbox "goodbye mydoc3"
         
      Next objForm
    
    
    
    End Sub
    
    
    Private Sub LoadNewDoc()
        Static lDocumentCount As Long
        Dim frmD As frmDocument
        lDocumentCount = lDocumentCount + 1
        Set frmD = New frmDocument
        frmD.Caption = "mydoc" & lDocumentCount
        frmD.Show
        
            
        
    End Sub
    Last edited by rpool; Mar 10th, 2010 at 11:23 PM.

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