A few questions


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: A few questions

  1. #1
    Join Date
    Jan 2005
    Posts
    7

    A few questions

    Hello

    I have a few questions.

    Well, my first one is how do we "copy/paste" a menu?
    I have about 31 forms and only the first one has a menu and I would like to use the same one for the 30 other forms.
    Or is there a code that I can use to make a menu and not use the menu editor?

    Well, that's the only one for now.
    I know I have others, but I can't remember them at the moment.

    Thanks in advance

  2. #2
    Join Date
    Mar 2005
    Location
    Los Angeles, Calif. AKA: Gangsta Yoda™
    Posts
    455
    To create the copy/paste menus you use the menu editor to create them and then ...
    Code:
    Private Sub mnuEditCopy_Click()
        Clipboard.Clear
        Clipboard.SetText Me.ActiveControl.SelText, vbCFText
    End Sub
    
    Private Sub mnuEditPaste_Click()
        Me.ActiveControl.Text = Clipboard.GetText(vbCFText)
    End Sub
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer code questions via PMs.
    Microsoft MVP 2006-2009
    Office Development FAQ (VBA, VB6, VB.NET, C#)
    Software Engineer MCP (VB6 & .NET)
    Reps & Rating PostsVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6Outlook Global Address List

  3. #3
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    You can open the .FRM file in Notepad and copy the menu items, then open the target .FRM file and paste them.
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  4. #4
    Join Date
    Jan 2005
    Posts
    7
    Quote Originally Posted by Phil Weber
    You can open the .FRM file in Notepad and copy the menu items, then open the target .FRM file and paste them.
    thanks, that`s what I was looking for

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center