Click here to Skip to main content
15,919,613 members
Home / Discussions / C#
   

C#

 
GeneralFacing problem accessing cookies in MCMS 2002 Pin
pushpesh8-Jun-05 19:35
pushpesh8-Jun-05 19:35 
GeneralLate Binding With Excel Pin
ksanju10008-Jun-05 19:29
ksanju10008-Jun-05 19:29 
QuestionHow to avoid empty node to appear in xml file while doing xml serialization Pin
Shiby8-Jun-05 19:24
Shiby8-Jun-05 19:24 
AnswerRe: How to avoid empty node to appear in xml file while doing xml serialization Pin
leppie8-Jun-05 21:50
leppie8-Jun-05 21:50 
Generalstuck on a problem with outlook and c# Pin
ekynox8-Jun-05 18:38
ekynox8-Jun-05 18:38 
GeneralRe: stuck on a problem with outlook and c# Pin
codeprojectin8-Jun-05 22:15
codeprojectin8-Jun-05 22:15 
GeneralRe: stuck on a problem with outlook and c# Pin
ekynox9-Jun-05 21:48
ekynox9-Jun-05 21:48 
GeneralC# - Using sender Pin
kezza65438-Jun-05 18:23
kezza65438-Jun-05 18:23 
//I have an array of panels
public Panel[] a = new Panel[10];

//During the creation of 10 panels i set the tag for each panel as below
int i = 0;
for (i = 0; i < 9; i++)
{
a[i] = new Panel();
a[i].Parent = a_Holder;
a[i].Tag = i;
a[i].Top = (i * 16);
a[i].Left = 10;
a[i].Height = 15;
a[i].Width = 250;
a[i].Click += delegate { abcd( a[i] ) };
}

//on clicking a panel the below method is called
public void abcd (object sender)
{
textbox1.text = convert.tostring(sender.tag);
}

I basically want to be able to click on a panel and have that panels tag come up in the textbox. The above example does not work and im sure im way of base, can anyone help?

Cheers
GeneralRe: C# - Using sender Pin
Christian Graus8-Jun-05 18:29
protectorChristian Graus8-Jun-05 18:29 
GeneralRe: C# - Using sender Pin
kezza65438-Jun-05 19:26
kezza65438-Jun-05 19:26 
GeneralRe: C# - Using sender Pin
Philip Price8-Jun-05 23:24
Philip Price8-Jun-05 23:24 
QuestionHow to Close a Form when openning? Pin
Khoa Bui8-Jun-05 17:27
Khoa Bui8-Jun-05 17:27 
AnswerRe: How to Close a Form when openning? Pin
Christian Graus8-Jun-05 17:36
protectorChristian Graus8-Jun-05 17:36 
GeneralRe: How to Close a Form when openning? Pin
codeprojectin8-Jun-05 17:56
codeprojectin8-Jun-05 17:56 
GeneralRe: How to Close a Form when openning? Pin
Christian Graus8-Jun-05 18:30
protectorChristian Graus8-Jun-05 18:30 
GeneralRe: How to Close a Form when openning? Pin
Weiye Chen8-Jun-05 19:40
Weiye Chen8-Jun-05 19:40 
GeneralRe: How to Close a Form when openning? Pin
codeprojectin8-Jun-05 21:11
codeprojectin8-Jun-05 21:11 
GeneralRe: How to Close a Form when openning? Pin
Dave Kreskowiak9-Jun-05 8:30
mveDave Kreskowiak9-Jun-05 8:30 
GeneralI get a problem in calling C++ dll function in C# Pin
dinh van hai8-Jun-05 17:18
dinh van hai8-Jun-05 17:18 
GeneralRe: I get a problem in calling C++ dll function in C# Pin
Dave Kreskowiak9-Jun-05 8:32
mveDave Kreskowiak9-Jun-05 8:32 
GeneralRe: I get a problem in calling C++ dll function in C# Pin
dinh van hai9-Jun-05 15:37
dinh van hai9-Jun-05 15:37 
Generalconvert c/c++ header to c# Pin
savage_8-Jun-05 16:51
savage_8-Jun-05 16:51 
GeneralRe: convert c/c++ header to c# Pin
Christian Graus8-Jun-05 16:53
protectorChristian Graus8-Jun-05 16:53 
GeneralRe: convert c/c++ header to c# Pin
savage_8-Jun-05 16:59
savage_8-Jun-05 16:59 
GeneralRe: convert c/c++ header to c# Pin
Christian Graus8-Jun-05 17:11
protectorChristian Graus8-Jun-05 17:11 

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.