I have an io field where I want to accept a number from 0 - 99,999. So I use the Ultra Numeric Editor and set the Min Value to 0, the Max Value to 99999. What's irritating me is when the field is displayed on the screen it has a Zero in it (which is correct) and when I tab into the field, the cursor is set in front of the 0. Consequently, if I enter a 1, the number becomes 10... I don't want that, I want it to change the value from 0 to 1. What can I set to have the Value automatically selected when I enter the field so that whatever I type OVERWRITES the value that was in there?
Why does the UltraMaskedEdit select the value when you tab into the field but the UltraNumericEditor doesn't? I would use the UltraMaskedEdit control as my Numeric IO field if I could set it to right justify the value and enter the value from the right side like a Numeric editor would, but unfortunately, I can't seem to make it do that... More irritation...
My second complaint on the Numeric Editor is that if I delete the 0 then try to exit the field, I get a beep and the cursor won't leave the field until I put in a 0 or some other value. (I realize I DO have the Nullable property set to False, which is what I want) How can I set a Default (like 0) value for the field?
Finally, I STILL don't get emailed replies to my posts, even tho I ask it to.
Private Sub Application_Startup(ByVal sender As Object, ByVal e As System.Windows.StartupEventArgs) Handles Me.Startup
Debug.Print(Thread.CurrentThread.CurrentCulture.ToString)
'Thread.CurrentThread.CurrentUICulture = New CultureInfo("en-GB")
'// Access any class from the Lipstick style pack assembly to
' // ensure that the assembly has been loaded. The assembly
' // automatically registers any themes that it contains
' // when it is loaded. Once this is done you can set the 'Theme'
' // property of the XamDataGrid, XamDataCarousel or XamDataPresenter
' // to one of its registered themes, in this case "Lipstick".
' //
' // Note: this would normally be done once in the App.xaml.cs file.
Dim rd As ResourceDictionary = Infragistics.Windows.Themes.Lipstick.DataPresenter.Instance
'Make textboxes auto select text on focus application-wide.
EventManager.RegisterClassHandler(GetType(TextBox), _
TextBox.GotFocusEvent, _
New RoutedEventHandler(AddressOf TextBox_GotFocus))
'and other controls as required.
EventManager.RegisterClassHandler(GetType(Infragistics.Windows.Editors.XamMaskedEditor), _
Infragistics.Windows.Editors.XamMaskedEditor.GotFocusEvent, _
New RoutedEventHandler(AddressOf XamMaskedEditor_EditModeStartingEvent))
EventManager.RegisterClassHandler(GetType(Infragistics.Windows.Editors.XamNumericEditor), _
Infragistics.Windows.Editors.XamNumericEditor.EditModeStartingEvent, _
New RoutedEventHandler(AddressOf XamNumericEditor_EditModeStartingEvent))
EventManager.RegisterClassHandler(GetType(Infragistics.Windows.Editors.XamDateTimeEditor), _
Infragistics.Windows.Editors.XamDateTimeEditor.EditModeStartingEvent, _
New RoutedEventHandler(AddressOf XamDateTimeEditor_EditModeStartingEvent))
Try
'make sure user settings folder exists
System.IO.Directory.CreateDirectory(MyGlobals.UserDataPath)
Catch ex As Exception
End Try
End Sub
''' <summary>
''' When any textbox gets focus in app, select all text automatically.
''' </summary>
''' <param name="sender"></param>
''' <param name="e"></param>
''' <remarks></remarks>
Private Sub TextBox_GotFocus(ByVal sender As Object, ByVal e As RoutedEventArgs)
Dim tb As TextBox = CType(sender, TextBox)
tb.Focus()
tb.SelectAll()
Private Sub XamMaskedEditor_EditModeStartingEvent(ByVal sender As Object, ByVal e As RoutedEventArgs)
Dim tb As Infragistics.Windows.Editors.XamMaskedEditor = CType(sender, Infragistics.Windows.Editors.XamMaskedEditor)
Private Sub XamNumericEditor_EditModeStartingEvent(ByVal sender As Object, ByVal e As RoutedEventArgs)
Dim tb As Infragistics.Windows.Editors.XamNumericEditor = CType(sender, Infragistics.Windows.Editors.XamNumericEditor)
Private Sub XamDateTimeEditor_EditModeStartingEvent(ByVal sender As Object, ByVal e As RoutedEventArgs)
Dim tb As Infragistics.Windows.Editors.XamDateTimeEditor = CType(sender, Infragistics.Windows.Editors.XamDateTimeEditor)
MIKEY!!! Where are ya?
Wolven said:Hey Mike, I got this popup message when I tried to post my last reply on this thread.
Hey Mike, I got this popup message when I tried to post my last reply on this thread.
"You have posted to a forum that requires a moderator to approve posts before they are publicly available.
If the administrator has configured this forum to support email notifications you will receive an email when your post is either approved or denied (if you have emails enabled in your profile). "
My first question is why the sudden change to moderator approved posts? Also, I'm wondering if the second part of the message might pertain to why I never get email notifications of responses to my posts. Specifically the "If the administrator has configured this forum to support email notifications" part. HAS the administrator configured this forum to support email notifications??
Here's the thread on it.
http://forums.infragistics.com/forums/t/24231.aspx
Also, why is it that I can't seem to get responses in other areas of the WinForm forums? Could you take a look at these two threads Mike?
http://forums.infragistics.com/forums/t/28856.aspx
http://forums.infragistics.com/forums/t/29041.aspx