- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
20 Posted Topics
in c#, you may use an abstract class for Tools and a derivated class for each of the tools.
1) Install mono on your Linux system 2) copy you program .exe (for instance myProgram.exe) and associated dll from Visual udio onto the Linux. 3) In Linux type the command : mono myProgram.exe 4) See ... what happens.
First, in the server project, you must add a reference to the client namespace (if the two project are not in the same namespace). Then you can start the form as usual, for instance : Application.Run(new Form2());
Must'n you close the file after writing ?
I have noticed that when I install a new .NET program (using msi file) on a slow computer, this program needs a lot of time for its first execution. Once the first run is done, if I restart the same program, execution time is normal (even after restarting the computer). …
I did something similar in the past. I had a rather hard time making it works. I suggest the following : - get the child window handle from the Process object (MainWindowHandle property) - set this window as the foreground window using SetForegroundWindow (unmanaged function) - loop until GetForegroundWindow() is …
is rec instanciated ?
I confirm that such a program can be easily written in C#. Try to do it. If you have problem, we will be pleased to help.
See CodeProject at http://www.codeproject.com/ They have serveral articles about load balancing.
There are several way to share data beween applications. I would suggest communication via a port (UDPCLient for instance, easy to implement). Shared memory is a solution when you have important volume of data to exchange (bitmap) but I fear you have to write a dll in non managed code …
You can use a string, it is an object. If you absolutely need an int, you can create a small class : public class Tag {public int value = 0;} that you use in your form : Tag tag = new Tag {value = 12}; this.button1.Tag = tag;
Ping Class http://msdn.microsoft.com/en-us/library/system.net.networkinformation.ping(VS.80).aspx
The global variable block can be tested and modified by both workers. This may be unsafe. I suggest to use Monitor class to lock the variable before using it : For instance : Monitor.Enter(block); block = "busy"; Monitor.Exit(block);
Hi, I suggest you to develop a very useful system. The goal of this system will be to answer to question such as “I am a student in … and want an idea of a graduation project in the field of ...”. The system will use a database containing worlds …
With .Net, you have two types of variables that will be usefull to solve your problem : DateTime and TimeSpan. The last one is the difference between two DateTime. So you can write something like : DateTime t1; DateTime t2; TimeSpan delta = t2 - t1; TimeSpan embarks a bunch …
String userDate = "10/13/2012"; try { Convert.ToDateTime(userDate); } catch (System.Exception ex) { // Error message ... }
Alternatively, you may declare static the variable isMyFormValid.
Hi, It sounds so obvious that I probably miss the question : Create another stack C. Dequeue the first element from A (=>1) and B(=>5) Compare these elements and enqueue the smaller into C (=>1) Dequeue a new element from A (=>2) (because you have used the previous element from …
Hi, I guess I had a similar issue, that I solved like this : In the main thread, I want to start a new WindowsForm : Thread t = new Thread(StartMyForm); t.TrySetApartmentState(ApartmentState.STA); t.Start(); And public static void StartMyForm() { Application.Run(new MyForm(..)); } Hope it may help. Patrick.
Hi guys, According to Frédéric Elie, in Ondes de surfaces des liquides, the wave speed, in infinitely deep water is c = sqrt ( g * lambda / (2 * PI)) where c is the speed of the phase g = gravity acceleration = 9.8 m / s² If you …
The End.
caKus