Telerik Forums
UI for WinForms Forum
1 answer
84 views

I've just published all my .Net 9 apps using ClickOnce, all of them are now broken !

Using the following Nuget : UI.for.WinForms.AllControls.Net90 version 2025.1.211

 

They all crash on startup with the following error :

Application: MyApp.exe
CoreCLR Version: 9.0.225.6610
.NET Version: 9.0.2
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException: Could not load file or assembly 'UIAutomationProvider, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Le fichier spécifié est introuvable.
File name: 'UIAutomationProvider, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
   at Telerik.WinControls.UI.RadToggleSwitchElement.OnValueChanged()
   at Telerik.WinControls.UI.RadToggleSwitchElement.set_Value(Boolean value)
   at Telerik.WinControls.UI.RadToggleSwitchElement.InitializeFields()
   at Telerik.WinControls.RadElement..ctor()
   at Telerik.WinControls.VisualElement..ctor()
   at Telerik.WinControls.RadComponentElement..ctor()
   at Telerik.WinControls.RadItem..ctor()
   at Telerik.WinControls.UI.UIItemBase..ctor()
   at Telerik.WinControls.UI.LightVisualElement..ctor()
   at Telerik.WinControls.UI.RadToggleSwitchElement..ctor()
   at Telerik.WinControls.UI.RadRibbonBarElement.CreateButtons()
   at Telerik.WinControls.UI.RadRibbonBarElement.CreateChildElements()
   at Telerik.WinControls.RadElement.CallCreateChildElements()
   at Telerik.WinControls.RadElement.Construct()
   at Telerik.WinControls.RadElement..ctor()
   at Telerik.WinControls.VisualElement..ctor()
   at Telerik.WinControls.RadComponentElement..ctor()
   at Telerik.WinControls.RadItem..ctor()
   at Telerik.WinControls.UI.UIItemBase..ctor()
   at Telerik.WinControls.UI.LightVisualElement..ctor()
   at Telerik.WinControls.UI.RadRibbonBarElement..ctor()
   at Telerik.WinControls.UI.RadRibbonBar.CreateRibbonBarElement()
   at Telerik.WinControls.UI.RadRibbonBar.CreateChildItems(RadElement parent)
   at Telerik.WinControls.RadControl.Telerik.WinControls.IComponentTreeHandler.CreateChildItems(RadElement parent)
   at Telerik.WinControls.RadElementTree.InitializeRootElement()
   at Telerik.WinControls.RadControl.Construct()
   at Telerik.WinControls.RadControl..ctor()
   at Telerik.WinControls.RadNonClientUIControl..ctor()
   at Telerik.WinControls.UI.RadRibbonBar..ctor()
   at App.MainForm.InitializeComponent()
   at App.MainForm..ctor(IServiceProvider provider)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitDisposeCache(ServiceCallSite transientCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at App.Program.Main()

Dinko | Tech Support Engineer
Telerik team
 answered on 06 Mar 2025
1 answer
61 views

I want to set the selected date of the Calendar, like with the DateTimePicker.

The SelectedDate property, which allegedly has a getter and setter, does not seem to work.

radDateTimePicker1.Value = DateTime.Now.AddDays(-3);  // This works great. The picker displays the date from three days ago.

radCalendar1.SelectedDate = DateTime.Now.AddDays(-3); // This shows today's date.

What am I missing?

TIA!

 

Nadya | Tech Support Engineer
Telerik team
 answered on 06 Mar 2025
1 answer
64 views
We have a screen with two RadPageViews side by side. We need to allow page items to be reordered within each page view AND to allow page items to be dragged between the two page views.

We have implemented the dragging between the two page views using this approach: https://www.telerik.com/forums/dragdrop-between-radpageviews

However, when we set the ItemDragMode to facilitate the reordering it has no effect. https://docs.telerik.com/devtools/winforms/controls/pageview/drag-and-drop/radpageviewdragdropservice

Is it possible to get these two behaviours to work at the same time?
Dinko | Tech Support Engineer
Telerik team
 answered on 27 Feb 2025
0 answers
174 views

The following distribution changes will be announced as of 2025 Q2:

  • CHM and Help3 offline documentation resources will be discontinued. The Telerik UI for WinForms offline documentation will be available to download as a PDF file from your Telerik account: Download Product Files
  • Classes inside the Telerik.WinControls.Zip and Telerik.WinForms.Spreadsheet.Zip namespaces will be removed from the Telerik.WinControls and Telerik.WinControls.RadSpreadsheet assemblies. Please transition to System.IO.Compression or Telerik Document Processing libraries for continued Zip functionality.
  • .NET 6 distribution will be discontinued, following Microsoft's End of Support Policy for .NET 6.
Nadya | Tech Support Engineer
Telerik team
 updated question on 27 Feb 2025
1 answer
44 views

Hello,  

I'd like the number of characters in the form title to be reduced when I reduce my form.

example with eclipse: (Width form: 1000)

projet_xxxxx - c:/mon_projet/srv/fichier/caracteristique/grid/form_caraterisque.cls - Progress Developper Studio

and after reduction of Form (width form 700)

projet_xxxxx - c:/mon_projet/srv/fichier/caracteristique/grid/form_caraterisque.cls - Progress ...

the title and ...

best regard.

Nadya | Tech Support Engineer
Telerik team
 answered on 27 Feb 2025
1 answer
36 views

After performing an ExportToImage using the RadBarCodeView, I'd like to delete the image from the harddrive.

But it always says that the file is in use and cannot be deleted.

I tried setting the RadBarCodeView1.value = Nothing (trying to make it release the image file) but that doesn't work either.

Any idea's on how to release that image file?

Dinko | Tech Support Engineer
Telerik team
 answered on 24 Feb 2025
2 answers
67 views

Hello everyone :)

