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
- TrustLevelCollection.cs
- ValidationHelper.cs
- EventLog.cs
- ColumnCollection.cs
- XmlMembersMapping.cs
- ViewStateAttachedPropertyFeature.cs
- PathData.cs
- ClassData.cs
- WebPartCatalogCloseVerb.cs
- TableLayoutCellPaintEventArgs.cs
- BaseTransportHeaders.cs
- HttpFileCollection.cs
- LoadedEvent.cs
- AnnotationMap.cs
- BitArray.cs
- SmiMetaDataProperty.cs
- SchemaNamespaceManager.cs
- FixedSOMLineCollection.cs
- CachedBitmap.cs
- ErrorsHelper.cs
- ResourceDescriptionAttribute.cs
- DataProviderNameConverter.cs
- LogSwitch.cs
- PasswordTextContainer.cs
- SystemWebSectionGroup.cs
- XmlSchemaProviderAttribute.cs
- QilXmlWriter.cs
- ItemCheckedEvent.cs
- BindingSource.cs
- StylusPointProperties.cs
- TdsParserSafeHandles.cs
- ZipIOBlockManager.cs
- BmpBitmapDecoder.cs
- XmlSchemaInferenceException.cs
- XmlIlTypeHelper.cs
- NativeMethods.cs
- PageCopyCount.cs
- FontStyles.cs
- RecipientServiceModelSecurityTokenRequirement.cs
- CodeDOMProvider.cs
- UnaryNode.cs
- DoubleAnimation.cs
- Win32SafeHandles.cs
- JsonFormatGeneratorStatics.cs
- AssociationSet.cs
- KeyInterop.cs
- Update.cs
- MetadataException.cs
- DefaultHttpHandler.cs
- TdsEnums.cs
- ScriptReferenceBase.cs
- DesignerVerb.cs
- MenuItem.cs
- xmlsaver.cs
- SizeValueSerializer.cs
- PersistenceProviderBehavior.cs
- CollectionContainer.cs
- DragStartedEventArgs.cs
- PtsCache.cs
- MenuItemCollectionEditorDialog.cs
- Stackframe.cs
- Error.cs
- EarlyBoundInfo.cs
- FixedSOMTableCell.cs
- MessageContractAttribute.cs
- DesignerExtenders.cs
- MenuAdapter.cs
- SaveFileDialog.cs
- externdll.cs
- NullableIntMinMaxAggregationOperator.cs
- ExceptionUtil.cs
- wpf-etw.cs
- InternalSafeNativeMethods.cs
- VerificationAttribute.cs
- AnnotationDocumentPaginator.cs
- CopyCodeAction.cs
- FixedSOMLineCollection.cs
- KeyTime.cs
- _TransmitFileOverlappedAsyncResult.cs
- StylusOverProperty.cs
- BrowserDefinitionCollection.cs
- PropertyEmitterBase.cs
- WriteableBitmap.cs
- streamingZipPartStream.cs
- SpecialNameAttribute.cs
- SafeNativeMethods.cs
- IsolatedStorageFileStream.cs
- Int32Collection.cs
- EntityDataSourceWrapper.cs
- Animatable.cs
- CompilerHelpers.cs
- HandledEventArgs.cs
- PropertyNames.cs
- ErrorRuntimeConfig.cs
- CompoundFileStreamReference.cs
- CodeMethodInvokeExpression.cs
- InputGestureCollection.cs
- SecureStringHasher.cs
- NativeMethodsOther.cs
- WindowsStatusBar.cs