|
Dieser Artikel wurde maschinell übersetzt. Bewegen Sie den Mauszeiger über die Sätze im Artikel, um den Originaltext anzuzeigen. Weitere Informationen
|
Übersetzung
Original
|
Application-Klasse
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Der Application-Typ macht die folgenden Member verfügbar.
| Name | Beschreibung | |
|---|---|---|
![]() ![]() | AllowQuit | |
![]() ![]() | CommonAppDataPath | |
![]() ![]() | CommonAppDataRegistry | |
![]() ![]() | CompanyName | |
![]() ![]() | CurrentCulture | |
![]() ![]() | CurrentInputLanguage | |
![]() ![]() | ExecutablePath | |
![]() ![]() | LocalUserAppDataPath | |
![]() ![]() | MessageLoop | |
![]() ![]() | OpenForms | |
![]() ![]() | ProductName | |
![]() ![]() | ProductVersion | |
![]() ![]() | RenderWithVisualStyles | |
![]() ![]() | SafeTopLevelCaptionFormat | |
![]() ![]() | StartupPath | |
![]() ![]() | UserAppDataPath | |
![]() ![]() | UserAppDataRegistry | |
![]() ![]() | UseWaitCursor | |
![]() ![]() | VisualStyleState |
| Name | Beschreibung | |
|---|---|---|
![]() ![]() | AddMessageFilter | |
![]() ![]() | DoEvents | |
![]() ![]() | EnableVisualStyles | |
![]() | Equals(Object) | |
![]() ![]() | Exit() | |
![]() ![]() | Exit(CancelEventArgs) | |
![]() ![]() | ExitThread | |
![]() ![]() | FilterMessage | |
![]() | GetHashCode | |
![]() | GetType | |
![]() ![]() | OleRequired | |
![]() ![]() | OnThreadException | |
![]() ![]() | RaiseIdle | |
![]() ![]() | RegisterMessageLoop | |
![]() ![]() | RemoveMessageFilter | |
![]() ![]() | Restart | |
![]() ![]() | Run() | |
![]() ![]() | Run(ApplicationContext) | |
![]() ![]() | Run(Form) | |
![]() ![]() | SetCompatibleTextRenderingDefault | |
![]() ![]() | SetSuspendState | |
![]() ![]() | SetUnhandledExceptionMode(UnhandledExceptionMode) | |
![]() ![]() | SetUnhandledExceptionMode(UnhandledExceptionMode, Boolean) | |
![]() | ToString | |
![]() ![]() | UnregisterMessageLoop |
| Name | Beschreibung | |
|---|---|---|
![]() ![]() | ApplicationExit | |
![]() ![]() | EnterThreadModal | |
![]() ![]() | Idle | |
![]() ![]() | LeaveThreadModal | |
![]() ![]() | ThreadException | |
![]() ![]() | ThreadExit |
Run startet eine Nachrichtenschleife einer Anwendung für den aktuellen Thread und zeigt wahlweise ein Formular an. Exit oder ExitThread beendet eine Nachrichtenschleife. DoEvents verarbeitet Meldungen, während sich das Programm in einer Schleife befindet. AddMessageFilter fügt dem Nachrichtensystem der Anwendung für die Überwachung von Windows-Meldungen einen Meldungsfilter hinzu. Mit IMessageFilter können Sie das Auslösen eines Ereignisses beenden oder bestimmte Vorgänge durchführen, bevor ein Ereignishandler aufgerufen wird.
Hinweis |
|---|
public class Form1 : Form { [STAThread] public static void Main() { // Start the application. Application.Run(new Form1()); } private Button button1; private ListBox listBox1; public Form1() { button1 = new Button(); button1.Left = 200; button1.Text = "Exit"; button1.Click += new EventHandler(button1_Click); listBox1 = new ListBox(); this.Controls.Add(button1); this.Controls.Add(listBox1); } private void button1_Click(object sender, System.EventArgs e) { int count = 1; // Check to see whether the user wants to exit the application. // If not, add a number to the list box. while (MessageBox.Show("Exit application?", "", MessageBoxButtons.YesNo)==DialogResult.No) { listBox1.Items.Add(count); count += 1; } // The user wants to exit the application. // Close everything down. Application.Exit(); } }
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core-Rolle wird nicht unterstützt), Windows Server 2008 R2 (Server Core-Rolle wird mit SP1 oder höher unterstützt; Itanium wird nicht unterstützt)
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen für .NET Framework.