I've got a new project that includes a RadListView that I have placed on a WinForm with ViewType = IconsView

I'd like to display a thumbnail along with some HTML text - but I'm struggling getting the data I need from the object being formatted.

Here's my VisualItemFormatting method:

Private Sub rlvScanForms_VisualItemFormatting(sender As Object, e As Telerik.WinControls.UI.ListViewVisualItemEventArgs) Handles rlvScanForms.VisualItemFormatting
Dim myViewElement As RadListViewElement = CType(sender, RadListViewElement)

'               .Item(0) IS WRONG!!!  THiS IS just a place holder for my question to Telerik Forum members :)
If myViewElement.Items(0).Tag IsNot Nothing Then
Dim myScanFormIcon As ScanFormIcon = CType(myViewElement.Items(0).Tag, ScanFormIcon)
Dim myWidth As Integer = myScanFormIcon.IconSize.Width
Dim myHeight As Integer = myScanFormIcon.IconSize.Height
Dim myText As String = myScanFormIcon.DisplayString

If e.VisualItem.Data.Image IsNot Nothing Then
e.VisualItem.Image = e.VisualItem.Data.Image.GetThumbnailImage(myWidth, myHeight, Nothing, IntPtr.Zero)
e.VisualItem.Layout.RightPart.Margin = New Windows.Forms.Padding(2, 0, 0, 0)
End If

If rlvScanForms.ViewType = Telerik.WinControls.UI.ListViewType.IconsView Then
If myViewElement.Items(0).Tag IsNot Nothing Then
e.VisualItem.Text = myText
End If
End If

End If

 

myViewElement.Items(0).Tag holds a class that contains the text I'd like to display along with the correct icon size (these are documents of various sizes so I'd like the icons to have the same width/height ratio.

myViewElement.Items(0).Tag is clearly WRONG...it's there and not Nothing but it's the 0 index of all Items in the RadListView and it's in my code as a place holder so I could build the rest of the UI class.

Does anyone know how I can get the index of the ListViewItem that's being "formatted" by VisualItemFormatting?  Of not the index from the RadListView's Item collection, maybe the actual ListViewItem object itself?

Any help would be appreciated.

Thank

 

Nadya | Tech Support Engineer
Telerik team
 answered on 21 Feb 2025
0 answers
35 views

Hi,

I am using Telerik Winforms for an MVVM application. 

I have created a small Winform example about how we are using MVVM to handle events with default Winform applications <Attach example of MVVM application >. Most notable about this example is that we are using RelayCommands to help with the separation of concerns between our view and viewmodel on the click event as outlined in this microsoft devblogs. Using Command Binding in Windows Forms apps to go Cross-Platform - .NET Blog

We would like to avoid using event listeners (+=) in our view for events, such as click, as it does not follow the MVVM pattern. In WPF, they have event binding built in and the microsoft blog post describes how we can perform something similar with RelayCommand. Both ways follow the MVVM design pattern. I would like to know if there was a built in Telerik way to perform event binding?

Thanks

Suresh
Top achievements
Rank 1
 updated question on 19 Feb 2025
1 answer
69 views

I need to add a RadioButton column to my grid and I adapted the code in this demo to do it:

https://docs.telerik.com/devtools/winforms/knowledge-base/creating-a-radradiobuttoncellelement

The difference is I need a single radio button on each row and they need to be mutually exclusive of one another. This part is now working.

Using some sample credit card data, I have 3 challenges that I can't figure out:

1. How can I start the attached project and set the button for the credit card need selected when the form loads?

2. How can I retrieve the selected credit card id value (if any)?

3. I also seem to have a visual bug whereby when I scroll the grid up and down sometimes the button deselects and sometimes it seems to select a second option.

Could you please examine the attached project and let me know what I'm missing?

Thanks

Carl

Carl
Top achievements
Rank 1
Iron
Iron
Iron
 updated question on 18 Feb 2025
1 answer
50 views

Hi All,

 

I have a requirement to convert the mouse position in thepicture box control to the actual pixel position within the image. This must work when image layout is set to zoom, and handle when the image is zoomed in / out and panned within the control. If the mouse is moved outside of teh image but is still within the picture box then the X/Y coordinates would be set to -1, -1.

Is there any helper functions or sample code I can use to achieve this?I have a simple solution but this does not handle when the image is zoomed / panned.

Many thanks
Toby

 

Dinko | Tech Support Engineer
Telerik team
 answered on 14 Feb 2025
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
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
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
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
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
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?