Click here to Skip to main content
15,887,267 members
Home / Discussions / C#
   

C#

 
GeneralRe: handling add contact event in outlook 07 Pin
ACMA_198022-Jul-09 23:40
ACMA_198022-Jul-09 23:40 
Questionlabel is not becoming visible Pin
Mahesh_Blr22-Jul-09 1:05
Mahesh_Blr22-Jul-09 1:05 
AnswerRe: label is not becoming visible Pin
musefan22-Jul-09 1:09
musefan22-Jul-09 1:09 
AnswerRe: label is not becoming visible Pin
Manas Bhardwaj22-Jul-09 1:11
professionalManas Bhardwaj22-Jul-09 1:11 
AnswerRe: label is not becoming visible Pin
Nagy Vilmos22-Jul-09 1:59
professionalNagy Vilmos22-Jul-09 1:59 
Questionc# adding events to programmaticlly added controls Pin
allexserban22-Jul-09 0:55
allexserban22-Jul-09 0:55 
AnswerRe: c# adding events to programmaticlly added controls Pin
DaveyM6922-Jul-09 1:03
professionalDaveyM6922-Jul-09 1:03 
AnswerRe: c# adding events to programmaticlly added controls Pin
Luc Pattyn22-Jul-09 1:05
sitebuilderLuc Pattyn22-Jul-09 1:05 
Hi,

not exactly sure what you want. Here are three pointers:

1.
you can program anything by code that you also could do interactively in Visual Designer; all VD does is add code in some file (myForm.designer.cs), there is no magic involved; look at such code, and do the same thing in the appropriate method yourself.

2.
you can share event handlers across multiple controls; all event handlers have a first argument object sender that serves to identify the exact sender of the event; you would probably have to cast it to the appropriate control type first.

3.
you may find it useful to somehow make one Control (say ListView) refer to another Control (say TabPage); every Control has a object Tag property that serves no particular purpose, so you can store anything you like there, and use it where useful. As an alternative you could create a map using a Dictionary.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

GeneralRe: c# adding events to programmaticlly added controls Pin
Nagy Vilmos22-Jul-09 1:10
professionalNagy Vilmos22-Jul-09 1:10 
GeneralRe: c# adding events to programmaticlly added controls Pin
Luc Pattyn22-Jul-09 1:20
sitebuilderLuc Pattyn22-Jul-09 1:20 
JokeRe: c# adding events to programmaticlly added controls Pin
DaveyM6922-Jul-09 1:34
professionalDaveyM6922-Jul-09 1:34 
GeneralRe: c# adding events to programmaticlly added controls Pin
Luc Pattyn22-Jul-09 1:39
sitebuilderLuc Pattyn22-Jul-09 1:39 
GeneralRe: c# adding events to programmaticlly added controls Pin
Nagy Vilmos22-Jul-09 2:02
professionalNagy Vilmos22-Jul-09 2:02 
GeneralRe: c# adding events to programmaticlly added controls Pin
Luc Pattyn22-Jul-09 3:27
sitebuilderLuc Pattyn22-Jul-09 3:27 
GeneralRe: c# adding events to programmaticlly added controls Pin
DaveyM6922-Jul-09 3:47
professionalDaveyM6922-Jul-09 3:47 
GeneralRe: c# adding events to programmaticlly added controls Pin
Nagy Vilmos22-Jul-09 3:54
professionalNagy Vilmos22-Jul-09 3:54 
AnswerRe: c# adding events to programmaticlly added controls Pin
allexserban22-Jul-09 1:12
allexserban22-Jul-09 1:12 
GeneralRe: c# adding events to programmaticlly added controls Pin
Nagy Vilmos22-Jul-09 2:03
professionalNagy Vilmos22-Jul-09 2:03 
QuestionHow to login a user to a website using HttpWebRequest and HttpWebResponse Pin
sumit703422-Jul-09 0:45
sumit703422-Jul-09 0:45 
AnswerRe: How to login a user to a website using HttpWebRequest and HttpWebResponse Pin
Member 103390722-Jul-09 1:24
Member 103390722-Jul-09 1:24 
GeneralRe: How to login a user to a website using HttpWebRequest and HttpWebResponse Pin
sumit703422-Jul-09 1:28
sumit703422-Jul-09 1:28 
QuestionRe Sizing List View Column Pin
satsumatable22-Jul-09 0:38
satsumatable22-Jul-09 0:38 
AnswerRe: Re Sizing List View Column Pin
DaveyM6922-Jul-09 0:55
professionalDaveyM6922-Jul-09 0:55 
AnswerRe: Re Sizing List View Column Pin
Mycroft Holmes22-Jul-09 1:00
professionalMycroft Holmes22-Jul-09 1:00 
QuestionSome questions about using the C# code compiler ( CSharpCodeProvider ) [modified] Pin
MafiaMoe22-Jul-09 0:38
MafiaMoe22-Jul-09 0:38 

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.