Telerik Forums
UI for WinForms Forum
2 answers
299 views

Hi,

I have been trying to make the icon view more of a tile view however when I try and do the back colour it does a gradient fill instead. See attachment

Form Code

    this.radListView2.ViewType = ListViewType.IconsView;
    this.radListView2.ItemSize = new Size(300, 120);
    this.radListView2.ItemSpacing = 10;
    this.radListView2.AllowEdit = false;
    this.radListView2.EnableFiltering = true;
    this.radListView2.HotTracking = false;
 
    this.radListView2.RootElement.BackColor = Color.Transparent;
    this.radListView2.BackColor = Color.Transparent;
    this.radListView2.ListViewElement.DrawFill = false;
    this.radListView2.ListViewElement.ViewElement.BackColor = Color.Transparent;
 
    this.radListView2.RootElement.EnableElementShadow = false;
}
 
private void radListView2_VisualItemCreating(object sender, ListViewVisualItemCreatingEventArgs e)
{
    if (e.VisualItem is IconListViewVisualItem)
    {
        e.VisualItem = new PeopleListIcon();
    }
}

 

PeopleListIcon Code

using System;
using HRSystem.HRDataCentre;
using System.Collections.Generic;
using System.Drawing;
using System.Reflection;
using System.Text;
using Telerik.WinControls;
using Telerik.WinControls.UI;
using System.Linq;
using Telerik.WinControls.Layouts;
 
namespace HRSystem.New_Element
{
    public class PeopleListIcon : IconListViewVisualItem
    {
        protected override Type ThemeEffectiveType
        {
            get
            {
                return typeof(IconListViewVisualItem);
            }
        }
 
        LightVisualElement RoleName = new LightVisualElement();
        LightVisualElement RoleType = new LightVisualElement();
 
        LightVisualElement PersonName = new LightVisualElement();
 
        LightVisualElement Duration = new LightVisualElement();
        LightVisualElement Active = new LightVisualElement();
 
        private StackLayoutElement verticalContainer = new StackLayoutElement();
        private StackLayoutElement roomHeaderContainer = new StackLayoutElement();
        private StackLayoutElement roomFooterContainer = new StackLayoutElement();
 
