Click here to Skip to main content
15,395,065 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# File to Dictionary Lookup Pin
PIEBALDconsult25-Jul-14 14:50
professionalPIEBALDconsult25-Jul-14 14:50 
GeneralRe: C# File to Dictionary Lookup Pin
Member 1094881825-Jul-14 16:51
MemberMember 1094881825-Jul-14 16:51 
Questionread value from item array in user control Pin
Jassim Rahma25-Jul-14 9:18
MemberJassim Rahma25-Jul-14 9:18 
AnswerRe: read value from item array in user control Pin
Gerry Schmitz25-Jul-14 11:19
mveGerry Schmitz25-Jul-14 11:19 
GeneralRe: read value from item array in user control Pin
Jassim Rahma25-Jul-14 12:42
MemberJassim Rahma25-Jul-14 12:42 
GeneralRe: read value from item array in user control Pin
Gerry Schmitz25-Jul-14 14:09
mveGerry Schmitz25-Jul-14 14:09 
GeneralRe: read value from item array in user control Pin
Jassim Rahma25-Jul-14 14:34
MemberJassim Rahma25-Jul-14 14:34 
GeneralRe: read value from item array in user control Pin
Gerry Schmitz25-Jul-14 15:01
mveGerry Schmitz25-Jul-14 15:01 
Add a list to your form:

C#
list<uc> mylist = new list<uc>.


As you create and add uc's to the form, add them to the list also:
C#
mylist.add(myuc)


When you click "save", iterate the list to access controls and their contents:

C#
foreach ( uc myuc in mylist){

.... myuc.txtFirstName.Text ...
etc.
} 

One set of controls; multiple "references" to those controls: form; list.
AnswerRe: read value from item array in user control Pin
KUMAR61927-Jul-14 20:54
professionalKUMAR61927-Jul-14 20:54 
AnswerRe: read value from item array in user control Pin
User 873938131-Jul-14 0:02
MemberUser 873938131-Jul-14 0:02 
QuestionComparison Overloading Pin
Rig Maitra25-Jul-14 6:14
MemberRig Maitra25-Jul-14 6:14 
AnswerRe: Comparison Overloading Pin
Rob Philpott25-Jul-14 6:23
MemberRob Philpott25-Jul-14 6:23 
GeneralRe: Comparison Overloading Pin
Rig Maitra25-Jul-14 6:29
MemberRig Maitra25-Jul-14 6:29 
GeneralRe: Comparison Overloading Pin
Rob Philpott25-Jul-14 6:43
MemberRob Philpott25-Jul-14 6:43 
GeneralRe: Comparison Overloading Pin
OriginalGriff25-Jul-14 8:50
mveOriginalGriff25-Jul-14 8:50 
AnswerRe: Comparison Overloading Pin
KUMAR61928-Jul-14 17:53
professionalKUMAR61928-Jul-14 17:53 
QuestionC# how to compare the old product(serialized) to new product,If same product means add the quantity only not repeated that product in output for below program Pin
Member 1097120125-Jul-14 3:22
MemberMember 1097120125-Jul-14 3:22 
AnswerRe: C# how to compare the old product... Pin
OriginalGriff25-Jul-14 4:35
mveOriginalGriff25-Jul-14 4:35 
QuestionEntity Framework Pin
Steve Foutty25-Jul-14 3:14
MemberSteve Foutty25-Jul-14 3:14 
AnswerRe: Entity Framework Pin
Gerry Schmitz25-Jul-14 11:30
mveGerry Schmitz25-Jul-14 11:30 
GeneralRe: Entity Framework Pin
Steve Foutty25-Jul-14 13:46
MemberSteve Foutty25-Jul-14 13:46 
GeneralRe: Entity Framework Pin
Gerry Schmitz25-Jul-14 14:03
mveGerry Schmitz25-Jul-14 14:03 
QuestionList Pin
Steve Foutty24-Jul-14 15:45
MemberSteve Foutty24-Jul-14 15:45 
AnswerRe: List Pin
Rob Philpott24-Jul-14 20:13
MemberRob Philpott24-Jul-14 20:13 
AnswerRe: List Pin
Mycroft Holmes24-Jul-14 22:26
professionalMycroft Holmes24-Jul-14 22:26 

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.