Click here to Skip to main content
15,921,941 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to fill a combobox with a class [EDITED] Pin
Łukasz Nowakowski28-Apr-11 10:17
Łukasz Nowakowski28-Apr-11 10:17 
GeneralRe: how to fill a combobox with a class [EDITED] Pin
adrian salas29-Apr-11 10:29
adrian salas29-Apr-11 10:29 
GeneralRe: how to fill a combobox with a class [EDITED] Pin
Łukasz Nowakowski1-May-11 7:24
Łukasz Nowakowski1-May-11 7:24 
GeneralRe: how to fill a combobox with a class [EDITED] Pin
adrian salas2-May-11 13:44
adrian salas2-May-11 13:44 
AnswerRe: how to fill a combobox with a class Pin
minnie mouse28-Apr-11 1:02
minnie mouse28-Apr-11 1:02 
QuestionProcess Pin
viliam27-Apr-11 10:19
viliam27-Apr-11 10:19 
QuestionInput validation [modified] Pin
jashimu27-Apr-11 9:06
jashimu27-Apr-11 9:06 
AnswerRe: Input validation Pin
Pete O'Hanlon27-Apr-11 9:25
mvePete O'Hanlon27-Apr-11 9:25 
GeneralRe: Input validation Pin
jashimu27-Apr-11 9:39
jashimu27-Apr-11 9:39 
GeneralRe: Input validation Pin
Pete O'Hanlon27-Apr-11 10:02
mvePete O'Hanlon27-Apr-11 10:02 
AnswerRe: Input validation Pin
walterhevedeich27-Apr-11 14:54
professionalwalterhevedeich27-Apr-11 14:54 
GeneralRe: Input validation Pin
Pete O'Hanlon27-Apr-11 15:11
mvePete O'Hanlon27-Apr-11 15:11 
QuestionHow can i add A Linklable by calling a function in a class? Pin
Arunkumar.Koloth27-Apr-11 8:57
Arunkumar.Koloth27-Apr-11 8:57 
AnswerRe: How can i add A Linklable by calling a function in a class? Pin
Pete O'Hanlon27-Apr-11 9:04
mvePete O'Hanlon27-Apr-11 9:04 
QuestionRe: How can i add A Linklable by calling a function in a class? Pin
Arunkumar.Koloth27-Apr-11 10:48
Arunkumar.Koloth27-Apr-11 10:48 
AnswerRe: How can i add A Linklable by calling a function in a class? Pin
Pete O'Hanlon27-Apr-11 10:52
mvePete O'Hanlon27-Apr-11 10:52 
QuestionRe: How can i add A Linklable by calling a function in a class? Pin
Arunkumar.Koloth27-Apr-11 11:34
Arunkumar.Koloth27-Apr-11 11:34 
AnswerRe: How can i add A Linklable by calling a function in a class? Pin
Pete O'Hanlon27-Apr-11 14:49
mvePete O'Hanlon27-Apr-11 14:49 
You don't need to create a new instance of Form1. In fact, as you have placed this method inside your Form class, you don't even need containingForm, but assuming you are going to move this method into a separate class, your call to AddLinkLabel would look like this:
C#
AddLinkLabel(this, 20, 20, 100, 30, "Click Here");
You have now added the link label to the controls collection of the form that's displayed (and not the form you instantiated in Form1 frm = new Form1();.

Forgive your enemies - it messes with their heads


My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility


QuestionRe: How can i add A Linklable by calling a function in a class? Pin
Arunkumar.Koloth27-Apr-11 18:02
Arunkumar.Koloth27-Apr-11 18:02 
AnswerRe: How can i add A Linklable by calling a function in a class? Pin
Pete O'Hanlon27-Apr-11 20:35
mvePete O'Hanlon27-Apr-11 20:35 
GeneralRe: How can i add A Linklable by calling a function in a class? Pin
Arunkumar.Koloth28-Apr-11 1:57
Arunkumar.Koloth28-Apr-11 1:57 
GeneralRe: How can i add A Linklable by calling a function in a class? Pin
Pete O'Hanlon28-Apr-11 3:16
mvePete O'Hanlon28-Apr-11 3:16 
QuestionCompiling a project in a "smart" way? Pin
Dr.Unreal27-Apr-11 7:35
Dr.Unreal27-Apr-11 7:35 
AnswerRe: Compiling a project in a "smart" way? Pin
AspDotNetDev27-Apr-11 7:43
protectorAspDotNetDev27-Apr-11 7:43 
AnswerRe: Compiling a project in a "smart" way? Pin
Dave Kreskowiak27-Apr-11 7:45
mveDave Kreskowiak27-Apr-11 7:45 

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.