Setting up for programming

Ensure you have installed the latest Windows 10 SDK Download the latest Windows 10 SDK https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk

Read More

Making Visual C# work the way we like

Menu > Tools > Options Text Editor > C# General > Automatic brace completion = Off Tabs > Keep tabs Code Style > Formatting > Indentation > General > Automatically format on paste (disables really annoying effects of auto formatting on blocks below what you paste in) Code Style > Formatting > Indentation > Indent […]

Read More

Rename project

Open the project and rename in the solution explorer Change output exe name Right click on project in Solution Explorer and select "Properties" from popup menu > "Application" change the "Assembly name"    

Read More

Change target .net framework version

Right click project in Solution Explorer window and choosing Unload Project. Right click project > Edit projectname.vcxproj Edit <TargetFrameworkVersion> to be the version you want to target Right click project > Reload project  

Read More

References

Add project references (e.g. .NET, COM etc plug ins) by right clicking References in Solution Explorer

Read More

Platform Target

A classic source of run problems in C# can be if your using components that are 32bit in an application with the Platform.  Setting the Platform Target to x86 will often solve this whilst still allowing the app to run on an x64 platform. Menu > Project > Project Properties > Build > Platform Target

Read More

Creating A Windows Forms Project From scratch

This is our internal check list to create a new Windows Forms Project… Create a ‘Visual C#’ > 'Windows' > ‘Windows Forms Application’. Once created:- Re-name the created form to frmMain.h by right clicking it in the solution explorer and selecting 'Rename'  Click Yes to updating all references. Things To Add To The Default Form […]

Read More