Click here to Skip to main content
15,902,636 members
Home / Discussions / C#
   

C#

 
GeneralRe: strange behaviour of SendMessage() Pin
Dave Kreskowiak29-Jan-05 4:32
mveDave Kreskowiak29-Jan-05 4:32 
GeneralDo events?? (C# Newbi) Pin
Dwayner7928-Jan-05 7:13
Dwayner7928-Jan-05 7:13 
GeneralRe: Do events?? (C# Newbi) Pin
Dave Kreskowiak28-Jan-05 7:37
mveDave Kreskowiak28-Jan-05 7:37 
GeneralRe: Do events?? (C# Newbi) Pin
Dwayner7928-Jan-05 9:01
Dwayner7928-Jan-05 9:01 
GeneralRe: Do events?? (C# Newbi) Pin
Carl Mercier28-Jan-05 9:40
Carl Mercier28-Jan-05 9:40 
GeneralRe: Do events?? (C# Newbi) Pin
Dwayner7928-Jan-05 9:43
Dwayner7928-Jan-05 9:43 
GeneralRe: Do events?? (C# Newbi) Pin
Skynyrd28-Jan-05 9:54
Skynyrd28-Jan-05 9:54 
GeneralRe: Do events?? (C# Newbi) Pin
Dwayner7928-Jan-05 10:26
Dwayner7928-Jan-05 10:26 
no overrides... here is the code:

I included all the code from the Windows IDE generated.



public class ControllerForm : System.Windows.Forms.Form
{
private DevComponents.DotNetBar.DotNetBarManager dotNetBarManager1;
private DevComponents.DotNetBar.DockSite barLeftDockSite;
private DevComponents.DotNetBar.DockSite barRightDockSite;
private DevComponents.DotNetBar.DockSite barTopDockSite;
private DevComponents.DotNetBar.DockSite barBottomDockSite;
private System.ComponentModel.IContainer components;
string controllerName = "";
private System.Windows.Forms.OpenFileDialog openFile1;
string fileName = "";


public ControllerForm()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();

//
// TODO: Add any constructor code after InitializeComponent call
//
}
public string ControllerName
{
get
{
return controllerName;
}
set
{
controllerName = value;
}
}


public string FileName
{
get
{
return fileName;
}
set
{
fileName = value;
}
}

///
/// Clean up any resources being used.
///

protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}

#region Windows Form Designer generated code
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///

private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.dotNetBarManager1 = new DevComponents.DotNetBar.DotNetBarManager(this.components);
this.barBottomDockSite = new DevComponents.DotNetBar.DockSite();
this.barLeftDockSite = new DevComponents.DotNetBar.DockSite();
this.barRightDockSite = new DevComponents.DotNetBar.DockSite();
this.barTopDockSite = new DevComponents.DotNetBar.DockSite();
this.openFile1 = new System.Windows.Forms.OpenFileDialog();
this.SuspendLayout();
//
// dotNetBarManager1
//
this.dotNetBarManager1.AutoDispatchShortcuts.Add(DevComponents.DotNetBar.eShortcut.F1);
this.dotNetBarManager1.AutoDispatchShortcuts.Add(DevComponents.DotNetBar.eShortcut.CtrlC);
this.dotNetBarManager1.AutoDispatchShortcuts.Add(DevComponents.DotNetBar.eShortcut.CtrlA);
this.dotNetBarManager1.AutoDispatchShortcuts.Add(DevComponents.DotNetBar.eShortcut.CtrlV);
this.dotNetBarManager1.AutoDispatchShortcuts.Add(DevComponents.DotNetBar.eShortcut.CtrlX);
this.dotNetBarManager1.AutoDispatchShortcuts.Add(DevComponents.DotNetBar.eShortcut.CtrlZ);
this.dotNetBarManager1.AutoDispatchShortcuts.Add(DevComponents.DotNetBar.eShortcut.Del);
this.dotNetBarManager1.AutoDispatchShortcuts.Add(DevComponents.DotNetBar.eShortcut.Ins);
this.dotNetBarManager1.BottomDockSite = this.barBottomDockSite;
this.dotNetBarManager1.DefinitionName = "ControllerForm.dotNetBarManager1.xml";
this.dotNetBarManager1.LeftDockSite = this.barLeftDockSite;
this.dotNetBarManager1.ParentForm = this;
this.dotNetBarManager1.RightDockSite = this.barRightDockSite;
this.dotNetBarManager1.Style = DevComponents.DotNetBar.eDotNetBarStyle.Office2003;
this.dotNetBarManager1.TopDockSite = this.barTopDockSite;
this.dotNetBarManager1.ContainerLoadControl += new System.EventHandler(this.ContainerLoadControl);
//
// barBottomDockSite
//
this.barBottomDockSite.AccessibleRole = System.Windows.Forms.AccessibleRole.Window;
this.barBottomDockSite.BackgroundImageAlpha = ((System.Byte)(255));
this.barBottomDockSite.Dock = System.Windows.Forms.DockStyle.Bottom;
this.barBottomDockSite.Location = new System.Drawing.Point(0, 466);
this.barBottomDockSite.Name = "barBottomDockSite";
this.barBottomDockSite.Size = new System.Drawing.Size(692, 0);
this.barBottomDockSite.TabIndex = 3;
this.barBottomDockSite.TabStop = false;
//
// barLeftDockSite
//
this.barLeftDockSite.AccessibleRole = System.Windows.Forms.AccessibleRole.Window;
this.barLeftDockSite.BackgroundImageAlpha = ((System.Byte)(255));
this.barLeftDockSite.Dock = System.Windows.Forms.DockStyle.Left;
this.barLeftDockSite.Location = new System.Drawing.Point(0, 0);
this.barLeftDockSite.Name = "barLeftDockSite";
this.barLeftDockSite.Size = new System.Drawing.Size(0, 466);
this.barLeftDockSite.TabIndex = 0;
this.barLeftDockSite.TabStop = false;
//
// barRightDockSite
//
this.barRightDockSite.AccessibleRole = System.Windows.Forms.AccessibleRole.Window;
this.barRightDockSite.BackgroundImageAlpha = ((System.Byte)(255));
this.barRightDockSite.Dock = System.Windows.Forms.DockStyle.Right;
this.barRightDockSite.Location = new System.Drawing.Point(590, 0);
this.barRightDockSite.Name = "barRightDockSite";
this.barRightDockSite.Size = new System.Drawing.Size(102, 466);
this.barRightDockSite.TabIndex = 1;
this.barRightDockSite.TabStop = false;
//
// barTopDockSite
//
this.barTopDockSite.AccessibleRole = System.Windows.Forms.AccessibleRole.Window;
this.barTopDockSite.BackgroundImageAlpha = ((System.Byte)(255));
this.barTopDockSite.Dock = System.Windows.Forms.DockStyle.Top;
this.barTopDockSite.Location = new System.Drawing.Point(0, 0);
this.barTopDockSite.Name = "barTopDockSite";
this.barTopDockSite.Size = new System.Drawing.Size(692, 0);
this.barTopDockSite.TabIndex = 2;
this.barTopDockSite.TabStop = false;
//
// ControllerForm
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(692, 466);
this.Controls.Add(this.barLeftDockSite);
this.Controls.Add(this.barRightDockSite);
this.Controls.Add(this.barTopDockSite);
this.Controls.Add(this.barBottomDockSite);
this.Name = "ControllerForm";
this.Text = "Controller";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.Load += new System.EventHandler(this.ControllerForm_Load);
this.ResumeLayout(false);

}
#endregion

private void ContainerLoadControl(object sender, System.EventArgs e)
{
// Always cast to the BaseItem first, since sender in this case could be ControlContainerItem or DockContainerItem
BaseItem item = sender as BaseItem;
if(item.Name=="Dock1")
{
DockContainerItem dockItem=item as DockContainerItem;
dockItem.Control=new ConfigStepsList();
// Assign optional "Customize" menu to the bar that contains this item
if(item.CanCustomize==true)
{
item.CanCustomize=false;
}
}
}

private void ControllerForm_Load(object sender, System.EventArgs e)
{
openFile();
}


private void openFile()
{
if(openFile1.ShowDialog()==DialogResult.OK)
{
string name = openFile1.FileName;
}
}

}
GeneralRe: Do events?? (C# Newbi) Pin
Skynyrd28-Jan-05 11:32
Skynyrd28-Jan-05 11:32 
GeneralRe: Do events?? (C# Newbi) Pin
therealmccoy28-Jan-05 17:56
therealmccoy28-Jan-05 17:56 
GeneralRe: Do events?? (C# Newbi) Pin
Dave Kreskowiak28-Jan-05 10:18
mveDave Kreskowiak28-Jan-05 10:18 
GeneralRe: Do events?? (C# Newbi) Pin
Dwayner7928-Jan-05 10:34
Dwayner7928-Jan-05 10:34 
Generalpassing data from one form to another Pin
steve_rm28-Jan-05 4:06
steve_rm28-Jan-05 4:06 
GeneralRe: passing data from one form to another Pin
Bahadir Cambel28-Jan-05 11:45
Bahadir Cambel28-Jan-05 11:45 
GeneralHelp On Serialization Pin
fmarcos28-Jan-05 2:05
fmarcos28-Jan-05 2:05 
GeneralCustomize Control Pin
jzb28-Jan-05 0:04
jzb28-Jan-05 0:04 
GeneralRe: Customize Control Pin
spif200128-Jan-05 1:33
spif200128-Jan-05 1:33 
GeneralSubstring's problem Pin
jzb27-Jan-05 23:50
jzb27-Jan-05 23:50 
GeneralRe: Substring's problem Pin
mav.northwind28-Jan-05 0:01
mav.northwind28-Jan-05 0:01 
GeneralRe: Substring's problem Pin
jzb28-Jan-05 0:15
jzb28-Jan-05 0:15 
GeneralRe: Substring's problem Pin
mav.northwind28-Jan-05 0:27
mav.northwind28-Jan-05 0:27 
GeneralRe: Substring's problem Pin
Colin Angus Mackay28-Jan-05 4:33
Colin Angus Mackay28-Jan-05 4:33 
GeneralRe: Substring's problem Pin
mav.northwind28-Jan-05 4:46
mav.northwind28-Jan-05 4:46 
Generalview the incoming SOAP message Pin
weeteck27-Jan-05 22:56
weeteck27-Jan-05 22:56 
GeneralRe: view the incoming SOAP message Pin
Mazdak28-Jan-05 2:09
Mazdak28-Jan-05 2:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.