C# 學習筆記 part 7 創建 Windows Forms 窗體,使用 Windows Forms 窗體

C# 入門 教學 7 創建 Windows Forms 視窗應用程式,使用 Windows Forms 視窗應用程式

DOS 模式,只是用來建立 C# 基礎,還有建立 C# 概念...事實上,根本不會用到...

真正會用到的是 Windows Forms 視窗應用程式...

C# 基礎 C# 概念...林林總總,東西超級的多...

可能還沒學到 Windows Forms 視窗應用程式...大概就掛了、嗝屁、翹辮子、翻白肚...

所以,在開始,儘量使用 Windows Forms 視窗應用程式,包括範例...

如果你未安裝 Visual Studio 開發套件,參考 C# 學習,教你下載安裝 Visual Studio Community

卡在命名問題,參考 C# 學習 part 3 卡在第一關,命名問題...只能借助 Goole 翻譯

回顧上一篇,參考 C# 學習,創建 class 物件導向,使用 class 物件導向


步驟

請理解一個重點,這個 Windows Forms 視窗應用程式,是點擊什麼東西,然後發生什麼事件








拖一個 button 按鈕,到 form 視窗上面




點擊 button 兩下,到代碼頁面




代碼




執行結果







專有名詞

Windows Forms 窗體

Windows Forms 視窗程式

Windows Forms 視窗應用程式


認識一下,釘選圖標,方便操作

點出 [ 工具箱 ] 然後點擊 [ 釘選 ] 圖標,這樣可以固定工具箱,方便拖拉小工具




建立新專案,可以設定需要的部分,縮小選取範圍

左側,為選取過的專案,方便下次,直接點擊使用




此篇文章之圖文教學,如果還不太明白,請至下方連結,查看 youtube 視頻解說

視頻解說之第一部分 https://www.youtube.com/watch?v=6ah4lO2VAh4

謝謝大家,抽空觀看,files備份檔名 csharp00007


後續文章 C# part 8 教你使用 if 單層判斷式,教你使用 if else if else 多層判斷式


C# tutorial 7 Show you how to create a new Windows Forms App

沒有留言:

發佈留言

由於經常被灌水, 所以您再發表留言之後, 需要耐心的等待博客主之審核, 於審核過後才會公開您的留言, 因此請您不要重複的留言, 謝謝您的留言
Hello my friend, I have no money, My blog is super chill, Please do not screw me in the replies at the bottom of the article, thank you very much