c# label and textbox -
using reg ex , can find matching word , want replace matching word text box. doing fill in blanks questions . getting questions database display labels.
the questions displayed labels need user input answers in text box . possible integrate label text box?
code here:
string input = textbox1.text; string pattern = regex.escape("[") + "(.*?)]"; matchcollection matches = regex.matches(input, pattern); foreach (match match in matches) { label1.text = textbox1.text.replace(match.value.tostring(), ""); } for example : hi , how [textbox here] you?
hi , how you? <-- displayed in labels , while need textbox in label user input answers. advise/solutions on this? thanks
in short , possible replace text textbox , display on label?
try putting on flowlayoutpanel:
- a label text before textbox.
- the text box
- a label text after textbox.
the flowlayoutpanel make sure aligned 1 after another.
Comments
Post a Comment