C# question???
Submitted by Wednesday, 24 October, 2007 - 18:10
on
I know, I know, this is a jEdit forum. But I have gotten no help from MSDN C# forum or CodeGuru C#.
I use jEdit to edit the pages on my website. I am in the process of putting up the pages of a logbook. I have written a program in C# to help me write those pages; basically I fill in a lot of blanks and the program writes and saves the .html page. I have a button to open the page in IE to see if it looks alright, and I have another button which is supposed to open the file in jEdit for editing. It is this button that is giving me problems.
It opens the file in a new instance of jEdit, instead of in the running instance of jEdit. Well, actually it opens the file in both the running instance and the new instance. And the new instance has all the same files open as the running instance. Dopey.
I don't want to open a new instance of jEdit, I want the file to open in the already running instance.
If anyone has any experience with C# or the .NET framework and can tell me how to do this, I would be very grateful.
I guess I should have written the thing as a jEdit plugin to begin with, but that would have required learning how to write a plugin and relearning Java.
Thanks,
Jim
I use jEdit to edit the pages on my website. I am in the process of putting up the pages of a logbook. I have written a program in C# to help me write those pages; basically I fill in a lot of blanks and the program writes and saves the .html page. I have a button to open the page in IE to see if it looks alright, and I have another button which is supposed to open the file in jEdit for editing. It is this button that is giving me problems.
It opens the file in a new instance of jEdit, instead of in the running instance of jEdit. Well, actually it opens the file in both the running instance and the new instance. And the new instance has all the same files open as the running instance. Dopey.
I don't want to open a new instance of jEdit, I want the file to open in the already running instance.
If anyone has any experience with C# or the .NET framework and can tell me how to do this, I would be very grateful.
I guess I should have written the thing as a jEdit plugin to begin with, but that would have required learning how to write a plugin and relearning Java.
Thanks,
Jim