Question How to add ' Edit with "my software" ' on right click on text file

MrQwertz

Member
Joined
Jul 23, 2012
Messages
8
Programming Experience
1-3
Hello guys. Is it possible to add ' Edit with "my software" ' on right click on some text files. For example this:


edit_with_notepad.jpg


Thank you very much!​
 
But, when i click ' Edit with "My software" ', it opens blank RichTextBox. I want it to open file where i was executed ' Edit with "My software" ' command. Help. Thank you.
 
try this:
MessageBox.Show(argument)
 
Since this is information you process when application starts and form first loads I suggest you put the code in forms Load event handler.
It is also possible to use the application Startup event for this.
Thinking forward, when you're ready load a file you can use the RichTextBox.LoadFile method.
 
I added this on Form1_Load:

VB.NET:
[COLOR=#000000][COLOR=blue]For[/COLOR] [COLOR=blue]Each[/COLOR] argument [COLOR=blue]As[/COLOR] [COLOR=blue]String[/COLOR] [COLOR=blue]In[/COLOR] [COLOR=blue]My[/COLOR].Application.CommandLineArgs 
   [/COLOR][COLOR=#0000ff]RichTextBox1.Text[/COLOR] [COLOR=#008000]= [/COLOR][COLOR=#000000]argument 
[/COLOR][COLOR=blue]Next
[/COLOR]
Is this wrong or I'm retarded!
 
If you want to display the argument in rtb that is spot on, I'm sure you can learn something from that too. If you want to load a file perhaps you should read the previous post again.
 
MrQwertz, how we take a step back and see what all you've got with your code, can you post the entire form/module showing us how you're getting the commandline args?
 
MrQwertz, how we take a step back and see what all you've got with your code, can you post the entire form/module showing us how you're getting the commandline args?

No problem sir. I'm creating BracketFinder. You need to open your document or paste or drag 'n' drop and it find missing bracket and it locate missing bracket. And i added 'Check with BracketFinder' on right click on some documents. When i click 'Check with BracketFinder' it opens BracketFinder but richtextbox is empty. I want to open document with 'Check with BracketFinder' and that richtextbox should be filled with document where i performed 'Check with BracketFinder'. If you know what i mean. BracketFinder Source
 
No problem sir. I'm creating BracketFinder. You need to open your document or paste or drag 'n' drop and it find missing bracket and it locate missing bracket. And i added 'Check with BracketFinder' on right click on some documents. When i click 'Check with BracketFinder' it opens BracketFinder but richtextbox is empty. I want to open document with 'Check with BracketFinder' and that richtextbox should be filled with document where i performed 'Check with BracketFinder'. If you know what i mean. BracketFinder Source
How about you post it as a zip file on here? Be sure to delete the bin & obj folders from the project before zipping.

When I click on the green 'Download (169.3 KB)' button, I get a 403 Forbidden page.
 
Back
Top