dispose

  1. D

    How to properly open a Image using Bitmap Class and dispose it properly

    I am looking for a code snippet which opens a image, creates a clone of this bitmap in memory disposes this opened image so that all handles are closed. Usually we can open a bitmap using this Dim MyBit as new bitmap("C:\Image file.bmp") dim ClonedBit as bitmap = MyBit.clone MyBit.dispose the...
  2. G

    Question Removing tabs with user control from tabpage

    Hi all, I have a thing I am not sure if it is a problem but its weird to me and I don't understand it. So if anyone has any idea or explanation I would appreciate if you told me. I have a application with a tabcontrol. I dynamically open new tabs on which there is a custom control which is...
Back
Top