Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WinForms / System / WinForms / Design / RTLAwareMessageBox.cs / 1 / RTLAwareMessageBox.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms.Design { using System; using System.Windows.Forms; using System.Design; ////// /// internal static 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
- NotFiniteNumberException.cs
- SynchronousReceiveBehavior.cs
- CustomAttributeBuilder.cs
- FileSystemEventArgs.cs
- XhtmlConformanceSection.cs
- EntitySqlQueryState.cs
- Journaling.cs
- CatalogZoneBase.cs
- CachedPathData.cs
- ControllableStoryboardAction.cs
- ApplicationInfo.cs
- CreateUserWizardStep.cs
- FontConverter.cs
- CustomCredentialPolicy.cs
- QilPatternVisitor.cs
- WebServiceMethodData.cs
- DashStyles.cs
- ElementHost.cs
- CustomAttributeBuilder.cs
- FastEncoder.cs
- ToolStripScrollButton.cs
- PageSettings.cs
- SupportingTokenBindingElement.cs
- Activity.cs
- EndGetFileNameFromUserRequest.cs
- XmlnsDictionary.cs
- MetabaseServerConfig.cs
- StringAttributeCollection.cs
- XsdDuration.cs
- CheckBoxPopupAdapter.cs
- DbConnectionHelper.cs
- SamlConditions.cs
- CubicEase.cs
- SessionStateContainer.cs
- DataTemplateKey.cs
- ObjectConverter.cs
- CodeParameterDeclarationExpression.cs
- DecimalConstantAttribute.cs
- RowUpdatingEventArgs.cs
- NamespaceListProperty.cs
- BuildProviderCollection.cs
- ClientBuildManager.cs
- MissingFieldException.cs
- MultiTrigger.cs
- ScriptControlDescriptor.cs
- GeneralTransform3DTo2D.cs
- Int32Rect.cs
- securestring.cs
- BCryptHashAlgorithm.cs
- SmiMetaData.cs
- ComplexLine.cs
- ResXResourceSet.cs
- Win32SafeHandles.cs
- SqlPersonalizationProvider.cs
- TextureBrush.cs
- PassportAuthenticationEventArgs.cs
- HostingEnvironment.cs
- TextModifier.cs
- RequestCache.cs
- SafeNativeMethods.cs
- DbConnectionPoolGroupProviderInfo.cs
- OracleParameterCollection.cs
- MsmqIntegrationBindingCollectionElement.cs
- FontSource.cs
- DataGridView.cs
- XmlILStorageConverter.cs
- SqlDuplicator.cs
- DynamicPropertyReader.cs
- KeyManager.cs
- DataSetMappper.cs
- XmlResolver.cs
- InteropEnvironment.cs
- OrderByBuilder.cs
- SiteOfOriginContainer.cs
- AuthenticationConfig.cs
- SessionEndingEventArgs.cs
- CreatingCookieEventArgs.cs
- SizeAnimation.cs
- AssemblyUtil.cs
- FormatSettings.cs
- DoubleCollectionValueSerializer.cs
- EncoderReplacementFallback.cs
- ObfuscationAttribute.cs
- CodeArgumentReferenceExpression.cs
- ConfigUtil.cs
- ContextQuery.cs
- MediaCommands.cs
- SiteOfOriginContainer.cs
- RuntimeResourceSet.cs
- WindowsButton.cs
- RewritingSimplifier.cs
- WebPartZoneCollection.cs
- Method.cs
- TagMapCollection.cs
- InheritanceAttribute.cs
- ReferentialConstraintRoleElement.cs
- RegexMatchCollection.cs
- OleDbWrapper.cs
- DbMetaDataCollectionNames.cs
- NotConverter.cs