Telerik Forums
UI for WinForms Forum
1 answer
186 views

Hi, I have an issue such that when I place my application (which is based on a RadRibbonForm) on to my right hand 4K monitor and then maximise it I get a small amount of "bleed" of my application on to the right hand side of my left monitor.

On inspecting the forms desktop bounds property it see X = 1908, Y = -12, width = 3864, height = 2114. I was expecting X = 1920, Y = 0, width = 3840, height = 2090 which is what is being reported in Screen.AllScreens.

I'm using the lastest version of WinForms and have done what issuggested in this link.

I can reproduce the same behaviour when I run "Demo Application - Telerik UI for WinForms R2 2022 SP1", move it to my large right hand monitor then maximise it.

Do you know of any "easy" way of saving and restoring the main application window size / position in a multi monitor setup with diferrent DPI's? Its a nightmare!

Kind regards
Toby

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Jul 2022
0 answers
223 views

HI

I have installed the telerik 2022. The issue that I am facing is that the radtabbedform is not showing this issue also with telerik 2021.

can someone to inform me who can I added?

Thank you in advance

Regards

Ali
Top achievements
Rank 1
 asked on 15 Jul 2022
1 answer
166 views

 

Hello, Telerik users.

There is one problem with me. Data must be entered in each corresponding cell, but data cannot be entered. 
I couldn't find the reason. 
The source code is below.

It's a red syntax, but it doesn't work. Do you know why?

I really hope we can solve this problem. 
Thank you.

 

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
using System.Collections;

namespace TEST
{
    public partial class ViewerControl2 : UserControl
    {
        protected bool IsDesignMode { get { return DesignMode || LicenseManager.UsageMode == LicenseUsageMode.Designtime; } }
        private const int ROWCOUNT = 100;
        private const int COLUMNCOUNT = 100;

