Code:
/ FX-1434 / FX-1434 / 1.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
- DesignerRegionCollection.cs
- RankException.cs
- CacheMemory.cs
- WindowsListViewGroup.cs
- RequestBringIntoViewEventArgs.cs
- SchemaType.cs
- Decoder.cs
- ScrollProviderWrapper.cs
- EnumConverter.cs
- ServerIdentity.cs
- HTTPNotFoundHandler.cs
- IgnoreSectionHandler.cs
- SafeCoTaskMem.cs
- ToolStripContainer.cs
- ArithmeticException.cs
- ToolStripManager.cs
- COSERVERINFO.cs
- PngBitmapEncoder.cs
- TransactionFilter.cs
- QilChoice.cs
- DBSqlParserTable.cs
- SessionEndingEventArgs.cs
- MimeParameters.cs
- ThreadStateException.cs
- GradientStop.cs
- TitleStyle.cs
- RtfControls.cs
- AutomationElement.cs
- TimeEnumHelper.cs
- Documentation.cs
- WindowsListViewGroupSubsetLink.cs
- MDIWindowDialog.cs
- XmlDataSource.cs
- PrintSystemException.cs
- TCPClient.cs
- TaskbarItemInfo.cs
- ExpandoObject.cs
- DefaultPrintController.cs
- XamlValidatingReader.cs
- CheckBoxRenderer.cs
- FontConverter.cs
- SQLBinary.cs
- PopupRootAutomationPeer.cs
- TableLayoutPanelDesigner.cs
- XmlSchemaExternal.cs
- Win32.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- Converter.cs
- LockRenewalTask.cs
- Soap.cs
- PasswordDeriveBytes.cs
- QuaternionKeyFrameCollection.cs
- AnimatedTypeHelpers.cs
- Border.cs
- DocumentPageView.cs
- PackageRelationship.cs
- ByteStack.cs
- FormCollection.cs
- ColumnResult.cs
- ItemMap.cs
- RepeatEnumerable.cs
- XmlSchemaImporter.cs
- TrackingStringDictionary.cs
- IncrementalReadDecoders.cs
- Boolean.cs
- UseManagedPresentationBindingElementImporter.cs
- parserscommon.cs
- ExpandSegmentCollection.cs
- GenerateScriptTypeAttribute.cs
- PasswordBox.cs
- PropertySegmentSerializationProvider.cs
- FtpWebResponse.cs
- UnauthorizedWebPart.cs
- ECDiffieHellman.cs
- HandleScope.cs
- DecimalConstantAttribute.cs
- SBCSCodePageEncoding.cs
- PartialTrustVisibleAssembly.cs
- DataGridTableStyleMappingNameEditor.cs
- PropertyChangingEventArgs.cs
- SendActivityDesigner.cs
- MulticastNotSupportedException.cs
- ConfigXmlText.cs
- VectorKeyFrameCollection.cs
- MarkupCompilePass1.cs
- WmlFormAdapter.cs
- DiscoveryDocumentReference.cs
- ResolvedKeyFrameEntry.cs
- ProgressChangedEventArgs.cs
- XmlDocumentFragment.cs
- MouseGestureValueSerializer.cs
- WmlLinkAdapter.cs
- ArrayConverter.cs
- ShaderEffect.cs
- SqlDeflator.cs
- DateTimeOffsetStorage.cs
- CustomAttribute.cs
- BitmapEffectInput.cs
- XsdDuration.cs
- HttpWebResponse.cs