using System.Windows.Forms; class CreationForm { public static void Main() { Form form = new Form(); form.Text = "Mon Form personnel"; Application.Run(form); } }
Posts Related to Créer et lancer un ‘Form’ Simple en CSharp
-
Création d’un application graphique simple: bouton, label, champs de text et boîte de dialogue
{filelink=14640} using System; using System.Windows.Forms; class MainForm : Form { private Label label1; private TextBox champsText; private Button bouton; [STAThread] public static void Main() { …
-
Utilisation simple d’autocomplet dans un ComboBox
{filelink=15663} using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; public class AutoCompleteSimple : Form { [STAThread] static void Main() …
-
Thread: Lancer un processus en tâche de fond(Background)
{filelink=17382} using System; using System.Windows.Forms; using System.Threading; public class ProcessusBackground : System.Windows.Forms.Form { /* * Lancer la fenêtre en mode réduit * Et Exécuter le …
-
Gestion des événement d’un ‘Form’
{filelink=17880} using System; using System.Threading; using System.Windows.Forms; public class EvenementForm : Form { public static void Main() { EvenementForm FormObject = new EvenementForm(); FormObject.Text = …
-
Lancer une processus ou une application: Exemple de Bloc note
{filelink=17868} using System.Diagnostics; public class LancerProcessus { public static void Main() { ProcessStartInfo lancerApp = new ProcessStartInfo(); // Lancer bloc note de windows lancerApp.FileName = …