Developing smartphone software using C #: Push Chests (14)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.