D
Derek Hart
I need a fast way to compare strings. I have a custom designer where users
move around controls on screen, and the Microsoft property grid fills with
the properties when each control is selected, just like in Visual Studio.
After the grid is filled, I then run code to hide properties that I do not
want to be visible. I know I can do this before the grid is built, but that
will not work here. It has to happen after the grid is built.
I will have an array, or an xml file, or some type of way of storing
information such as Font.Bold or MaximumSize.Height, for example. I will
have about 1000 of these items. After the property grid is filled, I will
then loop through the grid, hiding properties that are in this list of 1000
items. Every property in the grid will be looped, and each time I need to
see if the property exists in the list of 1000 items. This is easy to do in
different ways, but I need a speedy way. Any ideas?
I could even store the 1000 items as one big string, and use IndexOf to see
if the string is there. Help...
move around controls on screen, and the Microsoft property grid fills with
the properties when each control is selected, just like in Visual Studio.
After the grid is filled, I then run code to hide properties that I do not
want to be visible. I know I can do this before the grid is built, but that
will not work here. It has to happen after the grid is built.
I will have an array, or an xml file, or some type of way of storing
information such as Font.Bold or MaximumSize.Height, for example. I will
have about 1000 of these items. After the property grid is filled, I will
then loop through the grid, hiding properties that are in this list of 1000
items. Every property in the grid will be looped, and each time I need to
see if the property exists in the list of 1000 items. This is easy to do in
different ways, but I need a speedy way. Any ideas?
I could even store the 1000 items as one big string, and use IndexOf to see
if the string is there. Help...