Hi to all.
Ich habe gerade mit programmiren in C# angefangen.
hier ist mein erstes programm:
http://rapidshare.com/files/13702847...chner.rar.html
wie mache ich es das meine HP sich öffnet wenn man auf den Link Klickt?
Ach ja und ich weis ich muss eine Fehlermeldung noch löschen^^
(Eckrr saß nur daneben^^)
Download
ON
Hier ist ein Update.
Drückt mal unter links in die Ecke^^.

Added after 15 minutes:

ach ja und ich möchte das sich eine weitere Messagebox öffnet wenn man ok geklickt hat wie mache ich das?

Added after 21 minutes:

noch eine Frage:
wenn ich ein anderes programm mit meinem öffnen lassen will was muss ich machen. Ich muss das program doch irgentwie einbinden oder?
und wie lautet dann der Befehl?
und hier in code:
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WindowsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Rechne mit mir du Homo");
        }

        private void button2_Click(object sender, EventArgs e)
        {
            if (textBox1.Text == "")
            {
                return;
            }
            if (textBox2.Text == "")
            {
                return;
            }
            double zahl1 = 0.0;
            double zahl2 = 0.0;
            double ergebnis = 0.0;

            try
            {
                zahl1 = Convert.ToDouble(textBox1.Text);
            }
            catch //Versuch
            {
                MessageBox.Show("Bitte eine Zahl eingeben");
                textBox1.Focus();
                textBox1.Clear();
            }
            try
            {
                zahl2 = Convert.ToDouble(textBox2.Text);
            }
            catch //Versuch
            {
                MessageBox.Show("Bitte eine Zahl eingeben");
                textBox1.Focus();
                textBox1.Clear();
            }

            if (zahl2 == 0) //Bedingun: wenn zahl2 = 0
            {
                MessageBox.Show("Division durch Null nicht möglich, bitt neueingabe!");
                textBox2.Focus(); //Cusor in TextBox2 setzen
                textBox2.Clear(); //textbox leeren
                return; //Abbruch
            }


            ergebnis = zahl1 / zahl2;

            label1.Text = ergebnis.ToString();
        }

        private void button3_Click(object sender, EventArgs e)
        {
                if (textBox1.Text == "")
                {
                    return;
                }
                if (textBox2.Text == "")
                {
                    return;
                }
                double zahl1 = 0.0;
                double zahl2 = 0.0;
                double ergebnis = 0.0;
                //Fehlerbehandlung textBox1 (sinnlose Eingaben):
                try
                {
                    zahl1 = Convert.ToDouble(textBox1.Text);
                }
                catch //Versuch
                {
                    MessageBox.Show("Bitte eine Zahl eingeben");
                    textBox1.Focus();
                    textBox1.Clear();
                }
                //Fehlerbehandlung textBox2 (sinnlose Eingaben):
                try
                {
                    zahl2 = Convert.ToDouble(textBox2.Text);
                }
                catch //Versuch
                {
                    MessageBox.Show("Bitte eine Zahl eingeben");
                    textBox1.Focus();
                    textBox1.Clear();
                }

                if (zahl2 == 0) //Bedingun: wenn zahl2 = 0
                {
                    MessageBox.Show("Division durch Null nicht möglich, bitt neueingabe!");
                    textBox2.Focus(); //Cusor in TextBox2 setzen
                    textBox2.Clear(); //textbox leeren
                    return; //Abbruch
                }


                ergebnis = zahl1 + zahl2;

                label1.Text = ergebnis.ToString();
        }

        private void button4_Click(object sender, EventArgs e)
        {
            if (textBox1.Text == "")
            {
                return;
            }
            if (textBox2.Text == "")
            {
                return;
            }
            double zahl1 = 0.0;
            double zahl2 = 0.0;
            double ergebnis = 0.0;
            
            //Fehlerbehandlung textBox1 (sinnlose Eingaben):
            try //Versuch
            {
                zahl1 = Convert.ToDouble(textBox1.Text);
            }
            catch //Fehler abfangen
            {
                MessageBox.Show("Bitte eine Zahl eingeben");
                textBox1.Focus();
                textBox1.Clear();
            }

            //Fehlerbehandlung textBox2 (sinnlose Eingaben):
            try //Versuch
            {
                zahl2 = Convert.ToDouble(textBox2.Text);
            }
            catch //Fehler abfangen
            {
                MessageBox.Show("Bitte eine Zahl eingeben");
                textBox1.Focus();
                textBox1.Clear();
            }

            if (zahl2 == 0) //Bedingung: wenn zahl2 = 0
            {
                MessageBox.Show("Division durch Null nicht möglich, bitt neueingabe!");
                textBox2.Focus(); //Cusor in TextBox2 setzen
                textBox2.Clear(); //textbox leeren
                return; //Abbruch
            }


            ergebnis = zahl1 - zahl2;

            label1.Text = ergebnis.ToString();
        }

        private void button5_Click(object sender, EventArgs e)
        {
            if (textBox1.Text == "")
            {
                return;
            }
            if (textBox2.Text == "")
            {
                return;
            }
            double zahl1 = 0.0;
            double zahl2 = 0.0;
            double ergebnis = 0.0;

            //Fehlerbehandlung textBox1 (sinnlose Eingaben):
            try //Versuch
            {
                zahl1 = Convert.ToDouble(textBox1.Text);
            }
            catch //Fehler abfangen
            {
                MessageBox.Show("Bitte eine Zahl eingeben");
                textBox1.Focus();
                textBox1.Clear();
            }

            //Fehlerbehandlung textBox2 (sinnlose Eingaben):
            try //Versuch
            {
                zahl2 = Convert.ToDouble(textBox2.Text);
            }
            catch //Fehler abfangen
            {
                MessageBox.Show("Bitte eine Zahl eingeben");
                textBox1.Focus();
                textBox1.Clear();
            }
            if (zahl2 == 0) //Bedingun: wenn zahl2 = 0
            {
                MessageBox.Show("Division durch Null nicht möglich, bitt neueingabe!");
                textBox2.Focus(); //Cusor in TextBox2 setzen
                textBox2.Clear(); //textbox leeren
                return; //Abbruch
            }


            ergebnis = zahl1 * zahl2;

            label1.Text = ergebnis.ToString();
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            MessageBox.Show("coded by Eckrrr and Technoskull");
        }

    }
}