Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by zenox0

  1. zenox0

    MessageBox and close

    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
  2. zenox0

    Problem with the TextBox.AppendText method

    By this I ment whatever your textbox is. so I guess it would be: this._txt_Output.Select ( this._txt_Output.Text.Length, 0 );
  3. zenox0

    Problem with the TextBox.AppendText method

    After you append text call: this.Select ( this.Text.Length, 0 ); Hope this helps.
  4. zenox0

    Form freezing on event?

    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 =...
  5. zenox0

    Form freezing on event?

    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...
  6. zenox0

    Performance Question

    Note: Bitmap backBufferBmp = new Bitmap ( mainBmp ); Graphics backBufferDC = Graphics.FromImage ( backBufferDC ); Is actually: Bitmap backBufferBmp = new Bitmap ( mainBmp ); Graphics backBufferDC = Graphics.FromImage ( backBufferBmp ); Sorry for confusion
  7. zenox0

    Performance Question

    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 (...
  8. zenox0

    Saving graphics

    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 ( ) /...
  9. zenox0

    Calculation problem?

    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 )...
  10. zenox0

    PDF Files?

    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.
  11. zenox0

    Server/Database problem

    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...
  12. zenox0

    Server/Database problem

    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...
  13. zenox0

    Server/Database problem

    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.
  14. zenox0

    Server/Database problem

    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" )...

Part and Inventory Search

Back
Top