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

C#

 
GeneralRe: Property values from loaded process Pin
Rocky Moore15-Jul-03 2:48
Rocky Moore15-Jul-03 2:48 
GeneralRe: Property values from loaded process Pin
Shaun Becker15-Jul-03 3:46
Shaun Becker15-Jul-03 3:46 
GeneralRe: Property values from loaded process Pin
Rocky Moore15-Jul-03 13:18
Rocky Moore15-Jul-03 13:18 
GeneralRe: Property values from loaded process Pin
Shaun Becker15-Jul-03 15:00
Shaun Becker15-Jul-03 15:00 
QuestionNon-threaded WebRequest? Pin
Arun Bhalla14-Jul-03 14:38
Arun Bhalla14-Jul-03 14:38 
AnswerRe: Non-threaded WebRequest? Pin
Arun Bhalla15-Jul-03 15:51
Arun Bhalla15-Jul-03 15:51 
Generalcreating a dialoge box in c# Pin
Asim N.14-Jul-03 14:37
Asim N.14-Jul-03 14:37 
GeneralRe: creating a dialoge box in c# Pin
Jim Stewart14-Jul-03 15:11
Jim Stewart14-Jul-03 15:11 
C#
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace SolidAvatar
{
	// note: no event code for the buttons -
	// check the DialogResult property for more info
	public class Form2 : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Button cmdOK;
		private System.Windows.Forms.Button cmdCancel;
		private System.ComponentModel.Container components = null;

		public static DialogResult DoShowDialog(IWin32Window owner)
		{
			Form2 myForm = new Form2 ();
			return myForm.ShowDialog (owner);
		}

		// note the private ctor
		private Form2()
		{
			InitializeComponent();
		}

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

		private void InitializeComponent()
		{
			this.cmdOK = new System.Windows.Forms.Button();
			this.cmdCancel = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// cmdOK
			this.cmdOK.DialogResult = 
				System.Windows.Forms.DialogResult.OK; // <- note
			this.cmdOK.Location = new System.Drawing.Point(112, 200);
			this.cmdOK.Name = "cmdOK";
			this.cmdOK.TabIndex = 0;
			this.cmdOK.Text = "OK";
			// cmdCancel
			this.cmdCancel.DialogResult = 
				System.Windows.Forms.DialogResult.Cancel; // <- note
			this.cmdCancel.Location = new System.Drawing.Point(208, 200);
			this.cmdCancel.Name = "cmdCancel";
			this.cmdCancel.TabIndex = 1;
			this.cmdCancel.Text = "Cancel";
			// Form2
			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.cmdCancel, this.cmdOK});
			this.Name = "Form2";
			this.Text = "Form2";
			this.ResumeLayout(false);
		}
	}
}


α.γεεκ

Fortune passes everywhere.
Duke Leto Atreides


GeneralRe: creating a dialoge box in c# Pin
Member 7681715-Jul-03 12:41
Member 7681715-Jul-03 12:41 
GeneralOnIdle() - how do I override it in C#. Pin
mcgahanfl14-Jul-03 13:05
mcgahanfl14-Jul-03 13:05 
GeneralRe: OnIdle() - how do I override it in C#. Pin
Jim Stewart14-Jul-03 14:59
Jim Stewart14-Jul-03 14:59 
GeneralRe: OnIdle() - how do I override it in C#. Pin
mcgahanfl15-Jul-03 7:50
mcgahanfl15-Jul-03 7:50 
GeneralRe: OnIdle() - how do I override it in C#. Pin
Jim Stewart15-Jul-03 8:57
Jim Stewart15-Jul-03 8:57 
GeneralDirectShow and C# Pin
Brian JR14-Jul-03 11:37
Brian JR14-Jul-03 11:37 
GeneralRe: DirectShow and C# Pin
Mazdak14-Jul-03 11:52
Mazdak14-Jul-03 11:52 
GeneralRe: DirectShow and C# Pin
Brian JR14-Jul-03 16:07
Brian JR14-Jul-03 16:07 
GeneralRe: DirectShow and C# Pin
Mazdak14-Jul-03 20:30
Mazdak14-Jul-03 20:30 
GeneralRe: DirectShow and C# Pin
Brian JR15-Jul-03 7:52
Brian JR15-Jul-03 7:52 
GeneralRe: DirectShow and C# Pin
Brian JR15-Jul-03 8:57
Brian JR15-Jul-03 8:57 
GeneralRe: DirectShow and C# Pin
Brian JR17-Jul-03 9:03
Brian JR17-Jul-03 9:03 
GeneralRe: DirectShow and C# Pin
Brian JR15-Jul-03 8:04
Brian JR15-Jul-03 8:04 
GeneralRe: DirectShow and C# Pin
Brian JR15-Jul-03 8:50
Brian JR15-Jul-03 8:50 
QuestionHow can I Set a Key in a ImageList?? Pin
Acid197814-Jul-03 11:13
Acid197814-Jul-03 11:13 
GeneralPassing data through tiers with collections Pin
haezeban14-Jul-03 10:33
haezeban14-Jul-03 10:33 
GeneralOpera Browser - GetClassName! Pin
jesus4u14-Jul-03 10:18
jesus4u14-Jul-03 10:18 

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.