Precasted About Dialog - c#

I do need a good About Dialog for my app, something like the Visual Studio About Dialog. I'm kinda too lazy to design it myself and make all the properties.
Does anybody know if there's a precasted one somewhere? Google didn't help me at all...
C# + Winforms

If you're using Visual Studio, right-click on your project in the Solution Explorer, and choose "Add New Item". One of the items you can add is an About Box... with properties of your program already included.
I'm not sure if this is true in the Express editions, but it's there in the full-blown versions of Visual Studio.

It's not exactly what you're looking for, but this is a good start. All you would need to do is alter the constructor to display exactly what you want.

Related

Keybind to correct a suggestion in Rider

I'm new to Rider and in Visual Studio I can press Alt+Enter to correct something to what Visual Studio suggests.
I've tried to illustrate the situation in the picture below. So the editor (ReSharper (?)) suggests I use the wording MyRoom instead (which makes sense for methods), but is there a command to auto correct this as with visual studio 2017? And in that case, what is its name? I've been trying to find it in the keymap but cant find it
I am not quite sure, but there is an extension call IntelliSpell
Easy-to-use, one-click operation to spell-check your Microsoft Visual Studio files, projects, or entire solution.
you can find it here: https://marketplace.visualstudio.com/items?itemName=GrapeCityinc.IntelliSpell-SpellCheckerforVisualStudio
In the Rider help it is written, that you can also use Alt + Enter. You could also try Ctrl + .. If I remember correctly it worked in Visual Studio with Resharper.
It's apparently called "Show Intention Action" and was bound to something weird on MacOS! I've bound it to cmd+enter now. Thank you for your help though! :-)

Visual Studio 2017 - Content from Form1 is also in Form2

I have a problem. The problem is, that when i make a second form inside of my project in Visual Studio 2017, the content from Form 1 will be in the 2nd form, interactible on build, but not movable or deletable in the editor. I don't know what to do to fix this.
If you know a way to fix this, let me know please. It really helps me out with stuff like this.
This is a bug of Visual Studio.
You should try cleaning the solution (from here:
In Solution Explorer, choose or open the solution.
On the menu bar, choose Build and then choose Clean Solution to delete any intermediate and output files. With only the project and component files left, new instances of the intermediate and output files can then be built.

Visual Studio Extension Development: How reference pending changes window

i need to develop a Visual Studio Extension, but even if looked around i didn't find a sample on how reference VS tool window (in my case pending changes) to customize it and add some extra features.
Could someone maybe give a an hint or url where i can look for this ?
Thanks in advance
Since you pending changes is a Team Explorer Tool Window, If you want to add custom button to Team Explorer, please refer to:
https://social.msdn.microsoft.com/Forums/en-US/198f36bf-0606-4b99-b736-1a786cdf5183/how-to-add-a-custom-button-in-teamexplorer-queryresultgrid-toolbar-and-workitem-toolbar?forum=vsx
If you want to add other features, I would suggest that you can create a custom tool window, add the feathers as you want, Get the Pending Changes information via IPendingChangesExt , and here is a sample about HOWTO: Get the Pending Changes in the Team Explorer of Visual Studio from a package

There are no usable controls in this group. Drag an item onto this text to add it to the toolbox" Visual Studio 2012

Its Not a Programming Question But about Visual studio express 2012.
Trying to create a new report in the visual studio 2012 but can not see the list of data sets, parameters etc: In general tab i am seeing this
"There are no usable controls in this group. Drag an item onto this text to add it to the toolbox"
I have searched to fixed it but not succeeded till now..
I came across this same issue today and read plenty of things such as "this is VS bug...." but the solution was much simpler than that, I just needed to stop debugging (Shift+F5).
If that doesn't work, I recommend restarting the IDE.
If this doesn't work, I guess that uninstalling VS and doing a fresh installation is the answer you're looking for. It's important to note that it's recommended to restart Windows after installing VS and before launching it.
Right click on the Toolbox and press "Show All"
Right click on Toolbox, Click on "choose Items.". Restart IDE. That worked for me.
Right click on Toolbar and select: Reset Toolbox.
MFC controls will reappear.
I also had this problem, and it turned out I was trying to open the wrong toolbox: what I was actually looking for was the 'SSIS toolbox'. If none of the other options have worked, try selecting View -> Other Windows -> SSIS Toolbox. That fixed it for me.
[I found this out from this blog by James Serra]
In VS 2015, the SSIS Toolbox is under SSIS tab, not under View.
"There are no usable controls..." is shown when you have currently opened a file that is not designer file (e.g. "Form1.cs"). Once you open the designer file (e.g. "Form1.Designer.cs") the items should be shown again.
Just hover over the design and then press escape. A control that you had selected and not dropped is holding up memory.
This happened to me, and it was because I was currently debugging. Once I ended debugging, the usable controls appeared.

Enable design mode of an sln project in SharpDevelop

I've been given a folder with many .cs files and a .sln to work on with the express interest of designing a GUI for the entire project. The only problem is, I don't know how.
I have both Visual Studio 2010 and SharpDevelop 4.4 at my disposal; though I'd like to learn both evenly if possible, because I like open-source IDEs, but value experience in Visual Studio as well.
I can't find any information on how to enable design mode in this situation because of how narrow my experience is with the tools; You see, I know to right-click on a .cs file in order to view its code or design in Visual Studio 2010... but that isn't available here. The only item I can see is "view code", which is not what I'm trying to do.
If I can't enable the form, I'm wondering if I can just... create a new one? Since one does not exist?
Thank you for your help.
EDIT: A screenshot of what I see (blurred for security)
Abstract answer
The designer only makes sense for some types of files. For example, Windows Forms designer exists for classes that inherit System.Windows.Forms.Control, and when the relevant attributes for that file are set in the project.
Practical answer
Make sure you have a project that allows Forms (like "Windows Forms Application" or "Windows Forms Control Library"), create one if needed.
In project tree, right-click on the project and use some "add new ..." in the context menu.
There, choose "Form" or "Control" depending on your intent. It should create and configure what's needed, and you'll be able to use the designer.
In Visual Studio you can switch between text and designer with a shortcut key (F7, Shift-F7) or context menu. In sharpdevelop use the "Source" and "Design" tabs.
In SharpDevelop if there is a designer available for the file then you can open the designer by:
Open the file into the text editor.
Click the Design tab at the bottom of the text editor.

Categories

Resources