|
I have written a program for getting all information about the start time, end time and other details of a process. But now i have a query how to get the current URL of an IE process. I didnt got any information about Shell.Application object. Is it of C# or VB?. Can you please help me with a code sample for getting URL information from an IE process. That will be a great help for me.
Thanks !
Anant Y. Kulkarni
|
|
|
|
|
The SmtpClient does not seem to call the QUIT Command to close the connection to an SMTP server, is this usual behaviour? It appears to keep the connection open between each mail that is sent.
I would assume that at bare minimum it should call QUIT when the application that is using the SmtpClient object is shut down.
Regards,
J
James Simpson
Web Developer
imebgo@hotmail.com
P S - This is what part of the alphabet would look like if Q and R were eliminated Mitch Hedberg
|
|
|
|
|
It's also impolite to cross-post in multiple forums.
See my answer in the .NET Framework Forum[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dave Kreskowiak wrote: It's also impolite to cross-post in multiple forums.
Yes, Apologies after posting in the C# forum I felt that the question would be better asked in the .NET Framework forum.
James Simpson
Web Developer
imebgo@hotmail.com
P S - This is what part of the alphabet would look like if Q and R were eliminated Mitch Hedberg
|
|
|
|
|
Hello,
I have an iX104C2 Tablet PC with integrated Siemens MC-55 Modem and Vodafone SIM card.
Now, I want to know if there is a possibility to get a connection to Vodafone in my C# program an how to handel this. Are there any DLLs from Vodafone or anything else?
Thanks
|
|
|
|
|
The connection should be established via GPRS!
|
|
|
|
|
Hi,
I have two applications running parallely. In both applications my classes are inherited from Microsoft.WindowsCE.Froms.MessageWindow
class .One is sending message and the other will process the message.How to get handle of the class which is processing a message,since I need to set handle of the class which process messgae.
|
|
|
|
|
hi guys,
need help... i need to know if a specific application (eg Microsoft Word etc) is opened... how can i catch or know that event was fired programmatically? tnx... btw im using c#...
-- modified at 11:05 Wednesday 11th January, 2006
|
|
|
|
|
it is easy if your program is working when one tries opening any app. make a system tray docking application and loop through processes that are loaded; or subscribe to processpool events. for more info search at codeproject for singleton pattern sample where it looks for a process with the same name. your code is similar...
or by vs toolz for office (vsto addin) for vs2005 has many plugin features.(accessible on msdn office developer center u need licensing...)
choose whatever uwant
Mikail Çetinkaya . The C# DEveloper
|
|
|
|
|
It can be done by writing your own service. A windows service can be configured to automatically start at system boot. then the service can know about any other service running on the same / remote computer. A tutorial is available for writing services in the MSDN library. Search for "Writing Windows Services". There is also a sample program for this type of requirement in the C# samples directory. Or you can download that sample from msdn.microsoft.com. Find more help about these classes -
ServiceController
Process.GetProcesses(strMachineName) this method returns Process[] which can be used to know information about the process !
Anant Y. Kulkarni
|
|
|
|
|
I cannot say whether there is an "event" way of solving this. But what you can do is you can spawn a separate thread from your application, which will periodically call Process.GetProcessesByName() method, and you can pass in the process name for Microsoft Word (or any other process you want to wait on). Definitely if you receive an "event" that would be less complicated, but I doubt whether that is at all possible. No application will let you know that it has started - YOU have to find that out!
Koushik Biswas
|
|
|
|
|
Good day ladies and gentlemen.
I am writing an app that runs on a thin client hardward platform (written in C#). The app is denied access to the priamry drive on the server to which I have no control. I do have control to the "My Documents" folder.
I am seeking knowledge on locating the "My Documents" folder by code so that I may serialize/deserialize data to it.
All suggstions are deelpy appreciated.
"We succeed in enterprises which demand the positive qualities we possess, but we excel in those which can also make use of our defects."
Have a great coding day.
Regards,
Tony D. Abel
|
|
|
|
|
|
You are looking for Environment.GetFolderPath()[^]
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
If you serialize/deserialize data for the purpose of your application, you should think about putting it into the user's application data directory whose path you can get by Environment.GetFolderPath( Environment.SpecialFolder.ApplicationData ) .
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
I use a panel to simulate a scollbar put when i move it, just flicker.
How can i avoid this?
|
|
|
|
|
Use double buffering. There are several articles on this site and on the web relating how to do this.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Little House on the Flickr
Judah Himango
|
|
|
|
|
I am quite a novice at C# and have been making regular contributions to this board as a result. I was just wondering if there was a function to find a number in a string? Any help will be appreciated!
|
|
|
|
|
use the
\d+ regular expression.
<edit;Modified as per Leppie remark. Tx.</edit>
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
-- modified at 10:34 Wednesday 11th January, 2006
|
|
|
|
|
Thanks for the response. I however am not really familiar how Regex works. So how would I use that?
|
|
|
|
|
See the other answer. It is not complete, but MSDN has a topic explaining how to use the classes from the System.Text.RegularExpressions namespace.
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
|
|
|
|
|
|
Tx, I corrected it. I am a little rusty on regex
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
|
|
|
|
|
There are lots of ways, depends on what you want to do with the number.
#1
mystring.IndexOf(string.Format("{0}", number)); will return -1 if the number is not found, a valid index otherwise
#2
MatchCollection matches = Regex.Matches(mystring, @"\d+", RegexOptions.Compiled) will search the string for all occurences of any digits
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
With regards to your second approach how does one access the matches. I have tried reading about them on the MSDN but cant see any way to access the contents. Any help would be appreciated!
Greeeg wrote: #2
MatchCollection matches = Regex.Matches(mystring, @"\d+", RegexOptions.Compiled) will search the string for all occurences of any digits
|
|
|
|