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
- UnicodeEncoding.cs
- OdbcEnvironmentHandle.cs
- IsolatedStoragePermission.cs
- CheckedPointers.cs
- XamlSerializer.cs
- WebPartConnection.cs
- OperandQuery.cs
- FontUnit.cs
- PolicyUnit.cs
- PartitionResolver.cs
- DirectoryNotFoundException.cs
- WebReference.cs
- RightsManagementEncryptionTransform.cs
- DataContractSerializerElement.cs
- CustomError.cs
- TaskHelper.cs
- Array.cs
- mediaeventargs.cs
- SecurityHelper.cs
- TableLayoutPanelCodeDomSerializer.cs
- DataGridViewCellConverter.cs
- FactoryGenerator.cs
- SiteMapDataSourceView.cs
- WebPartPersonalization.cs
- ObjectReferenceStack.cs
- AssemblyCache.cs
- BindingMAnagerBase.cs
- _CookieModule.cs
- BindingExpression.cs
- AutomationAttributeInfo.cs
- HealthMonitoringSection.cs
- WindowsGraphics.cs
- ADConnectionHelper.cs
- TableLayoutPanelDesigner.cs
- DataGridViewTextBoxEditingControl.cs
- SafeNativeMethods.cs
- IgnoreFileBuildProvider.cs
- ExecutionProperties.cs
- EllipticalNodeOperations.cs
- WCFBuildProvider.cs
- DataRelationCollection.cs
- JoinCqlBlock.cs
- RegexCharClass.cs
- CallbackValidatorAttribute.cs
- DocumentViewerBaseAutomationPeer.cs
- TableRow.cs
- ColumnMap.cs
- ConfigurationManagerHelperFactory.cs
- shaperfactoryquerycachekey.cs
- DataGridViewSelectedRowCollection.cs
- PolicyValidationException.cs
- ProcessProtocolHandler.cs
- localization.cs
- WeakReference.cs
- UnmanagedMemoryStream.cs
- PbrsForward.cs
- OracleInternalConnection.cs
- Delegate.cs
- GridSplitter.cs
- EdmError.cs
- XmlSchemaSimpleTypeRestriction.cs
- PartialTrustVisibleAssembliesSection.cs
- EntityCommandExecutionException.cs
- AnnotationService.cs
- DirtyTextRange.cs
- ToolStrip.cs
- DataGridViewCellStateChangedEventArgs.cs
- ValidationRule.cs
- BasicBrowserDialog.designer.cs
- EventSourceCreationData.cs
- wgx_render.cs
- TabControlEvent.cs
- BufferedMessageWriter.cs
- ScrollChrome.cs
- ErrorTableItemStyle.cs
- PropertyInformation.cs
- CommandCollectionEditor.cs
- WebPartZoneAutoFormat.cs
- HttpListenerException.cs
- SystemSounds.cs
- WebPart.cs
- MouseWheelEventArgs.cs
- InvalidBodyAccessException.cs
- BooleanSwitch.cs
- HwndHost.cs
- PassportIdentity.cs
- Type.cs
- ScriptReferenceEventArgs.cs
- TextElementEnumerator.cs
- NaturalLanguageHyphenator.cs
- OleStrCAMarshaler.cs
- SemanticAnalyzer.cs
- GradientStop.cs
- CodeCommentStatement.cs
- ResizeBehavior.cs
- CultureInfo.cs
- DataListCommandEventArgs.cs
- WorkflowMarkupSerializationManager.cs
- DESCryptoServiceProvider.cs
- ExecutionContext.cs