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
- AdornerDecorator.cs
- DynamicValidator.cs
- DateTimeEditor.cs
- ValidationHelper.cs
- PrintDocument.cs
- HyperlinkAutomationPeer.cs
- ValueUtilsSmi.cs
- OperationPickerDialog.designer.cs
- XPathParser.cs
- DetailsViewDeleteEventArgs.cs
- NameTable.cs
- dbenumerator.cs
- AnnotationComponentChooser.cs
- File.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- KeySpline.cs
- PtsHost.cs
- ProfilePropertySettingsCollection.cs
- wgx_commands.cs
- CodeEventReferenceExpression.cs
- WebBodyFormatMessageProperty.cs
- BindingsCollection.cs
- FileClassifier.cs
- UpdatePanelTrigger.cs
- XmlArrayItemAttributes.cs
- Keyboard.cs
- NameService.cs
- ISAPIWorkerRequest.cs
- BindingOperations.cs
- MethodBuilder.cs
- DrawingContextWalker.cs
- WebConfigurationFileMap.cs
- SqlDataAdapter.cs
- DropShadowBitmapEffect.cs
- StringValidator.cs
- ConfigurationCollectionAttribute.cs
- AdornerPresentationContext.cs
- AssemblyAttributes.cs
- SystemNetworkInterface.cs
- SyndicationSerializer.cs
- TrailingSpaceComparer.cs
- CutCopyPasteHelper.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- XhtmlConformanceSection.cs
- XNodeValidator.cs
- ContextStaticAttribute.cs
- TypedElement.cs
- UrlUtility.cs
- NameScopePropertyAttribute.cs
- TextFragmentEngine.cs
- InteropDesigner.xaml.cs
- AssemblyCache.cs
- XpsFilter.cs
- DataSource.cs
- Knowncolors.cs
- PerformanceCounterPermissionEntry.cs
- ToolStripItemClickedEventArgs.cs
- SqlDelegatedTransaction.cs
- BinaryObjectInfo.cs
- ApplicationGesture.cs
- ProxyGenerationError.cs
- Executor.cs
- SessionStateContainer.cs
- ComplusTypeValidator.cs
- autovalidator.cs
- WebPartCancelEventArgs.cs
- FlowDocumentView.cs
- DateTimeParse.cs
- HostVisual.cs
- TimeSpan.cs
- MemberPathMap.cs
- PasswordRecovery.cs
- FilterableAttribute.cs
- EncoderExceptionFallback.cs
- ApplyTemplatesAction.cs
- DataProviderNameConverter.cs
- MembershipUser.cs
- Calendar.cs
- Preprocessor.cs
- DataControlFieldHeaderCell.cs
- _AutoWebProxyScriptEngine.cs
- UTF7Encoding.cs
- LinkLabelLinkClickedEvent.cs
- TraceContextEventArgs.cs
- LexicalChunk.cs
- FunctionOverloadResolver.cs
- BrowserTree.cs
- FilterElement.cs
- ProjectedSlot.cs
- TraceContextEventArgs.cs
- CompiledIdentityConstraint.cs
- CallbackValidatorAttribute.cs
- SignatureSummaryDialog.cs
- GAC.cs
- SHA1Managed.cs
- RegularExpressionValidator.cs
- WebServiceErrorEvent.cs
- CorrelationActionMessageFilter.cs
- TextServicesCompartmentEventSink.cs
- ContainerUtilities.cs