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");
Related
I'm trying to augment an existing VS addin with some graphical capabilities. For example, I might want to draw lines between related definitions.
So I'd like to overlay my own WPF control on top of the one used by the editor. How do I get hold of the WPF control used by the editor?
You need to create a new adornment layer for your graphics. See Inside the Editor for more details.
I want to open The Modify Style dialog box
Someone may know if this moved ?
I have try View->Toolbars-> and from here i cannot fine any style option
If you're talking about the Toolbars -> Style Sheet toolbar, it seems to have been removed intentionally:
Thanks for the feedback. The Stylesheet toolbar was removed because it
added little to no value with outdated wizards and dialogs. We're
looking at bringing more visual tooling back to CSS in the future, but
in a better way.
Regards, Mads Kristensen
Source: http://connect.microsoft.com/VisualStudio/feedback/details/807167/vs-rc-ultimate-2013-missing-toolbar-style-sheet
Might be worth keeping an eye on this one as well (for further verification, it may get updated):
https://connect.microsoft.com/VisualStudio/feedback/details/808299/style-sheet-tool-bar-in-visual-studio-2013
Can someone point me to an article or tutorial on using custom controls in Visual Studio Lightswitch? I'm trying to add a rich text box to a page, linked to a string property. When running the app, sometimes the field will show up, sometimes it won't. If it does show the width of the field is small, about 2 characters, but will expand when text is pasted inside. Saving doesn't work, though.
I'm not even sure about whether or not I'm allowed to use controls like these in a Lightswitch app, even though custom controls are obviously supported. Are the custom controls restricted to a certain type or set?
Thanks in advance for any assistance.
W.
Have a look at the following example, http://lightswitchhelpwebsite.com/Blog/tabid/61/EntryId/10/LightSwitch-Student-Information-System-Part-3-Custom-Controls.aspx
Also the Training Kit has examples of Custome Controls included.
There is also this tutorial:
Creating A LightSwitch Custom Silverlight Control
http://lightswitchhelpwebsite.com/Blog/tabid/61/EntryId/2/Creating-A-LightSwitch-Custom-Silverlight-Control.aspx
CodeRush can custom region painting in the Code Editor. Any other extensions/addons have this feature?
Thanks
Edit: Changed title and contents for better description.
How do I customize, extend the text editor, or color tag parts of my code?
I would like Visual Studio to color code parts of my code. Can I use #region and give it a color?
Is there any way to make the background between two parentheses have a different color? (I want each code "block" to have its own color.)
I've looked here for some insight, but they all are implemented based "on what you select". All I want is to have the text editor "render" the text in a different way based on some rules.
I haven't seen such feature, but there is something quite close to what you are looking for in ReSharper. A setting called "Highlight matching delimiters". Looks like this in use:
I wanted tell you this because
1) You might be interested in resharper and
2) resharper is able to do the highlighting so maybe someone can make an add-in or something to add this kind of feature. Maybe you? :)
I don't know of anything exactly like what you're asking for, but the VS10x Code Map extention might help: http://www.axtools.com/products-vs2010-extensions.php
It will give you a nice overview of the code on the side, and make navigation somewhat easier.
The download button on the right lets you download a trial version from the Visual Studio Gallery at msdn.microsoft.com. I think you can also find it directly from the extentions view in VS2010.