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:

  1. a label text before textbox.
  2. the text box
  3. a label text after textbox.

the flowlayoutpanel make sure aligned 1 after another.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -