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
- ConfigXmlReader.cs
- OracleParameterBinding.cs
- JoinQueryOperator.cs
- ToolStripPanel.cs
- ListViewItem.cs
- AttributeSetAction.cs
- _SslSessionsCache.cs
- HtmlTableRow.cs
- NetworkStream.cs
- FontWeight.cs
- RelationshipNavigation.cs
- TailCallAnalyzer.cs
- Dispatcher.cs
- TableHeaderCell.cs
- ThreadPoolTaskScheduler.cs
- AdCreatedEventArgs.cs
- DesignerAdapterUtil.cs
- PrivilegeNotHeldException.cs
- RequestNavigateEventArgs.cs
- PropertyOverridesTypeEditor.cs
- MeasureData.cs
- DataGrid.cs
- ConfigurationSectionCollection.cs
- DoubleLinkListEnumerator.cs
- Int16Converter.cs
- LicenseManager.cs
- DesignerWithHeader.cs
- TransferRequestHandler.cs
- SmiRequestExecutor.cs
- AncestorChangedEventArgs.cs
- DataGridViewToolTip.cs
- OdbcConnectionStringbuilder.cs
- QilPatternVisitor.cs
- ConfigurationPropertyAttribute.cs
- Int32.cs
- DateTimeFormatInfo.cs
- TextBoxBaseDesigner.cs
- DocumentXmlWriter.cs
- ApplicationActivator.cs
- SecurityKeyIdentifier.cs
- ToolStripItemDesigner.cs
- WSSecureConversation.cs
- MenuAdapter.cs
- DataStorage.cs
- DiscoveryEndpointElement.cs
- Attachment.cs
- UnknownWrapper.cs
- FileDialog_Vista.cs
- WindowsListViewGroup.cs
- SoapExtension.cs
- Model3DGroup.cs
- WebExceptionStatus.cs
- ContextMenu.cs
- ManagedIStream.cs
- CodeNamespace.cs
- UnauthorizedWebPart.cs
- LogExtentCollection.cs
- StringCollectionEditor.cs
- SiteOfOriginContainer.cs
- SettingsPropertyWrongTypeException.cs
- ToolboxBitmapAttribute.cs
- BrowserDefinition.cs
- EncryptedKey.cs
- TableAutomationPeer.cs
- SemanticKeyElement.cs
- PrivilegeNotHeldException.cs
- BaseTransportHeaders.cs
- SqlConnectionPoolGroupProviderInfo.cs
- Subtree.cs
- DataChangedEventManager.cs
- Metafile.cs
- DisposableCollectionWrapper.cs
- PublisherIdentityPermission.cs
- ExpandSegmentCollection.cs
- Empty.cs
- RoleServiceManager.cs
- TextPattern.cs
- EventManager.cs
- DbModificationClause.cs
- MembershipUser.cs
- ResourceIDHelper.cs
- XmlSchemaType.cs
- MimePart.cs
- QueryComponents.cs
- MemberPath.cs
- KeyConstraint.cs
- ISFTagAndGuidCache.cs
- SkinBuilder.cs
- querybuilder.cs
- CanonicalizationDriver.cs
- ADRoleFactory.cs
- JsonEncodingStreamWrapper.cs
- ConfigurationElementProperty.cs
- CreateRefExpr.cs
- RequestValidator.cs
- SchemaCollectionPreprocessor.cs
- AutomationPropertyInfo.cs
- ProfileManager.cs
- MessagePartDescription.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs