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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. pretender314

    Create an object of unknown type???

    http://www.dotnet247.com/247reference/message.aspx?id=286412 The clean solution would be to use generics, but 2.0 has not been released yet. You could add a public function to your derived classes, and an abstract function in the base class, to do the same work as your class constructor...
  2. pretender314

    Saving graphics

    What you are talking about is similar to double buffering. using System.Drawing; ... private Bitmap _Buffer; ... //I suggest doing this in a constructor somewhere _Buffer = new Bitmap(width, height); Graphics g = Graphics.FromImage(_Buffer); //draw stuff //ex: g.FillRectangle(Brushes.Green, 0...
  3. pretender314

    Delete Image when done using it

    Your locking problem is not in the code you provided. I assume you are using Image.FromFile to load the file into an Image type. Image.FromFile does not release the file after reading it. I suggest you handle the filestream yourself. using System.IO; using System.Drawing; ... FileStream f =...

Part and Inventory Search

Back
Top