Click here to Skip to main content
15,913,084 members
Home / Discussions / C#
   

C#

 
GeneralI've looked everywhere Pin
mdolby8-Jul-03 8:54
mdolby8-Jul-03 8:54 
GeneralRe: I've looked everywhere Pin
Nathan Blomquist8-Jul-03 9:19
Nathan Blomquist8-Jul-03 9:19 
GeneralPossible creation of comp.std.cli and comp.std.csharp Pin
Eric Gunnerson (msft)8-Jul-03 8:23
Eric Gunnerson (msft)8-Jul-03 8:23 
GeneralClickety Police Pin
leppie8-Jul-03 9:07
leppie8-Jul-03 9:07 
GeneralMaking one user control aware of another Pin
frogb0x8-Jul-03 7:57
frogb0x8-Jul-03 7:57 
GeneralRe: Making one user control aware of another Pin
leppie8-Jul-03 8:34
leppie8-Jul-03 8:34 
GeneralRe: Making one user control aware of another Pin
Not Active8-Jul-03 9:54
mentorNot Active8-Jul-03 9:54 
GeneralHere's my code so far Pin
frogb0x8-Jul-03 10:32
frogb0x8-Jul-03 10:32 
If it helps, here my code:

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace Copper
{

public class frmInit : System.Windows.Forms.Form
{
private System.Windows.Forms.PictureBox pictureBox1;
private Copper.UCInit ucInit1;
private System.ComponentModel.Container components = null;

public frmInit()
{

InitializeComponent();

UCCreate newPanel = new UCCreate();
newPanel.Location = new Point(376, 8);
newPanel.Size = new Size (280, 140);
this.Parent.Controls.Add(newPanel);

}


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

#region Windows Form Designer generated code

private void InitializeComponent()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmInit));
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.ucInit1 = new Copper.UCInit();
this.SuspendLayout();

this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(0, 0);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(375, 256);
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;

//
// ucInit1
//

this.ucInit1.Location = new System.Drawing.Point(376, 8);
this.ucInit1.Name = "ucInit1";
this.ucInit1.Size = new System.Drawing.Size(280, 184);
this.ucInit1.TabIndex = 0;
this.ucInit1.Load += new System.EventHandler(this.ucInit1_Load);

//
// frmInit
//

this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(664, 197);
this.Controls.Add(this.ucInit1);
this.Controls.Add(this.pictureBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "frmInit";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Mud Object Creator";
this.ResumeLayout(false);

}
#endregion


[STAThread]
static void Main()
{
Application.Run(new frmInit());
}

Then I have the first control, entitled UCInit. Here's the relevant portion of it:

private void btnQuit_Click(object sender, System.EventArgs e)
{
Application.Exit();
}

private void btnCreate_Click(object sender, System.EventArgs e)
{
this.Hide();
//Code to draw UCCreate, the second user control,
//should go here. This is the part I need
//help with. Any thoughts?
}
GeneralRe: Here's my code so far Pin
leppie8-Jul-03 13:34
leppie8-Jul-03 13:34 
GeneralRe: Here's my code so far Pin
frogb0x8-Jul-03 13:35
frogb0x8-Jul-03 13:35 
GeneralRe: Here's my code so far Pin
leppie8-Jul-03 14:05
leppie8-Jul-03 14:05 
GeneralSetting form location Pin
mcgahanfl8-Jul-03 7:32
mcgahanfl8-Jul-03 7:32 
GeneralRe: Setting form location Pin
dynamic8-Jul-03 9:40
dynamic8-Jul-03 9:40 
GeneralRe: Setting form location Pin
mcgahanfl8-Jul-03 10:08
mcgahanfl8-Jul-03 10:08 
GeneralCreate Image With Text Pin
Werdna8-Jul-03 6:54
Werdna8-Jul-03 6:54 
GeneralRichTextBox: How to get the count of tabs in a TextLine Pin
STW8-Jul-03 6:17
STW8-Jul-03 6:17 
GeneralRe: RichTextBox: How to get the count of tabs in a TextLine Pin
dynamic8-Jul-03 9:25
dynamic8-Jul-03 9:25 
GeneralRe: RichTextBox: How to get the count of tabs in a TextLine Pin
STW8-Jul-03 10:43
STW8-Jul-03 10:43 
QuestionChanging listview icons? Pin
Manster8-Jul-03 4:57
Manster8-Jul-03 4:57 
GeneralBounds Checker in C# / .NET Pin
NKH8-Jul-03 4:23
NKH8-Jul-03 4:23 
GeneralRe: Bounds Checker in C# / .NET Pin
leppie8-Jul-03 7:41
leppie8-Jul-03 7:41 
GeneralRe: Bounds Checker in C# / .NET Pin
Kant8-Jul-03 16:40
Kant8-Jul-03 16:40 
GeneralRe: Bounds Checker in C# / .NET Pin
Daniel Turini9-Jul-03 4:14
Daniel Turini9-Jul-03 4:14 
GeneralRe: Bounds Checker in C# / .NET Pin
James T. Johnson9-Jul-03 6:14
James T. Johnson9-Jul-03 6:14 
Generalclosing an open form Pin
.gonad8-Jul-03 4:08
.gonad8-Jul-03 4:08 

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.