        protected override void CreateChildElements()
        {
            base.CreateChildElements();
 
            verticalContainer.Orientation = System.Windows.Forms.Orientation.Vertical;
            verticalContainer.NotifyParentOnMouseInput = true;
            verticalContainer.ShouldHandleMouseInput = false;
            verticalContainer.StretchHorizontally = true;
            verticalContainer.StretchVertically = true;
 
            roomHeaderContainer.Orientation = System.Windows.Forms.Orientation.Horizontal;
            roomHeaderContainer.NotifyParentOnMouseInput = true;
            roomHeaderContainer.ShouldHandleMouseInput = false;
            roomHeaderContainer.Children.Add(RoleName);
            roomHeaderContainer.Children.Add(RoleType);
            roomHeaderContainer.StretchHorizontally = true;
 
            RoleName.NotifyParentOnMouseInput = true;
            RoleName.ShouldHandleMouseInput = false;
            RoleName.StretchHorizontally = true;
            RoleName.CustomFont = "Roboto";
            RoleName.CustomFontSize = 9;
            RoleName.CustomFontStyle = FontStyle.Bold;
            RoleName.Margin = new System.Windows.Forms.Padding(5, 10, 0, 0);
            RoleName.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
 
            RoleType.NotifyParentOnMouseInput = true;
            RoleType.ShouldHandleMouseInput = false;
            RoleType.StretchHorizontally = false;
            RoleType.CustomFont = "Roboto";
            RoleType.CustomFontSize = 9;
            RoleType.CustomFontStyle = FontStyle.Regular;
            RoleType.Margin = new System.Windows.Forms.Padding(0, 5, 5, 0);
 
            roomFooterContainer.Orientation = System.Windows.Forms.Orientation.Horizontal;
            roomFooterContainer.NotifyParentOnMouseInput = true;
            roomFooterContainer.ShouldHandleMouseInput = false;
            roomFooterContainer.StretchHorizontally = true;
            roomFooterContainer.DrawFill = true;
            roomFooterContainer.BackColor = Color.White;
            roomFooterContainer.GradientStyle = GradientStyles.Solid;
            roomFooterContainer.MinSize = new System.Drawing.Size(0, 30);
 
            PersonName.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            PersonName.StretchHorizontally = false;
            PersonName.Layout.LeftPart.Padding = new System.Windows.Forms.Padding(24, 0, 8, 0);
 
            PersonName.Alignment = System.Drawing.ContentAlignment.MiddleCenter;
            PersonName.NotifyParentOnMouseInput = true;
            PersonName.ShouldHandleMouseInput = false;
            PersonName.CustomFont = "Roboto";
            PersonName.CustomFontSize = 12;
            PersonName.CustomFontStyle = FontStyle.Regular;
 
             
            Duration.NotifyParentOnMouseInput = true;
            Duration.ShouldHandleMouseInput = false;
 
            Duration.StretchVertically = true;
            Active.StretchVertically = true;
            roomFooterContainer.Children.Add(Duration);
            roomFooterContainer.Children.Add(Active);
 
            Active.NotifyParentOnMouseInput = true;
            Active.ShouldHandleMouseInput = false;
            Active.StretchHorizontally = false;
            Active.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            Active.CustomFont = "Roboto";
            Active.CustomFontSize = 9;
            Active.CustomFontStyle = FontStyle.Regular;
 
            Duration.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            Duration.CustomFont = "Roboto";
            Duration.CustomFontSize = 9;
            Duration.CustomFontStyle = FontStyle.Regular;
            Duration.Margin = new System.Windows.Forms.Padding(5, 0, 0, 0);
            Duration.StretchHorizontally = false;
 
            verticalContainer.Children.Add(roomHeaderContainer);
            verticalContainer.Children.Add(PersonName);
            verticalContainer.Children.Add(roomFooterContainer);
 
            this.Children.Add(this.verticalContainer);
        }
        protected override void SynchronizeProperties()
        {
            base.SynchronizeProperties();
            this.DrawText = false;
            this.BackColor = Color.White;
            this.DrawFill = true;
            this.DrawBorder = false;
            RoleName.Margin = new System.Windows.Forms.Padding(8, 8, 0, 0);
            RoleType.ImageLayout = System.Windows.Forms.ImageLayout.None;
            PersonName.Margin = new System.Windows.Forms.Padding(24, 0, 0, 0);
 
            PersonName.Layout.LeftPart.Margin = new System.Windows.Forms.Padding(0, 0, 5, 0);
            PersonName.StretchHorizontally = true;
            PersonName.ImageAlignment = ContentAlignment.MiddleLeft;
            PersonName.TextAlignment = ContentAlignment.MiddleLeft;
 
            Duration.Layout.LeftPart.Margin = new System.Windows.Forms.Padding(0, -3, 0, 0);
            Duration.ForeColor = Color.FromArgb(200, 0, 0, 0);
            Active.ForeColor = Color.FromArgb(200, 0, 0, 0);
            Active.Layout.LeftPart.Margin = new System.Windows.Forms.Padding(0, -3, 0, 0);
 
            People Person = this.Data.DataBoundItem as People;
 
            if (Person != null)
            {
                RoleName.Text = Person.Roles.Any() ? Person.Roles.FirstOrDefault().RoleTitle : "No Role";
                RoleType.Text = Person.Roles.Any() ? Person.Roles.FirstOrDefault().Type.Description : "";
 
                PersonName.Text = Person.Forename + " " + Person.Surname;
                int age = Person.Roles.Any() ? Function.GetAge(Person.Roles.FirstOrDefault().StartDate) : 0;
                Duration.Text = age + " years";
 
                RoleName.ForeColor = Color.FromArgb(190, 0, 0, 0);
                RoleType.ForeColor = Color.Black;
                PersonName.ForeColor = Color.Black;
 
                if (RoleType.Text == "Staff" || RoleType.Text == "Volunteer")
                {
                    this.BackColor = Color.FromArgb(247, 247, 247);
                }
                else
                {
                    this.BackColor = Color.FromArgb(170, 13, 13);
                }
            }
            else
            {
                PersonName.Text = "Free Room";
                Duration.Text = "0 days";
                this.BackColor = Color.DarkRed;
                RoleName.ForeColor = Color.White;
                RoleType.ForeColor = Color.White;
                PersonName.ForeColor = Color.White;
            }
        }
    }
}
Mark
Top achievements
Rank 1
 answered on 22 Mar 2019
1 answer
145 views

Hello,

I've posted a thread about save/restore row 2 months ago. It worked great until I grouped a column.

