Click here to Skip to main content
15,887,585 members
Home / Discussions / C#
   

C#

 
QuestionKurti dev to uni code and uni code yo kurti dev convert by script Pin
Member 1096585923-Jul-14 1:36
Member 1096585923-Jul-14 1:36 
AnswerRe: Kurti dev to uni code and uni code yo kurti dev convert by script Pin
thatraja23-Jul-14 1:57
professionalthatraja23-Jul-14 1:57 
GeneralRe: Kurti dev to uni code and uni code yo kurti dev convert by script Pin
Member 1096585923-Jul-14 2:03
Member 1096585923-Jul-14 2:03 
GeneralRe: Kurti dev to uni code and uni code yo kurti dev convert by script Pin
thatraja23-Jul-14 21:07
professionalthatraja23-Jul-14 21:07 
QuestioniTextSharp PDF Overlay Pin
michPla1223-Jul-14 1:16
michPla1223-Jul-14 1:16 
Questionadd multiple passengers Pin
Jassim Rahma22-Jul-14 11:41
Jassim Rahma22-Jul-14 11:41 
GeneralRe: add multiple passengers Pin
PIEBALDconsult22-Jul-14 18:58
mvePIEBALDconsult22-Jul-14 18:58 
AnswerRe: add multiple passengers Pin
OriginalGriff22-Jul-14 19:47
mveOriginalGriff22-Jul-14 19:47 
There are quite a few ways to do this, depending on your skill level and abilities:
1) You could create each control individually and add them in a row inside a panel
2) You could create a UserControl which has one of each of the controls you need and then add one of that for each passenger
3) You could use some grid based control instead - such as a DataGridView

But what you want is a bit...um...odd. The first thing which looks like a silly idea is "cbodateOfBrith" which I assume is a combobox for the date of birth. How many dates do you propose to put in that? 120 years worth? OMG | :OMG:
Would you want to try and enter the date from that? Because I wouldn't! Consider a DateTimePicker instead...

And I wouldn't do it that way either: Instead of asking for the number of passengers, use a grid based control that the user can edit directly and let them add all the rows they need. This shows how to create a Calender control within a DataGridView: http://msdn.microsoft.com/en-us/library/7tas5c80.aspx[^]
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

QuestionHELP Pin
Member 1094467922-Jul-14 3:20
Member 1094467922-Jul-14 3:20 
AnswerRe: HELP Pin
Ravi Bhavnani22-Jul-14 3:57
professionalRavi Bhavnani22-Jul-14 3:57 
GeneralRe: HELP Pin
Member 1094467922-Jul-14 4:07
Member 1094467922-Jul-14 4:07 
GeneralRe: HELP Pin
Ravi Bhavnani22-Jul-14 4:16
professionalRavi Bhavnani22-Jul-14 4:16 
AnswerRe: HELP Pin
Ron Nicholson22-Jul-14 4:08
professionalRon Nicholson22-Jul-14 4:08 
GeneralRe: HELP Pin
Richard MacCutchan22-Jul-14 5:04
mveRichard MacCutchan22-Jul-14 5:04 
GeneralRe: HELP Pin
OriginalGriff22-Jul-14 6:19
mveOriginalGriff22-Jul-14 6:19 
AnswerRe: HELP Pin
Rob Philpott22-Jul-14 5:25
Rob Philpott22-Jul-14 5:25 
GeneralRe: HELP Pin
Eddy Vluggen22-Jul-14 5:53
professionalEddy Vluggen22-Jul-14 5:53 
Questionbitmap lockbits/unlockbits Pin
V.22-Jul-14 2:48
professionalV.22-Jul-14 2:48 
AnswerRe: bitmap lockbits/unlockbits Pin
Rob Philpott22-Jul-14 3:12
Rob Philpott22-Jul-14 3:12 
GeneralRe: bitmap lockbits/unlockbits Pin
V.22-Jul-14 3:32
professionalV.22-Jul-14 3:32 
AnswerRe: bitmap lockbits/unlockbits Pin
Kornfeld Eliyahu Peter22-Jul-14 3:45
professionalKornfeld Eliyahu Peter22-Jul-14 3:45 
GeneralRe: bitmap lockbits/unlockbits Pin
V.22-Jul-14 22:29
professionalV.22-Jul-14 22:29 
QuestionRe: bitmap lockbits/unlockbits Pin
Kornfeld Eliyahu Peter22-Jul-14 22:44
professionalKornfeld Eliyahu Peter22-Jul-14 22:44 
AnswerRe: bitmap lockbits/unlockbits Pin
V.22-Jul-14 22:51
professionalV.22-Jul-14 22:51 
AnswerRe: bitmap lockbits/unlockbits Pin
Kornfeld Eliyahu Peter22-Jul-14 22:55
professionalKornfeld Eliyahu Peter22-Jul-14 22:55 

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.