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
- ReadOnlyDataSourceView.cs
- BinaryObjectReader.cs
- EntityRecordInfo.cs
- ConfigurationErrorsException.cs
- ConfigurationManagerHelper.cs
- Renderer.cs
- XpsSerializationManagerAsync.cs
- DefaultMemberAttribute.cs
- Int32Collection.cs
- PropertyCondition.cs
- TransformPatternIdentifiers.cs
- _NativeSSPI.cs
- MembershipSection.cs
- DesignerForm.cs
- BitSet.cs
- sqlser.cs
- XmlDocumentType.cs
- RayMeshGeometry3DHitTestResult.cs
- SoapBinding.cs
- TreeViewImageKeyConverter.cs
- ReversePositionQuery.cs
- altserialization.cs
- RC2CryptoServiceProvider.cs
- COM2IPerPropertyBrowsingHandler.cs
- Matrix.cs
- CoreSwitches.cs
- Logging.cs
- Debug.cs
- SafeProcessHandle.cs
- regiisutil.cs
- VarRefManager.cs
- EntityCommandExecutionException.cs
- WindowsStartMenu.cs
- ExpressionVisitor.cs
- XmlDocument.cs
- IsolatedStoragePermission.cs
- SemanticResultValue.cs
- RequestCacheValidator.cs
- KnownBoxes.cs
- FileClassifier.cs
- DataPointer.cs
- FileVersionInfo.cs
- ReaderOutput.cs
- GroupStyle.cs
- MulticastIPAddressInformationCollection.cs
- ImageFormat.cs
- LiteralSubsegment.cs
- BaseAddressElement.cs
- Win32.cs
- HtmlEmptyTagControlBuilder.cs
- ParameterToken.cs
- DataSourceCollectionBase.cs
- ContractMapping.cs
- CodeObjectCreateExpression.cs
- StatusBarDrawItemEvent.cs
- InteropAutomationProvider.cs
- PlatformCulture.cs
- SubordinateTransaction.cs
- CqlGenerator.cs
- ArraySet.cs
- IDictionary.cs
- TableRow.cs
- WebContext.cs
- Base64Encoder.cs
- HelpProvider.cs
- ProfileSection.cs
- AccessDataSource.cs
- TreePrinter.cs
- ConfigurationStrings.cs
- ButtonColumn.cs
- ModulesEntry.cs
- AssemblyCache.cs
- DrawingBrush.cs
- SubclassTypeValidator.cs
- SecurityKeyUsage.cs
- DesignTimeParseData.cs
- GcSettings.cs
- Configuration.cs
- LocatorPartList.cs
- TimeZone.cs
- ValuePattern.cs
- Serializer.cs
- TextEditorSpelling.cs
- GeometryDrawing.cs
- Ops.cs
- ExpandedWrapper.cs
- SafeNativeMethods.cs
- TCEAdapterGenerator.cs
- AccessKeyManager.cs
- EventToken.cs
- XMLUtil.cs
- ApplicationFileCodeDomTreeGenerator.cs
- SetterBaseCollection.cs
- ToolStripSeparator.cs
- TraceProvider.cs
- NetworkStream.cs
- AnnotationStore.cs
- EntitySqlQueryState.cs
- EncoderExceptionFallback.cs
- ComboBoxRenderer.cs