Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / RTLAwareMessageBox.cs / 1 / RTLAwareMessageBox.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms { using System; using System.Windows.Forms; ////// /// internal sealed class RTLAwareMessageBox { ////// The Show method displays a message box that can contain text, buttons, and symbols that /// inform and instruct the user. This MessageBox will be RTL, if the resources /// for this dll have been localized to a RTL language. /// ////// /// public static DialogResult Show(IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options) { if (RTLAwareMessageBox.IsRTLResources) { options |= (MessageBoxOptions.RightAlign | MessageBoxOptions.RtlReading); } return MessageBox.Show(owner, text, caption, buttons, icon, defaultButton, options); } ////// Displays a message box with specified text, caption, and style. /// Makes the dialog RTL if the resources for this dll have been localized to a RTL language. /// ////// Tells whether the current resources for this dll have been /// localized for a RTL language. /// public static bool IsRTLResources { get { return SR.GetString(SR.RTL) != "RTL_False"; } } } } // 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
- ExtensionSimplifierMarkupObject.cs
- Enum.cs
- DelegatingConfigHost.cs
- MenuAutomationPeer.cs
- ClassicBorderDecorator.cs
- _CacheStreams.cs
- ApplicationBuildProvider.cs
- IPPacketInformation.cs
- GenericEnumerator.cs
- XsltArgumentList.cs
- SqlRewriteScalarSubqueries.cs
- XmlFormatExtensionAttribute.cs
- XmlImplementation.cs
- EndGetFileNameFromUserRequest.cs
- LambdaReference.cs
- ObjectReaderCompiler.cs
- StaticResourceExtension.cs
- documentsequencetextview.cs
- InfoCardX509Validator.cs
- OleDbErrorCollection.cs
- RegexCompiler.cs
- NamespaceMapping.cs
- ProviderSettings.cs
- QueryStringHandler.cs
- ClipboardData.cs
- MiniMapControl.xaml.cs
- DBBindings.cs
- SafeLocalMemHandle.cs
- CodeConstructor.cs
- LineInfo.cs
- ConnectionOrientedTransportChannelFactory.cs
- DataGridViewIntLinkedList.cs
- LinkArea.cs
- QilStrConcatenator.cs
- __FastResourceComparer.cs
- BaseServiceProvider.cs
- DataPointer.cs
- DecimalStorage.cs
- ISAPIApplicationHost.cs
- ServiceRoute.cs
- DataGridRow.cs
- ScriptingJsonSerializationSection.cs
- XPathPatternBuilder.cs
- OperatorExpressions.cs
- StylusTip.cs
- OrthographicCamera.cs
- IDReferencePropertyAttribute.cs
- SelectionRangeConverter.cs
- StylusPointProperty.cs
- DateTimeStorage.cs
- CornerRadiusConverter.cs
- XamlToRtfWriter.cs
- BindingExpression.cs
- OneToOneMappingSerializer.cs
- SafeEventLogWriteHandle.cs
- ModelPropertyCollectionImpl.cs
- TableLayoutPanel.cs
- SoapReflectionImporter.cs
- RunInstallerAttribute.cs
- GenerateTemporaryTargetAssembly.cs
- ServiceThrottle.cs
- CompilerInfo.cs
- StrokeFIndices.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- StrongNameKeyPair.cs
- RegistrationServices.cs
- QuaternionAnimationUsingKeyFrames.cs
- TreeNodeStyleCollection.cs
- XmlAnyElementAttribute.cs
- DSACryptoServiceProvider.cs
- CodeCastExpression.cs
- RoleManagerModule.cs
- XmlAnyElementAttributes.cs
- EventMemberCodeDomSerializer.cs
- HandlerMappingMemo.cs
- GridViewCancelEditEventArgs.cs
- Geometry.cs
- PageParserFilter.cs
- SymbolMethod.cs
- PageParserFilter.cs
- ToolboxCategory.cs
- Control.cs
- ContentElement.cs
- Viewport3DAutomationPeer.cs
- SpecularMaterial.cs
- PageEventArgs.cs
- CompositeClientFormatter.cs
- BuiltInPermissionSets.cs
- ResourceAssociationType.cs
- InputScopeConverter.cs
- DbMetaDataColumnNames.cs
- EntityCommandExecutionException.cs
- Tile.cs
- HelpKeywordAttribute.cs
- WebContentFormatHelper.cs
- X509ScopedServiceCertificateElementCollection.cs
- WebEventCodes.cs
- ReadOnlyDataSource.cs
- ObjectAnimationBase.cs
- MetadataItem.cs