Code:
/ FX-1434 / FX-1434 / 1.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
- MsmqTransportReceiveParameters.cs
- SqlAliasesReferenced.cs
- ErrorProvider.cs
- AuthenticatingEventArgs.cs
- ToolStripOverflowButton.cs
- XamlLoadErrorInfo.cs
- figurelengthconverter.cs
- SqlWebEventProvider.cs
- ProxyWebPartConnectionCollection.cs
- SqlConnectionHelper.cs
- SemanticBasicElement.cs
- UITypeEditor.cs
- ServiceProviders.cs
- CharacterMetrics.cs
- Substitution.cs
- IntSecurity.cs
- ConfigXmlText.cs
- QilVisitor.cs
- DisplayInformation.cs
- GroupItem.cs
- DataServiceRequestException.cs
- ResourceReader.cs
- ProfileEventArgs.cs
- ObjectRef.cs
- HtmlTextArea.cs
- DataErrorValidationRule.cs
- FrameworkTemplate.cs
- SmtpReplyReaderFactory.cs
- WebPartVerb.cs
- EntityDataSourceSelectedEventArgs.cs
- RtfNavigator.cs
- DetailsViewCommandEventArgs.cs
- RtfToXamlLexer.cs
- OdbcStatementHandle.cs
- FontStyle.cs
- SrgsDocument.cs
- WindowsFont.cs
- ManagementEventArgs.cs
- Crc32Helper.cs
- TextElement.cs
- XmlArrayAttribute.cs
- CompleteWizardStep.cs
- LookupNode.cs
- httpserverutility.cs
- UInt16Storage.cs
- HttpProcessUtility.cs
- StateMachineWorkflow.cs
- TextEndOfSegment.cs
- TextViewElement.cs
- Native.cs
- OleDbParameterCollection.cs
- _NestedMultipleAsyncResult.cs
- ADMembershipUser.cs
- EncryptedData.cs
- ToolBarPanel.cs
- TextStore.cs
- NodeFunctions.cs
- PresentationAppDomainManager.cs
- WebConfigurationHost.cs
- ExtendedPropertiesHandler.cs
- BmpBitmapDecoder.cs
- HttpListenerException.cs
- WindowsImpersonationContext.cs
- CharAnimationUsingKeyFrames.cs
- PlaceHolder.cs
- CfgArc.cs
- GlobalizationAssembly.cs
- DateTimeOffset.cs
- UserCancellationException.cs
- PersonalizablePropertyEntry.cs
- RoutedCommand.cs
- ProcessModuleCollection.cs
- TextEndOfSegment.cs
- OrderedDictionaryStateHelper.cs
- SignedInfo.cs
- ScrollableControl.cs
- XmlSchemaSimpleContentExtension.cs
- ChannelTerminatedException.cs
- HtmlContainerControl.cs
- FreeFormDragDropManager.cs
- SqlConnectionFactory.cs
- TreeNodeStyleCollection.cs
- InvariantComparer.cs
- RelativeSource.cs
- DataControlButton.cs
- XmlnsDictionary.cs
- ServiceBusyException.cs
- InkCanvasAutomationPeer.cs
- ConditionChanges.cs
- DiffuseMaterial.cs
- HtmlTableCell.cs
- SatelliteContractVersionAttribute.cs
- ScriptResourceMapping.cs
- BinaryObjectReader.cs
- Compiler.cs
- ClientScriptManagerWrapper.cs
- NamedObject.cs
- DefaultBinder.cs
- HWStack.cs
- QueryLifecycle.cs