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
- BoundingRectTracker.cs
- Tool.cs
- DataRow.cs
- AttachedProperty.cs
- ResXDataNode.cs
- NetStream.cs
- StringUtil.cs
- CompilerGeneratedAttribute.cs
- RuntimeConfigLKG.cs
- StyleHelper.cs
- precedingsibling.cs
- ResourceReferenceExpressionConverter.cs
- IconConverter.cs
- WebPartCloseVerb.cs
- ExpressionBuilder.cs
- EventLogPermissionAttribute.cs
- TraceContext.cs
- DeferredElementTreeState.cs
- SingleQueryOperator.cs
- UIServiceHelper.cs
- SafeFindHandle.cs
- ExpressionReplacer.cs
- Metadata.cs
- MouseGestureValueSerializer.cs
- UnsafeNativeMethods.cs
- TriggerAction.cs
- PersonalizationStateInfoCollection.cs
- DataException.cs
- TrackingDataItem.cs
- OracleCommandSet.cs
- QuotaExceededException.cs
- CharConverter.cs
- Exceptions.cs
- CodeBlockBuilder.cs
- Model3D.cs
- ContractSearchPattern.cs
- RelationshipEndCollection.cs
- SqlCacheDependencyDatabaseCollection.cs
- ProxyFragment.cs
- QueryPageSettingsEventArgs.cs
- DataSourceXmlSerializationAttribute.cs
- MatrixKeyFrameCollection.cs
- SemanticKeyElement.cs
- BaseCollection.cs
- WSHttpBindingCollectionElement.cs
- HttpFileCollection.cs
- TypeRefElement.cs
- WindowsGraphics.cs
- _Semaphore.cs
- AbsoluteQuery.cs
- ParamArrayAttribute.cs
- HwndProxyElementProvider.cs
- InkSerializer.cs
- ManipulationInertiaStartingEventArgs.cs
- CodeMemberProperty.cs
- BrushMappingModeValidation.cs
- ExpressionEditor.cs
- _Connection.cs
- BoundField.cs
- WindowsFont.cs
- AuthenticationConfig.cs
- SymbolEqualComparer.cs
- WebPartDisplayModeEventArgs.cs
- MessagePartProtectionMode.cs
- InputScopeConverter.cs
- FixUpCollection.cs
- DefaultValueAttribute.cs
- SliderAutomationPeer.cs
- DbConnectionClosed.cs
- JulianCalendar.cs
- TabItemWrapperAutomationPeer.cs
- SoapDocumentServiceAttribute.cs
- WebHeaderCollection.cs
- EdmProviderManifest.cs
- DefaultClaimSet.cs
- LineMetrics.cs
- ToolStripSplitStackLayout.cs
- MouseDevice.cs
- ProcessHost.cs
- ScriptComponentDescriptor.cs
- HttpListenerContext.cs
- HTTPNotFoundHandler.cs
- SolidColorBrush.cs
- LostFocusEventManager.cs
- FamilyTypeface.cs
- SafeRightsManagementHandle.cs
- WorkflowLayouts.cs
- GlobalizationAssembly.cs
- StringReader.cs
- IfAction.cs
- CollaborationHelperFunctions.cs
- DataGridItemEventArgs.cs
- WebAdminConfigurationHelper.cs
- CompiledQuery.cs
- CheckBox.cs
- SchemaTableColumn.cs
- LZCodec.cs
- KeySplineConverter.cs
- HMACSHA1.cs
- BrowserCapabilitiesCodeGenerator.cs