|
Can do better than just a link - try this :-
<br />
using System;<br />
using System.Collections.Generic;<br />
using System.Text;<br />
using System.Diagnostics;<br />
<br />
namespace TextEditor<br />
{<br />
class Program<br />
{<br />
static void Main(string[] args)<br />
{<br />
Process p = new Process();<br />
p.StartInfo.FileName = String.Format("notepad.exe");<br />
p.StartInfo.UseShellExecute = false;<br />
p.StartInfo.RedirectStandardOutput = true;<br />
<br />
p.Start();<br />
<br />
p.WaitForExit();<br />
<br />
p.Close();<br />
Console.WriteLine("Thank you for using my C# text editor");<br />
<br />
}<br />
}<br />
}<br />
Regards
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
To those that have just voted this down.....
Do you think the OPs question was a good one? Had he/she made any effort whatsoever to solve it? If so, they didn't say. These types of posts are slowly killing the forums.
Justify your '1' vote....unless it was Satips who voted me down, then with the amount of '1's he has accumulated, he has every right to vote me down!!
Regards
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
i think he wants to know creating own notepad not existing like windows notepad.
you are just opening windows notepad.
First and the Foremost: FIGHT TO WIN
About Me
|
|
|
|
|
I know. I was being sarcastic. Has he looked at the edit control. The Rich Text control? Has he got a problem opening a window? I always thought these forums were for specific, definitive problems. eg.
I have a window, which doesn't refresh when a button is clicked. I have tried this [ code posted ] and that didn't work. Any ideas?
or
Is there any component that would allow text to be formatted. I've used the edit box, but that is really limited.
He would then be pointed at the rich text edit control. He would then try to use that, read up on it, hit a problem, then post that problem.
His question was not a programming question. It was a concept question, one, which if there was some udnerstanding of the language he could have attempted. Look at this link - may not be exactly what he wanted, but it took me about a minute to find, and I would use this as a starting point. http://www.codeproject.com/useritems/scratchpad.asp[^] It may turn out to be no use, but then he could ask a question specific to why it isn't any use.
I am not being self righteous here, I've asked plenty of questions which peole like CG answer in their sleep, but I always try before asking.
--climbs off from his high horse, bows down, ready to receive a bucket load of 1s.---
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
Spot on. You captured the spirit of the boards perfectly.
|
|
|
|
|
thanks - but it was wasted here. I've said similar in the lounge before....I reckon it's time to soapbox these txtspking homeworking single posters - i can then let loose with extreme prejudice!
....i've just posted a question here myself - watch the sarcasm come rolling in
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
It got so bad - that I wrote an article on using the forums properly. Now if only I can figure how to get the lazy b*ggers to actually read it.
|
|
|
|
|
http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=84
First and the Foremost: FIGHT TO WIN
About Me
|
|
|
|
|
dear friends,
i have treeview control in asp.net 2005.
there is an option to show ckeck box.
when i click the root node check box, i want all the sub nodes to be checked.
how to do that.?
how to get onclick event of the any check box in the treeview.
by
joe
|
|
|
|
|
hi joe
the events are:
BeforCheck and AfterCheck
regards
|
|
|
|
|
Hi, i got a problem with my application. Usually I retrieve data from database and display it in datagrid. But, how to display data in Listview.
Thanx b4
Best Regards
Edwin46
|
|
|
|
|
Hi,
In ListView you will have to Enumerate the datasource and fill it. For example, if your datasource is a DataTable, you can write the following:
foreach(DataRow row in table.Rows)
{
ListViewItem item = new ListViewItem();
item.Text = row["Description"].ToString();
item.Tag = row["ID"].ToString();
//For other coulmns
items.SubItems.Add(row["OtherColumn"].ToString();
}
Hope this helps.
|
|
|
|
|
u have to get the records through datareader and then iterate through the datareader and add them in the listview one by one
if u use listbox in place of listview then u can use the
datasource,displaymember,valuemember properties
by doing this u can easily bind the data
|
|
|
|
|
You haven't told us how urgent? What is the project? How will this affect your grade if it isn't done on time?
What have you tried up to now? Have you tried anything? Have you googled for this? Try http://www.google.co.uk/search?source=ig&hl=en&q=C%23+XML+Parse+Database&meta=[^]
Once you've tried something and hit a specific problem please post your question and no doubt somebody will provide constructive help.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
Hi ,
i want to do microsoft certification of sqlserver2005,c#2005,asp.net2.0 , how to register and to prepare, can u suggest any books , please help me
srinivas
|
|
|
|
|
http://www.microsoft.com/learning/mcp/default.mspx
This place is your best bet of getting all the valuable knowledge. Remember, getting work experiance is better before doing these certifications.
|
|
|
|
|
http://www.microsoft.com/learning/mcp/default.mspx[^]
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
Contact me @ rkbhuvanagiri@hotmail.com...
|
|
|
|
|
Hi All
I am very new to asp.net 2.0, when i double click on the webform1.aspx it will directly take me to the source of the file which is xml file. I want to view the webform1.cs file . Is there any configuration that i have make to see the .cs file when i double click on the form or i have to create the .cs file .
Please do help me.
Thanks in advance
Bharath.S Ron
|
|
|
|
|
Just drag and Drop one button control and double click on button you will get into the .CS page with the button1_Click.
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
i also tried doing that then also it is leading me to that xml file only.
Bharath.S Ron
|
|
|
|
|
You are really new dude ok When u double click the file you see the source which is in XML. Look at the botton left corner of the page, there should be "DESIGN" mode, click that to view designer. If you want to see the code behind, you can right click and say View code.
Do some reading
|
|
|
|
|
Well its ok..youll learn!!!
Try to use the right click options as often as possible!!! ull easily find ur answers!!!
I was born dumb!!
Programming made me laugh !!!
--sid--
|
|
|
|
|
|
Anytime buddy!!
I was born dumb!!
Programming made me laugh !!!
--sid--
|
|
|
|