        public ViewerControl2()
        {
            try
            {
                InitializeComponent();
                if (IsDesignMode) return;

                SetLayout();
                SetEventHandler();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }


        private void SetLayout()
        {
            try
            {
                this.radGridView1.ShowGroupPanel = false;
                this.radGridView1.VirtualMode = true;
                this.radGridView1.RowCount = 5;
                this.radGridView1.ColumnCount = 19;
                //this.radGridView1.BackColor = Color.Transparent;
                this.radGridView1.ReadOnly = true;
                this.radGridView1.TableElement.DrawFill = false;
                this.radGridView1.TableElement.RowHeight = 50;
                this.radGridView1.TableElement.CellSpacing = 0;
                this.radGridView1.MasterTemplate.ShowRowHeaderColumn = true;
                this.radGridView1.MasterTemplate.ShowColumnHeaders = true;
                this.radGridView1.MasterTemplate.AllowAddNewRow = false;

                createData();

            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        private void SetEventHandler()
        {
            try
            {
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        private void createData()
        {

            string getData = "SEND;BIT;1;0;0;1;1;0;1;1;1;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;0;1;1;1;0";

            string[] spstring = getData.Split(';');

            int dataLength = (spstring.Length - 2);

            int horizontal_length = dataLength / 5;

            string[,] lineData = new string[5, horizontal_length];

            int startData = 2;

            for (int j = 0; j < horizontal_length; j++) {

                for (int i = 4; i > -1; i--) {

                    lineData[i, j] = spstring[startData++];

                }
            }

            for (int i = 0; i < 5; i++) {

                for (int j = 0; j < horizontal_length; j++) {

                    this.radGridView1.Rows[i].Cells[j].Style.CustomizeFill = true;

                    this.radGridView1.Rows[i].Cells[j].Style.DrawFill = true;

                    this.radGridView1.Columns[j].HeaderText = j.ToString();

                    if (lineData[i, j] == "1") {

this.radGridView1.Rows[i].Cells[j].Value = 1;
                        this.radGridView1.Rows[i].Cells[j].Style.BackColor = Color.Green;

                    } else {

this.radGridView1.Rows[i].Cells[j].Value = 0;
                        this.radGridView1.Rows[i].Cells[j].Style.BackColor = Color.Black;

                    }
                }
            }
        }
    }
}

                                                                                           
Maria
Telerik team
 answered on 14 Jul 2022
1 answer
171 views

Hello everyone,

I'm learning to use Telerik for winforms, but I have an issue with RadHostItem that hosts a Windows TableLayoutPanel that is generated at runtime and the RadHostItem is placed inside a RadDropDownButtonElement on a RibbonBar.

I'm using  RadHostItem.MinSize for the host that contains the TableLayoutPanel but I've tried a lot of ways to size the host height but neither of them is working as desired.

In what units RadHostItem.MinSize is defined?

For example, I have this code:

                Telerik.WinControls.RadHostItem radHost = new Telerik.WinControls.RadHostItem(panel);
                int heightPerRow = panel.GetRowHeights()[0]; // Height of a row in pixels,
                radHost.MinSize = new Size(panel.Width, heightPerRow * headerRow);

                radDropDownButton.Items.Add(radHost);

But this host is very big for the panel and it distorts it.

I'll appreciate any help.

Thanks in advance,

Adriana

 

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 14 Jul 2022
10 answers
615 views

Hello, sorry, maybe I am too new to Telerik, but I was wondering how to do basic tasks with SyntaxEditor. I wanted to replace classic TextBox with SyntaxEditor and I thought it would be straightforward, but I got stuck on very basic tasks. Can you please help me, or navigate me?

1. How to get text from SyntaxEditor? I know how to set text by setting new document, but how to get text? I read whole SyntaxEditor part of documentation, but haven't found this, how is it possible? I was trying to find this out for about hour, but without success. I am wondering if am too new to Telerik or how it's possible I couldn't find this, I think this basic thing must be like "look and see".

2. Classic WinForms TextBox has Modified property indicating the text was changed. Is it also somewhere here? Also, TextBox has Lines property, is it somewhere here?

3. I tried the Cut/Copy/Paste commands, they are working, but I was wondering why CanExecute methods return always true. For example, I expect if there is no selection, CanExecute for Cut and Copy has to return false. Also, if there is no text in clipboard, Paste command has to return false, etc.

Dinko | Tech Support Engineer
Telerik team
 answered on 12 Jul 2022
1 answer
230 views

Hi, I'm having strange resizing issues when moving an application between "normal" DPI and High DPI monitors. I have managed to reproduce the the issue in a small project which is attached.

To reproduce the issue move the application between monitor with different DPI's and and re-select the start menu button (blue blank in this case)

Tthis is what I see, it appears there is a resizing issue going on, thi sgets worse the more menu items in the right hand column (recently used file names in my application)

Stoyan
Telerik team
 answered on 11 Jul 2022
1 answer
624 views

Hello,

We have a project that uses Telerik Controls and that was developed by a user with a valid license.

We would like a second user to be able to modify the project. This second user will not touch any of the Telerik Controls (this will be done by the user with a valid license). According to this post, a user without a valid license should be able to compile the project. However, when compiling on said user (or when restoring Telerik Nuget packages), we get a pop up box (see joined) asking for credentials. The second user does not have any Telerik credentials.

How can this user compile the project?

Thanks,

Guillaume

 

Hristo
Telerik team
 updated answer on 08 Jul 2022
1 answer
310 views

hello

 

I have multiple cameras attached to the system and at the time , I wanted to display result of 3 cameras in small screen and 1 from these cameras in a big picture box. But When I select one of the came and take snapshots and display the result in picture box, the video start displaying in a picture box but the selected camera starts blinking. In case, if you didn't understand my problem I have attached a video and a code.


Please guide me how I can display the selected camera video feed in a picture box and it should not blink.

Dinko | Tech Support Engineer
Telerik team
 answered on 08 Jul 2022
1 answer
350 views

I have just recently upgraded to the latest version of WinForms (2022.2.622.40), along with upgrading from .net 4.6 to 4.7.2 to take advantage of High DPI updates.

When I start my application, is simply goes away without reporting any error.

When I look at the Windows Event Viewer Application Logs I see the following error:

Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentNullException
   at Telerik.WinControls.RadSvgImage.FromByteArray(Byte[])
   at Telerik.WinControls.UI.RadPictureBoxElement.InitializeFields()
   at Telerik.WinControls.RadElement..ctor()
   at Telerik.WinControls.RadItem..ctor()
   at Telerik.WinControls.UI.LightVisualElement..ctor()
   at Telerik.WinControls.UI.RadPictureBox.CreateImageEditorElement()
   at Telerik.WinControls.UI.RadPictureBox.CreateChildItems(Telerik.WinControls.RadElement)
   at Telerik.WinControls.RadControl.Construct()
   at Telerik.WinControls.RadControl..ctor()
   at AGD.Cobalt.ScenarioTool.SplashForm.InitializeComponent()
   at AGD.Cobalt.ScenarioTool.SplashForm..ctor()
   at AGD.Cobalt.ScenarioTool.SplashForm.ShowForm()

I'm running on Windows 11, and have merged all dll's together using ILmerge (if t

I should add that my form has a single RadPictureBox with a small image loaded from the project resource but has defaults for SvgImage. DefaultImage and DefaultSvgImage 

Any ideas? is there a workaround ?

Thanks in advance

Toby

Stoyan
Telerik team
 answered on 08 Jul 2022
1 answer
273 views

Greetings, you can indicate how to change the height of the headers or tabs of a radPageView, it is preferred at design time. if not possible by code.

 

I'm using Telerik Windows Forms 2022.1.222.40
Visual Studio 2022

Maria
Telerik team
 answered on 08 Jul 2022
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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?