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
- X509AsymmetricSecurityKey.cs
- StaticTextPointer.cs
- RequiredFieldValidator.cs
- InheritanceAttribute.cs
- Point.cs
- TextCharacters.cs
- SimpleBitVector32.cs
- DefaultBinder.cs
- Dynamic.cs
- ToolTipService.cs
- UnknownWrapper.cs
- Operator.cs
- CacheAxisQuery.cs
- FormatterConverter.cs
- DataView.cs
- ProcessStartInfo.cs
- COAUTHINFO.cs
- ImageAttributes.cs
- WebAdminConfigurationHelper.cs
- SqlConnectionString.cs
- formatstringdialog.cs
- Helpers.cs
- CustomLineCap.cs
- DbProviderFactoriesConfigurationHandler.cs
- WebDescriptionAttribute.cs
- FormViewPagerRow.cs
- PersonalizationState.cs
- ConditionedDesigner.cs
- SchemaTypeEmitter.cs
- DiscardableAttribute.cs
- NativeWindow.cs
- DmlSqlGenerator.cs
- SimpleBitVector32.cs
- ResourceDescriptionAttribute.cs
- InkPresenterAutomationPeer.cs
- XsltQilFactory.cs
- ToolStripHighContrastRenderer.cs
- ReversePositionQuery.cs
- SqlBulkCopyColumnMappingCollection.cs
- Config.cs
- SafeFileHandle.cs
- OutputCacheSettings.cs
- ToolBarButtonDesigner.cs
- QilList.cs
- MediaEntryAttribute.cs
- SortedSetDebugView.cs
- UpDownEvent.cs
- StoragePropertyMapping.cs
- ISessionStateStore.cs
- AssociationTypeEmitter.cs
- InternalRelationshipCollection.cs
- StrokeFIndices.cs
- BroadcastEventHelper.cs
- DataGridViewTextBoxEditingControl.cs
- FileDialogCustomPlace.cs
- ModelTreeEnumerator.cs
- errorpatternmatcher.cs
- LinqDataSourceSelectEventArgs.cs
- TextWriterTraceListener.cs
- SafeEventLogReadHandle.cs
- RayHitTestParameters.cs
- _NTAuthentication.cs
- ProfileProvider.cs
- ListViewSortEventArgs.cs
- RuntimeHelpers.cs
- SqlBooleanizer.cs
- HtmlListAdapter.cs
- CookieProtection.cs
- HyperLinkField.cs
- TdsParserStateObject.cs
- PageAsyncTask.cs
- MessageFormatterConverter.cs
- TreeNodeSelectionProcessor.cs
- WebPartEditorApplyVerb.cs
- ImageConverter.cs
- TdsParserHelperClasses.cs
- DbConnectionPoolOptions.cs
- IERequestCache.cs
- securitycriticaldataClass.cs
- ThemeableAttribute.cs
- Identity.cs
- FixedFindEngine.cs
- ByeMessageCD1.cs
- ViewManagerAttribute.cs
- BitmapImage.cs
- SqlStatistics.cs
- ExtractorMetadata.cs
- HotSpot.cs
- XmlSchemaElement.cs
- ImageFormat.cs
- XmlDictionaryReader.cs
- DataBoundControlHelper.cs
- PreservationFileWriter.cs
- Emitter.cs
- DefaultExpressionVisitor.cs
- UserMapPath.cs
- Utils.cs
- DesignerAttribute.cs
- DatePickerAutomationPeer.cs
- NumericUpDownAcceleration.cs