Click here to Skip to main content
15,914,642 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: backwards binary compatibility .NET 2.0 Pin
George L. Jackson22-Feb-06 5:42
George L. Jackson22-Feb-06 5:42 
Questionhow to install the proper version of the program depending on the version of the Office? Pin
berlin200519-Feb-06 7:50
berlin200519-Feb-06 7:50 
QuestionopenFileDialog help needed Pin
cindylou1017-Feb-06 12:40
cindylou1017-Feb-06 12:40 
AnswerRe: openFileDialog help needed Pin
digiwombat17-Feb-06 13:34
digiwombat17-Feb-06 13:34 
GeneralRe: openFileDialog help needed Pin
cindylou1020-Feb-06 13:23
cindylou1020-Feb-06 13:23 
QuestionStupid CheckBox Behavior, please help!! Pin
Miguel Lopes17-Feb-06 5:48
Miguel Lopes17-Feb-06 5:48 
AnswerRe: Stupid CheckBox Behavior, please help!! Pin
George L. Jackson17-Feb-06 12:00
George L. Jackson17-Feb-06 12:00 
GeneralRe: Stupid CheckBox Behavior, please help!! Pin
George L. Jackson17-Feb-06 12:01
George L. Jackson17-Feb-06 12:01 
Same for Windows Forms:

Windows Form Designer:

namespace CheckWin
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;

/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}

#region Windows Form Designer generated code

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.textBox1 = new System.Windows.Forms.TextBox();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.button1 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(12, 23);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(100, 20);
this.textBox1.TabIndex = 0;
//
// checkBox1
//
this.checkBox1.AutoSize = true;
this.checkBox1.Location = new System.Drawing.Point(143, 25);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(80, 17);
this.checkBox1.TabIndex = 1;
this.checkBox1.Text = "checkBox1";
this.checkBox1.UseVisualStyleBackColor = true;
this.checkBox1.Click += new System.EventHandler(this.checkBox1_Click);
//
// button1
//
this.button1.Location = new System.Drawing.Point(22, 81);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 2;
this.button1.Text = "button1";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(292, 171);
this.Controls.Add(this.button1);
this.Controls.Add(this.checkBox1);
this.Controls.Add(this.textBox1);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
this.PerformLayout();

}

#endregion

private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.Button button1;
}
}

Windows Form Code:

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

namespace CheckWin
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
checkBox1.Checked = (checkBox1.Checked) ? false : true;
}

private void checkBox1_Click(object sender, EventArgs e)
{
int value = 0;

if (Int32.TryParse(textBox1.Text, out value))
{
textBox1.Text = (++value).ToString();
}
else
{
textBox1.Text = value.ToString();
}
}
}
}

AnswerRe: Stupid CheckBox Behavior, please help!! Pin
digiwombat17-Feb-06 12:24
digiwombat17-Feb-06 12:24 
GeneralRe: Stupid CheckBox Behavior, please help!! Pin
Miguel Lopes17-Feb-06 14:27
Miguel Lopes17-Feb-06 14:27 
GeneralRe: Stupid CheckBox Behavior, please help!! Pin
George L. Jackson17-Feb-06 14:53
George L. Jackson17-Feb-06 14:53 
AnswerRe: Stupid CheckBox Behavior, please help!! Pin
peryMimon17-Nov-09 22:43
peryMimon17-Nov-09 22:43 
QuestionKill key strokes while hooked Pin
digiwombat16-Feb-06 18:31
digiwombat16-Feb-06 18:31 
QuestionRe: Kill key strokes while hooked Pin
George L. Jackson17-Feb-06 13:22
George L. Jackson17-Feb-06 13:22 
AnswerRe: Kill key strokes while hooked Pin
digiwombat17-Feb-06 13:33
digiwombat17-Feb-06 13:33 
GeneralRe: Kill key strokes while hooked Pin
George L. Jackson17-Feb-06 13:33
George L. Jackson17-Feb-06 13:33 
QuestionRe: Kill key strokes while hooked Pin
[Marc]17-Feb-06 13:46
[Marc]17-Feb-06 13:46 
AnswerRe: Kill key strokes while hooked Pin
digiwombat17-Feb-06 14:08
digiwombat17-Feb-06 14:08 
GeneralRe: Kill key strokes while hooked Pin
Dave Kreskowiak17-Feb-06 14:59
mveDave Kreskowiak17-Feb-06 14:59 
GeneralRe: Kill key strokes while hooked Pin
digiwombat17-Feb-06 17:16
digiwombat17-Feb-06 17:16 
GeneralRe: Kill key strokes while hooked Pin
digiwombat17-Feb-06 18:06
digiwombat17-Feb-06 18:06 
GeneralRe: Kill key strokes while hooked Pin
Dave Kreskowiak18-Feb-06 3:33
mveDave Kreskowiak18-Feb-06 3:33 
GeneralRe: Kill key strokes while hooked Pin
digiwombat18-Feb-06 10:40
digiwombat18-Feb-06 10:40 
Questionflash with .net Pin
Vineet Rajan16-Feb-06 6:15
Vineet Rajan16-Feb-06 6:15 
QuestionLetting the Parent handle the click Pin
Eric Schaefer16-Feb-06 2:35
Eric Schaefer16-Feb-06 2:35 

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.