Telerik Forums
UI for WinForms Forum
1 answer
55 views

Hi 

I am designing a WinForm App using UI for WinForms (ver. 2025 Q1). Is there any solution to add a search box to the radform title bar? It looks like the search box at th top of Microsoft Outlook 365 application.

Nadya | Tech Support Engineer
Telerik team
 answered on 25 Mar 2025
1 answer
31 views

Hi everyone, i use Telerik.WinControls.UI.Barcode to generate QR and every thing is fine with android reads, but IOS read said No usable data found.  Could you help me? This is my code

private void PrintDoc_PrintPage(object sender, PrintPageEventArgs e)
{
    printDoc.DefaultPageSettings.PaperSize = new PaperSize("Etiqueta5", 300, 150);
    printDoc.DefaultPageSettings.Landscape = true;

    float leftMargin = e.MarginBounds.Left;
    float topMargin = e.MarginBounds.Top;
    float printableWidth = e.MarginBounds.Width;
    float printableHeight = e.MarginBounds.Height;

    float labelWidth = 300; 
    float labelHeight = 150;



    float qrSize = 150;
    float margin = 3; 

    Font font = new Font("Arial", 9, FontStyle.Bold);
    Font smallerFont = new Font("Arial", 8, FontStyle.Bold);
    Brush brush = Brushes.Black;

    while (_currentRowIndex < dgv_resultado.Rows.Count)
    {
        DataGridViewRow row = dgv_resultado.Rows[_currentRowIndex];

        
        string idBien = row.Cells["IDBien"].Value?.ToString() ?? "N/A";
        string url = "http://www.mypage.com/";
        string articulo = row.Cells["Articulo"].Value?.ToString() ?? "N/A";
        string serie = row.Cells["NumSerie"].Value?.ToString() ?? "N/A";
        string fondos = ObtenerFondos(idBien);
        string contraloria = "";
        if (bandera == 0)
        {
            contraloria = row.Cells["NumContraloria"].Value?.ToString() ?? "N/A";
        }
        else 
        {
            contraloria = row.Cells["NoContraloria"].Value?.ToString() ?? "N/A";
        }

        string qrData = $"IdBien:{idBien}|Liga:{url}|Artículo:{articulo}|Serie:{serie}|Fondos:{fondos}|Contraloría:{contraloria}";


        byte[] utf8Bytes = Encoding.UTF8.GetBytes(qrData);
        string qrDataUtf8 = Encoding.UTF8.GetString(utf8Bytes);

        rbv_code.Value = qrDataUtf8;

        Bitmap qrImage = new Bitmap(rbv_code.Width, rbv_code.Height);
        rbv_code.DrawToBitmap(qrImage, new Rectangle(0, 0, qrImage.Width, qrImage.Height));

        float xStart = (e.PageBounds.Width - labelWidth) / 2;  
        float yStart = 0; 

        float qrXPosition = xStart + (labelWidth - qrSize) / 2;
  
        e.Graphics.DrawImage(qrImage, qrXPosition, yStart + margin, qrSize, qrSize);

        float textYPosition = yStart + qrSize + (2 * margin);
        string unisonText = "My Page";
        SizeF unisonSize = e.Graphics.MeasureString(unisonText, font);
        e.Graphics.DrawString(unisonText, font, brush, xStart + (labelWidth - unisonSize.Width) / 2, textYPosition);

        textYPosition += 15; 

        try
        {
            PostDataToApiNormal(Convert.ToInt32(idBien), Empleado);
        }
        catch { }
        

        string idBienText = $"ID: {idBien}";
        SizeF idBienSize = e.Graphics.MeasureString(idBienText, smallerFont);
        e.Graphics.DrawString(idBienText, smallerFont, brush, xStart + (labelWidth - idBienSize.Width) / 2, textYPosition);

       

        if (pb_logo.Image != null)
        {
            float imageHeight = 35; 
            float imageWidth = 35; 
            float imageXPosition = xStart + (labelWidth - imageWidth) / 2; 
            float imageYPosition = textYPosition + 20; 
            

            for (float offset = -0.5f; offset <= 0.5f; offset += 0.5f)
            {
                e.Graphics.DrawImage(pb_logo.Image, imageXPosition + offset, imageYPosition + offset, imageWidth, imageHeight);
            }
        }

        

        _currentRowIndex++;
        if (_currentRowIndex < dgv_resultado.Rows.Count)
        {
            e.HasMorePages = true;
            return;
        }
    }

    e.HasMorePages = false;
}
Nadya | Tech Support Engineer
Telerik team
 answered on 20 Mar 2025
