|
Can I use a service to control a client's service from a server
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Which service is it that you need to control and by control do you mean start and stop? Most services can be started and stopped by running the command
net stop [servicename] or net start [servicename]
There are 10 types of people in the world, those who understand binary and those who dont.
|
|
|
|
|
I want to start or stop a built-in windows service through my own windows service in C# .Net
Is it possible?
if yes plz give me a reference.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
It is possible. If I remember correctly you wanted to do it over a network. Just add a handle to a Timers tick event(you can make it tick every second). Make the tick call a method that tries to accept a client and reads from the stream. If there was a connection just run the following code:
System.Diagnostics.Process pro = new System.Diagnostics.Process();
pro.StartInfo.FileName = "net";
pro.StartInfo.Arguments = "start messenger";
pro.StartInfo.UseShellExecute = false;
pro.StartInfo.CreateNoWindow = true;
pro.StartInfo.RedirectStandardOutput = true;
pro.Start();
There are 10 types of people in the world, those who understand binary and those who dont.
|
|
|
|
|
How make it that the mouse Drag the formBorder invalid?
Thanks.
|
|
|
|
|
check FormBorderStyle Property of form
|
|
|
|
|
Play with the FormBorderStyle property.
|
|
|
|
|
can anyone explain clearly whether C#.net is platform independent or not? so many people saying their own style. still i am confused. TIA
|
|
|
|
|
C# is plateform independent because it's virtual machine concept.
matter of fact is this .Net Applications can be run on any plateform that supports the Virtual Machine (.Net FrameWork like JRE for Java)
|
|
|
|
|
Even with java this is not completely true. Applicatiosn always use OS functions. The OS functions mey contain bugs and quircks that makes it just a little more complicated. I know about horrible cases where two diferent applications require non-compatible runtime engines. So platform independency is always relative. The least you should do is test on each platform.
|
|
|
|
|
The answer is not simple. C# is an independantly standardised language, but rigt now, it works in the .NET framework, for Windows, and under Mono ( in Linux ), but I'm not sure how complete the Mono implimentation is.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
We can deploy vs.net c# application on mono framework in linux. But it is quite hard I can deploy some simple c# windows application in linux with mono.
go to
http://www.mono-project.com
ashis
|
|
|
|
|
Christian Graus wrote: ...but I'm not sure how complete the Mono implimentation is.
The Mono API today is somewhere in between .NET 1.1 and .NET 2.0.
from the Mono Project[^] site.
|
|
|
|
|
blackjack2150 wrote: The Mono API today is somewhere in between .NET 1.1 and .NET 2.0.
As some features of the C# 3.0 compiler is already implemented, I'd say that different parts are it different states between .NET 1.1 and .NET 3.5.
---
single minded; short sighted; long gone;
|
|
|
|
|
Dear all
Regards
I want a drawing editor like on the following link
http://www.codeproject.com/useritems/DrawToolsRedux.asp
but i want that instead of using C# grapics i want to use OpenGl for drawing and also instead of reading .dtl file, it reads a DXF file and then draw it using OpenGl like in the above link.
Regards
David
david
|
|
|
|
|
I don't see a programming question ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Dear Graus
Regards!
i need the drawing editor just like the one available on the link
www.codeproject.com/useritems/DrawToolsRedux.asp
in C# and OpenGl.means programming of all the Drawing Editor in C# u sing OpenGl.
Thanking n advance.
Regrds
David
david
|
|
|
|
|
|
I have the following:
DataGrid dgSubdivisions
TextBox addName
TextBox addCity
TextBox addState
The textboxes are all in a Footer of the DataGrid, the datagrid fills itself using all TemplateColumns and a SQL Database.
I am working on the add (insert) piece of the database. I can't figure out how to get the values of the textboxes to insert them into the database.
Here is what I have, no errors, although no inserted data.
cmd.Parameters.AddWithValue("@Name", ((TextBox)dgSubdivisions.Controls[0].Controls[indexFooter].FindControl("addName")).Text);<br />
cmd.Parameters.AddWithValue("@City", ((TextBox)dgSubdivisions.Controls[0].Controls[indexFooter].FindControl("addCity")).Text);<br />
cmd.Parameters.AddWithValue("@State", ((TextBox)dgSubdivisions.Controls[0].Controls[indexFooter].FindControl("addState")).Text);<br />
cmd.Parameters.AddWithValue("@ZIP", ((TextBox)dgSubdivisions.Controls[0].Controls[indexFooter].FindControl("addZIP")).Text);<br />
cmd.Parameters.AddWithValue("@Parcel", ((TextBox)dgSubdivisions.Controls[0].Controls[indexFooter].FindControl("addParcel")).Text);
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
I want to synchronize my system clock timing with the NIST timing through program. how can i get the NIST timimg
Please Give me a suggestion or a reference site
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
The NTPClient class is simply to use. Follow the example below:
NTPClient client;<br />
try<br />
{<br />
client = new NTPClient("time.nist.gov");<br />
client.Connect();<br />
}<br />
catch(Exception e)<br />
{<br />
Console.WriteLine("ERROR: {0}", e.Message);<br />
return;<br />
}<br />
Console.Write(client.ToString());<br />
Regards,
Satips.
|
|
|
|
|
|
I have put that NTPCLient in my application . I have mentioned it for example. Likewsie She can put it for her Namespace.
Regards,
Satips.
|
|
|
|
|
Thank you Thank you Thank you a lot.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Welcome
Regards,
Satips.
|
|
|
|