Click here to Skip to main content
15,895,084 members
Home / Discussions / C#
   

C#

 
AnswerRe: Obtain All Information from an Ocx Pin
Henry Minute13-Jan-09 16:56
Henry Minute13-Jan-09 16:56 
GeneralRe: Obtain All Information from an Ocx Pin
angral13-Jan-09 18:05
angral13-Jan-09 18:05 
Questionanimations\video Pin
mjmim13-Jan-09 14:39
mjmim13-Jan-09 14:39 
AnswerRe: animations\video Pin
EliottA13-Jan-09 14:45
EliottA13-Jan-09 14:45 
QuestionDatasets / SQL [modified] Pin
CrimeanTurtle200813-Jan-09 13:42
CrimeanTurtle200813-Jan-09 13:42 
AnswerRe: Datasets / SQL Pin
leckey13-Jan-09 14:36
leckey13-Jan-09 14:36 
QuestionAutoresize column width in owner drawn ListView [modified] Pin
CodeBerserker13-Jan-09 12:30
CodeBerserker13-Jan-09 12:30 
QuestionNumber Vaildation Pin
tswright104113-Jan-09 12:26
tswright104113-Jan-09 12:26 
Hello

I new to Programming so please bare with me

I am trying to write a Theatre Booking system in C# but I hit a slight problem.

The Problem is that the seating argument that is used in the theatre has Row A-H with 15 seats and J-P with 18 seats. On The form there is a separate Box for row letter and a separate box seat number When the Operator selects a seat location eg (A5) I want to be able to run a check on it to see whether it is valid. For example seat A5 would return no value because it is a possible combination as for A17 I want it to return a value “Seat Not Possible”. How do I go about this?

I thought of using a statement like [ “If (TB1 <= 7 & TB2 < = 15) Return Message “Seat Choice Valid” else Return Message “Invalid Choice of seats” // “If (TB1 >= 7 & TB2 <= 18 Return Message “Seat Choice Valid” else Return Message “Invalid Choice of seats” ]. Would this work ?

Problem Here is I than need to assign all the row letters to number for example A=1, B=2, C=3 ect How would I do this, could I use an array to assign Values or can I use multiple If statements. I thought about using an If statement similar too [ “IF (TB1 = A) do A = 1;” // “else If (TB1 = B) do B = 2” // else “IF (TB1 = C) do C = 3;” // “else If (TB1 = D) do D = 4” ect ]. Would this work ?

I would appreciate any help on this matter as I have come to a dead end.
AnswerRe: Number Vaildation Pin
EliottA13-Jan-09 12:38
EliottA13-Jan-09 12:38 
AnswerRe: Number Vaildation Pin
RyanEK13-Jan-09 14:03
RyanEK13-Jan-09 14:03 
AnswerRe: Number Vaildation Pin
PIEBALDconsult13-Jan-09 14:18
mvePIEBALDconsult13-Jan-09 14:18 
AnswerRe: Number Vaildation [modified] Pin
Jon Rista13-Jan-09 14:36
Jon Rista13-Jan-09 14:36 
GeneralRe: Number Vaildation Pin
tswright104114-Jan-09 3:37
tswright104114-Jan-09 3:37 
GeneralRe: Number Vaildation Pin
Jon Rista14-Jan-09 12:05
Jon Rista14-Jan-09 12:05 
QuestionInternet Explorer running an application by file association Pin
bfrank197213-Jan-09 7:29
bfrank197213-Jan-09 7:29 
AnswerRe: Internet Explorer running an application by file association Pin
DaveyM6913-Jan-09 9:32
professionalDaveyM6913-Jan-09 9:32 
GeneralRe: Internet Explorer running an application by file association Pin
bfrank197213-Jan-09 13:58
bfrank197213-Jan-09 13:58 
QuestionReg: Pin
satsumatable13-Jan-09 7:01
satsumatable13-Jan-09 7:01 
AnswerRe: Reg: Pin
dan!sh 13-Jan-09 7:05
professional dan!sh 13-Jan-09 7:05 
GeneralRe: Reg: Pin
bfrank197213-Jan-09 14:00
bfrank197213-Jan-09 14:00 
AnswerRe: Reg: Pin
Verghese13-Jan-09 8:12
Verghese13-Jan-09 8:12 
GeneralRe: Reg: Pin
bfrank197213-Jan-09 14:03
bfrank197213-Jan-09 14:03 
QuestionDo not allow taskmanager to close my app Pin
spiritboy13-Jan-09 6:55
spiritboy13-Jan-09 6:55 
AnswerRe: Do not allow taskmanager to close my app Pin
EliottA13-Jan-09 6:58
EliottA13-Jan-09 6:58 
GeneralRe: Do not allow taskmanager to close my app Pin
spiritboy13-Jan-09 7:06
spiritboy13-Jan-09 7:06 

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.