intercepting keypress

M

mevar81

Hello to everybody.I have a problem.I have a property
grid that display several properties of a object.I have a
properties that store the image but I want to display the
file name.So I have modified the editor of the image and
the typeconverter of the image.
So I have inherit from ImageConverter and from
ImageEditor. Everything work fine but when I press the
CANC button on the property of the image it doesn't
cancel the image but the name of the file.(only one
charachter each time).Anyone know how to intercept the
keypress event in my custom image editor or im my custom
image converter?
 
R

Roy Osherove

Hello to everybody.I have a problem.I have a property
grid that display several properties of a object.I have a
properties that store the image but I want to display the
file name.So I have modified the editor of the image and
the typeconverter of the image.
So I have inherit from ImageConverter and from
ImageEditor. Everything work fine but when I press the
CANC button on the property of the image it doesn't
cancel the image but the name of the file.(only one
charachter each time).Anyone know how to intercept the
keypress event in my custom image editor or im my custom
image converter?

look into Control.ProcessDialogKey()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top