When a column is grouping, the row index that I save/restore is the index in the grouping zone where the row located. When I load this row index to the gridview, every grouping zone will take over this row index. For example if I save a selected row, when I reload its index, all rows which has this index in every grouping zone will be selected.

 

If you would like to test, check out the demo in my old post (Hristo's answer):

https://www.telerik.com/forums/restore-selected-tab-in-hierarchy-child-page-view-after-data-refresh

 

Thank you by advance for your help.

Regards,

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 Mar 2019
1 answer
139 views

Hi.

What is the best way to react to a shape being drag-dropped onto the diagram from the toolbox?

The toolbox is in an additional form.

Regards 

Bernhard

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Mar 2019
1 answer
1.0K+ views

Please take a look at attached image...

For the left side bar menu on that image which control of telerik should i use?

Would you please lead me to examples of that?

Thanks in advance

Dimitar
Telerik team
 answered on 20 Mar 2019
3 answers
255 views

Hi

I've recently released a version of our software that had version 2019.1.117.40 of Telerik.

Soon afterwards I needed to reformat and rebuild my working environment, reinstall visual studio and telerik and received a telerik version error after loading up my solution. So I ran an upgrade which installed 2019.1.219.40.

After this I started experiencing errors in the Virtual Grid. Last week I added a thread to the forum about access violations when calling bestfit on a column, it was suggested that my code should wait until the form is loaded/shown before doing this.In version 2019.1.117.40 I hadn't experienced this problem despite all the hours I'd spent developing and testing.

The form in question contains a panel which is parented onto a host form, so it never receives a formshown event, I use the hostform shown event to call the code on the child. But, the child panel contains a pageview with 4 pages, each of which contains a virtual grid. Even though the form is visible, I'm experiencing that same access violation on the first page of data.

Now, I'm seeing another problem which I didn't experience in 2019.1.117.40, when I attempt to change the sort order.

"Collection was modified; enumeration operation may not execute"

   at System.Collections.ArrayList.ArrayListEnumeratorSimple.MoveNext()
   at Telerik.WinControls.UI.VirtualGridRowElement.<GetCellElements>d__0.MoveNext()
   at Telerik.WinControls.UI.VirtualGridRowElement.SynchronizeCells(Boolean updateContent)
   at Telerik.WinControls.UI.VirtualGridRowElement.Synchronize(Boolean updateContent)
   at Telerik.WinControls.UI.VirtualGridTableElement.SynchronizeRows(Boolean recursive, Boolean updateContent)
   at Telerik.WinControls.UI.VirtualGridTableElement.OnViewInfoPropertyChanged(Object sender, PropertyChangedEventArgs e)
   at Telerik.WinControls.RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs e)
   at Telerik.WinControls.UI.VirtualGridViewInfo.OnNotifyPropertyChanged(PropertyChangedEventArgs e)
   at Telerik.WinControls.RadObject.OnNotifyPropertyChanged(String propertyName)
   at Telerik.WinControls.UI.VirtualGridViewInfo.set_IsWaiting(Boolean value)
   at pulse.move.views.Helpers.MemberSelection.VirtualGridHandlerClassBase.WaitCursor(Boolean showWaiting) in W:\Projects\pulse.smartcentre.root\pulse.smartcentre\pulse.move.views\Helpers\MemberSelection\VirtualGridHandlerClass.Base.cs:line 1059
   at pulse.move.views.Helpers.MemberSelection.VirtualGridHandlerClassBase.AskForData(Int32 pageIndex) in W:\Projects\pulse.smartcentre.root\pulse.smartcentre\pulse.move.views\Helpers\MemberSelection\VirtualGridHandlerClass.Base.cs:line 1009
   at pulse.move.views.UserCentre.Tabs.GridHandlers.UserCentreVirtualGridHandler.AskForData(Int32 pageIndex) in W:\Projects\pulse.smartcentre.root\pulse.smartcentre\pulse.move.views\UserCentre\Tabs\GridHandlers\UserCentreVirtualGridHandler.cs:line 94
   at pulse.move.views.Helpers.MemberSelection.VirtualGridHandlerClassBase.OnMasterViewSortChanged() in W:\Projects\pulse.smartcentre.root\pulse.smartcentre\pulse.move.views\Helpers\MemberSelection\VirtualGridHandlerClass.Base.cs:line 847
   at pulse.move.views.Helpers.MemberSelection.VirtualGridHandlerClassBase.OnSortChanged(Object sender, VirtualGridEventArgs e) in W:\Projects\pulse.smartcentre.root\pulse.smartcentre\pulse.move.views\Helpers\MemberSelection\VirtualGridHandlerClass.Base.cs:line 865
   at Telerik.WinControls.UI.RadVirtualGridElement.OnSortDescriptorsChanged(VirtualGridViewInfo viewInfo)
   at Telerik.WinControls.UI.VirtualGridViewInfo.sortDescriptors_CollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
   at Telerik.Collections.Generic.NotifyCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
   at Telerik.Collections.Generic.NotifyCollection`1.EndUpdate(Boolean notify)
   at Telerik.WinControls.UI.VirtualGridInputBehavior.HandleMouseUp(MouseEventArgs args)
   at Telerik.WinControls.UI.RadVirtualGrid.OnMouseUp(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at Telerik.WinControls.RadControl.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 

Although there are backup directories, how do I rollback to this earlier version of controls now I've had to reformat?

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Mar 2019
2 answers
131 views
Hello, everyone.

When I use the GridView control, the new control does not have IsCurrentCellDirty or CommitEdit properties.

Now I want to use this property, how do I solve it in the new control.

Thank you
hong
Top achievements
Rank 1
 answered on 20 Mar 2019
1 answer
181 views

In simple mode, binding works correctly. 

.............. 

//Define property

private float start;
    public float Start
    {
        get => start;
        set
        {
            if (value == Start) return;
            start = value;
            OnPropertyChanget("Start");
        }
    }

..............................................

//Binding

  radTrackBar1.DataBindings.Add("Value", Data, "Start", true, DataSourceUpdateMode.OnPropertyChanged);
  radTrackBar2.DataBindings.Add("Value", Data, "Start", true, DataSourceUpdateMode.OnPropertyChanged);

.........................................................

How can I use binding in range mod?

   radTrackBar1.Ranges[0].Start = 1;
   radTrackBar1.Ranges[0].End = 50;
   radTrackBar2.Ranges[0].Start = 1;
   radTrackBar2.Ranges[0].End = 50;

//Define property ??????????????????????

//Binding ??????????????????????????

Thanks!

 

 

Dimitar
Telerik team
 answered on 20 Mar 2019
3 answers
119 views

I've looked at other posts, but I didn't see where I went wrong. 

(review attached screenshot for a better understanding)

In my situation, I add background color to row cells where this is an "A" value in the cell. This stands for an aisle in a warehouse.

If you scroll slowly, then the background color stays within the rows with an "A", but if you scroll too fast, the display shows green in various cells. Also, if I clear the grid and rebuild it with new data, the background color is not reset. The previous rows that were green are still green.

What am I missing?

01.Private Sub dgvMain_CellFormatting(sender As Object, e As CellFormattingEventArgs) Handles dgvMain.CellFormatting
02.    If _LeftOrRightConveyor = "LEFT" And e.CellElement.ColumnIndex = AisleColumnLeft_Idx Then
03.        e.CellElement.BackColor = System.Drawing.Color.LightGreen
04.    ElseIf _LeftOrRightConveyor = "RIGHT" And e.CellElement.ColumnIndex = AisleColumnRight_Idx Then
05.        e.CellElement.BackColor = System.Drawing.Color.LightGreen
06.    End If
07. 
08.    If e.CellElement.Value = "A" Then
09.        e.CellElement.BackColor = System.Drawing.Color.Lime
10.    End If
11.End Sub
Hristo
Telerik team
 answered on 20 Mar 2019
1 answer
220 views

Hi For some reason the theme fluent dark is not being applied to a show dialog function. I have included the designer file and the main form code below for your to check but all other forms are working fine which is weird.

Main Form Code.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Telerik.WinControls;
using FuelActivityTrackerDapperDal;
using FuelActivityTrackerDapperDal.Models;
using FuelActivityTrackerDesktop.Forms;
using System.Linq;
 
namespace FuelActivityTrackerDesktop.Forms
{
    
    public partial class Login : Telerik.WinControls.UI.RadForm
    {
        ActivityTrackerDapperDal db = new ActivityTrackerDapperDal();
        public IEnumerable<Users> _users { get; set; }
        public Login()
        {
            InitializeComponent();
            
        }
 
        private void Login_Load(object sender, EventArgs e)
        
            _users = db.GetALLUsers();
 
            ThemeResolutionService.ApplyThemeToControlTree(this, "FluentDark");
 
        }
 
        private void btnLogin_Click(object sender, EventArgs e)
        {
            if(txtUsername.Text == "")
            {
 
                MessageBox.Show("Please enter your login details", "Fuel");
                
 
            }
 
 
 
            Users _user = _users.Where(w => w.UserName.ToLower() == txtUsername.Text.Trim().ToLower() && w.Password.ToLower() == txtPassword.Text.Trim().ToLower()).FirstOrDefault();
            LoggedIn.UserName = _user.UserName;
            LoggedIn.UserId = _user.id;
            LoggedIn.StaffId = _user.StaffId;
            if (_user.isActive == true)
            {
                frmMain _frmmain = new frmMain();
                this.Hide();
                _frmmain.ShowDialog();
 
            }
            else
                MessageBox.Show("Your account has been made inactive , Please check with Administrator", "Fuel");
 
            DialogResult = DialogResult.OK;
         
        }
 
        private void txtPassword_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
                btnLogin_Click(sender, e);
        }
    }
}

 

 

Designer file of the form.

namespace FuelActivityTrackerDesktop.Forms
{
    partial class Login
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;
 
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }
 
        #region Windows Form Designer generated code
 
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Login));
            this.imagePanel = new System.Windows.Forms.Panel();
            this.logoPictureBox = new System.Windows.Forms.PictureBox();
            this.radPanel1 = new Telerik.WinControls.UI.RadPanel();
            this.radLabel3 = new Telerik.WinControls.UI.RadLabel();
            this.radLabel2 = new Telerik.WinControls.UI.RadLabel();
            this.radLabel1 = new Telerik.WinControls.UI.RadLabel();
            this.txtPassword = new Telerik.WinControls.UI.RadTextBox();
            this.txtUsername = new Telerik.WinControls.UI.RadTextBox();
            this.btnCancel = new Telerik.WinControls.UI.RadButton();
            this.btnLogin = new Telerik.WinControls.UI.RadButton();
            this.fluentDarkTheme1 = new Telerik.WinControls.Themes.FluentDarkTheme();
            this.fluentTheme1 = new Telerik.WinControls.Themes.FluentTheme();
            this.imagePanel.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.radPanel1)).BeginInit();
            this.radPanel1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.radLabel3)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.radLabel2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.radLabel1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtPassword)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtUsername)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.btnCancel)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.btnLogin)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            this.SuspendLayout();
            //
            // imagePanel
            //
            this.imagePanel.Controls.Add(this.logoPictureBox);
            this.imagePanel.Dock = System.Windows.Forms.DockStyle.Left;
            this.imagePanel.Location = new System.Drawing.Point(0, 0);
            this.imagePanel.Name = "imagePanel";
            this.imagePanel.Size = new System.Drawing.Size(129, 148);
            this.imagePanel.TabIndex = 9;
            //
            // logoPictureBox
            //
            this.logoPictureBox.Cursor = System.Windows.Forms.Cursors.Hand;
            this.logoPictureBox.Dock = System.Windows.Forms.DockStyle.Fill;
            this.logoPictureBox.Image = ((System.Drawing.Image)(resources.GetObject("logoPictureBox.Image")));
            this.logoPictureBox.Location = new System.Drawing.Point(0, 0);
            this.logoPictureBox.Name = "logoPictureBox";
            this.logoPictureBox.Size = new System.Drawing.Size(129, 148);
            this.logoPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
            this.logoPictureBox.TabIndex = 0;
            this.logoPictureBox.TabStop = false;
            //
            // radPanel1
            //
            this.radPanel1.Controls.Add(this.radLabel3);
            this.radPanel1.Controls.Add(this.radLabel2);
            this.radPanel1.Controls.Add(this.radLabel1);
            this.radPanel1.Controls.Add(this.txtPassword);
            this.radPanel1.Controls.Add(this.txtUsername);
            this.radPanel1.Location = new System.Drawing.Point(152, 12);
            this.radPanel1.Name = "radPanel1";
            this.radPanel1.Size = new System.Drawing.Size(369, 117);
            this.radPanel1.TabIndex = 10;
            this.radPanel1.Text = "radPanel1";
            this.radPanel1.ThemeName = "FluentDark";
            //
            // radLabel3
            //
            this.radLabel3.AutoSize = false;
            this.radLabel3.Location = new System.Drawing.Point(3, 74);
            this.radLabel3.Name = "radLabel3";
            this.radLabel3.Size = new System.Drawing.Size(123, 24);
            this.radLabel3.TabIndex = 18;
            this.radLabel3.Text = "Password";
            this.radLabel3.ThemeName = "FluentDark";
            //
            // radLabel2
            //
            this.radLabel2.AutoSize = false;
            this.radLabel2.Location = new System.Drawing.Point(3, 48);
            this.radLabel2.Name = "radLabel2";
            this.radLabel2.Size = new System.Drawing.Size(123, 24);
            this.radLabel2.TabIndex = 17;
            this.radLabel2.Text = "UserName";
            this.radLabel2.ThemeName = "FluentDark";
            //
            // radLabel1
            //
            this.radLabel1.Location = new System.Drawing.Point(3, 12);
            this.radLabel1.Name = "radLabel1";
            this.radLabel1.Size = new System.Drawing.Size(156, 18);
            this.radLabel1.TabIndex = 16;
            this.radLabel1.Text = "Please enter your login details";
            this.radLabel1.ThemeName = "FluentDark";
            //
            // txtPassword
            //
            this.txtPassword.Location = new System.Drawing.Point(132, 76);
            this.txtPassword.Name = "txtPassword";
            this.txtPassword.Size = new System.Drawing.Size(192, 24);
            this.txtPassword.TabIndex = 15;
            this.txtPassword.ThemeName = "FluentDark";
            this.txtPassword.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtPassword_KeyDown);
            //
            // txtUsername
            //
            this.txtUsername.Location = new System.Drawing.Point(132, 48);
            this.txtUsername.Name = "txtUsername";
            this.txtUsername.Size = new System.Drawing.Size(192, 24);
            this.txtUsername.TabIndex = 14;
            this.txtUsername.ThemeName = "FluentDark";
            //
            // btnCancel
            //
            this.btnCancel.Location = new System.Drawing.Point(527, 42);
            this.btnCancel.Name = "btnCancel";
            this.btnCancel.Size = new System.Drawing.Size(110, 24);
            this.btnCancel.TabIndex = 12;
            this.btnCancel.Text = "Cancel";
            this.btnCancel.ThemeName = "FluentDark";
            //
            // btnLogin
            //
            this.btnLogin.Location = new System.Drawing.Point(527, 12);
            this.btnLogin.Name = "btnLogin";
            this.btnLogin.Size = new System.Drawing.Size(110, 24);
            this.btnLogin.TabIndex = 11;
            this.btnLogin.Text = "Login";
            this.btnLogin.ThemeName = "FluentDark";
            this.btnLogin.Click += new System.EventHandler(this.btnLogin_Click);
            //
            // Login
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(660, 148);
            this.Controls.Add(this.imagePanel);
            this.Controls.Add(this.radPanel1);
            this.Controls.Add(this.btnCancel);
            this.Controls.Add(this.btnLogin);
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "Login";
            //
            //
            //
            this.RootElement.ApplyShapeToControl = true;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "Login";
            this.ThemeName = "Fluent";
            this.Load += new System.EventHandler(this.Login_Load);
            this.imagePanel.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.radPanel1)).EndInit();
            this.radPanel1.ResumeLayout(false);
            this.radPanel1.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.radLabel3)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.radLabel2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.radLabel1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtPassword)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtUsername)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.btnCancel)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.btnLogin)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
            this.ResumeLayout(false);
 
        }
 
        #endregion
 
        private System.Windows.Forms.Panel imagePanel;
        private System.Windows.Forms.PictureBox logoPictureBox;
        private Telerik.WinControls.UI.RadPanel radPanel1;
        private Telerik.WinControls.UI.RadLabel radLabel3;
        private Telerik.WinControls.UI.RadLabel radLabel2;
        private Telerik.WinControls.UI.RadLabel radLabel1;
        private Telerik.WinControls.UI.RadTextBox txtPassword;
        private Telerik.WinControls.UI.RadTextBox txtUsername;
        private Telerik.WinControls.UI.RadButton btnCancel;
        private Telerik.WinControls.UI.RadButton btnLogin;
        private Telerik.WinControls.Themes.FluentDarkTheme fluentDarkTheme1;
        private Telerik.WinControls.Themes.FluentTheme fluentTheme1;
    }
}

 

 

 

 

 

 

 

Dimitar
Telerik team
 answered on 19 Mar 2019
1 answer
520 views

Hi, 

Is there any option to get the pdf document directly from a scanner device? 

Thanks in advance.

Dimitar
Telerik team
 answered on 19 Mar 2019
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
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
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
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?