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
Related
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
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.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to let my users edit css files.
so I need to load (Read) one of my stylesheets to a textarea and then save (write) it into same stylesheet,
how i can do it?
It's just a file containing plain text. Simply load its contents and then save it back.. Simple File methods should be ok, maybe implement some kind of a text highlighter to allow nicer editing.
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 9 years ago.
Improve this question
How can i create HTML file on submit button click in c#,I don't know any syntax about this ,Please suggest me How to create Html page in C#
You might want to take a look at some beginner tutorials:
http://www.w3schools.com/aspnet/
http://www.asp.net/web-forms/tutorials
Try to use Generic Handler in web application ( http://www.codeproject.com/Articles/353260/ASP-NET-Advanced-Generic-Handler-ASHX )...
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 9 years ago.
Improve this question
How do i implement a set of keys that have been sent to me by another program , for example (Alt & F4) or any other wanted sequence ? , Thanks in Advance :)
Thanks to every one Turned out ,C# makes available a static class to do this:
SendKeys.Send("ABC");
this will send to the top most form ABC and for more keys check this link
http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys.send.aspx