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
- CheckBoxList.cs
- Header.cs
- IriParsingElement.cs
- DataSourceViewSchemaConverter.cs
- VariableAction.cs
- StorageSetMapping.cs
- EditingCoordinator.cs
- ProgressiveCrcCalculatingStream.cs
- SqlNode.cs
- DoubleAnimationClockResource.cs
- ImmComposition.cs
- ActiveXHost.cs
- DefaultValueTypeConverter.cs
- VersionValidator.cs
- DnsPermission.cs
- ImageSource.cs
- ExceptionUtil.cs
- Assert.cs
- AnnotationStore.cs
- HtmlPageAdapter.cs
- BitVec.cs
- Int32EqualityComparer.cs
- DiscoveryClientProtocol.cs
- TransformationRules.cs
- TdsParserSessionPool.cs
- DbConnectionStringBuilder.cs
- SequentialOutput.cs
- HttpHandlersSection.cs
- SynchronizationLockException.cs
- MatrixTransform3D.cs
- InstanceHandleReference.cs
- FormViewInsertedEventArgs.cs
- ComponentManagerBroker.cs
- CatalogZoneBase.cs
- OracleConnectionFactory.cs
- Deflater.cs
- DefaultMergeHelper.cs
- XpsFontSubsetter.cs
- BaseProcessor.cs
- Point3D.cs
- ScrollChrome.cs
- ModuleBuilder.cs
- ForwardPositionQuery.cs
- TableColumnCollectionInternal.cs
- NativeCompoundFileAPIs.cs
- XmlSignatureProperties.cs
- StateManagedCollection.cs
- NetworkAddressChange.cs
- MergePropertyDescriptor.cs
- TreeNodeBindingDepthConverter.cs
- SmiConnection.cs
- FunctionCommandText.cs
- SymDocumentType.cs
- HierarchicalDataSourceControl.cs
- UIHelper.cs
- SymLanguageVendor.cs
- DocumentSequence.cs
- ConfigurationElementProperty.cs
- Transform.cs
- UserNameSecurityTokenParameters.cs
- RouteItem.cs
- XmlSchemaCompilationSettings.cs
- LicenseException.cs
- ZipIOExtraFieldZip64Element.cs
- CodeFieldReferenceExpression.cs
- ObjectDataSourceView.cs
- DesignerOptionService.cs
- HtmlAnchor.cs
- Button.cs
- FormViewInsertEventArgs.cs
- NextPreviousPagerField.cs
- PngBitmapEncoder.cs
- TypeUtil.cs
- UserPersonalizationStateInfo.cs
- SmtpNtlmAuthenticationModule.cs
- DocumentCollection.cs
- TokenBasedSetEnumerator.cs
- MessageEnumerator.cs
- RotateTransform.cs
- DataSourceCache.cs
- AccessibleObject.cs
- StorageInfo.cs
- SqlBinder.cs
- GeneralTransform3DTo2D.cs
- IndicFontClient.cs
- HttpWebResponse.cs
- SystemWebExtensionsSectionGroup.cs
- HtmlInputReset.cs
- TextRenderingModeValidation.cs
- peersecuritysettings.cs
- ViewGenerator.cs
- ToolStripDropTargetManager.cs
- XamlFigureLengthSerializer.cs
- BindingList.cs
- EventWaitHandle.cs
- Identifier.cs
- StdValidatorsAndConverters.cs
- DetailsViewPageEventArgs.cs
- ProxySimple.cs
- Style.cs