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
- PropertiesTab.cs
- DBBindings.cs
- Polygon.cs
- RubberbandSelector.cs
- ProgressBarBrushConverter.cs
- _KerberosClient.cs
- _ConnectStream.cs
- IdentityNotMappedException.cs
- TabControl.cs
- PropertyIDSet.cs
- DescriptionAttribute.cs
- OlePropertyStructs.cs
- SafeMemoryMappedViewHandle.cs
- ContractSearchPattern.cs
- ScriptingProfileServiceSection.cs
- DeclarativeCatalogPart.cs
- WebFormDesignerActionService.cs
- NumericUpDownAccelerationCollection.cs
- SchemaHelper.cs
- UriSectionData.cs
- SocketAddress.cs
- HideDisabledControlAdapter.cs
- PageTheme.cs
- Tokenizer.cs
- DoubleStorage.cs
- ResponseStream.cs
- PromptStyle.cs
- WmlObjectListAdapter.cs
- WebPartCancelEventArgs.cs
- WorkflowMarkupSerializationProvider.cs
- DataGridViewHeaderCell.cs
- ThreadLocal.cs
- ReflectTypeDescriptionProvider.cs
- SessionStateContainer.cs
- RtfToXamlLexer.cs
- ArcSegment.cs
- XamlSerializationHelper.cs
- ColorBlend.cs
- SoapReflectionImporter.cs
- FormClosingEvent.cs
- HttpCacheVary.cs
- SqlMethodAttribute.cs
- DefaultBinder.cs
- SqlStream.cs
- X509SecurityTokenParameters.cs
- ComponentCache.cs
- ModuleConfigurationInfo.cs
- RunInstallerAttribute.cs
- RoleGroup.cs
- MsmqInputChannelListenerBase.cs
- Win32.cs
- DataGridItemAutomationPeer.cs
- MultiTrigger.cs
- WindowsScrollBarBits.cs
- TrackingProfileCache.cs
- ChildrenQuery.cs
- TreeNodeMouseHoverEvent.cs
- PackWebRequestFactory.cs
- ZeroOpNode.cs
- AutoResetEvent.cs
- FormViewPagerRow.cs
- RpcAsyncResult.cs
- OpCodes.cs
- LineBreak.cs
- OrthographicCamera.cs
- PropertyRef.cs
- Encoding.cs
- GridViewSelectEventArgs.cs
- XmlSchemaSimpleType.cs
- SynchronizationFilter.cs
- SizeIndependentAnimationStorage.cs
- PathFigure.cs
- StrongNameUtility.cs
- ToolbarAUtomationPeer.cs
- HttpChannelHelper.cs
- OdbcCommand.cs
- CallContext.cs
- RtfToken.cs
- Substitution.cs
- HGlobalSafeHandle.cs
- wgx_render.cs
- WhitespaceRuleReader.cs
- Classification.cs
- BuildResult.cs
- DataBindEngine.cs
- DrawListViewItemEventArgs.cs
- ExecutionEngineException.cs
- UIElementPropertyUndoUnit.cs
- Normalizer.cs
- SizeLimitedCache.cs
- HtmlEncodedRawTextWriter.cs
- BasicExpandProvider.cs
- PropertyMetadata.cs
- PrintControllerWithStatusDialog.cs
- KeyEventArgs.cs
- XsdDateTime.cs
- LocalizationParserHooks.cs
- HWStack.cs
- TemplateParser.cs
- ApplicationServiceManager.cs