Click here to Skip to main content
15,914,109 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: PropertyGrid control slow to load because it automatically "reflects" on all controls in current application ? Pin
BillWoodruff17-Jun-09 5:07
professionalBillWoodruff17-Jun-09 5:07 
GeneralRe: PropertyGrid control slow to load because it automatically "reflects" on all controls in current application ? Pin
led mike17-Jun-09 5:48
led mike17-Jun-09 5:48 
GeneralRe: PropertyGrid control slow to load because it automatically "reflects" on all controls in current application ? Pin
BillWoodruff17-Jun-09 6:02
professionalBillWoodruff17-Jun-09 6:02 
GeneralRe: PropertyGrid control slow to load because it automatically "reflects" on all controls in current application ? Pin
DaveyM6917-Jun-09 6:11
professionalDaveyM6917-Jun-09 6:11 
GeneralRe: PropertyGrid control slow to load because it automatically "reflects" on all controls in current application ? Pin
led mike17-Jun-09 6:20
led mike17-Jun-09 6:20 
Generalto Led Mike and DaveyM69 : Re: PropertyGrid control slow to load because it automatically "reflects" on all controls in current application ? Pin
BillWoodruff17-Jun-09 11:06
professionalBillWoodruff17-Jun-09 11:06 
GeneralRe: to Led Mike and DaveyM69 : Re: PropertyGrid control slow to load because it automatically "reflects" on all controls in current application ? Pin
Scott Dorman17-Jun-09 12:57
professionalScott Dorman17-Jun-09 12:57 
GeneralRe: to Led Mike and DaveyM69 : Re: PropertyGrid control slow to load because it automatically "reflects" on all controls in current application ? Pin
BillWoodruff17-Jun-09 19:54
professionalBillWoodruff17-Jun-09 19:54 
Hi Scott,

Thanks for taking the time to reply !

Scott Dorman wrote:
to be more certain you should test the same solution in VS2008 as well.


As I mentioned in a previous post, right now my machine with VS2008 is "down."

Scott Dorman wrote:
Based on your other posts, it sounds like you are creating an application containing a property grid and, at runtime, displaying the public properties of a given UI element in the property grid.


Not exactly : there is an application with a kind of "virtual property grid" (using a TableLayoutPanel which can have one and one-only control per "virtual cell"). The PropertyGrid is used only to show, and allow editing of, the TableLayoutPanel itself, and any selected control within one of its "virtual cells." I say "virtual cells" because as you probably know the TableLayoutPanel exposes only Row and Column collections, not "cells."

Scott Dorman wrote:
if the object implements ICustomTypeDescriptor and provides an implemenation of GetProperties() to return the "public" properties that are available.


Very timely : I have just been studying the example in Matthew McDonald's Pro Win Forms 2.0 book where he demonstrates using ICustomTypeDescriptor to edit the properties which will appear in the PG.

Scott Dorman wrote:
Instantiating the property grid at "run-time rather than at design-time" will make absolutely no difference in it's behavior. Likewise, having the property grid in a dialog or on the main form will also have no difference.


Exactly the reason why this anomaly confounds me Smile | :)

Scott Dorman wrote:
I'm interested to know if you are doing this purely as a test project or actually have real-world scenario you are trying to solve with this implementation.


Both.

This is a one-off non-public little application whose job is to produce a translation into a subset of HTML (required as input for a 3rd. party control) of a Table of controls and content. It is much easier for me to build a "mock table" at design-time taking full advantage of the ability to set Dock and Anchor properties of controls and content within a "virtual cell" of a TableLayoutPanel, and then parse that into the required subset of HTML, than it is to "switch my head" into HTML and generate a complex table in which the values of many properties will have to be escape-quoted.

It's also typical of the way I study programming in that I pose problems to myself which require me to get hands-on with controls like the PropertyGrid and TableLayoutPanel, and write small, hopefully re-usable, utilities.

best, Bill

"Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844

QuestionHow to hook up a VScrollBar to a control? Pin
Alan Burkhart16-Jun-09 19:00
Alan Burkhart16-Jun-09 19:00 
AnswerRe: How to hook up a VScrollBar to a control? Pin
Eslam Afifi17-Jun-09 1:03
Eslam Afifi17-Jun-09 1:03 
Questionget Operating System name using c# Pin
myms.net15-Jun-09 21:17
myms.net15-Jun-09 21:17 
AnswerRe: get Operating System name using c# Pin
Luc Pattyn15-Jun-09 23:06
sitebuilderLuc Pattyn15-Jun-09 23:06 
AnswerRe: get Operating System name using c# Pin
dan!sh 17-Jun-09 2:56
professional dan!sh 17-Jun-09 2:56 
AnswerRe: get Operating System name using c# Pin
DaveyM6917-Jun-09 5:26
professionalDaveyM6917-Jun-09 5:26 
GeneralRe: get Operating System name using c# Pin
dan!sh 18-Jun-09 6:04
professional dan!sh 18-Jun-09 6:04 
QuestionDefault TitleBar move behavior of a Form set as a child of another Form odd ? Pin
BillWoodruff15-Jun-09 20:39
professionalBillWoodruff15-Jun-09 20:39 
Questionmail body have to display in multiple lines Pin
myms.net15-Jun-09 2:07
myms.net15-Jun-09 2:07 
AnswerRe: mail body have to display in multiple lines Pin
Dave Kreskowiak15-Jun-09 3:57
mveDave Kreskowiak15-Jun-09 3:57 
Questionhow to add multiple envelopes in word doc Pin
srimail0915-Jun-09 0:51
srimail0915-Jun-09 0:51 
QuestionContainer control inside a UserControl Pin
Bashir Magomedov14-Jun-09 22:35
Bashir Magomedov14-Jun-09 22:35 
AnswerRe: Container control inside a UserControl Pin
Bashir Magomedov14-Jun-09 22:57
Bashir Magomedov14-Jun-09 22:57 
QuestionArabic printing with "?" mark Pin
Ahamed Azeem13-Jun-09 20:35
Ahamed Azeem13-Jun-09 20:35 
AnswerRe: Arabic printing with "?" mark Pin
Mycroft Holmes14-Jun-09 19:05
professionalMycroft Holmes14-Jun-09 19:05 
GeneralRe: Arabic printing with "?" mark Pin
Ahamed Azeem14-Jun-09 20:58
Ahamed Azeem14-Jun-09 20:58 
Question[Solved partially work-around found]] VS 2010 Panel with AutoScroll=true : Horizontal Scrollbar does not appear [modified] Pin
BillWoodruff13-Jun-09 2:02
professionalBillWoodruff13-Jun-09 2:02 

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.