ModulePage Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the ModulePage class.
protected:
ModulePage();
protected ModulePage ();
Protected Sub New ()
Examples
The following example creates a custom ModulePage object.
internal partial class DemoPage : ModulePage {
bool _busy = true;
private DemoModuleServiceProxy _serviceProxy;
private ListPageListView _listView;
private ListViewContainerPanel _listViewContainer;
private System.Resources.ResourceManager _myRM;
private bool _readOnly;
public DemoPage()
: base() {
myModLP(new ListPageListView());
initX();
}
}
void myModLP(ListPageListView listView) {
SuspendLayout();
_listViewContainer = new ListViewContainerPanel();
_listViewContainer.SuspendLayout();
_listViewContainer.Name = "_listViewContainer";
_listViewContainer.Dock = DockStyle.Fill;
_listViewContainer.DockPadding.All = 1;
_listViewContainer.TabIndex = 100;
_listViewContainer.BorderStyle = BorderStyle.Fixed3D;
//_listViewContainer.BackColor =
_listViewContainer.Width = 933;
Label lbl = new Label();
lbl.Height = 16;
lbl.Dock = DockStyle.Top;
lbl.Text = "put refresh here";
_listView = listView;
_listView.Name = "_listView";
_listView.BorderStyle = BorderStyle.None;
_listView.Dock = DockStyle.Fill;
_listView.FullRowSelect = true;
_listView.HeaderStyle = ColumnHeaderStyle.Clickable;
_listView.HideSelection = false;
_listView.LabelWrap = false;
_listView.ShowGroups = false;
_listView.ShowItemToolTips = true;
_listView.TabIndex = 3;
_listView.View = View.Details;
_listView.Width = 933;
_listView.BorderStyle = BorderStyle.FixedSingle;
// _listView.ColumnClick += new ColumnClickEventHandler(OnListViewColumnClick);
_listViewContainer.Controls.Add(_listView);
Controls.Add(_listViewContainer);
Controls.Add(lbl);
}
Remarks
The base-class constructor should be called from the constructor of a derived class.