Click here to Skip to main content
15,894,546 members
Home / Discussions / C#
   

C#

 
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 
I have added a button and a text box onto a form with no methods within the form...I would like to click the button and perform a simple formula of 2*2 and output the answer to the textbox?..just to get me started!

any Ideas Thanks..


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

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

public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Button button1;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.TextBox textBox1;
///
/// 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.groupBox1 = new System.Windows.Forms.GroupBox();
this.textBox1 = new System.Windows.Forms.TextBox();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// button1
//
this.button1.Location = new System.Drawing.Point(64, 56);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(72, 32);
this.button1.TabIndex = 0;
this.button1.Text = "button1";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// groupBox1
//
this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] {
this.textBox1});
this.groupBox1.Location = new System.Drawing.Point(16, 8);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(256, 240);
this.groupBox1.TabIndex = 1;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "groupBox1";
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(56, 120);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(56, 20);
this.textBox1.TabIndex = 0;
this.textBox1.Text = "textBox1";
//
// 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.button1,
this.groupBox1});
this.Name = "Form1";
this.Text = "Form1";
this.groupBox1.ResumeLayout(false);
this.ResumeLayout(false);

}
#endregion

//Draws the image to fit the ClientRectangle area of the form.

/// The main entry point for the application.
///
[STAThread]
static void Main()
{
Application.Run(new Form1());
}

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

}
}
}
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 
GeneralRe: Simple 2*2 output to textbox from application Pin
Dan Neely4-Oct-05 9:40
Dan Neely4-Oct-05 9:40 
QuestionDataGrid Edit Event Pin
Yoyosch4-Oct-05 7:09
Yoyosch4-Oct-05 7:09 
QuestionDatatable Adding Row Pin
SJR_14-Oct-05 6:59
SJR_14-Oct-05 6:59 
AnswerRe: Datatable Adding Row Pin
vineas4-Oct-05 11:37
vineas4-Oct-05 11:37 
QuestionC# Network Problem Pin
theDexter4-Oct-05 6:34
theDexter4-Oct-05 6:34 
AnswerRe: C# Network Problem Pin
mav.northwind4-Oct-05 7:04
mav.northwind4-Oct-05 7:04 
GeneralRe: C# Network Problem Pin
4-Oct-05 8:01
suss4-Oct-05 8:01 
GeneralRe: C# Network Problem Pin
theDexter4-Oct-05 9:07
theDexter4-Oct-05 9:07 
QuestionCPU Usage Pin
manojk_batra4-Oct-05 6:32
manojk_batra4-Oct-05 6:32 
AnswerRe: CPU Usage Pin
Heath Stewart4-Oct-05 10:53
protectorHeath Stewart4-Oct-05 10:53 
GeneralRe: CPU Usage Pin
manojk_batra4-Oct-05 18:04
manojk_batra4-Oct-05 18:04 
AnswerRe: CPU Usage Pin
Heath Stewart5-Oct-05 6:47
protectorHeath Stewart5-Oct-05 6:47 
QuestionDisplaying an owned form when main form is shown Pin
Luis Alonso Ramos4-Oct-05 5:11
Luis Alonso Ramos4-Oct-05 5:11 
AnswerSolved! Pin
Luis Alonso Ramos4-Oct-05 5:42
Luis Alonso Ramos4-Oct-05 5:42 
AnswerRe: Displaying an owned form when main form is shown Pin
mav.northwind4-Oct-05 7:07
mav.northwind4-Oct-05 7:07 

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.