This is not a dire need post - just something I've wondered about for years
It started with some downloaded code which appears to be written by someone knowledgeable.
It contained the second line above.
If that code makes sense to you I'd appreciate it if you'd explain what it does.
The thing I've wondered about is: Why did MS include the PrinterSetting property in DefaultPageSetting given that is it already in PrintDocument.
As you can see from the above I've checked and, in the test anyway, the references are equal.
Are they sometimes different?
VB.NET:
System.Diagnostics.Debug.WriteLine($"Are the two PrinterSettings equal {Object.ReferenceEquals(mPrintDocument.PrinterSettings, mPrintDocument.PrinterSettings.DefaultPageSettings.PrinterSettings)}");
mPrintDocument.PrinterSettings.PrinterName = mPrintDocument.PrinterSettings.DefaultPageSettings.PrinterSettings.PrinterName;
It started with some downloaded code which appears to be written by someone knowledgeable.
It contained the second line above.
If that code makes sense to you I'd appreciate it if you'd explain what it does.
The thing I've wondered about is: Why did MS include the PrinterSetting property in DefaultPageSetting given that is it already in PrintDocument.
As you can see from the above I've checked and, in the test anyway, the references are equal.
Are they sometimes different?