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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OdbcError.cs
- TypeContext.cs
- ClientTarget.cs
- XpsFilter.cs
- BamlLocalizationDictionary.cs
- PointLight.cs
- BinaryObjectWriter.cs
- ToolStripDropTargetManager.cs
- UndirectedGraph.cs
- RegexCaptureCollection.cs
- Trace.cs
- XmlDataSourceView.cs
- Tuple.cs
- XmlElementList.cs
- UnsafeNativeMethods.cs
- BaseDataListPage.cs
- BuildDependencySet.cs
- HwndSourceKeyboardInputSite.cs
- GroupItemAutomationPeer.cs
- ClientRuntimeConfig.cs
- WhitespaceRule.cs
- validation.cs
- BaseTemplateCodeDomTreeGenerator.cs
- DbMetaDataCollectionNames.cs
- GridViewColumnHeaderAutomationPeer.cs
- ADConnectionHelper.cs
- StringResourceManager.cs
- MeshGeometry3D.cs
- TaiwanCalendar.cs
- HttpConfigurationSystem.cs
- XmlSerializationGeneratedCode.cs
- InputScope.cs
- DataKey.cs
- ActivityMarkupSerializationProvider.cs
- DummyDataSource.cs
- CacheEntry.cs
- DataGridViewLinkCell.cs
- OTFRasterizer.cs
- GroupBox.cs
- BindingMemberInfo.cs
- InputScopeManager.cs
- SHA256Managed.cs
- ResourceAssociationType.cs
- SupportsEventValidationAttribute.cs
- SettingsPropertyValueCollection.cs
- DictionaryTraceRecord.cs
- COM2Properties.cs
- CompilerHelpers.cs
- ValidatingReaderNodeData.cs
- DbConnectionPoolIdentity.cs
- ErrorTableItemStyle.cs
- FontEmbeddingManager.cs
- invalidudtexception.cs
- WindowsAltTab.cs
- Funcletizer.cs
- MonthCalendarDesigner.cs
- DataGridRowDetailsEventArgs.cs
- TextProperties.cs
- Win32.cs
- HtmlForm.cs
- TrustVersion.cs
- AssociationTypeEmitter.cs
- DecoderFallbackWithFailureFlag.cs
- MessageUtil.cs
- baseaxisquery.cs
- NameValuePermission.cs
- SearchForVirtualItemEventArgs.cs
- ReplyChannelAcceptor.cs
- HtmlControlPersistable.cs
- Activity.cs
- RSACryptoServiceProvider.cs
- StringUtil.cs
- FormViewInsertedEventArgs.cs
- SpinWait.cs
- InstalledVoice.cs
- ToolboxItemFilterAttribute.cs
- AttributeEmitter.cs
- FrameworkElementFactory.cs
- MobileControlsSectionHelper.cs
- EntityDataSourceReferenceGroup.cs
- LinkUtilities.cs
- SqlFlattener.cs
- ReferenceSchema.cs
- TraceLevelStore.cs
- SamlAttribute.cs
- EntityTemplateUserControl.cs
- NonClientArea.cs
- DiffuseMaterial.cs
- DateTimeOffsetStorage.cs
- WsatServiceAddress.cs
- HttpInputStream.cs
- CatalogPartCollection.cs
- InternalBufferManager.cs
- EnumBuilder.cs
- AliasedSlot.cs
- AsyncOperationManager.cs
- BoundingRectTracker.cs
- odbcmetadatacollectionnames.cs
- XmlEncoding.cs
- RoutingExtensionElement.cs