Mex,
Well, you can subclass the ComboBox and handle the WM_PASTE message in
your overriden WndProc method. However, I would say that you shouldn't do
this.
Rather, when information is pasted, figure out if it is a number, and if
it is, allow the paste. If not, then don't change the contents.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Redivivus" <me***********@deltmar.eewrote in message
news:uS**************@TK2MSFTNGP02.phx.gbl...
Hi
How can i disable Paste on ComboBox?
ComboBox DropDownStyle is DropDown.
ComboBox must accept only numbers.
I know how to handle keypress event to accept only digits, but how to
disable paste?
Best regards;
Mex