Click here to Skip to main content
15,909,829 members
Home / Discussions / C#
   

C#

 
GeneralRe: Windows Forms Pin
Alvaro Mendez29-Oct-04 5:17
Alvaro Mendez29-Oct-04 5:17 
GeneralRe: Windows Forms Pin
Looney Tunezez29-Oct-04 9:22
Looney Tunezez29-Oct-04 9:22 
Generaldesign time problems... Pin
sianatia29-Oct-04 2:03
sianatia29-Oct-04 2:03 
GeneralRe: design time problems... Pin
LongRange.Shooter29-Oct-04 2:57
LongRange.Shooter29-Oct-04 2:57 
GeneralRe: design time problems... Pin
sianatia30-Oct-04 7:07
sianatia30-Oct-04 7:07 
GeneralRe: design time problems... Pin
LongRange.Shooter1-Nov-04 2:05
LongRange.Shooter1-Nov-04 2:05 
GeneralRe: design time problems... Pin
sianatia2-Nov-04 5:58
sianatia2-Nov-04 5:58 
GeneralRe: design time problems... Pin
LongRange.Shooter2-Nov-04 6:27
LongRange.Shooter2-Nov-04 6:27 
There are one of two approaches you can take.
1- you need to know that an add/delete/change has occured within the collection. So you could write your own CollectionEditor which inherits from the ComponentModel.CollectionEditor (I think it is located there)

You need to check your methods available for override. I believe there is a method that the propertygrid calls into to validate a change. You need to intercept that call, identify the operation (add/change/del) then write out (or delete) the source code.

2- the other approach is to write your entire CollectionEditor yourself. Not a pretty sight.

Once you do that you need to overcome problem #2. How to gain access (addressability) to the current source document. I cannot help you there. You may have to do some searching on MSDN or try posting a question to GotDotNet and hope a developer sees your post.

I spent a year and a half in the bowls of PropertyGrid objects. Very complex stuff --- but boy do you get a hell of alot of power out of it. I am now known by my developers as the Voodoo Doctor because of the loosly bound objects that appear to easily flow together. Roll eyes | :rolleyes:

The problem you face is that the editors run in a vaccuum without too much knowledge of their environment unless it is available via Static methods. You may even have to delve into VSIP(?) which is the program/packages for accessing Visual Studio from Microsoft. I suspect you won't get far accessing a C# module without it!

There are 10 kinds of people in the world.

Those that read binary...

...and those who don't.

GeneralRe: design time problems... Pin
LongRange.Shooter2-Nov-04 6:31
LongRange.Shooter2-Nov-04 6:31 
Generalrunning windows application from Command prompt Pin
vchalla29-Oct-04 1:27
vchalla29-Oct-04 1:27 
GeneralRe: running windows application from Command prompt Pin
mrlou8829-Oct-04 4:04
mrlou8829-Oct-04 4:04 
GeneralRe: running windows application from Command prompt Pin
Anonymous30-Oct-04 2:55
Anonymous30-Oct-04 2:55 
GeneralMDI app and hosted controls Pin
ewan29-Oct-04 1:24
ewan29-Oct-04 1:24 
GeneralRe: MDI app and hosted controls Pin
LongRange.Shooter29-Oct-04 2:50
LongRange.Shooter29-Oct-04 2:50 
GeneralRe: MDI app and hosted controls Pin
ewan29-Oct-04 3:49
ewan29-Oct-04 3:49 
GeneralRe: MDI app and hosted controls Pin
LongRange.Shooter29-Oct-04 6:42
LongRange.Shooter29-Oct-04 6:42 
GeneralRe: MDI app and hosted controls Pin
Dave Kreskowiak29-Oct-04 5:05
mveDave Kreskowiak29-Oct-04 5:05 
GeneralGetting properties of a MS Word file Pin
Weckmann29-Oct-04 1:09
Weckmann29-Oct-04 1:09 
GeneralSize assignment to a control Pin
eDip29-Oct-04 0:07
eDip29-Oct-04 0:07 
GeneralRe: Size assignment to a control Pin
Stanciu Vlad29-Oct-04 4:49
Stanciu Vlad29-Oct-04 4:49 
GeneralRe: Size assignment to a control Pin
Dave Kreskowiak29-Oct-04 4:54
mveDave Kreskowiak29-Oct-04 4:54 
GeneralRe: Size assignment to a control Pin
Ketty Avashia29-Oct-04 9:45
Ketty Avashia29-Oct-04 9:45 
GeneralPrint RichTextBox Docs... Pin
Zamolxes28-Oct-04 23:56
Zamolxes28-Oct-04 23:56 
GeneralRe: Print RichTextBox Docs... Pin
sreejith ss nair29-Oct-04 4:44
sreejith ss nair29-Oct-04 4:44 
GeneralRe: Print RichTextBox Docs... Pin
Dave Kreskowiak29-Oct-04 4:49
mveDave Kreskowiak29-Oct-04 4:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.