c# - I want to open a text file in notepad using text in a richtextbox -
i have app lists text files in combo box. user can select file add strings list search selected file these strings. line found search criteria copied richtextbox. looking able click text , open selected file in notepad @ location clicked in rtb.
something this:
void startinnotepad(string filename) { process notepad = new process(); notepad.startinfo.filename = "notepad.exe"; notepad.startinfo.arguments = filename; notepad.start(); }
Comments
Post a Comment