1 answer
37 views

Hi, my application is built on .NET 4 and Telerik 2023. However, after the update, I have experienced increased lag when loading radGridView What should I do?

Nadya | Tech Support Engineer
Telerik team
 answered on 19 Mar 2025
1 answer
48 views

We have a form in our application with just a RadSpreadsheet element that loads a local Excel file. 

It works fine on the machine we developed the appplication on. After we installed it on our machine for testing we get the following error when opening the form (full exception in attachments):

"Type 'Telerik.WinControls.UI.RadButtonAccessibleObject' has a ComVisible(false) parent 'System.Windows.Forms.Control+ControlAccessibleObject' in its hierarchy, therefore QueryInterface calls for IDispatch or class interfaces are disallowed."

The spreadsheet is then also crossed out in red.

 

Is there maybe something we are missing here?

 

Nadya | Tech Support Engineer
Telerik team
 answered on 18 Mar 2025
1 answer
36 views
How can I prevent the controls at the top of the form from spacing out when the form is larger than my design size? I would prefer that the tabbedgroup at the bottom just expand to fill the available space, but I cannot seem to make that work.
Dinko | Tech Support Engineer
Telerik team
 answered on 14 Mar 2025
1 answer
49 views

Hello,

is there any alternate available to apply specific theme directly on win form controls other than making a change in stylesheet (to apply different colors and appearance?) basically, for specific theme user wants to apply different color. one option is to create .tsp file and add it to resource. so is there any other way possible where user don't need to create. tsp or any other file and by using direct property he can achieve the same.  (controls like date time picker, calendar, tree view, Rad buttons etc.)

Thank you.

Dinko | Tech Support Engineer
Telerik team
 answered on 13 Mar 2025
1 answer
72 views

We set AllowDeleteRow = true, but this doesn't seem to do anything.

What is the default capability for deleting rows/records in the GridView?

Is there a default 'delete'-button or context menu we can show, or do we need to implement it oursleves? The documentation is quite lacking here...

Dinko | Tech Support Engineer
Telerik team
 answered on 12 Mar 2025
1 answer
44 views

We want to switch the gridview to german. 

This article suggests we have to provide our own translations: Localization - UI for WinForms Documentation - Telerik UI for WinForms

We actually would prefer not to do that...

Are there any default translations we can use? If so, how would we integrate them?

If not; where exactly does the provider class reside in our application, and where do we need to set the CurrentProvider?

Dinko | Tech Support Engineer
Telerik team
 answered on 12 Mar 2025
1 answer
45 views

My users want a UI that looks like the screen capture below. They want to be able to drag squares from the top frame to the bottom (mutually exclusive) and reorder them within the bottom frame and then save/restore between editing sessions. Do you have a control designed for this?

Thanks

Carl

Dinko | Tech Support Engineer
Telerik team
 answered on 11 Mar 2025
0 answers
57 views

I've been looking at the release notes and i can see that a selection checkbox has been added since we last updated which is great.  I can also see as per the release notes that there is a "New mode for selecting rows only via the selection checkboxes".  Does anyone know how to configure this?

 

Cheers!

Alex
Top achievements
Rank 1
 asked on 07 Mar 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?