intercepting keypress

  • Thread starter Thread starter mevar81
  • Start date Start date
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?
 
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()
 
Back
Top