Dim selIndex As Integer = RadListBox.SelectedIndex |
If selIndex <> 0 Then |
Dim selItem As String = RadListBox.Items.Item(selIndex).Text |
Dim aboveItem As String = RadListBox.Items.Item(selIndex - 1).Text |
RadListBox.Items.Item(selIndex - 1).Text = selItem |
RadListBox.Items.Item(selIndex).Text = aboveItem |
End If |
RadListBox.SelectedIndex = selIndex - 1 |
System.ArgumentException: The parameter 'sectionGroupName' is invalid. |
Parameter name: sectionGroupName |
at System.Configuration.MgmtConfigurationRecord.GetSectionGroup(String configKey) |
at System.Configuration.Configuration.GetSectionGroup(String sectionGroupName) |
at System.Configuration.ClientSettingsStore.DeclareSection(Configuration config, String sectionName) |
at System.Configuration.ClientSettingsStore.GetConfigSection(Configuration config, String sectionName, Boolean declare) |
at System.Configuration.ClientSettingsStore.WriteSettings(String sectionName, Boolean isRoaming, IDictionary newSettings) |
at System.Configuration.LocalFileSettingsProvider.SetPropertyValues(SettingsContext context, SettingsPropertyValueCollection values) |
at System.Configuration.SettingsBase.SaveCore() |
at System.Configuration.SettingsBase.Save() |
at System.Configuration.ApplicationSettingsBase.Save() |
at APM.MainForm.MainForm_Resize(Object sender, EventArgs e) |
at System.Windows.Forms.Control.OnResize(EventArgs e) |
at System.Windows.Forms.Form.OnResize(EventArgs e) |
at System.Windows.Forms.Control.OnSizeChanged(EventArgs e) |
at Telerik.WinControls.UI.ShapedForm.OnSizeChanged(EventArgs e) |
at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight) |
at System.Windows.Forms.Control.UpdateBounds() |
at System.Windows.Forms.Control.WndProc(Message& m) |
at System.Windows.Forms.ScrollableControl.WndProc(Message& m) |
at System.Windows.Forms.ContainerControl.WndProc(Message& m) |
at System.Windows.Forms.Form.WndProc(Message& m) |
at Telerik.WinControls.UI.ShapedForm.WndProc(Message& m) |
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) |
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) |
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) |
Private Sub RadButton2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadButton2.Click
'Executes Ping.exe -t With RadComboBox1 as Variable
With Me.RadComboBox1
If Not Me.RadComboBox1.Items.Contains(Me.RadComboBox1.Text) Then
.Items.Add(RadComboBox1.Text)
End If
End With
Process.Start("\pingdev.bat", RadComboBox1.Text)
this.searchTextBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.searchTextBox_KeyPress);
this.searchTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.searchTextBox_KeyDown);
this.searchTextBox.KeyUp += new System.Windows.Forms.KeyEventHandler(this.searchTextBox_KeyUp);
I then added the methods specified within the handler code above and added simple code in each to just show a message box. I also added breakpoints in each of these methods. When I run my application, I don't see any message boxes when typing into the text box, and my breakpoints are never hit either.
Any suggestions? Are these 3 events supposed to fire for the RadTextBoxElement within a toolstrip?
Thanks,
Ben