Telerik Forums
UI for WinForms Forum
1 answer
182 views

Hi,

I'm trying to retain the background color of a button on the click event to indicate it's the last button that was selected. Clicking another button should reset the first button then highlight the second button. All four backcolor assignments work fine, but on the reset side only the first backcolor property seems to work.


        Dim theme As Theme = ThemeRepository.FindTheme(Me.myButton.ThemeName)
        Dim repository As StyleRepository = theme.FindRepository("ButtonMouseDownFill")
        Dim setting As PropertySetting
        Dim bColor As Color, bColor2 As Color, bColor3 As Color, bColor4 As Color

        setting = repository.FindSetting("BackColor") : bColor = CType(setting.EndValue, Color)
        setting = repository.FindSetting("BackColor2") : bColor2 = CType(setting.EndValue, Color)
        setting = repository.FindSetting("BackColor3") : bColor3 = CType(setting.EndValue, Color)
        setting = repository.FindSetting("BackColor4") : bColor4 = CType(setting.EndValue, Color)

        Select Case buttonName
            Case Me.btnFirst.Name
                Me.btnSecond.ButtonElement.ButtonFillElement.ResetValue(LightVisualElement.BackColorProperty, ValueResetFlags.Local)
                Me.btnSecond.ButtonElement.ButtonFillElement.ResetValue(LightVisualElement.BackColor2Property, ValueResetFlags.Local)    '<-- doesn't work
                Me.btnSecond.ButtonElement.ButtonFillElement.ResetValue(LightVisualElement.BackColor3Property, ValueResetFlags.Local)    '<-- doesn't work
                Me.btnSecond.ButtonElement.ButtonFillElement.ResetValue(LightVisualElement.BackColor4Property, ValueResetFlags.Local)    '<-- doesn't work

                Me.btnFirst.ButtonElement.ButtonFillElement.BackColor = bColor
                Me.btnFirst.ButtonElement.ButtonFillElement.BackColor2 = bColor2
                Me.btnFirst.ButtonElement.ButtonFillElement.BackColor3 = bColor3
                Me.btnFirst.ButtonElement.ButtonFillElement.BackColor4 = bColor4

            Case Me.btnSecond.Name
                Me.btnFirst.ButtonElement.ButtonFillElement.ResetValue(LightVisualElement.BackColorProperty, ValueResetFlags.Local)
                Me.btnFirst.ButtonElement.ButtonFillElement.ResetValue(LightVisualElement.BackColor2Property, ValueResetFlags.Local)    '<-- doesn't work
                Me.btnFirst.ButtonElement.ButtonFillElement.ResetValue(LightVisualElement.BackColor3Property, ValueResetFlags.Local)    '<-- doesn't work
                Me.btnFirst.ButtonElement.ButtonFillElement.ResetValue(LightVisualElement.BackColor4Property, ValueResetFlags.Local)    '<-- doesn't work

                Me.btnSecond.ButtonElement.ButtonFillElement.BackColor = bColor
                Me.btnSecond.ButtonElement.ButtonFillElement.BackColor2 = bColor2
                Me.btnSecond.ButtonElement.ButtonFillElement.BackColor3 = bColor3
                Me.btnSecond.ButtonElement.ButtonFillElement.BackColor4 = bColor4


        End Select

Dinko | Tech Support Engineer
Telerik team
 answered on 03 Aug 2023
1 answer
144 views

Hello

I am working on windows form application with c#.

I have used telerik radgrid on the form.

Need a checkbox in the radgrid cell depending on the value of the cell.

e.g. If the value in the cell is true or false then instead of showing true or false in the cell need to checkbox,

if the value in the cell is date or datetime then datetimepicker should display in the cell.

Here is the screenshot describing my problem.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Aug 2023
1 answer
176 views

I want to rewrite the close event of radRibbonBar to help me achieve some other functions, but I can’t find the option of close event in the event area of radRibbonBar. I try to double-click the close event button of radRibbonBar, but it doesn’t work. I would like to ask the closing of this control. According to how to set from the event, or other ways to achieve the solution, thank you.

Best regards,

Kevin

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Aug 2023
1 answer
167 views

When I add a new RadForm to a project, the form class name has "_" & the language appended to the end, like this;

public partial class RadForm1_cs

Public Class RadForm1_vb

Is this Telerik adding "_cs" or "_vb" to the class name?  If so, can this feature be disabled without rolling back the control library version I am using? 

Thanks,

 
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Aug 2023
3 answers
141 views

Is there any way to invoke the 'Find replace' dialog from within code? I get that all of the methods which do the finding and replacing are available in the API, but I don't really want to re-implement your UI.

Associated question - is it possible to re-use individual menu items from within your RadSpreadsheetRibbonBar? So just copying your 'find' menu item?

Problem is that I only want otthe user to have the 'find' option under specific circumstances.

Thanks

Dinko | Tech Support Engineer
Telerik team
 answered on 01 Aug 2023
1 answer
111 views

I know how to sort column chooser for RadGridview:

e.ColumnChooser.SortOrder = RadSortOrder.Ascending

is there a way to sort Field Chooser for RadPivotGrid too?

Dinko | Tech Support Engineer
Telerik team
 answered on 01 Aug 2023
1 answer
152 views

I have a chart where data  on the X axis is Time based, and on the Y axis is speed based, what is the best way of being able to scale the Speed (Y Axis) to show different units eg kmh, mph, m/s.

Is there a Y axis data scaling property I could set?

Cheers

Toby

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Aug 2023
1 answer
463 views

Hai,
   How to add icon or image on right side of the raddropdowlist  ?
   I am dynamically added dropdowlist via code and i need to add icon on right side of the control  (inside the control) ,In textbox i can add, like this i want to add icon, here i attach screenshot.

Thanks and Regards
Aravind

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Aug 2023
1 answer
1.1K+ views

Hi,
     I try to set tooltip for textbox which is disabled , it not showing tooltip, but if the textbox in enabled it showing, Is there any way to show tooltip while it disabled ?

I tried following ways , but not working
in 2nd way i added Windows ToolTip control in that form and set the value for radtexbox, but not working.


       RadTextBoxControl1.Enabled = False
       '1 st way
        RadTextBoxControl1.TextBoxElement.ToolTipText = "This is the tooltip text."
        '2 nd way
        ToolTip1.SetToolTip(RadTextBoxControl1, "This is the tooltip text.")


Pls reply asap
Regards
Aravind
Aravind
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 01 Aug 2023
1 answer
205 views

In my aplication I create a graph with lots of scatter line series. Once created I would like to alter the format of one specific item in the legend to show this in bold fold (or possibly highlight in a different colour).

How is this possible to achieve?

Dinko | Tech Support Engineer
Telerik team
 answered on 31 Jul 2023
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)
Form
Chart (obsolete as of Q1 2013)
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
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?