Posts

Showing posts from November, 2021

C-Sharp Learning Series 1

  C-Sharp Learning Series 1 Here are all the list of tutorials of C-Sharp Learning Series 1 you can go through along with some fun activities also: This series is for WinForms only! Part 1 - Installing Necessary Developer Tools Part 2 - Creating your first WinForms project app Part 3 - Exploring the properties of a button control Part 4 - Exploring the properties of a checkbox control Part 5 - Exploring the properties of a textbox control Hope this helps!

Using the TextBox control in WinForms

Image
    In this part of the tutorials we shall learn how to use the TextBox control in WinForms! If you haven't seen the Part 4 of this series of C Sharp Learning, then  click here First, create a new project or use the Project we used in Part 2: Then drag the TextBox control from the ToolBox into the Form (Form1): Now let us go through few of it's properties: BackColor: You can change the background color of the textbox with the help of the BackColor property: BorderStyle: If you want to change the way your TextBox looks, then you can use the BorderStyle property to change if your textbox has a border or should look 3D!: CharacterCasing: The textbox can also be set to take in only lower-case or upper-case characters and both! This can be achieved with the CharacterCasing property: Font: This property is present in almost every control in WinForms! Just choose your Font: ForeColor: ForeColor property sets the text color of the TextBox MaxLength: The MaxLength property sets th...

Using the CheckBox control in WinForms

Image
   C-Sharp Learning Part 4 The checkbox control in WinForms can be customized way more than you think! If you haven't seen the Part 3 which is about the Button control of this series of C Sharp Learning, then  click here ! Create a new WinForms project in Visual Studio 2022 or use an existing project Drag a checkbox control from the Toolbox into the main Form (Form1): You can change the backcolor by selecting BackColor Property: If you want, then you can also add a background image to it just like the button control: The check alignment in the checkbox can also be changed: Just change it in the CheckAlignment property: The check state also can be changed in Checked property: To make it look more modern, you can change the FlatAppearance property to Flat: The Font and the ForeColor can also be changed in the respective properties: The Text can be customized as well in the Text Property: So those were the ways you could customize the CheckBox control! I hope this helps! Fo...

Using the Button Control in WinForms

Image
  C-Sharp Learning Part 3 The button control in WinForms can be customized way more than you think! If you haven't seen the Part 2 of this series of C Sharp Learning, then click here First, create a new project or use the Project we used in Part 2: Then Drag a button into the Form: To change the name of the Button: I will change the Name so that it is easy to use the Button with a name in our code: Next, to make the button look more modern: To change the Back Color: Just select the back color and change it to your desired color:  But there is still a gray border to it! To change the border color or to remove the Border: Change the Flat Style to Flat To Remove the Border: Expand the Flat Appearance property and select the BorderSize property and change it: To Change the Font: Just select the Font property and click on the Three-Dots button: To Change the ForeColor (Text Color): Just select ForeColor and choose your color: To add a background image to the button: Just select the...

Getting Started with WinForms

Image
  C-Sharp Learning Part 2 Hey everyone! In this article we are gonna see how to build our first app in C# using .NET. If you haven't installed Visual Studio click here. First open Visual Studio 2022: You will be presented with this screen: Click on Create a new Project. You will get this: Search for "WinForms" in the search box and just select it and click next. Name your app in this screen and select the location of your Project and click Next: In this screen, select .NET Core 3.1 (LTS), you can also select .NET 6.0 which is the latest: Now when the project is created, select View at the top and select Designer. You will get this: Please note that it might take some time if the Designer button is not present in the View Menu. If it is taking a lot of time, then please reopen your project. Let us get started with each control in the toolbox. If you don't see the toolbox, then click View and select Toolbox at the bottom. For starters, let's just create a very simpl...

Installing necessary developer tools

Image
C-Sharp Learning Part 1 So in this article we are going to learn how to build our first C# app in Windows. There are many compilers which you can use. But I recommend using Visual Studio. So we are gonna be using .Net Framework & .Net (previously known as .Net Core). Please note we are going to be building a Windows Forms Application a graphical user interface which can be used to create classic Windows Desktop Apps. So before getting started you need to install Visual Studio 2022 Community which is completely free. Link to download Visual Studio 2022 Community: Click Here After downloading the setup file and running it you are presented with this screen: just click continue! In the "Available" tab just select Visual Studio Community 2022 and get it installed. After installing it, you will be presented with this screen: If you're not then you will need to click on the Modify button in the above screenshot under the name Visual Studio 2022 Community. Select .NET deskt...

Getting Started With Coding

  Getting Started With Coding Coding is not hard! Coding is fun! It is not about you remembering lines of code, it is about you understanding the lines of code. There are a variety of Programming Languages you can choose if you want to start coding. Let's go through some of them: C Programming Language C++ Programming Language C# Programming Language Python Java. If you are confused on choosing what language, then I would recommend you choose C#, because it is simple and easy to learn.  Let us look at the differences between C, C++ & C# C: C language is not an object oriented language. For a real-life example of object oriented: Your friend asked you to go and get a packet of milk. Your friend does not care from which shop or through which road you will get the milk. All your friend wants is a packet of milk. Now for an example in programming: There is a bunch of lines of code for a simple button control. Instead of writing all those lines of code for every copy of the but...

About Me

 Hi, I am Hemanth, a student. I believe and want to make sure that every child in this world especially India should educated in a proper way at low budget and get access to technology and coding. In this blog, I will share knowledge of coding and education to everyone for free so that parents need to spend too much money on enrolling their children in digital learning platforms. I hope this blog helps everyone including those who are eager to code. I also create apps which you can check them out in this website:  https://sites.google.com/view/ mytechapplications.