Telerik Forums
UI for WinForms Forum
5 answers
140 views
Something I've noticed with the toolbar when using just Image (no text) i.e.: RadImageButtonElement is that the margin on the bottom is not the same as the top of the button.

The button is properly placed in regards to the space between the top of the ToolBar but the buttom of the button is flush with the bottom of the ToolBar - this is using a 32x32 PNG image.

No settings on the toolbar or the RadToolStripItem have been changed in any way - strictly default settings.

This tends to give an uneven display on mouseover.

Steven Hodson
WinExtra / Hodson Report
http://www.winextra.com
http://www.hodsonreport.com
Jordan
Telerik team
 answered on 11 Jun 2007
3 answers
214 views
Dwight
Telerik team
 answered on 11 Jun 2007
1 answer
94 views
good morning,
I really need your help about creating relative mdi forms if it's possible.
the main idea is that I wanna get multiplpe forms which have some common controls, for exemple I use the radPanelBar and that it wil be shown in every form that I call.Do you have a suggestion?
Thanks!
Julian Benkov
Telerik team
 answered on 11 Jun 2007
1 answer
130 views
Hi,
Just downloaded the latest radcontrols for winforms.
My issue is with focus not being given when using an accelerator key.
The  accelerator keys (i.e alt + a key) wont put the focus on a text box. I have placed a radLabel to the left of a radTexbox. The radLabel has tabstop =0, and text= &a) Test a.  Next to it I placed a label with tabstop = 1 .  I repeated this to add another label/text box pair.  So, I had this on the form:
a) Test a    [ radTextBox1                 ]
b) Test b    [  radTextBox2                ]
Pressing ALT + a does not set focus in radTextBox1. Pressing Alt + b does not set focus in raTextBox2.  Instead, the focus cue disappears. I must hit <TAB> to get it to reappear.  (Microsoft controls do set the focus correctly). Have I missed a setting somewhere?
Thanks,



Georgi
Telerik team
 answered on 08 Jun 2007
6 answers
441 views
I have a RadListBox full of items.  I have two buttons "Up" and "Down" to move items around the RadListBox.  So if I have an item selected in the box and click the Up button then it swaps the currently selected item with the one above it.  Here's the code, it's very simple:
        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 
 


My problem is with the last line.  The SelectedIndex part highlights the correct item, but a black rectangle stays around the previously selected item.  I've tried refreshing the control, setting the focus, etc...  What do I need to do to get the black rectangle to follow the SelectedIndex item?

Chris
Georgi
Telerik team
 answered on 08 Jun 2007
1 answer
240 views
Just wondering if this is another known Telerik bug, or something I'm doing wrong? Looks like I can't even use Telerik Shaped Forms without getting errors!

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) 

Jack
Telerik team
 answered on 08 Jun 2007
1 answer
117 views
[Sorry this should have gone into the menu strip forum]

Hi
Please would it be possible to add the MergeIndex property to the RadMenuSeparatorItem (or RadMenuItemBase) so that it will be possible to control the insertion point of a menu item when using the Telerik toolstrip in a CAB application.

I have extended your base class for now, but I thought it should be something that you are aware of and consider adding to your code base.

Thanks

Marek
Jack
Telerik team
 answered on 08 Jun 2007
5 answers
707 views



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 code works with the VS combobox - I'm trying to figure out what I'm doing wrong -

I get this error -

Value type 'String' cannot be converted to 'Telerik.Wincontrols.RadItem


Can anyone help?

Thanks!
Jim


gdijim
Top achievements
Rank 1
 answered on 07 Jun 2007
1 answer
158 views
I've added a textbox into a RadToolStrip that I would like to be able to use for searching.  I would like the user to be able to type a search value into this textbox and then hit Enter and then I'll handle the appropriate event and kick off the search.

In addition to the code that was automatically generated by the designer, I added the following 3 lines of code (hoping to catch any one of these 3 events, but would prefer to get the KeyDown):

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

Georgi
Telerik team
 answered on 07 Jun 2007
1 answer
152 views
I need to add a list of items to a radlistbox control, and I can do it fine with the MS version, but this does not work.  I am using the following syntax:

        Me.RadListBox2.Items.Add("test11")
        Me.MediaListVisible.Items.Add("test11")

Can anyone give me some examples please? 

Thanks in advance..
Georgi
Telerik team
 answered on 07 Jun 2007
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?