Clock Applet
the code displays the clock showing the time in seconds,min,hours and the background of the window according to the user choice
AI
KI-Zusammenfassung: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.
Quellcode
Upload
*****************************************
VB.NET
Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs)
If MessageBox.Show("Do you want to close the application?","Close Application",MessageBoxButtons.YesNo) = DialogResult.No Then
e.Cancel = True
End If
End Sub
********************************************
C#.NET
private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
if (MessageBox.Show("Do you want to close the application?", "Close Application", MessageBoxButtons.YesNo) == DialogResult.No)
e.Cancel = true;
}
****************************************
Sorry about formatting
Originalkommentare (3)
Wiederhergestellt von der Wayback Machine