Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WinForms / System / WinForms / Design / PrintDialogDesigner.cs / 1 / PrintDialogDesigner.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms.Design { using System.ComponentModel; using System.ComponentModel.Design; using System.Windows.Forms; using Microsoft.Win32; using System.Collections; using System.Diagnostics; ////// This is the designer for PrintDialog components. /// internal class PrintDialogDesigner : ComponentDesigner { ////// This method is called when a component is first initialized, typically after being first added /// to a design surface. We need to override this since the printDialog when added in Whidbey should set /// the UseEXDialog == true; /// UseEXDialog = true means to use the EX versions of the dialogs when running on XP or above, and to ignore the ShowHelp & ShowNetwork properties. /// If running below XP then UseEXDialog is ignored and the non-EX dialogs are used & ShowHelp & ShowNetwork are respected. /// UseEXDialog = false means to never use the EX versions of the dialog regardless of which O/S app is running on. ShowHelp & ShowNetwork will work in this case. /// public override void InitializeNewComponent(IDictionary defaultValues) { PrintDialog pd = Component as PrintDialog; Debug.Assert(pd != null, " PrintDialog is null !!"); if (pd != null) { pd.UseEXDialog = true; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RestClientProxyHandler.cs
- MouseOverProperty.cs
- ValueType.cs
- DecimalStorage.cs
- DataStorage.cs
- ResourcePermissionBase.cs
- InfoCardXmlSerializer.cs
- AdRotator.cs
- StorageScalarPropertyMapping.cs
- SqlError.cs
- XmlQualifiedName.cs
- OleDbDataReader.cs
- InvalidFilterCriteriaException.cs
- MaskDesignerDialog.cs
- FixedSOMPageConstructor.cs
- ClientCredentialsElement.cs
- DataGridViewSelectedRowCollection.cs
- PolicyFactory.cs
- TogglePatternIdentifiers.cs
- IPEndPoint.cs
- QuarticEase.cs
- ProjectionCamera.cs
- SessionEndedEventArgs.cs
- httpserverutility.cs
- TraceSection.cs
- RegionIterator.cs
- DbSetClause.cs
- SQLInt16Storage.cs
- PageSettings.cs
- TemplateBindingExpression.cs
- DeviceContext.cs
- FunctionQuery.cs
- GeneralTransform.cs
- SettingsProperty.cs
- SettingsPropertyWrongTypeException.cs
- AbsoluteQuery.cs
- IBuiltInEvidence.cs
- FileLoadException.cs
- ForEach.cs
- _HeaderInfoTable.cs
- Latin1Encoding.cs
- HttpHandlersSection.cs
- Italic.cs
- MsmqMessageSerializationFormat.cs
- MessageFilterTable.cs
- DefaultBinder.cs
- ReaderWriterLockSlim.cs
- XmlFormatReaderGenerator.cs
- WinHttpWebProxyFinder.cs
- EnumUnknown.cs
- XdrBuilder.cs
- Tokenizer.cs
- TabControl.cs
- Module.cs
- TransformerInfoCollection.cs
- SqlSupersetValidator.cs
- ProcessStartInfo.cs
- smtpconnection.cs
- FragmentQuery.cs
- WpfPayload.cs
- MultiSelectRootGridEntry.cs
- SequentialWorkflowHeaderFooter.cs
- Config.cs
- ClientScriptItem.cs
- BooleanFunctions.cs
- DataBoundControlHelper.cs
- ToolStripDropTargetManager.cs
- IssuanceLicense.cs
- PageHandlerFactory.cs
- PaperSource.cs
- DeclarationUpdate.cs
- SignatureGenerator.cs
- ComNativeDescriptor.cs
- LogEntrySerializer.cs
- RotateTransform3D.cs
- ExclusiveHandleList.cs
- FormsIdentity.cs
- CompositeCollection.cs
- RegexCompilationInfo.cs
- XmlSchemaInclude.cs
- WebPartConnectionsConfigureVerb.cs
- OptionUsage.cs
- BmpBitmapDecoder.cs
- SingleConverter.cs
- SponsorHelper.cs
- ZoneLinkButton.cs
- SecurityCriticalDataForSet.cs
- OleCmdHelper.cs
- DictionaryKeyPropertyAttribute.cs
- ClientSponsor.cs
- LocalServiceSecuritySettings.cs
- WebPartsSection.cs
- ReadWriteSpinLock.cs
- SystemTcpStatistics.cs
- FileDataSourceCache.cs
- SqlConnectionString.cs
- _CookieModule.cs
- EdmComplexTypeAttribute.cs
- DataGridViewColumnTypeEditor.cs
- Int64.cs