Click here to Skip to main content
15,917,628 members
Home / Discussions / C#
   

C#

 
AnswerRe: opening a file with internet explorer from C# code? Pin
CWIZO4-Aug-04 3:03
CWIZO4-Aug-04 3:03 
GeneralRe: opening a file with internet explorer from C# code? Pin
misterbear4-Aug-04 4:05
misterbear4-Aug-04 4:05 
GeneralRe: opening a file with internet explorer from C# code? Pin
CWIZO4-Aug-04 4:57
CWIZO4-Aug-04 4:57 
AnswerRe: opening a file with internet explorer from C# code? Pin
Member 11737604-Aug-04 3:45
Member 11737604-Aug-04 3:45 
AnswerRe: opening a file with internet explorer from C# code? Pin
Heath Stewart4-Aug-04 6:03
protectorHeath Stewart4-Aug-04 6:03 
GeneralMaking sure a message box is seen Pin
johnstacey4-Aug-04 0:28
johnstacey4-Aug-04 0:28 
GeneralRe: Making sure a message box is seen Pin
Dave Kreskowiak4-Aug-04 5:24
mveDave Kreskowiak4-Aug-04 5:24 
GeneralRe: Making sure a message box is seen Pin
Syed Abdul Khader4-Aug-04 5:41
Syed Abdul Khader4-Aug-04 5:41 
Try this.

using System;<br />
using System.Runtime.InteropServices;<br />
using System.Drawing;<br />
using System.Collections;<br />
using System.ComponentModel;<br />
using System.Windows.Forms;<br />
using System.Data;<br />
<br />
namespace WindowsApplication1<br />
{<br />
	public class Hi : System.Windows.Forms.Form<br />
	{<br />
		private System.Windows.Forms.Button button1;<br />
		private System.ComponentModel.Container components = null;<br />
<br />
		public Hi()<br />
		{<br />
			InitializeComponent();<br />
		}<br />
<br />
		protected override void Dispose( bool disposing )<br />
		{<br />
			if( disposing )<br />
			{<br />
				if (components != null) <br />
				{<br />
					components.Dispose();<br />
				}<br />
			}<br />
			base.Dispose( disposing );<br />
		}<br />
<br />
		private void InitializeComponent()<br />
		{<br />
			this.button1 = new System.Windows.Forms.Button();<br />
			this.SuspendLayout();<br />
<br />
			this.button1.Location = new System.Drawing.Point(64, 104);<br />
			this.button1.Name = "button1";<br />
			this.button1.TabIndex = 0;<br />
			this.button1.Text = "button1";<br />
			this.button1.Click += new System.EventHandler(this.button1_Click);<br />
			<br />
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);<br />
			this.ClientSize = new System.Drawing.Size(292, 273);<br />
			this.Controls.Add(this.button1);<br />
			this.Name = "Hi";<br />
			this.Text = "Hiiii";<br />
			this.Load += new System.EventHandler(this.Form1_Load);<br />
			this.ResumeLayout(false);<br />
<br />
		}<br />
<br />
		[STAThread]<br />
		static void Main() <br />
		{<br />
			Application.Run(new Hi());<br />
		}<br />
<br />
		[DllImport("user32.dll")]<br />
		public static extern bool SetForegroundWindow(IntPtr hWnd);<br />
<br />
		[DllImport("user32.dll")]<br />
		public static extern IntPtr FindWindow(string lpClassName,<br />
			string lpWindowName);<br />
<br />
		private void button1_Click(object sender, System.EventArgs e)<br />
		{<br />
			System.Threading.Thread.Sleep(10000);<br />
			IntPtr ptr = FindWindow(null, "Hiiii");<br />
			SetForegroundWindow(ptr);<br />
			MessageBox.Show("In fornt");<br />
		}<br />
	}<br />
}

QuestionKeyPress Event in DataGrid? Pin
murali_utr4-Aug-04 0:18
murali_utr4-Aug-04 0:18 
AnswerRe: KeyPress Event in DataGrid? Pin
exhaulted4-Aug-04 1:20
exhaulted4-Aug-04 1:20 
Questionhow to add items to contextmenus Pin
Luigi Casana3-Aug-04 23:34
sussLuigi Casana3-Aug-04 23:34 
AnswerRe: how to add items to contextmenus Pin
leppie4-Aug-04 3:50
leppie4-Aug-04 3:50 
GeneralRe: how to add items to contextmenus Pin
Stephan Wright4-Aug-04 23:01
Stephan Wright4-Aug-04 23:01 
GeneralRe: how to add items to contextmenus Pin
angelwhoisadevil5-Aug-04 22:14
sussangelwhoisadevil5-Aug-04 22:14 
GeneralResolution independent forms Pin
biggerR3-Aug-04 23:25
biggerR3-Aug-04 23:25 
GeneralRe: Resolution independent forms Pin
4-Aug-04 3:00
suss4-Aug-04 3:00 
GeneralRe: Resolution independent forms Pin
Heath Stewart4-Aug-04 6:07
protectorHeath Stewart4-Aug-04 6:07 
GeneralRe: Resolution independent forms Pin
Heath Stewart4-Aug-04 6:07
protectorHeath Stewart4-Aug-04 6:07 
Generali want to open new form Pin
shdelpiero3-Aug-04 21:14
shdelpiero3-Aug-04 21:14 
GeneralRe: i want to open new form Pin
sreejith ss nair3-Aug-04 21:41
sreejith ss nair3-Aug-04 21:41 
GeneralRe: i want to open new form Pin
Jay Shankar3-Aug-04 22:08
Jay Shankar3-Aug-04 22:08 
GeneralRe: i want to open new form Pin
exhaulted3-Aug-04 22:36
exhaulted3-Aug-04 22:36 
QuestionReflection: Can base class know about derived class? Pin
PJules3-Aug-04 21:11
PJules3-Aug-04 21:11 
AnswerRe: Reflection: Can base class know about derived class? Pin
Syed Abdul Khader4-Aug-04 0:10
Syed Abdul Khader4-Aug-04 0:10 
AnswerRe: Reflection: Can base class know about derived class? Pin
leppie4-Aug-04 1:16
leppie4-Aug-04 1:16 

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.