#Visual Studio info cheat 12/18/25 installing Visual Studio Installation - Installation Doc choose Community Edition chose .net desktop for workloads either click Install - later, click Modify and see that 10.0 runtime was installed OR chose Install while downloading, then click Install (.net 9.0 runtime was already chosen in individual) just took around 5 minutes or so you may want to reboot Getting Started - Tutorial to get started with VS basics -- new project file - new - project search on wpf, select c# and choose wpf application (a project for creating a .net wpf app), click next enter project name, drill to correct location (if you don't like the default), keep other defaults, click next keep default for .net 9.0, click create wait a hot minute for it to get its bearings -- IDE basics note various things - toolbox in upper left, explorer on right-hand side, tabs across the top hit green arrow to start running in debug, or lite green arrow to run without debug in the XAML window, you have the preview at top, and the xaml code at the bottom its encouraged to constantly make a little change, then run it also, if you try to run it again when it is already running, you get a funny error to create exe - goto build then Build Solution, then goto this folder for exe - C:\Users\paulb\source\repos\Names\bin\Debug\net9.0-windows -- programming code behinds are the code behind the xaml items like buttons/etc to change title or size of screen, change this statement in the XAML file -> Title="Names2" Height="450" Width="800" grids - everything is done by grids (at least for now) see names template for how to define all the rows and all the columns height/width will be 'auto' if you want to size the grid to the size of its contents, otherwise '*' is a wildcard after you define those 2 things, then add all the widgets the default place is row 0 col 0, to put in a particular row/col, use Grid.Column/Grid.Row attributes use x:Name attribute to give it a name, so it can be referenced in code behind create a <StackPanel> control, put widgets in it sequentially, then put theinside a grid element for the Margin attribute, if you specify a single value, that will be for all 4 side, if you specify 4 values, that is for left/top/right/bottom <Button> widgets - set Click attribute to name of event (e.g. ButtonAddName_Click) right click on that name (ButtonAddName_Click) and choose Go To Definition the method is already defined, just add code to reference any properties of the other widgets, or add to or change those properties googling -"visual studio wpf textbox width example" to add page - right click on project node, add/page, change name.xaml, add a page has a whatever.xaml and whatever.xaml.cs as code behind for it to add image - add/existingItem,set filter to images, browse to image and click add, set build action to resource various layouts various controls like buttons along with some of the tips like right click and choose whatever to create the on click event templates note: sample code is in the same folder as this file jethro - grab names2 from nemo and put into folder for sample code see JavaScript Template Library a basic summary of what's in there files that start with "JavaScript01" - basic html/css/functions files that start with "JavaScript02" - basic programming files that start with "JavaScript03" - geometric shapes files that start with "JavaScript04" - the sample game references https://learn.microsoft.com/en-us/dotnet/desktop/wpf/get-started/create-app-visual-studio?view=netdesktop-9.0 here is the next tutorial https://learn.microsoft.com/en-us/dotnet/desktop/wpf/get-started/walkthrough-my-first-wpf-desktop-application?view=netdesktop-9.0 it is a little more robust with more controls and also gets into data binding there are links inside for more info on controls and things like graphics/multimedia there are links on left-hand side too https://learn.microsoft.com/en-us/dotnet/desktop/wpf/get-started/create-app-visual-studio?view=netdesktop-9.0 you can try googling things like - "how do you do this in JavaScript?" these sites are pretty good also has html, JavaScript, etc tabs at top - https://www.w3schools.com/js/default.asp when you ask questions you are more likely to get a hit on this web site - https://stackoverflow.com/questions