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 contains the Errormsgdlg class, which inherits from the System.Windows.Forms.Form class, which represents the "Error message" dialog box for pushing the box. As shown in the following:
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 "detailed" two tabs (TabPage controls), each of which uses a TextBox control to display related information. The following is the code for the Window/errormsgdlg.cs source program:
1usingSystem.Windows.Forms;
2
3 namespaceSkyiv.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)
- {
theInitializeComponent ();
- topmost=Istopmost;
- }
- }
+}
Copyright NOTICE: This article for Bo Master http://www.zuiniusn.com original article, without Bo Master permission not reproduced.
Developing smartphone software using C #: Push Chests (14)