Code:
/ FX-1434 / FX-1434 / 1.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
- ExclusiveCanonicalizationTransform.cs
- Rectangle.cs
- ClientConfigPaths.cs
- DynamicMetaObjectBinder.cs
- View.cs
- ContentElement.cs
- DataGridViewCell.cs
- HttpConfigurationContext.cs
- securitycriticaldataClass.cs
- ComplexBindingPropertiesAttribute.cs
- Style.cs
- CodeDirectionExpression.cs
- XmlUtf8RawTextWriter.cs
- HandlerFactoryCache.cs
- BigInt.cs
- IDQuery.cs
- HtmlLink.cs
- PositiveTimeSpanValidator.cs
- CodeLabeledStatement.cs
- LinkedResource.cs
- RenderContext.cs
- MarkupExtensionParser.cs
- RefType.cs
- Pair.cs
- BufferAllocator.cs
- Int32RectConverter.cs
- WebServiceTypeData.cs
- Point3DCollectionValueSerializer.cs
- BaseInfoTable.cs
- XmlWriterSettings.cs
- AssociationEndMember.cs
- MethodAccessException.cs
- XmlBinaryReader.cs
- WindowsTokenRoleProvider.cs
- MsmqIntegrationReceiveParameters.cs
- DataFieldCollectionEditor.cs
- SimplePropertyEntry.cs
- TextElementCollection.cs
- TextDpi.cs
- DataControlFieldCollection.cs
- ValidationErrorCollection.cs
- SurrogateSelector.cs
- InheritanceContextHelper.cs
- BreakSafeBase.cs
- InvariantComparer.cs
- TCPListener.cs
- SqlMethodAttribute.cs
- SQLMoneyStorage.cs
- TraceListeners.cs
- SemaphoreFullException.cs
- WebRequestModulesSection.cs
- TextRunCache.cs
- UpdateExpressionVisitor.cs
- CodeValidator.cs
- InvalidateEvent.cs
- Double.cs
- ToolStripItemImageRenderEventArgs.cs
- DateBoldEvent.cs
- FormatSettings.cs
- SQLBytes.cs
- Path.cs
- ConstraintStruct.cs
- ControlType.cs
- UDPClient.cs
- XmlSchemaAnnotated.cs
- DbMetaDataCollectionNames.cs
- DragStartedEventArgs.cs
- IteratorFilter.cs
- ContentPlaceHolder.cs
- ParseHttpDate.cs
- DATA_BLOB.cs
- CharacterString.cs
- TextWriterTraceListener.cs
- DataKey.cs
- ListViewHitTestInfo.cs
- DataGridViewRow.cs
- glyphs.cs
- CodeTypeDeclarationCollection.cs
- XmlWriterTraceListener.cs
- SafeRightsManagementQueryHandle.cs
- VisualBasicExpressionConverter.cs
- DefaultHttpHandler.cs
- DbReferenceCollection.cs
- ClientUrlResolverWrapper.cs
- PenCursorManager.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- ParentQuery.cs
- NativeMethods.cs
- AngleUtil.cs
- IconHelper.cs
- TextPenaltyModule.cs
- EmptyEnumerable.cs
- WebPartEditorApplyVerb.cs
- TextMetrics.cs
- HttpWriter.cs
- TextEffectCollection.cs
- SqlWorkflowPersistenceService.cs
- MetadataArtifactLoaderCompositeResource.cs
- LicenseProviderAttribute.cs
- Baml2006KnownTypes.cs