Click here to Skip to main content
15,903,856 members
Home / Discussions / C#
   

C#

 
Questionhow to get datagrid previously selected column index in c#.net Pin
swetha_insoft22-Jul-09 3:14
swetha_insoft22-Jul-09 3:14 
AnswerRe: how to get datagrid previously selected column index in c#.net Pin
swetha_insoft22-Jul-09 3:18
swetha_insoft22-Jul-09 3:18 
AnswerRe: how to get datagrid previously selected column index in c#.net Pin
Muhammad Mazhar22-Jul-09 3:52
Muhammad Mazhar22-Jul-09 3:52 
QuestionTCP Window Scaling Pin
satsumatable22-Jul-09 2:16
satsumatable22-Jul-09 2:16 
AnswerRe: TCP Window Scaling Pin
led mike22-Jul-09 4:35
led mike22-Jul-09 4:35 
QuestionUser control problem in databind Pin
beesan22-Jul-09 2:05
beesan22-Jul-09 2:05 
AnswerRe: User control problem in databind Pin
Nagy Vilmos22-Jul-09 3:11
professionalNagy Vilmos22-Jul-09 3:11 
GeneralRe: User control problem in databind Pin
beesan22-Jul-09 20:09
beesan22-Jul-09 20:09 
QuestionHow to Save word file using SaveDialogBox and File Stream Pin
mandar77722-Jul-09 1:41
mandar77722-Jul-09 1:41 
AnswerRe: How to Save word file using SaveDialogBox and File Stream Pin
Brij22-Jul-09 2:01
mentorBrij22-Jul-09 2:01 
GeneralRe: How to Save word file using SaveDialogBox and File Stream Pin
mandar77722-Jul-09 2:19
mandar77722-Jul-09 2:19 
AnswerRe: How to Save word file using SaveDialogBox and File Stream Pin
Adam R Harris22-Jul-09 6:18
Adam R Harris22-Jul-09 6:18 
Questionhandling add contact event in outlook 07 Pin
ACMA_198022-Jul-09 1:16
ACMA_198022-Jul-09 1:16 
AnswerRe: handling add contact event in outlook 07 Pin
satsumatable22-Jul-09 3:52
satsumatable22-Jul-09 3:52 
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 

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.