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

C#

 
GeneralRe: Accessing dBase files with C# Pin
TheMajorRager5-Oct-05 12:14
TheMajorRager5-Oct-05 12:14 
GeneralRe: Accessing dBase files with C# Pin
TheMajorRager5-Oct-05 13:54
TheMajorRager5-Oct-05 13:54 
Questioncheckbox ques Pin
ter815-Oct-05 7:13
susster815-Oct-05 7:13 
GeneralRe: checkbox ques Pin
Guffa5-Oct-05 8:57
Guffa5-Oct-05 8:57 
AnswerRe: checkbox ques Pin
Heath Stewart5-Oct-05 9:10
protectorHeath Stewart5-Oct-05 9:10 
QuestionChanging the colour & font of (null) value datagrid entries Pin
Red_Wizard_Shot_The_Food5-Oct-05 6:58
Red_Wizard_Shot_The_Food5-Oct-05 6:58 
AnswerRe: Changing the colour & font of (null) value datagrid entries Pin
Heath Stewart5-Oct-05 8:43
protectorHeath Stewart5-Oct-05 8:43 
QuestionAdding a chart to my form Pin
james3775-Oct-05 6:25
james3775-Oct-05 6:25 
Can somebody tell me how I add a chart to my user form that will display the 2 values in the 2 textboxes..Is there a way of creating the chart from scratch using a co-ordinate and draw functions?? im confused..Thanks James..

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;
private System.Windows.Forms.TextBox textBox3;
///
/// 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.textBox3 = new System.Windows.Forms.TextBox();
this.groupBox1.SuspendLayout();
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.Controls.AddRange(new System.Windows.Forms.Control[] {
this.textBox3});
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";
//
// textBox3
//
this.textBox3.Location = new System.Drawing.Point(144, 144);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(64, 20);
this.textBox3.TabIndex = 0;
this.textBox3.Text = "textBox3";
this.textBox3.TextChanged += new System.EventHandler(this.textBox3_TextChanged);
//
// 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.groupBox1.ResumeLayout(false);
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)

{
int val = 10;
int show = 0;
for (int i = 0; i < 1234; i++)
for (int j = 0; j <1200; j++)

{
val = val + 10;
show = j;
// or val += 10;
}
textBox2.Text = Convert.ToString(2*2*3^22 + val);
textBox3.Text = Convert.ToString(+ show);
}



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

}

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

}

}
}
AnswerRe: Adding a chart to my form Pin
enjoycrack5-Oct-05 14:24
enjoycrack5-Oct-05 14:24 
GeneralRe: Adding a chart to my form Pin
james3776-Oct-05 7:16
james3776-Oct-05 7:16 
GeneralRe: Adding a chart to my form Pin
enjoycrack6-Oct-05 10:43
enjoycrack6-Oct-05 10:43 
Questionpaste/insert text at cursor position in a rich text box Pin
Agyeman5-Oct-05 6:13
Agyeman5-Oct-05 6:13 
AnswerRe: paste/insert text at cursor position in a rich text box Pin
Heath Stewart5-Oct-05 8:39
protectorHeath Stewart5-Oct-05 8:39 
QuestionSocket.BeginSend and AsyncCallBack Delegate problems Pin
Lilli Alexis5-Oct-05 5:57
Lilli Alexis5-Oct-05 5:57 
Questionpaste/insert text at cursor position in a rich text box Pin
Agyeman5-Oct-05 5:34
Agyeman5-Oct-05 5:34 
AnswerRe: paste/insert text at cursor position in a rich text box Pin
mav.northwind5-Oct-05 8:24
mav.northwind5-Oct-05 8:24 
GeneralRe: paste/insert text at cursor position in a rich text box Pin
Agyeman5-Oct-05 8:34
Agyeman5-Oct-05 8:34 
QuestionHow to place line cap code for arrow?? Pin
...---...5-Oct-05 5:13
...---...5-Oct-05 5:13 
AnswerRe: How to place line cap code for arrow?? Pin
Andy Moore5-Oct-05 6:37
Andy Moore5-Oct-05 6:37 
GeneralRe: How to place line cap code for arrow?? Pin
...---...5-Oct-05 6:45
...---...5-Oct-05 6:45 
GeneralRe: How to place line cap code for arrow?? Pin
Andy Moore5-Oct-05 6:57
Andy Moore5-Oct-05 6:57 
AnswerRe: How to place line cap code for arrow?? Pin
Robert Rohde5-Oct-05 8:31
Robert Rohde5-Oct-05 8:31 
GeneralRe: How to place line cap code for arrow?? Pin
...---...5-Oct-05 8:36
...---...5-Oct-05 8:36 
GeneralRe: How to place line cap code for arrow?? Pin
Robert Rohde5-Oct-05 11:04
Robert Rohde5-Oct-05 11:04 
QuestionSuggestions for modeling Pin
mikker_1235-Oct-05 4:30
mikker_1235-Oct-05 4:30 

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.