473,396 Members | 1,805 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problem with System.Windows.Forms.Design.FileNameEditor

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
Nov 17 '05 #1
2 3660
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

Nov 17 '05 #2
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


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mevar81 | last post by:
Hi to everybody.I have a problem with the PropertyGrid control.I want to display not all the properties of a generic Control(Button,TextBox,ComboBox,ecc.).In general I don't want to display only...
5
by: steve bull | last post by:
When adding a new user control to a panel I get the following call stack. Having put debugs everywhere I can think of I cannot get the program to break anywhere near where it is having this problem....
4
by: Arif Çimen | last post by:
Hi to everybody, I have chnged a button text in design mode. But After compiling and executing the program the text of the button do not change to new value. Any Ideas? Thaks for helps.
7
by: Sergey Poberezovskiy | last post by:
Hi, I created two base forms: frmList and frmDetail, compiled them into a dll, and then want to use in my new project. The problem: When I created new inherited form, say frmClients, I cannot...
5
by: Lance | last post by:
I want to expose properties of a class to a user via a PropertyGrid class. Some of the properties are of type System.IO.FileInfo. Ideally, an OpenFileDialog window would appear when the user...
14
by: Altman | last post by:
Ok I have a control that is inherited from another class. In the child I put msgbox(me.name) in the load event. What always pops up is the name of the parent class and not the name of the...
3
by: Geraldine Hobley | last post by:
Hello, In my project I am inheriting several forms. However when I inherit from a form and add additional subroutines and methods to my inherited form I get all sorts of problems. e.g. I sometimes...
1
by: =?Utf-8?B?RjVGNUY1?= | last post by:
I have created a control by inheriting ToolStripMenuItem that has an image property called LargeImage. ------ public class EventSubMenuItem : ToolStripMenuItem { private Image _largeImage =...
10
by: Clayton | last post by:
Hi all, I'm trying to develop a server that listens to incoming calls using the asycnhronous methods BeginAccept / EndAccept. I start the server (till this point it is ok) and few seconds later...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.