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
- SrgsGrammar.cs
- IntegerCollectionEditor.cs
- DefaultTypeArgumentAttribute.cs
- SiteMapNodeItem.cs
- SystemIPGlobalStatistics.cs
- Point3DKeyFrameCollection.cs
- wmiprovider.cs
- WpfPayload.cs
- ObjectQueryState.cs
- LineInfo.cs
- GridViewRow.cs
- cryptoapiTransform.cs
- ObjectContext.cs
- BinaryMethodMessage.cs
- LineGeometry.cs
- DependencyPropertyHelper.cs
- QueryPageSettingsEventArgs.cs
- WorkflowTransactionOptions.cs
- ToolBarPanel.cs
- EdmScalarPropertyAttribute.cs
- BindingListCollectionView.cs
- TextElementEnumerator.cs
- DataServiceQuery.cs
- HttpFileCollection.cs
- FilterFactory.cs
- DataGridViewRowCollection.cs
- CodeSubDirectory.cs
- XappLauncher.cs
- CodeAttributeDeclaration.cs
- ObjectDataSourceStatusEventArgs.cs
- DelegatingConfigHost.cs
- TreeNodeBindingCollection.cs
- RegexCapture.cs
- DesignerLinkAdapter.cs
- ChannelBase.cs
- UnauthorizedWebPart.cs
- TextTreeUndoUnit.cs
- DiscardableAttribute.cs
- ProcessHostConfigUtils.cs
- ProfileService.cs
- SerializationAttributes.cs
- baseshape.cs
- Selection.cs
- PersonalizationDictionary.cs
- HttpHandlerActionCollection.cs
- PassportAuthentication.cs
- ToolStripPanel.cs
- ListViewUpdateEventArgs.cs
- DataGridBoolColumn.cs
- MouseGesture.cs
- HwndHost.cs
- TextEffectCollection.cs
- RadialGradientBrush.cs
- InputBinding.cs
- TimeSpanFormat.cs
- TypeConverterAttribute.cs
- BitmapPalette.cs
- WinFormsUtils.cs
- XmlAnyElementAttribute.cs
- XmlSchemaAnyAttribute.cs
- PerformanceCounterLib.cs
- Subset.cs
- _SslStream.cs
- WebPartCatalogCloseVerb.cs
- XPathSelectionIterator.cs
- ToolZone.cs
- CodeDelegateInvokeExpression.cs
- ElapsedEventArgs.cs
- path.cs
- TearOffProxy.cs
- XmlHierarchicalEnumerable.cs
- ToolboxItemFilterAttribute.cs
- ValidationEventArgs.cs
- UIElementHelper.cs
- ControlCollection.cs
- SubMenuStyle.cs
- EventLogPermissionEntry.cs
- SafeNativeMethods.cs
- XslUrlEditor.cs
- DbProviderFactory.cs
- HyperLinkStyle.cs
- ContentDisposition.cs
- MD5CryptoServiceProvider.cs
- ObjectAnimationUsingKeyFrames.cs
- ZeroOpNode.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- MailAddress.cs
- PublisherIdentityPermission.cs
- SR.cs
- RuntimeHandles.cs
- WebControl.cs
- ConfigurationPermission.cs
- OracleInternalConnection.cs
- ExpressionNormalizer.cs
- TextBoxDesigner.cs
- NamedElement.cs
- ValidationResult.cs
- Models.cs
- HtmlLiteralTextAdapter.cs
- HttpApplication.cs