Telerik Forums
UI for WinForms Forum
2 answers
431 views

Hello,

we are creating a barcode programmatically like it is described here: https://www.telerik.com/forums/generate-barcode-image-programmatically

The problem is, that the barcode itself is a bit small (width) for our purpose.

Our code looks like this:

var barcode = new RadBarcode();
barcode.Width = 900;
barcode.Height = 150;
barcode.Symbology = new Code39();
barcode.Value = "1890";
barcode.LoadElementTree();
var barcodeImage = barcode.ExportToImage(900, 150);
barcodeImage.Save(@"C:\test.png");

But if you look at the attached image (test.png), it has the correct size alright, but not the barcode itself. 

Is there away to give the barcode itself more width?

 

Kind regards.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 May 2021
1 answer
126 views
Hello
When I set
Me.IsMdiContainer = true
the background color of the form automatically changes to DarkGray while I need to keep the original color(when: Me.IsMdiContainer = false).

guid me

thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 May 2021
4 answers
1.0K+ views

I want to generate the image of BarCode without showing on the WinForm.  How to assign "Code39Extended" to Symbology?

 RadBarcode rBL = new RadBarcode();
 rBL.Symbology = "Code39Extended";

Thanks.

 

Dess | Tech Support Engineer, Principal
Telerik team
 updated answer on 30 Apr 2021
1 answer
95 views

 

Hello,

I'm struggling to get some events to work on a RadListViewElement, which is a child of a custom RadElement, which in turn is inside another custom RadControl. I guess a few lines of code will help to describe this:

Imports Telerik.WinControls
Imports Telerik.WinControls.UI

Public Class xElement
    Inherits RadElement

    Private listElement As RadListViewElement

    Public Sub New()
        'Me.NotifyParentOnMouseInput = True
        'Me.ShouldHandleMouseInput = True
        'Me.Capture = True
        'Me.CaptureOnMouseDown = True
    End Sub

    Protected Overrides Sub OnLoaded()
        MyBase.OnLoaded()

        AddHandler listElement.ItemMouseUp, Sub(s, e)
                                                If e.OriginalEventArgs.Button = MouseButtons.Left Then
                                                    listElement.SelectedItem = e.Item
                                                End If
                                            End Sub
    End Sub

    Protected Overrides Sub CreateChildElements()
        MyBase.CreateChildElements()

        listElement = New RadListViewElement
        With listElement
            '.ShouldHandleMouseInput = True
            '.NotifyParentOnMouseInput = True
            '.Capture = True
            '.CaptureOnMouseDown = True
            .ViewType = ListViewType.ListView 
            .DataSource = New List(Of String)(New String() {"a", "b", "c"})
        End With
        Me.Children.Add(listElement)
    End Sub

End Class
Imports Telerik.WinControls

<ToolboxItem(True)>
Public Class xControl
    Inherits RadControl

    Private element As xElement

    Public Sub New()
        element = New xElement()
        RootElement.Children.Add(element)
    End Sub

End Class

Some remarks on this piece of code:
- The items in listview react to events like mouseEnter/Leave.
- These items can't be selected by using the mouse, the click event does nothing on them, the action needs to be managed manually, which here is done in the OnLoaded() sub.
- The click event works on other elements inside listView, so, for instance, the scrollbar of the item container can be clicked, the list of items can be scrolled.

So, some events work out-of-the-box and some do not, and a certain event works here but not there, so I'm somewhat confused on what's going on. Anyway, it doesn't seem like the way it's supposed to be, and I'm sure the proper solution is a lot less cumbersome than manually capturing each event and then replicating the original behavior.

I guess I'm just missing something about how TPF works, maybe there's some element not initialized correctly, perhaps I need to enable some property. Any suggestions on this?

Thank you

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Apr 2021
1 answer
110 views

How can I find out the selected layout  (list, small icon, etc.) chosen by the user at the point the dialog is closed?

Thanks

Steve

Nadya | Tech Support Engineer
Telerik team
 answered on 28 Apr 2021
7 answers
438 views

Hello

I would need to calculate the height of a grid as it would be if all the rows were visible.

I need this value to change the location of another element just below the grid.
More precisely, the grid and the other component are located within a tablelayoutpanel that has two rows, the top one is of variable height and the second of fixed height.

When the form is resized (or the grid re-loaded), I can have two situations:

1. the grid does not fit in the available space of the first row, in this case I do not need to adjust the position of the second row of the table layoutpanel

2, the grid does not fill the available space of the first row. In this case I need to change the height of the second row in order to have the second element "just" below the grid without having a large white space between the grid and the second element.

I have tried to calculate the grid height as the sum of individual gridrow height but since the gridheight of a non visible row = -1 this does not work.

Therefore I would like to have the height of the grid as if all the rows were visible and the I can proceed with my redimensionning of the layoutpanel.

I am not sure my explanations are clear ..

 

Thanks in advance for any suggestion

Best regards

Pierre-Jean

 

pierre-jean
Top achievements
Rank 1
Veteran
Iron
 answered on 28 Apr 2021
6 answers
92 views

I would like to remove the Group option from the DataFilterAddNodeElement dropdown list when I'm adding to an existing group. Basically I only want to allow adding expressions to groups and prevent nested groups from being created. However, I still want to allow adding groups to the root node, just not to other groups. Is there a way to hide or disable the Group option in this scenario?

Thanks

Ole
Top achievements
Rank 1
 answered on 26 Apr 2021
1 answer
88 views

Hi Team,

   When click or double click in the field and the full number doesn't get highlighted on the RadMaskedEditbox.

 

Video Link : https://ttprivatenew.s3.amazonaws.com/pulse/suganya-gmail/attachments/16655538/TinyTake24-04-2021-01-52-14.mp4

We need to load the Phone number Textbox value as 713-000-0000 ("(###) ###-####") while loading but when i try to enter the value the RadMaskedEditbox value it should allow to type 18 characters ((###) ###-############)

 

Nadya | Tech Support Engineer
Telerik team
 answered on 26 Apr 2021
6 answers
333 views
Hi, I am trying to use RadPictureBox  (Telerik UI for WinForms R1 2021) to  view EMF file. Zoom is working but I can't zoom to cursor or, at least stay at the same area, during zoom both scrollbars are getting max value so the image scrolled to bottom right corner  
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Apr 2021
2 answers
95 views

Hi,

How can I prevent the DragDrop operation in the File Open and File Save dialogs?

Thanks

Steve

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Apr 2021
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
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?