Visual Studio Development Bookmark and Share   
 index > Visual Studio Extensibility > Focus problems when adding a new property on a DSL diagram
 

Focus problems when adding a new property on a DSL diagram

Whenever I add a new property to an object using the (automatically populated context menu) the property is added, but instead of the new property getting the focus another existing property gains focus.

I am not attempting to set the focus anywhere currently and since the context menu is automatically populated this appears to be "out of the box" behaviour. I'd appreciate any help in finding a way to set the focus to the newly added property.

Thanks
Mark
Mark Ritchie  Wednesday, September 16, 2009 12:44 PM
Hi Mark,

Sorry for the delay.

Based on my tested, whenever I add a new property to an object by automatically populated context menu, the new property will get the focus, but not the existing property gains focus, I don't know why you get the opposite way. I would suggest you try to create a new DSL project, and test it again. Please let me know the result.

If I misunderstood you, or you have any questions, please let me know.

Best Regards,
Nancy
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Nancy Shao  Monday, September 21, 2009 2:32 PM
I'm still getting this behaviour, is there a way to manually set the focus to a property and enable the in place editing of the name?
Mark Ritchie  Thursday, October 15, 2009 7:53 AM
Hi Mark,

It's odd. Have you changed some thing ? or have you tried to create a new DSL project and get the same issue? I have not found any place to modify this kind setting. If you're really care about this issue, I would suggest you try to repair your Visual Studio.

Best Regards,
Nancy
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Nancy Shao  Thursday, October 15, 2009 8:45 AM
Hi Nancy,

I'm just using the context menus that are automatically created to add the properties so its nothing I've explicitly done. I don't think its my VisualStudio instance either as another colleague has the exact same problem when he runs the code.

Cheers
Mark
Mark Ritchie  Friday, October 16, 2009 7:38 AM

You can use google to search for other answers

Custom Search

More Threads

• Getting the splash screen to work in the 2008 SDK.
• How to subscribing the event after / before CustomTool generate code to ProjectItem?
• add new item
• AuthoringSink and AuthoringScope difference
• somewhere, path is getting doubled, causing a System.IO.PathTooLongException on VS shutdown
• How to Force the IDE Appdomain to recreate itself for a Web project
• DTE2.OpenFile(string FileName, string ViewKind(????))
• VSCT compiler (VSSDK 2008 1.0)
• How to localization IDE menu text in .VSCT(.CTC) file?
• ToolBoxItems.Add does nothing