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
- TCPClient.cs
- DataGridDesigner.cs
- MimeImporter.cs
- MissingMethodException.cs
- TextContainer.cs
- SchemaUtility.cs
- Point3DAnimationUsingKeyFrames.cs
- CommandConverter.cs
- CaseInsensitiveHashCodeProvider.cs
- ListSourceHelper.cs
- TypeReference.cs
- WebPartConnectVerb.cs
- DataSourceHelper.cs
- DefaultBindingPropertyAttribute.cs
- DataBoundControl.cs
- ExtensionWindow.cs
- WebEventTraceProvider.cs
- GridViewColumn.cs
- ConstructorBuilder.cs
- PersonalizablePropertyEntry.cs
- PeerHelpers.cs
- TextAnchor.cs
- XPathDocumentBuilder.cs
- ObjectStateFormatter.cs
- XmlILOptimizerVisitor.cs
- MDIWindowDialog.cs
- StorageMappingItemLoader.cs
- OleDbFactory.cs
- GeometryDrawing.cs
- CheckBox.cs
- MetaModel.cs
- GridSplitterAutomationPeer.cs
- XmlKeywords.cs
- CompositeControl.cs
- CapabilitiesAssignment.cs
- QueryableDataSourceView.cs
- XPathDocumentBuilder.cs
- SortableBindingList.cs
- CodeDOMProvider.cs
- HelpInfo.cs
- DataGridViewImageColumn.cs
- EndOfStreamException.cs
- SystemColors.cs
- TableRowCollection.cs
- Crc32Helper.cs
- StylusLogic.cs
- StringWriter.cs
- TextDocumentView.cs
- ValidatorCollection.cs
- GridViewUpdatedEventArgs.cs
- DataGridRowDetailsEventArgs.cs
- PermissionSet.cs
- NullableDecimalSumAggregationOperator.cs
- Rectangle.cs
- TreeNodeEventArgs.cs
- PaintValueEventArgs.cs
- WebPartsPersonalizationAuthorization.cs
- _SslSessionsCache.cs
- HtmlInputRadioButton.cs
- SignedXmlDebugLog.cs
- SettingsProperty.cs
- Registry.cs
- PropertyKey.cs
- PageThemeCodeDomTreeGenerator.cs
- BindingGroup.cs
- SoapCodeExporter.cs
- NavigationHelper.cs
- DeclarativeCatalogPart.cs
- SqlDataSourceStatusEventArgs.cs
- SurrogateSelector.cs
- ScrollBar.cs
- BitmapEffect.cs
- HtmlToClrEventProxy.cs
- VSDExceptions.cs
- HttpProfileGroupBase.cs
- DataGridPagerStyle.cs
- ProtocolsConfiguration.cs
- SetIterators.cs
- DefaultParameterValueAttribute.cs
- Expression.DebuggerProxy.cs
- PropertyBuilder.cs
- RegexNode.cs
- PathStreamGeometryContext.cs
- NotEqual.cs
- WebPageTraceListener.cs
- StreamInfo.cs
- HandleCollector.cs
- SmiRequestExecutor.cs
- BamlMapTable.cs
- SrgsOneOf.cs
- RawStylusInput.cs
- FixUp.cs
- UnhandledExceptionEventArgs.cs
- BrowserCapabilitiesFactory35.cs
- XmlElement.cs
- ButtonBaseAdapter.cs
- MarkerProperties.cs
- EventLogPermissionAttribute.cs
- MemberPath.cs
- ContainerVisual.cs