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
- PermissionSet.cs
- LiteralControl.cs
- RegistryKey.cs
- ListParaClient.cs
- _HeaderInfoTable.cs
- SelectionService.cs
- IIS7ConfigurationLoader.cs
- BindableAttribute.cs
- ImpersonateTokenRef.cs
- RoleService.cs
- BuildProvidersCompiler.cs
- XmlnsDictionary.cs
- ToolTipAutomationPeer.cs
- ProviderConnectionPoint.cs
- Camera.cs
- GeneratedCodeAttribute.cs
- TextBox.cs
- CaseInsensitiveOrdinalStringComparer.cs
- Sentence.cs
- SoapAttributeAttribute.cs
- ContractReference.cs
- ExtendedTransformFactory.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- AutomationPatternInfo.cs
- Soap.cs
- CacheAxisQuery.cs
- TargetControlTypeCache.cs
- DtrList.cs
- ToolboxDataAttribute.cs
- IsolatedStorage.cs
- SubstitutionResponseElement.cs
- AssemblyAssociatedContentFileAttribute.cs
- Decimal.cs
- SendKeys.cs
- LocatorPart.cs
- StringFreezingAttribute.cs
- ToolStripItemCollection.cs
- DataSpaceManager.cs
- ModuleBuilder.cs
- RenderingEventArgs.cs
- SystemBrushes.cs
- EvidenceBase.cs
- SafeProcessHandle.cs
- glyphs.cs
- TraceRecord.cs
- KnownBoxes.cs
- WindowsListViewSubItem.cs
- GeometryGroup.cs
- XmlSchemaAppInfo.cs
- MsmqTransportElement.cs
- MLangCodePageEncoding.cs
- EntityViewContainer.cs
- StructuredType.cs
- FormattedTextSymbols.cs
- MULTI_QI.cs
- RemotingConfiguration.cs
- RoutedEventValueSerializer.cs
- BypassElement.cs
- SiteMapNode.cs
- VerificationAttribute.cs
- TripleDESCryptoServiceProvider.cs
- validation.cs
- EntityCollection.cs
- Scanner.cs
- ConnectionInterfaceCollection.cs
- TableCell.cs
- TokenizerHelper.cs
- CodeDelegateInvokeExpression.cs
- DBCommand.cs
- EntryPointNotFoundException.cs
- MethodCallConverter.cs
- RadioButtonFlatAdapter.cs
- CommandID.cs
- WebSysDescriptionAttribute.cs
- CookieProtection.cs
- ContextStaticAttribute.cs
- SafeFileMappingHandle.cs
- BaseTemplateParser.cs
- StreamInfo.cs
- SafeNativeMethods.cs
- IntellisenseTextBox.designer.cs
- WindowsSspiNegotiation.cs
- TextSchema.cs
- StatusBar.cs
- DrawingVisual.cs
- SymbolTable.cs
- CodeExporter.cs
- StylusTip.cs
- LoginCancelEventArgs.cs
- InkPresenter.cs
- CssStyleCollection.cs
- ApplicationProxyInternal.cs
- EntityWrapperFactory.cs
- SecurityDescriptor.cs
- PropertyIDSet.cs
- CssClassPropertyAttribute.cs
- CopyOfAction.cs
- MatrixCamera.cs
- FilteredXmlReader.cs
- SweepDirectionValidation.cs