In fact, the problem is :
I assign an object on the property grid, I click on the button to select a
file the method InitializeDialog is called
If I click again on this button the method InitializeDialog isn't called.
It's the same if I change the selected objet of the propertyGrid (when I
click, the method InitializeDialog isn't called)
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> a
écrit dans le message de news:Or*************@TK2MSFTNGP15.phx.gbl...
hi,
it's not clear what you want , you can pass those parameters in the
constructor and then use then inside the method:
string var;
public MyConstructor( string param1 )
{
this.var = param1;
}
protected override InitializeDialog( ... )
{
this.SomeProperty = var;
}
hth
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Polo" <pb@rtech.be> wrote in message
news:uL**************@TK2MSFTNGP09.phx.gbl... Hi,
I have a class CustomFileNameEditor that inherits from FileNameEditor
I override the method "InitializeDialog" to customize the filter
property When I run the application this method is called only one time.
The problem is that the filter property can be change for each instance
of the class that has the CustomFileNameEditor