Hi guys...
I am using a text box in vb6 application and I have applied validations on it such that it will only accept Numeric data through keyboard.
But the problem is when I try to paste some special characters in it through Mouse Right Click, it gets pasted from clip board.
It happens because I have applied validations on Keypress event.
Let me tell u that CTRL+V (paste through keyboard is also disabled).
Now what I want is either I should trap the Mouse right click event and check if "Paste" option is selected, if it is true then I can use "isnumeric(Clip board.GetText() )" and read data from clipboard and prompt a message that non numeric data present on clip board.
If button = vbRightclick then
I am using a text box in vb6 application and I have applied validations on it such that it will only accept Numeric data through keyboard.
But the problem is when I try to paste some special characters in it through Mouse Right Click, it gets pasted from clip board.
It happens because I have applied validations on Keypress event.
Let me tell u that CTRL+V (paste through keyboard is also disabled).
Now what I want is either I should trap the Mouse right click event and check if "Paste" option is selected, if it is true then I can use "isnumeric(Clip board.GetText() )" and read data from clipboard and prompt a message that non numeric data present on clip board.
If button = vbRightclick then
Comment