Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WinForms / System / WinForms / Design / RTLAwareMessageBox.cs / 1 / RTLAwareMessageBox.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms.Design { using System; using System.Windows.Forms; using System.Design; ////// /// internal static 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
- MemoryPressure.cs
- Token.cs
- DataSetSchema.cs
- ToolStripDropDownItem.cs
- InheritanceRules.cs
- DataControlReferenceCollection.cs
- SendActivityEventArgs.cs
- UnmanagedBitmapWrapper.cs
- TextProviderWrapper.cs
- GridViewActionList.cs
- DoubleCollectionValueSerializer.cs
- StyleModeStack.cs
- DataControlLinkButton.cs
- Reference.cs
- TextReader.cs
- ServiceNameElement.cs
- ZeroOpNode.cs
- WasHttpHandlersInstallComponent.cs
- GridViewSortEventArgs.cs
- RadioButtonRenderer.cs
- XmlHierarchicalEnumerable.cs
- Style.cs
- PolicyUnit.cs
- RowSpanVector.cs
- MouseGesture.cs
- RecordConverter.cs
- CompilerLocalReference.cs
- BatchParser.cs
- CompilationLock.cs
- EntitySet.cs
- VolatileEnlistmentState.cs
- CodeCastExpression.cs
- FormCollection.cs
- VariableModifiersHelper.cs
- GlyphTypeface.cs
- SystemIcmpV6Statistics.cs
- ListViewGroupConverter.cs
- ActivitySurrogate.cs
- Effect.cs
- RSAPKCS1SignatureFormatter.cs
- SoapInteropTypes.cs
- BidPrivateBase.cs
- MinimizableAttributeTypeConverter.cs
- SafeNativeMethodsOther.cs
- ConfigPathUtility.cs
- TextBox.cs
- GridEntry.cs
- ExpressionBuilder.cs
- DataFormat.cs
- ExpressionTable.cs
- TextEditorLists.cs
- KeyboardNavigation.cs
- InlineCollection.cs
- BeginEvent.cs
- Manipulation.cs
- RawStylusInputReport.cs
- BackStopAuthenticationModule.cs
- HtmlTextArea.cs
- ELinqQueryState.cs
- XmlBaseReader.cs
- ObjectSecurity.cs
- IssuanceLicense.cs
- RuleSettingsCollection.cs
- DbConvert.cs
- _BasicClient.cs
- Bidi.cs
- WindowsTreeView.cs
- KeysConverter.cs
- WebPartZoneCollection.cs
- errorpatternmatcher.cs
- MethodExpression.cs
- DynamicRenderer.cs
- NoneExcludedImageIndexConverter.cs
- SortedList.cs
- ButtonBaseDesigner.cs
- Literal.cs
- PackageDigitalSignatureManager.cs
- _DynamicWinsockMethods.cs
- OdbcConnectionPoolProviderInfo.cs
- EventLogPermissionEntryCollection.cs
- ConfigDefinitionUpdates.cs
- WorkflowDesigner.cs
- ViewGenerator.cs
- OleDbSchemaGuid.cs
- UnaryNode.cs
- XamlPointCollectionSerializer.cs
- CqlErrorHelper.cs
- _UriSyntax.cs
- CodeDOMUtility.cs
- WsdlBuildProvider.cs
- XmlLoader.cs
- InvokeBase.cs
- EnumValAlphaComparer.cs
- Size.cs
- SizeFConverter.cs
- UnknownBitmapEncoder.cs
- ProtocolsConfigurationEntry.cs
- ObjectDataProvider.cs
- ProfileManager.cs
- MultiPropertyDescriptorGridEntry.cs