C# windows form here. And I know this database structure is possibly as bad as the kraken but it's what I have to work with. Table in the database houses Question and field names that are associated with that question. So for example, if the Question was List 5 reasons you came in today. The fieldnames would be something along the lines of reason1, reason2, reason3, reason4, reason5. Just for further example, this may paint the picture better of how this is setup
PollQuestion ----------- FieldName
5 reasons you cam in? reason1
reason2
reason3
reason4
reason5
Fav video you saw? favorVideo
Three improvements? improve1
improve2
improve3
Aite, so I need the fieldNames to line up on one line with there corresponding Poll Questions so it should read like this
PollQusetion1 --- reason1 reason2 reason3 reason4 reason5
PollQuestion2 ---- favorVideo
PollQuestion3 ---- improve1 improve2 improve3
I am polling the database and storing the poll questions & fieldnames in two separate list variables, then outputting to a flowlayout panel. I was trying to use the logic of this to keep the fieldnames on the same lines as pollquestion but it isn't working as needed.
if (pollquestion != "") { flowlayoutpanel1.SetFlowBreak(fieldname, true); }
However, that isn't giving me the desired output. Can someone with more experience on this matter, please assist me? And if further coding is needed, I can produce that as well. Thanks in advance to all who view, and provide insight!
EDIT ---- 111 This is the output the if statement gives me -
PollQusetion1 --- reason1 reason2 reason3 reason4 reason5 PollQuestion2 ---- favorVideo
PollQuestion3 ---- improve1 improve2 improve3
EDIT ------ 2222
This is an image of what I was referencing of how the if() statement works. I need all the textboxes to be on the one line, then starting with the 2nd Label Test Text & texbox to be on it's own line.