GUI Programmierung auf dem PI


GUI Programmierung auf dem PI

Mono

zuerst holen wir uns Mono mit:

apt-get update
apt-get upgrade
apt-get install mono-complete --fix-missing

anschließend öffnen wir Nano und fügen folgenden Sourcecode ein:
using System;
using System.Windows.Forms;
using System.Drawing;

class Programm{
public static void Main (string[] args){
Application.EnableVisualStyles();
var f = new Form();
f.SetBounds (0,0,200,200);
Application.Run(f);
}
}

und Speichern das ganze unter "Test.cs"
jetzt führen wir gmcs mit den Imports aus und compilieren unsere Anwendung:
gmcs test.cs /r:System.dll,System.Drawing.dll,System.Windows.Forms.dll

Im Ordner, in der unsere cs-Datei liegt finden wir jetzt auch eine .exe Datei mit dem
gleichen Namen. 

Jetzt können wir die Anwendung auch schon Testen mit mono Test.exe

1 Kommentar:

  1. Casinos Near Me - The Grand Canyon - MapyRO
    Find 충청남도 출장마사지 Casinos 진주 출장마사지 Near Me in 김포 출장샵 2021 - Find Casinos Near 김해 출장마사지 Me 양주 출장샵 in Washington, D.C. and find the best place to play!

    AntwortenLöschen