D
**Developer**
What should I Dispose.
For example, in the following what should I Dispose and what happens if I
don't?
Thanks
Dim PS As New PrinterSettings
PS.PrinterName = pD.DefaultPageSettings.PrinterSettings.PrinterName
PS.DefaultPageSettings.Landscape = False
If PS.IsValid Then
Dim GrPrinter As Graphics = PS.CreateMeasurementGraphics()
Dim Hdc As IntPtr = GrPrinter.GetHdc()
--snip---
For example, in the following what should I Dispose and what happens if I
don't?
Thanks
Dim PS As New PrinterSettings
PS.PrinterName = pD.DefaultPageSettings.PrinterSettings.PrinterName
PS.DefaultPageSettings.Landscape = False
If PS.IsValid Then
Dim GrPrinter As Graphics = PS.CreateMeasurementGraphics()
Dim Hdc As IntPtr = GrPrinter.GetHdc()
--snip---