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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FirstMatchCodeGroup.cs
- GCHandleCookieTable.cs
- ValidationEventArgs.cs
- SequenceFullException.cs
- StreamSecurityUpgradeAcceptor.cs
- SHA384.cs
- QilStrConcatenator.cs
- SmtpDigestAuthenticationModule.cs
- WebPartConnectionsCloseVerb.cs
- JoinElimination.cs
- DelegateArgumentValue.cs
- EventProxy.cs
- InputScopeAttribute.cs
- ParseHttpDate.cs
- LineMetrics.cs
- XmlReflectionImporter.cs
- SoapCodeExporter.cs
- FillErrorEventArgs.cs
- NoClickablePointException.cs
- OdbcInfoMessageEvent.cs
- DeviceContext2.cs
- EmptyCollection.cs
- EntitySqlQueryCacheEntry.cs
- HttpResponseHeader.cs
- MessageHeaderAttribute.cs
- ProtectedConfigurationSection.cs
- ListControl.cs
- Transform3DGroup.cs
- MouseBinding.cs
- SchemaMapping.cs
- Exceptions.cs
- QueryProcessor.cs
- XmlBaseReader.cs
- HttpGetClientProtocol.cs
- TextTreeUndoUnit.cs
- HatchBrush.cs
- ReaderWriterLock.cs
- GroupBox.cs
- KeyNotFoundException.cs
- AssociationType.cs
- SqlRowUpdatingEvent.cs
- RegexWorker.cs
- ToolboxItemCollection.cs
- TextEditorContextMenu.cs
- HelpKeywordAttribute.cs
- SeverityFilter.cs
- RemoteWebConfigurationHost.cs
- ContentElement.cs
- QueueProcessor.cs
- Atom10FormatterFactory.cs
- WebBrowser.cs
- Positioning.cs
- ListItemParagraph.cs
- Size.cs
- EmbeddedObject.cs
- FunctionQuery.cs
- DataGridCell.cs
- PersonalizableAttribute.cs
- PenLineCapValidation.cs
- RSAPKCS1SignatureFormatter.cs
- cookie.cs
- QilValidationVisitor.cs
- StringComparer.cs
- GeometryModel3D.cs
- DataGridRowAutomationPeer.cs
- XDeferredAxisSource.cs
- DesignerTransaction.cs
- Baml2006SchemaContext.cs
- ExtentKey.cs
- GlyphsSerializer.cs
- TextTreeText.cs
- ListItem.cs
- BindingSource.cs
- QueueSurrogate.cs
- NegatedCellConstant.cs
- ConditionalExpression.cs
- JournalEntryListConverter.cs
- Message.cs
- DateTimeFormatInfoScanner.cs
- CodeNamespaceCollection.cs
- WebPartUtil.cs
- CompiledRegexRunnerFactory.cs
- XslAst.cs
- AuthenticationService.cs
- CodeExporter.cs
- TextProperties.cs
- Rect3D.cs
- util.cs
- EntityParameterCollection.cs
- GlyphsSerializer.cs
- EnumerableRowCollection.cs
- ChannelSinkStacks.cs
- DeviceFilterEditorDialog.cs
- ArcSegment.cs
- ListBoxAutomationPeer.cs
- TraceListener.cs
- ModuleBuilderData.cs
- AttributeTableBuilder.cs
- DataGridViewRowPrePaintEventArgs.cs
- ConfigurationStrings.cs