Click here to Skip to main content
15,914,221 members
Home / Discussions / C#
   

C#

 
AnswerRe: Executable file without .net framework, is it possible? Pin
Mohamad Al Husseiny1-Aug-05 5:23
Mohamad Al Husseiny1-Aug-05 5:23 
GeneralVisual Studio .NET 2003 hangs on startup Pin
Will L Pittenger31-Jul-05 8:17
Will L Pittenger31-Jul-05 8:17 
GeneralRe: Visual Studio .NET 2003 hangs on startup Pin
Judah Gabriel Himango31-Jul-05 15:58
sponsorJudah Gabriel Himango31-Jul-05 15:58 
GeneralRe: Visual Studio .NET 2003 hangs on startup Pin
Will L Pittenger31-Jul-05 16:44
Will L Pittenger31-Jul-05 16:44 
GeneralRe: Visual Studio .NET 2003 hangs on startup Pin
Lars Niedziolka1-Aug-05 14:40
Lars Niedziolka1-Aug-05 14:40 
GeneralRe: Visual Studio .NET 2003 hangs on startup Pin
Will L Pittenger1-Aug-05 15:24
Will L Pittenger1-Aug-05 15:24 
GeneralRe: Visual Studio .NET 2003 hangs on startup Pin
Will L Pittenger2-Aug-05 12:05
Will L Pittenger2-Aug-05 12:05 
GeneralMultiple controls at runtime problem Pin
Radgar31-Jul-05 6:20
Radgar31-Jul-05 6:20 
Hi all, here is what I do and need;
- I create multiple controls at runtime: (myControl1, myControl2, myControl3...)
- I have only one event definition for all my controls: (myControl_Enter)
- Everything works fine but what I need is:
when the myControl_Enter event is fired, I want "only" that instance
of the control to change backcolor.

below is the part of the code needed:

<br />
private int counter = 0;<br />
<br />
public void AddNewMyControl()<br />
{<br />
counter += 1;<br />
myClass.MyControl myControl = new myClass.MyControl();<br />
myControl.Dock = System.Windows.Forms.DockStyle.Top;<br />
myControl.Location = new System.Drawing.Point(0, 0);<br />
myControl.Name = "myControl" + counter;<br />
myControl.Size = new System.Drawing.Size(536, 168);<br />
myControl.Enter += new System.EventHandler(myControl_Enter);<br />
this.Controls.Add(myControl);<br />
}<br />
<br />
private void myControl_Enter(object sender, System.EventArgs e)<br />
		{<br />
			//change the backcolor of only this instance of myControl<br />
			<br />
		}<br />


thank you in advance.

Radgar
"Imagination is more important than knowledge." - Albert Einstein
GeneralRe: Multiple controls at runtime problem Pin
gnjunge31-Jul-05 7:27
gnjunge31-Jul-05 7:27 
GeneralRe: Multiple controls at runtime problem Pin
Radgar31-Jul-05 11:28
Radgar31-Jul-05 11:28 
GeneralPC Account Pin
acastano31-Jul-05 5:04
acastano31-Jul-05 5:04 
GeneralRe: PC Account Pin
Alomgir Miah31-Jul-05 16:58
Alomgir Miah31-Jul-05 16:58 
GeneralRe: DB Table Prob Pin
gnjunge31-Jul-05 7:31
gnjunge31-Jul-05 7:31 
Generalinternet printing Pin
cishi_us31-Jul-05 0:47
cishi_us31-Jul-05 0:47 
GeneralRe: internet printing Pin
Guffa31-Jul-05 3:29
Guffa31-Jul-05 3:29 
GeneralCorresponding .cs file is not added when I add a Crytal Report file in Solution Explorer VS.Net2003 Pin
Member 123075730-Jul-05 23:58
Member 123075730-Jul-05 23:58 
GeneralRLE image to BMP using buffer. Pin
liqnit30-Jul-05 21:45
liqnit30-Jul-05 21:45 
GeneralBinding a class to a datagrid Pin
Ruskin Dantra30-Jul-05 18:43
Ruskin Dantra30-Jul-05 18:43 
GeneralMulti-threading questions Pin
Corillian30-Jul-05 14:49
Corillian30-Jul-05 14:49 
GeneralRe: Multi-threading questions Pin
S. Senthil Kumar31-Jul-05 4:01
S. Senthil Kumar31-Jul-05 4:01 
GeneralRe: Multi-threading questions Pin
Andy Brummer31-Jul-05 8:46
sitebuilderAndy Brummer31-Jul-05 8:46 
GeneralReadOnly in DataGrid Pin
zaboboa30-Jul-05 13:51
zaboboa30-Jul-05 13:51 
GeneralRe: ReadOnly in DataGrid Pin
Robert Rohde30-Jul-05 19:55
Robert Rohde30-Jul-05 19:55 
QuestionImageList serious problem in C#: why? Pin
bouli30-Jul-05 13:45
bouli30-Jul-05 13:45 
GeneralWeb service returning a Guid Pin
Luis Alonso Ramos30-Jul-05 11:34
Luis Alonso Ramos30-Jul-05 11:34 

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.