Buradasın
Visual Studio ile Windows Forms Uygulaması Oluşturma Eğitimi
youtube.com/watch?v=zv8DkkhBNR0Yapay zekadan makale özeti
- Kısa
- Ayrıntılı
- Bu video, bir eğitim içeriği olup, izleyicilere Visual Studio kullanarak C++ ile Windows Forms uygulaması oluşturma sürecini adım adım göstermektedir.
- Video, Visual Studio'da yeni bir proje oluşturma, Windows Forms tasarımcısını kullanma ve temel bileşenlerin (label, textbox, button) eklenmesi ve yapılandırılması ile başlıyor. Daha sonra formun boyutu, arka plan rengi ve yazı tipi gibi özelliklerin nasıl değiştirileceği anlatılıyor. Son olarak, butonlara tıklama olayları (OK ve Clear butonları) ve uygulamanın başlangıçta çalışması için Load olayının nasıl programlanacağı gösteriliyor. Video, basit bir kullanıcı adı ve soyadı giriş formu örneği üzerinden Windows Forms uygulaması geliştirme temellerini öğretiyor.
- 00:01Creating a New Project in Visual Studio
- The video demonstrates how to create a Windows Forms application using Visual Studio C++.
- To start, create a new project and search for "CLR" to select the CLR Empty Project with .NET Framework.
- If the necessary components are not installed, you need to scroll down, click on "Install more tools and features," and select "Desktop development with C++" to install the required components.
- 01:00Configuring the Project Properties
- After selecting the CLR Empty Project, name the project (e.g., FirstCPPProject) and click "Create."
- Go to Project Properties, expand Linker, select System, and set the subsystem to Windows.
- In the Advanced settings, set the entry point to "main" and click OK.
- 01:53Creating and Designing the Form
- Add a new item to the project and select Windows Form (.cpp).
- To open the form in design view, you may need to close and reopen Visual Studio.
- In the designer, you can see the toolbox with available components.
- 03:14Adding and Customizing Controls
- Add a label and modify its text and font properties.
- Add a textbox and set its anchor property to make it resizable with the window.
- Modify the textbox's name and font properties.
- 05:13Adding More Controls
- Add another label and textbox for the last name, and customize their properties.
- Add a label for the welcome message and customize its font and name.
- Add two buttons (OK and Clear) and set their text, name, font, and anchor properties.
- 09:29Setting Form Properties
- Set the form's minimum size and background color.
- Modify the form's title by changing the text property.
- Implement the Load event to initialize the welcome label when the application starts.
- 10:55Adding Functionality to Buttons
- Add code to the OK button to store the text from the textboxes and set it as the text of the welcome label.
- Add code to the Clear button to clear the textboxes and the welcome label.
- Test the application by entering first and last names, clicking OK to see the welcome message, and clicking Clear to reset the fields.