Click here to Skip to main content
15,891,745 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem with Windows forms monthcalendar control Pin
OriginalGriff27-Jul-14 21:09
mveOriginalGriff27-Jul-14 21:09 
GeneralRe: Problem with Windows forms monthcalendar control Pin
Pete O'Hanlon26-Jul-14 21:34
mvePete O'Hanlon26-Jul-14 21:34 
GeneralRe: Problem with Windows forms monthcalendar control Pin
OriginalGriff26-Jul-14 21:50
mveOriginalGriff26-Jul-14 21:50 
Questioncannot send text encryption via email Pin
KaKoten25-Jul-14 21:20
KaKoten25-Jul-14 21:20 
AnswerRe: cannot send text encryption via email Pin
OriginalGriff25-Jul-14 21:52
mveOriginalGriff25-Jul-14 21:52 
GeneralRe: cannot send text encryption via email Pin
KaKoten27-Jul-14 18:20
KaKoten27-Jul-14 18:20 
AnswerRe: cannot send text encryption via email Pin
Eddy Vluggen25-Jul-14 23:45
professionalEddy Vluggen25-Jul-14 23:45 
GeneralRe: cannot send text encryption via email Pin
KaKoten26-Jul-14 22:16
KaKoten26-Jul-14 22:16 
GeneralRe: cannot send text encryption via email Pin
Eddy Vluggen27-Jul-14 0:15
professionalEddy Vluggen27-Jul-14 0:15 
GeneralRe: cannot send text encryption via email Pin
KaKoten27-Jul-14 18:13
KaKoten27-Jul-14 18:13 
GeneralRe: cannot send text encryption via email Pin
Eddy Vluggen28-Jul-14 2:54
professionalEddy Vluggen28-Jul-14 2:54 
GeneralRe: cannot send text encryption via email Pin
KaKoten28-Jul-14 11:54
KaKoten28-Jul-14 11:54 
GeneralRe: cannot send text encryption via email Pin
Eddy Vluggen28-Jul-14 12:17
professionalEddy Vluggen28-Jul-14 12:17 
GeneralRe: cannot send text encryption via email Pin
KaKoten28-Jul-14 16:53
KaKoten28-Jul-14 16:53 
QuestionC# File to Dictionary Lookup Pin
Member 1094881825-Jul-14 14:35
Member 1094881825-Jul-14 14:35 
GeneralRe: C# File to Dictionary Lookup Pin
PIEBALDconsult25-Jul-14 14:50
mvePIEBALDconsult25-Jul-14 14:50 
GeneralRe: C# File to Dictionary Lookup Pin
Member 1094881825-Jul-14 16:51
Member 1094881825-Jul-14 16:51 
Questionread value from item array in user control Pin
Jassim Rahma25-Jul-14 9:18
Jassim Rahma25-Jul-14 9:18 
Hi,

I have created a user control with txtFirstName and txtLastName fields on it.

On my frmPassengers, I am populating the user control more than one time based on the number user decided to add like this:

C#
private void frmPassengerDetails_Load(object sender, EventArgs e)
{
    this.Cursor = Cursors.WaitCursor;

    BaseLayoutItem prevItem = layoutControlPassenger.Root;

    for (int i = 1; i < total_adults; i++)
    {
        ctlPassengers uc = new ctlPassengers() { PassText = "Passenger " + i };

        LayoutControlItem item = layoutControlPassenger.AddItem("", uc, prevItem, DevExpress.XtraLayout.Utils.InsertType.Bottom);
        item.TextVisible = false;
        item.SizeConstraintsType = SizeConstraintsType.Custom;
        item.MinSize = new Size(830, 75);
        item.MaxSize = new Size(830, 75);
        prevItem = item;
    }
}


so if user choosed 5 for the total_adult value then the user control will be populated five times.

Now I want to know how can I read the value of every txtFirstName and txtLastName on the form (the five of it for example)..


Technology News @ www.JassimRahma.com

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
Jassim 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
Jassim 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 
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
User 873938131-Jul-14 0:02 

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.