Click here to Skip to main content
15,922,533 members
Home / Discussions / C#
   

C#

 
GeneralRe: Will C# support primitive data type in Generics Pin
PIEBALDconsult22-Jul-09 6:19
mvePIEBALDconsult22-Jul-09 6:19 
QuestionSplitContainer problem Pin
lune1222-Jul-09 3:21
lune1222-Jul-09 3:21 
AnswerRe: SplitContainer problem Pin
Muhammad Mazhar22-Jul-09 3:55
Muhammad Mazhar22-Jul-09 3:55 
GeneralRe: SplitContainer problem Pin
lune1222-Jul-09 4:04
lune1222-Jul-09 4:04 
GeneralRe: SplitContainer problem Pin
Muhammad Mazhar22-Jul-09 4:22
Muhammad Mazhar22-Jul-09 4:22 
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 
So the situation is the folowing

Inside a tabview control; i add programaticly a number of tabs (the number is not fixed); on each tab i add a listview. My question is how do i add an event item so that when i click any item from any list i fill a textbox with something from that item; my code looks like this

public void lv_SelectedIndexChanged(object sender, EventArgs e)
        {
         while (n!=0)
         {TabPage tp=new TabPage();
         tabControl1.TabPages.Add(tp); 
         
         ListView lv = new ListView();
         //setting som properties here and filling the list
         tabControl1.TabPages[k].Controls.Add(lv);
         n--;
        }
}   

I've written just a portion of the code.Help will be apreciated.Thank you in advance.
Alex.

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.