ENDLICH! Lange habe ich sowas gesucht, nun gibt es es endlich und zwar für mein Liebling den Windows Live Writer. Die Möglichkeit Code ohne große Probleme und HTML Formatierungen zu präsentieren.

using System;
using System.Drawing;
using System.Windows.Forms;
class HelloWorldForm : Form {
    public static void Main() {
        Application.Run(new HelloWorldForm());
    }
   public HelloWorldForm() {
       Label label = new Label();
       label.Text = "Hallo, Welt!";
       label.Location = new Point(40,30);
       Controls.Add(label);
       Button button = new Button();
       button.Text = "OK";
       button.Location = new Point(50,55);
       Controls.Add(button);
       button.Click += new EventHandler(OnButtonOk);
   }
    void OnButtonOk(Object sender, EventArgs e) {
       Application.Exit();
   }
}

CodeFormat Plug-in


  • Ihren XING-Kontakten zeigen
Ähnliche Beiträge:


Hinterlasse ein Kommentar