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
- StylusPointDescription.cs
- QueryExpr.cs
- TypePropertyEditor.cs
- ChtmlCalendarAdapter.cs
- LoginDesignerUtil.cs
- EpmSyndicationContentDeSerializer.cs
- RequiredAttributeAttribute.cs
- ErrorWrapper.cs
- QilLoop.cs
- SqlDataSourceCache.cs
- Funcletizer.cs
- EntityRecordInfo.cs
- Timer.cs
- HTTPNotFoundHandler.cs
- CollectionViewGroup.cs
- TableLayoutPanelCellPosition.cs
- MouseDevice.cs
- AllMembershipCondition.cs
- Tokenizer.cs
- StreamUpdate.cs
- PropertyEmitter.cs
- HtmlTableCell.cs
- NameTable.cs
- OutputCacheSettings.cs
- CompositeDataBoundControl.cs
- PeerObject.cs
- TemplateControlBuildProvider.cs
- ListBoxAutomationPeer.cs
- HttpServerVarsCollection.cs
- __ConsoleStream.cs
- GlyphCollection.cs
- HtmlCalendarAdapter.cs
- StaticResourceExtension.cs
- InfoCardRequestException.cs
- UnknownBitmapDecoder.cs
- Automation.cs
- DataGridColumnEventArgs.cs
- WebPartCatalogCloseVerb.cs
- CustomDictionarySources.cs
- WhileDesigner.xaml.cs
- OrderedDictionary.cs
- XmlBinaryReader.cs
- Vector3DAnimation.cs
- EventPrivateKey.cs
- CodeBinaryOperatorExpression.cs
- CustomCategoryAttribute.cs
- DataTableReader.cs
- KnownTypeHelper.cs
- Vector.cs
- SqlConnectionStringBuilder.cs
- Viewport3DAutomationPeer.cs
- StrokeCollection2.cs
- VolatileResourceManager.cs
- baseaxisquery.cs
- WindowsSolidBrush.cs
- TdsParameterSetter.cs
- PngBitmapEncoder.cs
- OracleCommandBuilder.cs
- InputLanguageEventArgs.cs
- RegexRunner.cs
- Event.cs
- ContentPlaceHolder.cs
- _NestedSingleAsyncResult.cs
- RijndaelManagedTransform.cs
- DebugController.cs
- DoubleKeyFrameCollection.cs
- DateTimeConverter.cs
- NeutralResourcesLanguageAttribute.cs
- EditingCommands.cs
- WebBrowserPermission.cs
- Attributes.cs
- FixedSOMContainer.cs
- CollectionChangeEventArgs.cs
- SpecularMaterial.cs
- CharEntityEncoderFallback.cs
- DrawingContextWalker.cs
- NameScope.cs
- DurableInstanceProvider.cs
- SynchronizingStream.cs
- SqlRewriteScalarSubqueries.cs
- DropAnimation.xaml.cs
- ImageAttributes.cs
- _emptywebproxy.cs
- TrackBarRenderer.cs
- FileLoadException.cs
- XmlSchemaSequence.cs
- Activator.cs
- KnownTypesProvider.cs
- ApplicationSettingsBase.cs
- MultiTrigger.cs
- BindingObserver.cs
- ExpressionEditorSheet.cs
- Simplifier.cs
- StandardToolWindows.cs
- ConvertBinder.cs
- SoapInteropTypes.cs
- ClientSettingsSection.cs
- TextBox.cs
- MetadataFile.cs
- ComponentEditorForm.cs