Results 1 to 2 of 2

Thread: Block the print defeat in textbox

  1. #1
    Garcíarobine is offline Senior Member
    Join Date
    Dec 2009
    Posts
    334
    Rep Power
    3

    Default Block the print defeat in textbox

    I am learning VB programming language. I am working on one love project. My requirement is that I don't want to permit anyone to enter in my text box to make copying and pasting. But I do not know how to do that because I am new in programming word.

  2. #2
    RodríguezBrown is offline Senior Member
    Join Date
    Dec 2009
    Posts
    322
    Rep Power
    3

    Default

    Try to understand following rules which is given below. It will decipher your problem:

    Code:
    Private Sub txtPassw_KeyDown(KeyCode As Integer, Shift As Integer)
    If Shift = vbCtrlMask And (Chr(KeyCode) = "v" Or Chr(KeyCode) = "V") Then
    Txt_Password.Locked = True
    Else
    Txt_Password.Locked = False
    End If
    End Sub
    Private Sub txt_Password_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    If Button = vbRightButton Then
    Txt_Password.Locked = True
    Else
    Txt_Password.Locked = False
    End If
    End Sub

Similar Threads

  1. Install defeat 3 map on Mac
    By CarterBaker in forum Gaming Accessories
    Replies: 2
    Last Post: 06-26-2010, 12:17 PM
  2. Progress Bar in Textbox
    By jamescraft in forum Programming
    Replies: 1
    Last Post: 03-03-2010, 11:39 AM
  3. Textbox validation in ASP.NET
    By ThomasBarnes in forum Programming
    Replies: 1
    Last Post: 02-17-2010, 05:28 PM
  4. Replies: 1
    Last Post: 01-25-2010, 04:16 PM
  5. Firefox 3.5 Release May Accelerate IE's defeat
    By Alec Stewart in forum Latest Hardware News
    Replies: 0
    Last Post: 06-23-2009, 09:46 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48