Click here to Skip to main content
15,893,594 members

Comments by naouf10 (Top 5 by date)

naouf10 9-Nov-15 18:41pm View    
I tried your code and it worked as I wanted and you explained it well. I added the user control at run time in form 1 in the events. but one more thing please: now, userControl2.BringToFront() shows up the userControl2 and kind of hide the userControl1, do you know another way to remove the userControl1 instead of using userControl2.BringToFront()? thank you very much
naouf10 9-Nov-15 16:03pm View    
that is fine...
naouf10 9-Nov-15 15:13pm View    
Hi BillWoodruff. I don't want to drag the usercontrols to the form because I am planning to create 10 user controls with buttons and textboxes on them so if I drag all the 10 user controls to form1 it won't fit. so I just want to add user controls to form using code. can you please tell me how to do it? thank you
naouf10 9-Nov-15 15:03pm View    
we are discussing programming language issue here NOT English language errors....so if you can't help don't make jokes......
naouf10 9-Nov-15 14:45pm View    
Hi OriginalGriff. I already tried your code as i said in my question but still didnt work. any idea. thank you.