Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
AnswerRe: executing a dos command Pin
Heath Stewart4-Oct-05 11:00
protectorHeath Stewart4-Oct-05 11:00 
Questionusing remote SMTP Pin
evgenyus4-Oct-05 9:16
evgenyus4-Oct-05 9:16 
AnswerRe: using remote SMTP Pin
Heath Stewart4-Oct-05 11:19
protectorHeath Stewart4-Oct-05 11:19 
QuestionExtended ASCII Pin
mcyrrer4-Oct-05 9:13
mcyrrer4-Oct-05 9:13 
AnswerRe: Extended ASCII Pin
mav.northwind4-Oct-05 10:55
mav.northwind4-Oct-05 10:55 
AnswerRe: Extended ASCII Pin
Heath Stewart4-Oct-05 11:10
protectorHeath Stewart4-Oct-05 11:10 
GeneralRe: Extended ASCII Pin
mcyrrer5-Oct-05 9:24
mcyrrer5-Oct-05 9:24 
QuestionPlotting Charts on a userform.. Pin
james3774-Oct-05 9:00
james3774-Oct-05 9:00 
Do anybody know how to plot points on a user form I have created?...

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

namespace WindowsApplication7
{
///
/// Summary description for Form1.
///

public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.GroupBox groupBox1;
///
/// Required designer variable.
///

private System.ComponentModel.Container components = null;

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

//
// TODO: Add any constructor code after InitializeComponent call
//
}

///
/// 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.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.textBox1 = new System.Windows.Forms.TextBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.SuspendLayout();
//
// button1
//
this.button1.Location = new System.Drawing.Point(48, 56);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(48, 32);
this.button1.TabIndex = 0;
this.button1.Text = "button1";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
this.button2.Location = new System.Drawing.Point(48, 112);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(48, 32);
this.button2.TabIndex = 1;
this.button2.Text = "button2";
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(160, 56);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(88, 20);
this.textBox1.TabIndex = 2;
this.textBox1.Text = "textBox1";
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(160, 112);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(88, 20);
this.textBox2.TabIndex = 3;
this.textBox2.Text = "textBox2";
//
// groupBox1
//
this.groupBox1.Location = new System.Drawing.Point(24, 16);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(256, 224);
this.groupBox1.TabIndex = 4;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "groupBox1";
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(292, 266);
this.Controls.AddRange(new System.Windows.Forms.Control[] {
this.textBox2,
this.textBox1,
this.button2,
this.button1,
this.groupBox1});
this.Name = "Form1";
this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);

}
#endregion

///
/// The main entry point for the application.
///

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


private void button1_Click(object sender, System.EventArgs e)
{
textBox1.Text = Convert.ToString(2*2);
}

private void button2_Click(object sender, System.EventArgs e)
{
textBox2.Text = Convert.ToString(2*2^3+10);
}

private void Form1_Load(object sender, System.EventArgs e)
{

}

}
}
AnswerRe: Plotting Charts on a userform.. Pin
parvinder sehrawat5-Oct-05 1:09
parvinder sehrawat5-Oct-05 1:09 
GeneralRe: Plotting Charts on a userform.. Pin
james3775-Oct-05 2:12
james3775-Oct-05 2:12 
QuestionStrange xml problem Pin
thepersonof4-Oct-05 8:50
thepersonof4-Oct-05 8:50 
QuestionRe: Strange xml problem Pin
David Stone4-Oct-05 20:48
sitebuilderDavid Stone4-Oct-05 20:48 
AnswerRe: Strange xml problem Pin
thepersonof5-Oct-05 6:49
thepersonof5-Oct-05 6:49 
GeneralRe: Strange xml problem Pin
thepersonof6-Oct-05 7:01
thepersonof6-Oct-05 7:01 
QuestionReading IPTC from image file Pin
yarns4-Oct-05 7:33
yarns4-Oct-05 7:33 
QuestionHTML code to .TXT Pin
ventomito4-Oct-05 7:28
ventomito4-Oct-05 7:28 
AnswerRe: HTML code to .TXT Pin
Yoyosch4-Oct-05 7:31
Yoyosch4-Oct-05 7:31 
GeneralRe: HTML code to .TXT Pin
ventomito4-Oct-05 7:44
ventomito4-Oct-05 7:44 
AnswerRe: HTML code to .TXT Pin
Heath Stewart4-Oct-05 10:56
protectorHeath Stewart4-Oct-05 10:56 
GeneralRe: HTML code to .TXT Pin
ventomito5-Oct-05 10:00
ventomito5-Oct-05 10:00 
AnswerRe: HTML code to .TXT Pin
Daniel Bright4-Oct-05 11:20
Daniel Bright4-Oct-05 11:20 
Questionpopulating the dynamically generated textboxes on click of a dynamically generated button. Pin
shivanimatta4-Oct-05 7:15
shivanimatta4-Oct-05 7:15 
QuestionSimple 2*2 output to textbox from application Pin
james3774-Oct-05 7:13
james3774-Oct-05 7:13 
AnswerRe: Simple 2*2 output to textbox from application Pin
Dan Neely4-Oct-05 8:12
Dan Neely4-Oct-05 8:12 
GeneralRe: Simple 2*2 output to textbox from application Pin
james3774-Oct-05 8:52
james3774-Oct-05 8:52 

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.