If you want to display the message box with ONLY the ok button (which is what I think you are doing) replace his MessageBoxButtons.OKCancel with MessageBoxButtons.OK
Thanks for the suggestion but it does not work :(
Here is my code that calls the event:
private bool CheckStatus ( string currentStatus )
{
// If our status havent changed
if ( currentStatus == lastStatus )
// Dont do anything
return ( false );
string tempLast =...
I have a class that I use to monitor a windows service. When the service's status changes it raises an event. In my main form when the event is raised I create a new window to show the user the status has changed. For some reason it freezes my form (the newly created one). The form works...
I have a program that has to draw the mouse whenever it is moved.. as the mouse is snaped to a grid. I hide the mouse cursor by setting it to be a transparent .cur file. Then for my mouse move code I have the following:
private void Map_MouseMove ( object sender, MouseEventArgs e )
{
if (...
Hey all,
I have created a custom control. During my repaint function I am drawing a grid. My thoughts were that instead of drawing the grid I could just save the graphics after the first time, and then redraw the saved image.
I tried two seperate things. First was using
graphics.Save ( ) /...
Hey, im having a problem with a calculation. This is a sample of the code:
void main()
{
double a = 1.16 / 1.45 * 1000.0;
double b = 800.0;
if ( a == b )
printf("a equals b");
}
Now.. if you calculate this.. a = 800. and b = 800.
However.... the statement if ( a == b )...
I was just wondering how I would go about loading a pdf file in C#. Does any of the dot net framework deal with this? If anyone could point me in the right direction that would be cool.
I remade my database class.. I dont have it here with me now but it works now. Instead of calling commands from within the server a function like NewPlayer will now just add a query string to a queryQueue that my new database thread reads and executes. It works now im just trying to think of a...
It hasnt actually thrown an exception yet :S. Basically once I try to access the database Only that connection stops receiving/sending data. Any other connections are still cool and the server still receives new connections. This is my exact code for the database:
// Static database class...
I have a thread that handles socket.Accept ( ) functions and for receiving data i use callbacks. I tried putting the database in its own thread but that didnt seem to work either :S.
I have a problem where for some reason my database is not working within my server.
This is my main function:
static void Main ( string [ ] args )
{
server.start ( PORT, MAXCONNECTIONS );
// Let the program quit when they press enter
Console.WriteLine ( "Press Enter to exit" )...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.