Posts

Tool Tip in C#

Image
when i first started programming , i  wrote an application with many buttons , the only thing that they did say was how to make buttons show information about their function before clicking them . if you check your tools in c# there is some thing called Tool Tip , simply drag and drop it on the object you want to describe , buttons , text box , ...... . after that you will see tool tips under the form design , to enter or edit texts go to solution explorer scroll down and you will see all of your tool tips click on them and enter the description .

what is system Diagnostics in c# ?

Image
using system.Diagnostic ? if you want to open any applications or web pages throw your app, you can simply  use system diagnostics like opening web pages by clicking the buttons or open my computer etc here is a simple code that opens web pages : Namespace:   system.Diagnostics function : process.start("ADDRESS"); using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Diagnostics; namespace windows_gadget_2 {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         }         private void button1_Click(object sender, EventArgs e)         {        ...

Voice Recognition Code with C#

one day you may wake up i should make an application that can listen to me well here is one of simple sample of  Voice Recognition . By saying the names , face book , youtube , badoo it will open them in browser : feel free to comment using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Speech.Recognition; using System.Speech.Synthesis; using System.Diagnostics; namespace Voice_Recognition {     public partial class Form1 : Form     {         SpeechRecognitionEngine srEngine = new SpeechRecognitionEngine(new System.Globalization.CultureInfo("en-US"));         object fb ="facebok";         public Form1()         {             InitializeComponent();  ...