-
Couldn't load subscription status.
- Fork 183
Windows Forms getting started update for .NET 6 #1215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
71ffc47
Migrate code to .NET 6
adegeo c963df3
Add snippet ref in code
adegeo 856a7ba
Add net6 pics; move others to version folder
adegeo 409e853
Update winforms getting started
adegeo 3d22ad7
Other .NET 5 references updated
adegeo 7b4213b
Lessen the amount of 'winforms'
adegeo 68154a9
minor
adegeo 26714ae
Update dotnet-desktop-guide/net/winforms/get-started/create-app-visua…
adegeo 8a5905d
Update dotnet-desktop-guide/net/winforms/get-started/create-app-visua…
adegeo 5c194ac
Update dotnet-desktop-guide/net/winforms/overview/index.md
adegeo c3e6ef1
Update dotnet-desktop-guide/net/winforms/get-started/create-app-visua…
adegeo 4734391
Update dotnet-desktop-guide/net/winforms/overview/index.md
adegeo b40eb29
Update dotnet-desktop-guide/net/winforms/get-started/create-app-visua…
adegeo 89ba2a1
Update create-app-visual-studio.md
adegeo f66a3e8
Update create-app-visual-studio.md
adegeo b9dd006
Update create-app-visual-studio.md
adegeo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added
BIN
+2.86 KB
...forms/get-started/media/create-app-visual-studio/netdesktop-6.0/app-running.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.1 KB
...started/media/create-app-visual-studio/netdesktop-6.0/vs-config-new-project.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+25.6 KB
...started/media/create-app-visual-studio/netdesktop-6.0/vs-create-new-project.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.61 KB
...s/get-started/media/create-app-visual-studio/netdesktop-6.0/vs-form-preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+91.7 KB
...net/winforms/get-started/media/create-app-visual-studio/netdesktop-6.0/vs-main-window.pdn
Binary file not shown.
Binary file added
BIN
+47.9 KB
...ms/get-started/media/create-app-visual-studio/netdesktop-6.0/vs-main-window.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+13.2 KB
...t-started/media/create-app-visual-studio/netdesktop-6.0/vs-select-framework.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+38.2 KB
...et-started/media/create-app-visual-studio/netdesktop-6.0/vs-template-search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 16 additions & 19 deletions
35
...app-visual-studio/csharp/Main.Designer.cs → ...pp-visual-studio/csharp/Form1.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
...-desktop-guide/net/winforms/get-started/snippets/create-app-visual-studio/csharp/Form1.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| namespace Names | ||
| { | ||
| public partial class Form1 : Form | ||
| { | ||
| public Form1() | ||
| { | ||
| InitializeComponent(); | ||
| } | ||
|
|
||
| // <buttonClick> | ||
| private void btnAdd_Click(object sender, EventArgs e) | ||
| { | ||
| if (!string.IsNullOrWhiteSpace(txtName.Text) && !lstNames.Items.Contains(txtName.Text)) | ||
| lstNames.Items.Add(txtName.Text); | ||
| } | ||
| // </buttonClick> | ||
| } | ||
| } | ||
adegeo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
File renamed without changes.
33 changes: 0 additions & 33 deletions
33
...t-desktop-guide/net/winforms/get-started/snippets/create-app-visual-studio/csharp/Main.cs
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 4 additions & 12 deletions
16
...esktop-guide/net/winforms/get-started/snippets/create-app-visual-studio/csharp/Program.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,23 +1,15 @@ | ||
| using System; | ||
| using System.Collections.Generic; | ||
| using System.Linq; | ||
| using System.Threading.Tasks; | ||
| using System.Windows.Forms; | ||
|
|
||
| namespace project | ||
| namespace Names | ||
| { | ||
| static class Program | ||
| internal static class Program | ||
| { | ||
| /// <summary> | ||
| /// The main entry point for the application. | ||
| /// </summary> | ||
| [STAThread] | ||
| static void Main() | ||
| { | ||
| Application.SetHighDpiMode(HighDpiMode.SystemAware); | ||
| Application.EnableVisualStyles(); | ||
| Application.SetCompatibleTextRenderingDefault(false); | ||
| ApplicationConfiguration.Initialize(); | ||
| Application.Run(new Form1()); | ||
| } | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.