Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

.NET Compact Framework

Empfohlene Antworten

Veröffentlicht

Hey Leute hallo ich hab da ein kleines Problemchen und zwar:

Ich habe eine kleine .NET Anwendung für den PDA gemacht:

static void Main() {Application.Run(new Form1());}

private void btn_connect_Click(object sender, System.EventArgs e)

{

int a = 100;

for (int i=0;i<=1000;i++)

{

int j = i ;

if (j > 100)

{

j = j - a;

double modvalue =(j % 100);

if ( modvalue == 0)

{

a = a + 100;

}

}

if (pb_progress.Value == 100)

{

pb_progress.Value = 0;

}

else

{

pb_progress.Value = j;

}

}

}

private void Form1_Closed(object sender, System.EventArgs e){Application.Exit();}

und irgendwie funktioniert das beenden des Programms nicht mehr ich muss erst im Taskmanager den Thread beenden damit ich das Programm z.B. umbennen od. löschen kann....

Kann mir da bitte mal jemand auf die Sprünge helfen ? Was hab ich falsch gemacht ?

Könnte es sein das die Schleife zu dem Zeitpunkt woe du drückst nochnicht abgelaufen ist?

Da das alles nur ein Thread ist, kann das Programm nicht auf den Tastendruck reagieren.

nene das ist nicht das problem, die schleife läuft ganz normal durch ohne Fehler, Ausnahmen usw.....

ich schliesse das Programm mit "X" aber es ist weiterhin im Speicher drin. Was muss ich tun damit das Programm komplett geschlossen wird ?

Verschoben: .NET

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.