C# - Find text inside a certain string in a RichTextBox [closed] - c#

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
Lets say a rich text box has this inside:
This is a rich text box with a hidden meaning.
How would I find all text between a and a?

You could use RegEx:
Regex.Match("This is a rich text box with a hidden meaning.", #"a([^a]*)a").Groups[1].Value

Related

How to create a file with the user input name? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I have a textbox to get user input and a button.
When user fill the textbox and click the button,it will create a file
with the name of the text from the textbox.
I tried using
system.IO.File.Create and system.IO.File.Rename
but did not work.
For your problem as you wrote in the comments use this:
System.IO.File.Create(#"C:\" + textbox.Text);
You cant use textbox.Text inside of brackets to get the text from it, add a plus if you are using it from inside the textbox
Here is also a link to some useful documentation: documentation

Underline a single word in List & Label [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I'm creating a form in combit List&Label 16 and trying to underline a single word in a label but I can't find the option to do so...
Do you know if and how I can to this?
The way I did it now is to split the label in 3 parts and to underline the middle one but I refuse to believe that this is the way to go in 2015 :D
Thanks in advance
Use the Formatted Text object instead of unformatted text. This gives you all the options to format single words.

how to display image filename which is uploaded through fileupload control in asp.net [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have fileupload control to upload image in asp.net.After uploading a file, When i want to see the record I need a image with filename.How i need to get and display in front end.
How about fileUpload1.FileName?
fileUpload1.SaveAs(Server.MapPath("~\\images")+"\\"+fileUpload1.FileName);

Make form labels dynamic based on selected language [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want to create a aspx page using c# which can be displayed in English and Dutch both languages.
Can any one give me any idea how to do it?
See this tutorial
Walkthrough: Using Resources for Localization with ASP.NET
http://msdn.microsoft.com/en-us/library/fw69ke6f(v=vs.90).aspx

ContextMenu: Remove the icon column and unnecessary space? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I need to remove the icon column and the unnecessary space on the right side of a contextmenu. Here's a screenshot explaining it:
alt text http://www.imagebanana.com/img/6j1g4896/contextmenu.png
Thanks for any hint!
Check this out: Default ContextMenu Style - WPF

Categories