Solved

VB 6.0 MaskEdBox 6.0 Copy/Paste with Right Mouse Button!!

Posted on 1998-11-20
6
316 Views
Last Modified: 2008-02-01
Anyone run into this before?

I have two MaskEdBoxes on a form both with the following mask ">CCCCCCCCCC".  I enter some text in the first box, highlight it using the mouse and copy it using the Right Mouse button and clicking on Copy.

I go to the second box and right click then click on paste.  The text is there but when I leave the box the text disappears.
0
Comment
Question by:tward
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 1

Expert Comment

by:csalves
ID: 1445884
Hi,


You need to set the property ClipMode = "Exclude Literals"
bye,
0
 
LVL 7

Author Comment

by:tward
ID: 1445885
Did you try your answer?  It doesn't work.
0
 
LVL 2

Expert Comment

by:KJHDI12
ID: 1445886
It's a very annoying bug (Very simular to the newest IE4 security bug).

The easyest solution would to stop the user from pasting.

Mr. Fixit
0
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 
LVL 7

Author Comment

by:tward
ID: 1445887
Not really a good answer...  Looked in the Knowledge base and couldn't find anything.  Will put it out there to see if anyone has a better answer...

How do you stop the pasting with the right mouse button anyway?  I saw this one time but can't remember the control or the property I was dealing with.

Another note is that if I do the copy/cut/paste using the Ctrl-V,C,X or Shift-Ins then it works just fine!!
0
 
LVL 13

Accepted Solution

by:
Mirkwood earned 100 total points
ID: 1445888
Dim m_inchange As Boolean
Private Sub MaskEdBox2_Change()
    If Not m_inchange Then
        m_inchange = True
        On Error Resume Next
        MaskEdBox2.Text = MaskEdBox2.Text
        m_inchange = False
    End If
End Sub
0
 
LVL 7

Author Comment

by:tward
ID: 1445889
Crazy to have to do things like that but it does work!

Thanks...
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question