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
- WsatConfiguration.cs
- ObjectRef.cs
- ArrayElementGridEntry.cs
- SerializationSectionGroup.cs
- ComponentEvent.cs
- TaiwanLunisolarCalendar.cs
- ScaleTransform3D.cs
- MultiTrigger.cs
- NamespaceEmitter.cs
- SecureConversationSecurityTokenParameters.cs
- TextEditorParagraphs.cs
- FixedNode.cs
- TextBlockAutomationPeer.cs
- RoleManagerEventArgs.cs
- DefaultProxySection.cs
- GenericNameHandler.cs
- DispatcherProcessingDisabled.cs
- TableColumnCollectionInternal.cs
- MembershipValidatePasswordEventArgs.cs
- ManagementBaseObject.cs
- SchemaImporterExtensionElement.cs
- Rect3D.cs
- QueryAsyncResult.cs
- TextTreeFixupNode.cs
- VisualTreeHelper.cs
- Drawing.cs
- GridSplitter.cs
- UIElement3DAutomationPeer.cs
- ListControlDataBindingHandler.cs
- HttpProfileBase.cs
- DataGridComboBoxColumn.cs
- RegexGroup.cs
- SymmetricAlgorithm.cs
- PageStatePersister.cs
- WsdlBuildProvider.cs
- XmlLanguage.cs
- ReceiveSecurityHeaderEntry.cs
- GetPageCompletedEventArgs.cs
- WizardPanelChangingEventArgs.cs
- StateItem.cs
- DecoderBestFitFallback.cs
- ConsumerConnectionPointCollection.cs
- ExceptionRoutedEventArgs.cs
- EnumUnknown.cs
- PtsCache.cs
- DataSetMappper.cs
- XmlEncoding.cs
- CreateRefExpr.cs
- FindCriteriaCD1.cs
- XMLUtil.cs
- DataGridViewRowCancelEventArgs.cs
- assemblycache.cs
- TreeView.cs
- ToolBarDesigner.cs
- _AcceptOverlappedAsyncResult.cs
- EnlistmentState.cs
- LineMetrics.cs
- ArgumentNullException.cs
- DBDataPermission.cs
- StructuralCache.cs
- ClientOperationFormatterProvider.cs
- HttpRequestMessageProperty.cs
- JoinGraph.cs
- QilList.cs
- WebPartConnectionsConnectVerb.cs
- SqlErrorCollection.cs
- FixUpCollection.cs
- BinaryObjectInfo.cs
- TraceUtility.cs
- TreeViewDesigner.cs
- SrgsGrammarCompiler.cs
- SettingsProperty.cs
- DateTimeOffsetStorage.cs
- cookiecollection.cs
- FixedDocumentPaginator.cs
- OptimizerPatterns.cs
- Pair.cs
- PreviewKeyDownEventArgs.cs
- MethodCallTranslator.cs
- CodeGotoStatement.cs
- RemoveStoryboard.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- ElementHostAutomationPeer.cs
- AccessedThroughPropertyAttribute.cs
- TreeBuilderXamlTranslator.cs
- CodeGenerationManager.cs
- BufferedStream.cs
- XmlSchemaExporter.cs
- TreeView.cs
- FixedTextView.cs
- GrammarBuilder.cs
- CustomAssemblyResolver.cs
- HandleExceptionArgs.cs
- PostBackOptions.cs
- MissingSatelliteAssemblyException.cs
- MetadataFile.cs
- Condition.cs
- Pts.cs
- EditorAttribute.cs
- SendActivityDesigner.cs