This is the "developing Smartphone software using C #: Push boxesArticle 14th of the series. In this article, the Window/errormsgdlg.cs source program files are introduced. This source program file includes the Errormsgdlg class. The class inherits from the System.Windows.Forms.Form class, which represents the "Error message" dialog box for pushing the box. For example, as seen in:
here is some code for the Window/errormsgdlg.designer.cs source program:
namespaceSkyiv.Ben.PushBox.Window
{
PublicPartialclassErrormsgdlg
{
//some code is omitted here.
PrivateSystem.Windows.Forms.TabControl Tclmain;
PrivateSystem.Windows.Forms.TabPage tpgbase;
PrivateSystem.Windows.Forms.TabPage Tpgadv;
PrivateSystem.Windows.Forms.TextBox tbxbase;
PrivateSystem.Windows.Forms.TextBox Tbxadv;
}
}
in the Error message dialog box, use a TabControl control to manage the set of related tab pages, divided into "concise" and "Specific" two tabs (TabPage controls). A TextBox control is used in each tab to display related information. The following is the code for the Window/errormsgdlg.cs source program:
1usingSystem.Windows.Forms;
2
3namespaceSkyiv.Ben.PushBox.Window
4{
5 /// <summary>
6 ///Error message dialog box
7 /// </summary>
8 PublicPartialclassErrormsgdlg:form
9 {
Ten Public stringerrormsg {Set{Tbxbase.text=value;} }
One Public stringdebugmsg {Set{Tbxadv.text=Value } }
A
- PublicErrormsgdlg (BOOListopmost)
- {
the InitializeComponent ();
-topmost=Istopmost;
- }
- }
+}
Developing smartphone software using C #: Push Chests (14)