Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / RTLAwareMessageBox.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RightsManagementEncryptedStream.cs
- MatrixUtil.cs
- HttpModuleAction.cs
- WebBrowserBase.cs
- DictionaryContent.cs
- Pkcs9Attribute.cs
- BasicExpressionVisitor.cs
- ParamArrayAttribute.cs
- DataGridViewCellValidatingEventArgs.cs
- ExpressionParser.cs
- FormsAuthenticationUserCollection.cs
- TranslateTransform.cs
- VirtualizingStackPanel.cs
- XmlEncodedRawTextWriter.cs
- ClassGenerator.cs
- BrowserCapabilitiesCodeGenerator.cs
- DBProviderConfigurationHandler.cs
- DataContext.cs
- FlatButtonAppearance.cs
- ServiceOperation.cs
- ImageClickEventArgs.cs
- InternalControlCollection.cs
- Win32KeyboardDevice.cs
- ImplicitInputBrush.cs
- RawTextInputReport.cs
- SQLInt32Storage.cs
- QueryCacheManager.cs
- ResourceProviderFactory.cs
- RNGCryptoServiceProvider.cs
- RotateTransform.cs
- NativeMethods.cs
- MetadataAssemblyHelper.cs
- RequestNavigateEventArgs.cs
- MetadataLocation.cs
- FeatureSupport.cs
- ResourceDescriptionAttribute.cs
- EditingScope.cs
- ReliableSession.cs
- KeyedCollection.cs
- TreeViewEvent.cs
- WsatAdminException.cs
- ContainerParagraph.cs
- ColorMatrix.cs
- CFStream.cs
- QilBinary.cs
- LoginUtil.cs
- FormViewPageEventArgs.cs
- OleDbCommandBuilder.cs
- BasePattern.cs
- CodeGenerator.cs
- ProgressBar.cs
- DynamicObject.cs
- WebPartConnectionsDisconnectVerb.cs
- RelationshipManager.cs
- SafeCloseHandleCritical.cs
- NavigationCommands.cs
- FreezableCollection.cs
- TypeForwardedFromAttribute.cs
- ParserHooks.cs
- UpdateCommand.cs
- FontCollection.cs
- CodeGotoStatement.cs
- ColorTransform.cs
- PeerNameRecord.cs
- HttpRequest.cs
- ZipIOExtraFieldElement.cs
- ObjectListCommandEventArgs.cs
- UIElement3DAutomationPeer.cs
- XmlWrappingReader.cs
- ClientConfigurationHost.cs
- RadioButtonStandardAdapter.cs
- DynamicMethod.cs
- RichTextBox.cs
- WindowsGraphics2.cs
- DataAccessor.cs
- MappingException.cs
- RoleExceptions.cs
- PrefixHandle.cs
- WinEventHandler.cs
- OneWayBindingElementImporter.cs
- WebFormDesignerActionService.cs
- CleanUpVirtualizedItemEventArgs.cs
- BitmapEffectGeneralTransform.cs
- UserInitiatedNavigationPermission.cs
- OpCodes.cs
- MetadataException.cs
- HttpMethodAttribute.cs
- Accessible.cs
- XmlRawWriter.cs
- HwndKeyboardInputProvider.cs
- MULTI_QI.cs
- XsdCachingReader.cs
- MatrixConverter.cs
- ObjectQuery.cs
- RuntimeHandles.cs
- UiaCoreApi.cs
- ConnectionStringSettingsCollection.cs
- TransactionState.cs
- BindingRestrictions.cs
- DependencyPropertyAttribute.cs