Posts

Showing posts from May, 2017

How to make speech recognition app in C# using Window Forms?

Image
How to make speech recognition app in C# using Window Forms? Hello friends! In this article we will leaner that how to build a speech recognizer that will recognize the words spoken by user and write that words in text box and at the same time it can also speak the words that has already been written in text box. So this article will really make you interested in C# development. This application has also concept little bit related to machine learning algorithm. These algorithms are used through libraries provided .Net  framework like SpeechSynthesizer, PromptBuilder, GrammerBuilder etc. Here is the screenshot of our application including the toolbox that I have used in this application: User Interface: In above I have used a textbox with multiline is checked and two buttons (i) speak text to speak already written words in text box and start to write words that are spoken. So lets code this Speech recognizer. Source Code in C#: __________________________________

How to change back color of window form using Track Bars in C#?

Image
How to change back color of window form using Track Bars in C#? Hello Friends! In this article we will learn that how build or make 3 different Track Bars in C# using window forms. These track bars will use to set the background color of the form. These kind of applications will realy increase your love for c#. So Open your Visual Studio and try to make app like this and follow my article step by step. Here is the screenshot of that track bar app that I built with different tools available in tool box for window forms: So in the above picture you can see different tools that I have used with final out put. These tools can be drag and drop from toolbox as I mentioned previously. Lets try to code this application. Source Code C#: ___________________________________________________________________________ using System; using System.Drawing; using System.Windows.Forms; namespace TR_Track_Bar {     public partial class Form1 : Form     {     

How to build a CGPA Calculator in C# using Window Forms ?

Image
Building A CGPA Calculator in C# using Window Form: Hello Friends!  In this article we will learn that how to build or make a CGPA Calculator in C# using Window Forms. This will help you to get motivated to become a c# developer. So our output will be like this: CGPA Calculator Final Interface   So this will be our final CGPA Calculator screenshot. Lets start to build this: Designing The Interface using Window Forms: So to design the interface i used labels, dropdown box, numeric updown, buttons and some background pictures to make my design beautiful and user friendly. Here I also uses grading criteria labeled as "Grading Values" so that user of this application can easily understand the criteria to calculate CGPA. So here is the screenshot of different parts of  this interface: So this is the interface design let's try to code. CGPA Calculator Code in C#: Coding this CGPA calculat

How to Build/Make a Calculator in C# using window form ?

Image
How to build/make a Calculator in C# ? Here is the screenshot of our output at the end of this discussion that is about that how to build a calculator in C# using window form: So this is our output and I will design my window form like this and here are the tools used from the toolbox given for window form:                                          Interface Design For Our Calculator So first design your interface like this using Label, TextBox Buttons with same "name" because I will use Button class to create same object  and same event handler for all buttons. So here is the back end code for this calculator: ⏩          using System; using System.Windows.Forms; namespace TR_Calculator {     public partial class Form1 : Form     {        //initialize the variables         Double resultValue = 0;         String operationPerformed = "";         bool isOperationPrformed = false;         public Form1()         {