Telerik Forums
UI for WinForms Forum
3 answers
365 views
how to limit the width of radmessagebox to force the text was shown in more lines?  it looks very long for me.

Ralitsa
Telerik team
 answered on 27 Aug 2014
2 answers
222 views

Just purchased telerik and in the process of converting winforms to teleriks components.  
I started off with the error of "Value of type 'Telerik.WinControls.RadItem' cannot be converted to 'System.Windows.Forms.ToolStripMenuItem'".  So I changed all ToolStripMenuItem to "RadMenuItem".  This solved the above error.

But created a new error "Private Sub AddMenuChildren(ByRef mi As Telerik.WinControls.UI.RadMenuItem)' and 'Private Sub AddMenuChildren(mi As Telerik.WinControls.UI.RadMenuItem)' cannot overload each other because they differ only by parameters declared 'ByRef' or 'ByVal'"


Any Help with the above error would be appreciated.
Below is my code:

Private Sub LockMain()
        'This subroutine handles the locking of the Main windows'
        '   menu options and child windows. It first iterates
        '   through all menu control collection items disabling
        '   them. It then iterates through all the machine 
        '   windows disabling them. It then enables a select few
        '   menu options.

        For i = 1 To mcc.Count
            CType(mcc.Item(i), ToolStripMenuItem).Enabled = False
        Next
        'If mwa IsNot Nothing Then
        '    For Each m As Machine In mwa
        '        m.Enabled = False
        '    Next
        'End If
        LogONOFFToolStripMenuItem.Enabled = True
        LogOnToolStripMenuItem.Enabled = True
        HelpToolStripMenuItem.Enabled = True
        AboutToolStripMenuItem.Enabled = True
        ViewManualToolStripMenuItem.Enabled = True
    End Sub

    Private Sub UnlockPermissions()
        Dim sp As New SecurityProfile_(mcn, ud(4))
        For Each i As ToolStripMenuItem In mcc
            If sp.GetProperty(i.Text) Then
                i.Enabled = True
            End If
        Next
        For Each m As Machine In mwl
            m.Enabled = True
        Next
    End Sub

    Private Sub CreateMenuControlCollection()
        For Each mi As ToolStripMenuItem In MenuStrip1.Items
            mcc.Add(mi, mi.Text)
            AddMenuChildren(mi)
        Next
    End Sub

    Private Sub AddMenuChildren(ByRef mi As ToolStripMenuItem)
        If mi.DropDownItems IsNot Nothing Then
            For Each c As Object In mi.DropDownItems
                Dim mc As ToolStripMenuItem = TryCast(c, ToolStripMenuItem)
                If mc IsNot Nothing Then
                    mcc.Add(mc, mc.Text)
                    AddMenuChildren(mc)
                End If
            Next
        End If
    End Sub


Sanchit
Top achievements
Rank 2
 answered on 26 Aug 2014
3 answers
139 views
Is there a way to have the DropDownList DropDownHeight be determined on drop down ("popup opened")?
Stefan
Telerik team
 answered on 26 Aug 2014
6 answers
1.6K+ views
Telerik Members:

Is it possible to change the tooltip font size?
Stefan
Telerik team
 answered on 26 Aug 2014
3 answers
133 views
Hello,

I have started to use a RadTrackBar to select a range of date. As the radtrackbar only support Integer type for the value, I convert the control value to date with a reference date which represent value 0 on the control. It's working fine.

I have just a little question about the visual tick.

The total range in the RadTrackBar represent a year and a few month and it isn't really human readable with a visual tick on every day. So I want to put a tick on each value representing the first day of a month (with a label) instead. As the number of day in a month isn't fixed, it isn't possible to use the Frequency property of the control to draw theses ticks.

Is there a way to place tick on specific value (0,31,59,90,121, etc...) ?

Thanks for reading

Marco Guignard
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Aug 2014
2 answers
94 views
Hello,

I found what appears to be a bug with the RadAutoCompleteBox for Winforms.  I have a very simple project with just a single form and one RadAutoCompleteBox on it.  No data source or anything.  Running the project works just fine...until you go into the RadAutoCompleteBox tasks and click on "Edit UI Elements".  Then, if you click on the first "TextBlockElement" in the left pane, then in the right pane go to the Layout section and change the "Alignment" to something other than the default, then try to run the project again the project won't even run.  You get the following error:






I actually have a much more robust project that's used  by our plants around the world where I first noticed this error when trying to change the layout of the text in the control, but all you need to do to reproduce the error is create a simple windows forms application, add a RadAutoCompleteBox and complete the steps above.

Regards,

David Ayres

Stefan
Telerik team
 answered on 26 Aug 2014
3 answers
96 views
Kindly check the attached file.
After i update theme color changed.
how can i change the disabled backcolor?
Ralitsa
Telerik team
 answered on 26 Aug 2014
7 answers
340 views
Hello !

When I click small button (>), it will changed to other month. What's that event ? I want use it.

Thank you!
Hugo Furth
Top achievements
Rank 1
 answered on 23 Aug 2014
4 answers
148 views
Hello Team,

I am working on Grid View in winforms, I would like to show no of records count at the bottom of the Grid like in web grid (records/Total records, filtered recordsCount/Total records). This count should be vary while user filtered and grouped. How can I achieve that please help me on this.

Please let me know if I am not clear...

Thanks in advance.
Manjunath
Top achievements
Rank 1
 answered on 22 Aug 2014
3 answers
231 views
Greetings! I'm trying to make RadDataEntry window appear on current row double click, but there's no proper column captions appeared, and also a lot of needless information (image attached).

Here is my code:
GridView window

        private void dictionaryRecordsGrid_CellDoubleClick(object sender, GridViewCellEventArgs e)
        {
            GridViewRowInfo row = dictionaryRecordsGrid.CurrentRow;
            string dictionaryId = row.Cells["ID"].Value.ToString();
            TestNewForm f = new TestNewForm(_records.Select("id=" + dictionaryId).Single());
            f.ShowDialog();
        }

And RadDataEntry window:

        public TestNewForm(DataRow row)
        {
            InitializeComponent();

            radDataEntry1.DataSource = row;
            radDataEntry1.BindingCreated += radDataEntry1_BindingCreated;
        }










Dimitar
Telerik team
 answered on 22 Aug 2014
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?