|
It does recognize relative paths and they are relative to the "current directory". The problem is you cannot reliably control, nor assume, what the current directory is. Just launching the .EXE from a folder does not make that folder the current directory. It could be anything. So, knowing that, best practice is to always use fully qualified path names to the files you're working with. Also, the forward slash character, "/", is reserved for command line switches, even though it does work for paths, this can cause you problems that are hard to trace down in future projects. Back slashes, "\", are reserved for path specifications.
|
|
|
|
|
|
Hi,
in C# string literals a backslash is an escape character, causing the next character to be interpreted in a special way, and a double backslash results in a single one. You never should use double forward slashes though.
|
|
|
|
|
Hello,
I am trying to send to Babylon a word and to preform a copyall there.
I have used the following code taken from sendkeys article in this site:
int windowHandle = Win32.FindWindow(null, "Babylon");
Win32.SetForegroundWindow(windowHandle);
Win32.SetActiveWindow(windowHandle);
System.Windows.Forms.SendKeys.Send(_word);
System.Windows.Forms.SendKeys.SendWait("{ENTER}");
System.Windows.Forms.SendKeys.SendWait("{TAB}");
System.Windows.Forms.SendKeys.SendWait("^A");
System.Windows.Forms.SendKeys.Send("^C");
Now the SetForegroundWindow doesn't work on Babylon(It workes on every other thing I try to use on).
Also after TABBING the ctrl+a and ctrl+c doesn't work....
could someone help me somehow?
|
|
|
|
|
Hi All! I have posted a fe questions, read many tutorials, and doco's, have been on MSDN and Google, and have found absolutely zero support for the task I am trying to accomplish. I am simply trying to find every URL that is found in a plain text file, but it seems almost impossible to do since every sample I have tried, including my own code, does not work. It either brings up too many errors, or just never finds anything. Or both sometimes. Does anybody know of any reliable sources that could simply explain how one would go about finding all URL's inside a text file and saving those URL's to a new file each on a separate line, wether it is using Regex or something else? Any help would be appreciated. Thanks
Regards,
jay.
jay
|
|
|
|
|
Hi
As far as I know you can use regular expressions to find different patterns in a text. I think you should find one or more suitable regex patterns for the task you want to accomplish.
May be you should take a look at
some regex libraries[^]
|
|
|
|
|
thank you for the link i will check it out now
j.t.
|
|
|
|
|
Regular expressions are hard to write and very powerful once you get it to work.
Start with some simple pattern so that you get a result, like finding every occurance of the string "http://" in the text. Then you can refine the pattern to find exactly what you want.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
You can also try using Expresso[^] and see if that helps at all.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Individuality is fine, as long as we do it together - F. Burns
|
|
|
|
|
Yep. I second that. Wonderful tool
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Thanks everyone for your answers i checked out the regex libs and quickly ran away from there lol... but then i checked out expresso, looks really cool it's still downloading, i can't wait to use it! thanks everyone Here's an idea... If our brains consisted of computer chips, wouldn't it be cool if all we had to do to learn something new was to insert a tiny memory chip into our ears which stores all the learning material on it? Then if we needed to recall information, we can just use our minds to search thru directories and subdirectories to find the file in our mind that has our info? lol
j.t.
|
|
|
|
|
hello everyone..
Good evening.. )
I' doing an application with GDI+ to draw sine wave...
<br />
float fltZoomF = 1;<br />
<pre>Graphics gPanel2Graphics = this.CreateGraphics();
gPanel2Graphics.Clip = new Region(Panel1.ClientRectangle);
gPanel2Graphics.ScaleTransform(fltZoomF, 1F);
</pre><br />
<br />
if i run my application the sine wave fits correctly to the screen size,<br />
but if i try to zoom by increaseing the fltZoomF value to 2..<br />
<br />
how much pixel or percentage it ll going to increase the width of the graph..<br />
<br />
im using horizontal scrollbar to scroll, how do i proceed to increase the ScrollBar maximum value while the fltZoomF is changed to 2.<br />
<br />
please help me..
|
|
|
|
|
I want to remove the Control Box of a child Form ( you see it below the MDIForm control box) Control box is the minimize, maximize close bouton on top right corner.
Look at this ScreenShot[^]">
|
|
|
|
|
AFAIK, you can't remove it. It's the TitleBar of the MDIChild form when the child is maximized.
|
|
|
|
|
Thanks Dave,
Can we merge the title bar of parent and child, so that only one title bar is visible?
Regards,
Karmendra
|
|
|
|
|
No, it's not supported by the standard MDI library in .NET. I don't know of a library that does this.
|
|
|
|
|
if anyone has ever seen the "Tracking Profile Designer" sample of the microsoft, i need to know what do the "loader" and "services" classes do in the "Workflow Designer Control" project?
--- Thanks
|
|
|
|
|
Hi,
I have a .net windows application. I just want to know the version of the project just looking to the code. Where can I get some idea about this/
Please help regarding this.
Thanks..
--Krushna Chandra Sahu
prfkrushna@gmail.com
|
|
|
|
|
Well, if you're using VS2002, it's C#1.0. 2003, it's 1.1. 2005, it's 2.0, or 3.0. 2008, it's 2.0 or 3.5. 3.0 was a patch to 2.0.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thank you for reply.
Let me make you clear about my problem.
Actually I don't know about the version of my existing application.
I'm just looking into the code.
Can I find something any clue/information while opening the codes in notepad, so that I can know the version like 1.0/1.1/2.0 etc or 2002/2003/2005 like that.
--Krushna Chandra Sahu
prfkrushna@gmail.com
|
|
|
|
|
Load the latest version (i.e. 3.5) and it will take care of all the older versions. You need not worry what version is required to run your application.
Cheers
Karmu
|
|
|
|
|
KSuthar wrote: Load the latest version (i.e. 3.5) and it will take care of all the older versions
Uhhh...no, it won't. .NET 3.0 and 3.5 are based on the .NET 2.0 CLR. Both are a bunch of extensions to .NET. It does not install .NET 1.0 or 1.1.
Though, on a completely patched up installation of Vista, you get .NET 1.0, 1.1, 2.0 and 3.0 installed for you.
|
|
|
|
|
Thank you for reply.
Let me make you clear about my problem.
Actually I don't know about the version of my existing application.
I'm just looking into the code.
Can I find something any clue/information while opening the codes in notepad, so that I can know the version like 1.0/1.1/2.0 etc or 2002/2003/2005 like that.
Thank you.
--Krushna Chandra Sahu
prfkrushna@gmail.com
|
|
|
|
|
No, you can't. There's nothing that will tell you which version of the .NET Framework the app will bind to by looking at it in Notepad. Nor have I heard of any utility that will do it either.
|
|
|
|
|
Thank you...
--Krushna Chandra Sahu
prfkrushna@gmail.com
|
|
|
|