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
- CultureSpecificStringDictionary.cs
- LinqDataSourceUpdateEventArgs.cs
- FragmentNavigationEventArgs.cs
- BitVec.cs
- XmlRawWriter.cs
- UrlAuthFailedErrorFormatter.cs
- OneWayBindingElement.cs
- HtmlInputRadioButton.cs
- TraceProvider.cs
- LicenseManager.cs
- BindingElementCollection.cs
- GB18030Encoding.cs
- SqlConnectionStringBuilder.cs
- FeatureSupport.cs
- ColumnClickEvent.cs
- LinkedResourceCollection.cs
- ListItem.cs
- XmlILModule.cs
- StringCollection.cs
- PromptEventArgs.cs
- _LocalDataStoreMgr.cs
- PasswordBoxAutomationPeer.cs
- WebPartConnectionsCancelEventArgs.cs
- GeneralTransform3DGroup.cs
- DynamicQueryStringParameter.cs
- TextRangeBase.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- SchemeSettingElement.cs
- SingleAnimation.cs
- UriScheme.cs
- UIPermission.cs
- ViewRendering.cs
- PhysicalAddress.cs
- GregorianCalendar.cs
- ScrollBar.cs
- Model3DCollection.cs
- XmlAttribute.cs
- XmlWriterSettings.cs
- FeatureSupport.cs
- CaseExpr.cs
- EntityDataSourceDataSelection.cs
- ToolStripPanelRow.cs
- DataSourceControl.cs
- WebPartDescription.cs
- InstanceNormalEvent.cs
- DbCommandDefinition.cs
- CancelEventArgs.cs
- ContextInformation.cs
- PageThemeCodeDomTreeGenerator.cs
- AvTrace.cs
- NativeCppClassAttribute.cs
- MimeFormImporter.cs
- WebEvents.cs
- ApplicationCommands.cs
- SequenceDesigner.cs
- ProfileSettingsCollection.cs
- ListBoxItemWrapperAutomationPeer.cs
- FormattedTextSymbols.cs
- HtmlControl.cs
- ToolStripItemClickedEventArgs.cs
- WebRequestModulesSection.cs
- PointAnimation.cs
- XmlArrayItemAttribute.cs
- PrivilegeNotHeldException.cs
- FileRegion.cs
- DataGridViewRowPrePaintEventArgs.cs
- Resources.Designer.cs
- HttpServerVarsCollection.cs
- IdentityReference.cs
- RemotingServices.cs
- GenericTypeParameterBuilder.cs
- CodeAttributeDeclarationCollection.cs
- HostingEnvironmentWrapper.cs
- EditorBrowsableAttribute.cs
- NotifyInputEventArgs.cs
- Soap11ServerProtocol.cs
- RoutedUICommand.cs
- WebPageTraceListener.cs
- WebDescriptionAttribute.cs
- NodeInfo.cs
- TreeViewCancelEvent.cs
- FileCodeGroup.cs
- HScrollBar.cs
- TdsRecordBufferSetter.cs
- KeyMatchBuilder.cs
- XPathNavigator.cs
- DataColumnChangeEvent.cs
- WebPartDescription.cs
- ComboBox.cs
- HttpModulesSection.cs
- ExpressionCopier.cs
- UnionQueryOperator.cs
- UserControlBuildProvider.cs
- Boolean.cs
- CompModSwitches.cs
- DataGridHeaderBorder.cs
- PipelineModuleStepContainer.cs
- DebuggerAttributes.cs
- MethodAccessException.cs
- XPathArrayIterator.cs