|
Instead of passing devenv.exe, why not just pass the .cs file. If the file associations on the machine are correct that should work.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
Exception occurs: Cannot start process because a file name has not been provided.
|
|
|
|
|
Instead of down-voting the answer, why not reread it and use some logic.
This works perfectly for your original question.
void OpenCSFile(string path, string filename)
{
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = path + Path.DirectorySeparatorChar + filename;
Process.Start(startInfo);
}
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
Excecute a command promt command: ">open c:\goo\bar.cpp"
hmmm pie
|
|
|
|
|
Hey frnds,
Thanks for ur reply..
i have ovecome this issue...
But my new issue is..
If i have opend a file in VS2005 IDE how to navigate to specific line number..
means: i have to open a .cs file and current control is at line no. 10
|
|
|
|
|
I want to use google image search results first 50 images in my C# project as input please help....
|
|
|
|
|
Do some research! There are libraries (for .NET!) that you can use to interact with the Google services. Description, documentation and download from the Google site.
Some projects doin' the Google Image thing;
- Here[^],
- Here, with LINQ[^]
- An older version here[^].
- Or even here[^]
Good luck
I are troll
|
|
|
|
|
|
Plz help anyone In c#.net windows application to run the project the data will store in XML format.
And then insert,update process using queries(like sql). thanks in advance.
|
|
|
|
|
If you are querying a Database and wish to output XML then here.[^]
If you wish to insert XML into a database then use sp_xml_preparedocument.[^]
If you wish to query the XML use this LINQ emaple.[^]
Otherwise you should search for atricles already available like this one.[^]
hmmm pie
|
|
|
|
|
Hello,
How we can merge two pdf on one, i have a picture in pdf and i have the text on another pdf, ans i would merge the twice pdf, please help me thank you verry mutch.
|
|
|
|
|
Find a library that can read PDF's, read them both, and use the same library to write the results back to a file?
I are troll
|
|
|
|
|
i work with pdfsharp, but it don't work with merge, it make concatenation of two pdf but not merge, help me please, thank you verry mutch.
|
|
|
|
|
|
but this example adda two pages on one, i nedd to merge and obtain one document, thank you verry mutch.
|
|
|
|
|
abbd wrote: but this example adda two pages on one, i nedd to merge and obtain one document, thank you verry mutch.
What is your definition of merge ?
You're obviously doing a paid project and you're obviously clueless. It's pathetic.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
how to perform key based randomn permutation on text data. i want the source code for this problem.
|
|
|
|
|
"i want"? your i-want-questions don't get you any help, only downvoting, and given the fact that nearly all your past questions were downvoted (for good reason, since you don't put any effort in solving your problems yourself, only throwing some short general questions and waiting that somebody else will do the work for you) you should have realized by now, that you don't fit into this place. so do everyone a favor and bugger off.
|
|
|
|
|
Hey come on now. Just because he's obviously LAZY, has ZERO knowledge of any programming language, much less C#, would rather the world solve his problems and he take the credit, probably can't wipe his own ass but mommy can and IGNORANT is a compliment doesn't mean you have to be rude to him!
8-)
|
|
|
|
|
Just two of 75 words used were rude. That's only 2.666 % of the entire text. Hardly rude at all
|
|
|
|
|
Using your Rudeness IndexTM, I just discovered that I'm consistently hovering around 82% rude! Do you have the address for a good finishing school?
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Hi ,
i have a project in which i created two classes TreeDisplay(Form.cs) and MytreeNode class in same namespace.
TreeDisplay class contains all the GUI related stuff like Browse button textbox,label,progress bar and TReeView. I want the user to select a XML file through browse button which will be displayed in textbox.The Xml file selected will be displayed in Treeview on winform.
Now i want to separate the GUI part from business logic(where i am creating treenode and adding nodes to tree) thats why i created the MytreeNode class. I am passing the treeview and the string filename from the FileOpenDialogue in Browse button.
i want to pass a Xml file name from one class to another class in same namespace using URI.i want to initialize with file path. i have passed the treeview object from GUI to my backhand class MytreeNode class.
But how to initialize with fie path? here is a part of code.
public class MytreeNodeClass
{
internal void initiatingTree(string nameofFile,TreeView treeView1)
{
try
{
XmlDocument xmlDocument = new XmlDocument();
xmlDocument.Load(nameofFile);
treeView1.Nodes.Clear();
if (xmlDocument.DocumentElement != null)
if (true) treeView1.Nodes.Add(new TreeNode(xmlDocument.DocumentElement.Name));
Help me in putting up the right part of code at right place.
Thanks
|
|
|
|
|
Hi,
I wanted to retrieve the data of a PDF when it was opened in IE using c#.
If this can be done by BHO, it helps me a lot.
Any suggestion for achieving this...
|
|
|
|
|
You can try to monitor IE cache for PDF files. You can get the cache path by using Environment.GetFolderPath(Environment.SpecialFolder.InternetCache) .
Then you can use any PDF reading library to get the data.
|
|
|
|
|