Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Property grid control type and control pattern
 

Property grid control type and control pattern

Hi,

I have to automate PropertyGrid control using C#.net and System.windows.automation library

I am able to get "PropertyGrid" as AutomationElement taking ControlType.Pane from Property Window.

even I am able toget "Properties Window"as AutomationElement taking ControlType.Table

I am not able to take the value of "Properties Window" having ControlType.Table and also not able to insert values in textbox of property grid control.

Actaully Property Grid is not present as control type and there is no suppoerted patternsin System.windows.automation library




I have to select text within Property window and insert value for that text.

Please help me in this case.

Dilip Shrivastava  Monday, June 15, 2009 10:08 AM
Hi Dilip,

Could you please tell me the project type of your application, such as Windows Forms Application or WPF Application?

Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Wednesday, June 17, 2009 2:38 AM

Hi Dilip,

If your project is of type Windows Forms Application, the
PropertyGrid control doesn't have complete support for UI Automation. You can get more details from
http://msdn.microsoft.com/en-us/library/ms744822.aspx.

Aland Li


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Wednesday, June 17, 2009 2:46 AM

You can use google to search for other answers

Custom Search

More Threads

• toolstrip and toolstripcontainer dragging
• Can you get to the open project or solution files while in a Designer in Design mode
• New designers for existing controls.
• ControlPaint.DrawCaptionButton
• VS2008 move controls outside visible area
• how to set the custom scrollbars appearance like Autosroll .
• Cannot Make Changes to Forms via Designer: "Error HRESULT E_FAIL has been returned from a call to a COM component."
• Accessing Resources
• Can no longer add tab pages
• Tab order in complex windows form