I'm trying to edit an XAML style as suggested in this comment, following MSDN - but the MSDN tutorial says "To create a style, select the object, and then in the Object menu, choose Edit Style" and I can't find an object menu. The objects and timeline tab does not include an option for "edit style", and there is no "object" menu at the top of the screen.
This must be simple if you know this stuff. But I can't find it.
That MSDN article is a bit outdated. To edit a style (assuming you are using Visual Studio 2013/2015 or Blend for Visual Studio 2013/2015), select the object in the XAML designer, then use Format menu -> Edit style...
Related
When I click on an element in Visual Studio's XAML designer, VS adds a faint highlight to the corresponding XAML statement in the XAML text editor (as seen for StackPanel below). What's this highlight called in Visual Studio's Fonts and Colors customization settings? I want to change it but it's hiding itself well.
It should be Tools->Options->Fonts and Colors->Text Editor->Brace Matching (Rectangle).
So that's technically the correct answer to my question because it does indeed work when I click in the XAML editor. But unfortunately it's revealed a misunderstanding in my question. What I'm actually looking for is the color setting name for the highlight when I click on an element in the XAML designer, which then highlights the XAML statement as seen in the screenshot above.
Try Tools->Options->Fonts and Colors->Text Editor->Inactive Selected Text then.
Could help me to make my menu looks like the following example:
Menu ▼
Submenu1 ►
Submenu
Submenu2 ►
Submenu
I'm using the Menu Editor , but I get show down arrow symbol,also use Visual Basic 6.0.
Thanks...
A quick Google of "how to use the vb6 menu editor" returned plenty of good sites and videos that explain.
Here is the Microsoft site explaining using the editor
This menu is with a extra "component" of vb6.
It is "Sheridan Activetoolbars Plus 2.0"
Thanks for u atenction.
I am making a few quick small applications and using the Visual Studio Dialog editor to speed things up and keep it simple. I cannot see a way to add tooltips to the controls from the visual editor. Is it easily possible?
Thanks
Allan
I found the following on MSDN which allows you to easily add tooltips to resources using a single line.
https://msdn.microsoft.com/en-us/library/windows/desktop/hh298368(v=vs.85).aspx
I have the following line on my WM_INITDIALOG to add a tooltip to a checkbox control:
CreateToolTip(IDC_CHECK_GAMEMODE, hDlgWnd, TEXT("I'm a helper!"));
This is the easiest way I have found to add tooltips to dialogs created in the visual editor.
If there is no tooltip control in the visual editor, maybe you should add it from a code:
System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip();
ToolTip1.SetToolTip(this.textBox1, "Hello");
I'm using the form designer in VS.
I placed a label on my form, and then deleted it's text.
Currently, I can not locate the label.
How do I see a list of controls associated with a given class?
View --> Other Windows --> Document Outline
If you look in the properties window there should be a dropdown of all the controls on the form. You can select a control you can see and then you should see that control in the dropdown list. Then open the list and find the control you are looking for.
In your launched Visual Studio IDE open:
I - Solution Explorer with CTRL+ALT+L,
II - Document Outline with CTRL+ALT+T.
III - Open any class from the Solution Explorer to see the Document Outline populate accordingly.
This sounds like a trivial question, but it's proved quite hard to google anything about this.
When editing Color-typed properties through the property editor (when designing WinForms), a little editor pops up with three tabs: Custom, Web and System. I want to set a custom color by using the standard color picker dialog because none of the listed Custom colors are suitable.
I am sure that this used to be possible by double-clicking a blank color on the Custom tab, but this just picks the color being double-clicked and closes the drop-down in my VS2008. Am I imagining this, or did it really use to be possible? Can I do this in VS2008 somehow?
Right click on a blank colour in the palette shown by the custom tab. Brings up the "Define Color" dialog (in VS2008 C# Express, and I imagine the same in other versions).
EDIT - Having discovered this by experimentation, the MSDN library describes it here.
Interestingly, no keyboard-only interface is described.