|
Are you trying to schedule windows services ? Windows service is not built for that. Windows service either runs or sits in idle state. For scheduling, you may consider using inbuilt windows scheduler.
|
|
|
|
|
N a v a n e e t h wrote: Are you trying to schedule windows services ? Windows service is not built for that.
But I have seen many coding example on internet where they schedule Windows Services by timers.. I am doing the same..
Isnt it the right way??
By the way, I tried that idea, inserting a task in the windows scheduler..
But didnt succeed..
Windows Scheduler cannot run at specified intervals of time(say every two hours) in the same day.. But I need this functionality..
Also I didnt find any Windows API or any BCL method which inserts tasks into the windows scheduler programmaticaly..
Thats why using timers for Windows Services..
Can u suggest me what to do..
Som
|
|
|
|
|
novice1115 wrote: Isnt it the right way??
I don't think so. You can write a windows/console application which exits automatically after execution and add that to the windows scheduler.
|
|
|
|
|
N a v a n e e t h wrote: You can write a windows/console application which exits automatically after execution and add that to the windows scheduler.
So can you tell me how to add that console application to the windows scheduler task programmatically in C#?
Som
|
|
|
|
|
like VS code-editor,
how to setting color, font, paragraph-format,and the like?
aim at full document or part of the document.
|
|
|
|
|
Are you trying to create a VS kind of editor ? It's going to be big task.
|
|
|
|
|
No, I want to create a document editor.
|
|
|
|
|
Here's a wacky thought - why not use Visual Studio itself? You can extend Visual Studio (and run it as a standalone editor in Isolated Mode) to use your own forms of highlighting. Take a look here[^] for more information.
|
|
|
|
|
I just try to coding a editor for study.
it can display text with appointed format which appointed file type.
I have no from commence.
Thanks.
|
|
|
|
|
You could always download the source code for SharpDevelop[^]. It's a full featured code editor (among other things) and should offer you plenty to learn from.
|
|
|
|
|
|
That's just too big a question to expect a reasonable answer in a forum reply. I'd be looking for articles on related topics. I know there's a color coded editor class on CP, although it may be in C++.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
where can I consult articles for this topics?
Had better be a C# aspect of
|
|
|
|
|
The language doesn't really matter, what you need are concepts of how to build such a system at a higher up level. If you're looking for source code to copy and paste, you may as well give up now. Like I said, there's at least a syntax coloring editor in MFC on this site.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I found a JAVA editor here[^] from codeplex. It comes with syntax highlighting. You can take the necessary parts from that program.
|
|
|
|
|
Hi All,
I have an web service, which is going to create files and access files in/from a shared folder.
Now when the folder is specified as the UNC path, the web service is unable to access it.
For me only the privileged user can access the folder and I have assigned the security through code to a user who is in AD. Now I don't know how to access it in the web service and how to pass the credentials to it.
Can any one help in this regard?
<br />
(For Security reason the user "Everyone" is also removed from the security and only the AD user can access the folder and the current identity of the system can be any other AD user)
Thanks a lot in advance.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Hi everyone,
I tried the setting as below:
<asp:gridview id="gv1" runat="server" autogeneratecolumns="False" emptydatatext="No Items items found." font-size="9pt" width="100%">
Well, the fonts in the Item template were displaying correctly.
However, text in the controls inside EditItemTemplate were still size 12.
I have tried the below too:
EditRowStyle font-size="X-Small"
no use either.....
Can someone advise me wat i am doing wrong? Thanks a million!
Regards
blooper
|
|
|
|
|
Hi all,
I got problem moving the object in richtextbox.
How i can move object such as rectangle in richtextbox using mouse event..?
Thank You..
KAM83_CODEPROJECT
modified on Wednesday, April 9, 2008 1:34 AM
|
|
|
|
|
Im currently working on a C# project that requires the use of proxies.
Example:
String WholeProxy = "127.0.0.1:80";<br />
String Address = Here I need to split "WholeProxy" to get just the "127.0.0.1";<br />
int Port = Here I need to split "WholeProxy" to get just the "80";
Does anyone know how to do this?
Thanks,
Joshua123321.
|
|
|
|
|
string has a Split method for that
and int has a Parse method
|
|
|
|
|
You would need a regex to pull a number out of a string. It's also always better to use int.TryParse instead of int.Parse, just in case.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi:
Hello everybody:
I need to parse the form field, say Description. I want to disallow all the html tags but anchor text. Basically i need a pattern that will match 0-9 a-zA-Zm -, _, @ and anchor text (can be multiple occurance). So if the text in description form field match this criteria, i will allow the user to submit the form successfully otherwise validatiion will fail.
examples:
Valid input
-----------
My name is john doe. i live in xyx, city xyn state.
I am a technial recruiter. my web site is john doe
Please visite. my phone number is 000-000-7777. My email is x@y.com
My Work website is work website
Invalid Input
-------------
My name is john doe. i live in xyx, city xyn state.
<img src=cby.com> or <script><script
I am a technial recruiter. my web site is john doe
Please visite. my phone number is 000-000-7777. My email is x@y.com
Need help with regular expression
|
|
|
|
|
Is there somewhere that you could point me to learn how to write a program to automatically map printers that are shared on a network? I've looked it up and found them in VB but not C#. I do not know VB.
Is this possible?
|
|
|
|
|
Let's say a server is listening on port 24000. Lo and behold, a client connects on port 24000. Immediately after establishing the connection, the client sends a message to the server. The server shows the message as coming from 123.456.789:54326 (as an example).
The port the client is ultimately communicating on is 54326. How do I control the range of ports the server will use for this auto-negotiated port? I've looked at most of the System.Net namespace and couldn't find anything obvious.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hi John
You means, you restrict range of the port access by the client, is it correct?
if I'm correct you must set port to client ,which server port want to connect by the client.that's mean you haven;t any way to set range of the part.so must specify your own method, then access that list of port from your client.
|
|
|
|