Am 21.06.2010 00:04, schrieb Mr. X.:
Great.
Now I just have to check this.
(Where did you find that documentation ? I want to search this code
either).
How can I check this (checking the public and attribute. Is my code
correct
?)
"Remarks" section, 5th paragraph:
http://msdn.microsoft.com/en-us/library/system.windows.forms.propertygrid(VS.90).aspx
Still there are some problems.
Specifically for panel, the properties: UseWaitCursor, autoSize,
autoSizeMode have the attribute : browsableAttribute, and are shown on
design time.
My fault. I did not code what I said.
Only checking whether the
BrowsableAttribute
is not attached is not sufficient. The property is also included if the
attribute's
Browsable is True:
If atts.Length = 0 _
OrElse DirectCast(atts(0),
System.ComponentModel.BrowsableAttribute).Browsable Then
Debug.Print(prop.Name)
End If
This results in 37 properties.
Also there are extra properties, that logically are considered : Site,
displayRectangle.
[...]
msgBox ("k = " & k) ' now k = 34, where it should be
35
If 35 + 2 (Site + displayRectangle) = 37 = correct then it should be the
right result now.