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

C#

 
QuestionXML parsing in c# Pin
aruna_koride17-Sep-06 17:07
aruna_koride17-Sep-06 17:07 
AnswerRe: XML parsing in c# Pin
Bob Nadler18-Sep-06 17:30
Bob Nadler18-Sep-06 17:30 
QuestionRe: XML parsing in c# Pin
aruna_koride18-Sep-06 18:32
aruna_koride18-Sep-06 18:32 
QuestionMainForm not here for working in Code? Pin
xenotronic00717-Sep-06 15:38
xenotronic00717-Sep-06 15:38 
AnswerRe: MainForm not here for working in Code? Pin
Christian Graus17-Sep-06 15:48
protectorChristian Graus17-Sep-06 15:48 
GeneralRe: MainForm not here for working in Code? Pin
xenotronic00718-Sep-06 13:25
xenotronic00718-Sep-06 13:25 
GeneralRe: MainForm not here for working in Code? Pin
Christian Graus18-Sep-06 13:45
protectorChristian Graus18-Sep-06 13:45 
QuestionAdd LinkLabel to panal Pin
Muller217-Sep-06 7:38
Muller217-Sep-06 7:38 
Hi,

I am trying to read a rss feed and create a linklabel for the items within a panel on a form. I have a class called LinkLabelArray and that has the following:

public void AddNewLinkLabel()
{
LinkLabel aLabel = new LinkLabel();
this.List.Add(aLabel);
Form1.ActiveForm.panel1.Controls.Add(aLabel);
//set linklabel properties
aLabel.AutoSize = true;
aLabel.LinkVisited = true;
aLabel.Visible = true;
aLabel.Top = 5;
aLabel.Height = 15;
aLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// handler for clicked event of news title label
aLabel.LinkClicked += new LinkLabelLinkClickedEventHandler(ClickHandler);
}

I can't get the linkLabel to be added to the panel on my form (Form1). I have tried everything I can think of and I still get this error - 'System.Windows.Forms.Form' does not contain a definition for 'panel1' even though I have a panel on Form1 called panel1 and it's modifier value is set to public. public System.Windows.Forms.Panel panel1;.

Can someone please help me!

Thanks,

Al
AnswerRe: Add LinkLabel to panal Pin
Stefan Troschuetz17-Sep-06 8:18
Stefan Troschuetz17-Sep-06 8:18 
QuestionList collection all elements the same! Help! Pin
TommySu17-Sep-06 7:26
TommySu17-Sep-06 7:26 
AnswerRe: List collection all elements the same! Help! Pin
Stefan Troschuetz17-Sep-06 8:09
Stefan Troschuetz17-Sep-06 8:09 
GeneralRe: List collection all elements the same! Help! Pin
TommySu17-Sep-06 17:46
TommySu17-Sep-06 17:46 
AnswerRe: List collection all elements the same! Help! Pin
Guffa17-Sep-06 9:32
Guffa17-Sep-06 9:32 
QuestionEsc Pin
TAREQ F ABUZUHRI17-Sep-06 6:38
TAREQ F ABUZUHRI17-Sep-06 6:38 
AnswerRe: Esc Pin
Amar Chaudhary17-Sep-06 7:00
Amar Chaudhary17-Sep-06 7:00 
Questiona problem with c# IDE Pin
Green Fuze17-Sep-06 5:57
Green Fuze17-Sep-06 5:57 
AnswerRe: a problem with c# IDE Pin
Vikram A Punathambekar17-Sep-06 6:12
Vikram A Punathambekar17-Sep-06 6:12 
GeneralRe: a problem with c# IDE Pin
Green Fuze17-Sep-06 7:29
Green Fuze17-Sep-06 7:29 
AnswerRe: a problem with c# IDE Pin
Vikram A Punathambekar17-Sep-06 6:13
Vikram A Punathambekar17-Sep-06 6:13 
QuestionPrint Pin
MHASSANF17-Sep-06 5:20
MHASSANF17-Sep-06 5:20 
AnswerRe: Print Pin
Green Fuze17-Sep-06 7:34
Green Fuze17-Sep-06 7:34 
QuestionPort Pin
mehrdadc4817-Sep-06 4:16
mehrdadc4817-Sep-06 4:16 
AnswerRe: Port Pin
Jakob Farian Krarup17-Sep-06 19:27
Jakob Farian Krarup17-Sep-06 19:27 
GeneralRe: Port Pin
mehrdadc4817-Sep-06 23:17
mehrdadc4817-Sep-06 23:17 
GeneralRe: Port Pin
Jakob Farian Krarup18-Sep-06 0:06
Jakob Farian Krarup18-Sep-06 0:06 

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.