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
- SubclassTypeValidator.cs
- CompressedStack.cs
- RuntimeConfigLKG.cs
- PageBuildProvider.cs
- ProcessHostFactoryHelper.cs
- XmlExpressionDumper.cs
- PageSettings.cs
- RequestCacheEntry.cs
- StrokeSerializer.cs
- MetadataWorkspace.cs
- TextTrailingWordEllipsis.cs
- EventDescriptor.cs
- PerSessionInstanceContextProvider.cs
- ZoneLinkButton.cs
- PointAnimation.cs
- XsdDataContractImporter.cs
- ControlPropertyNameConverter.cs
- System.Data.OracleClient_BID.cs
- TextBox.cs
- TableSectionStyle.cs
- Int64Converter.cs
- RowCache.cs
- SQLBytes.cs
- SecurityKeyType.cs
- FormsAuthenticationEventArgs.cs
- OutputCacheProfileCollection.cs
- DataObjectAttribute.cs
- WindowsFormsHostPropertyMap.cs
- SplitContainerDesigner.cs
- CompilationLock.cs
- MetadataItem_Static.cs
- XmlSchemaInfo.cs
- CompareValidator.cs
- MouseButton.cs
- ProgressBarRenderer.cs
- NameTable.cs
- Polyline.cs
- SchemaImporterExtension.cs
- ProfileBuildProvider.cs
- exports.cs
- SmiGettersStream.cs
- DataGridItem.cs
- TextEditorContextMenu.cs
- SerializationFieldInfo.cs
- ErrorRuntimeConfig.cs
- CreateDataSourceDialog.cs
- WindowsGraphicsCacheManager.cs
- BmpBitmapEncoder.cs
- QilLoop.cs
- DiscreteKeyFrames.cs
- SqlDependencyUtils.cs
- XmlObjectSerializerContext.cs
- BindingOperations.cs
- ToolBarPanel.cs
- XmlElement.cs
- CurrentChangedEventManager.cs
- GradientBrush.cs
- FactoryGenerator.cs
- TextEffectCollection.cs
- State.cs
- SiteMembershipCondition.cs
- GPRECT.cs
- lengthconverter.cs
- PageSettings.cs
- UpdateEventArgs.cs
- SelectiveScrollingGrid.cs
- ListViewGroupConverter.cs
- SeekStoryboard.cs
- SimpleMailWebEventProvider.cs
- RoutedPropertyChangedEventArgs.cs
- EntityDataSourceMemberPath.cs
- TextContainer.cs
- VisualStyleElement.cs
- SelectedDatesCollection.cs
- XmlDocumentViewSchema.cs
- _IPv4Address.cs
- CookielessHelper.cs
- ClientTargetSection.cs
- IteratorFilter.cs
- RowVisual.cs
- DataView.cs
- DataSpaceManager.cs
- httpserverutility.cs
- XmlSchemaAnnotated.cs
- ControlParameter.cs
- FormViewInsertEventArgs.cs
- XmlIterators.cs
- TraceData.cs
- figurelengthconverter.cs
- DPAPIProtectedConfigurationProvider.cs
- FilteredXmlReader.cs
- TextParaLineResult.cs
- UseAttributeSetsAction.cs
- Int16Converter.cs
- BrowserCapabilitiesCompiler.cs
- Emitter.cs
- AxisAngleRotation3D.cs
- PageContent.cs
- CodeSubDirectory.cs
- SQLInt16Storage.cs