Telerik Forums
UI for WinForms Forum
3 answers
142 views
I have an issue with loading forms in the Dock

When I use MDI they load poroperly. On being told to drop the MDI overhead the forms load off to the bottm right of the screen
Please help what is wrong with the code. 

MDI loader
Shared Sub dockMDIForm(ByVal mydockableform As Form)
  
        'Check if form already in Dock
        Dim hw As HostWindow = frmMain.radDockMain.GetHostWindow(mydockableform)
  
        If Not hw Is Nothing Then
            'Just show the window
            frmMain.radDockMain.ActiveWindow = hw
        Else
  
            'Create a new instance of the Form & add to dock
            mydockableform.MdiParent = frmMain
            mydockableform.Show()
  
            'frmMain.radDockMain.DockControl(mydockableform, DockPosition.Fill, DockType.Document)
            hw = frmMain.radDockMain.GetHostWindow(mydockableform)
  
            frmMain.radDockMain.ActiveWindow = hw
  
        End If
  
    End Sub



Document loader
Shared Sub dockForm(ByVal myForm As Form)
  
        myForm.FormBorderStyle = FormBorderStyle.None
        myForm.TopLevel = False
        myForm.WindowState = FormWindowState.Maximized
  
        'Check if form already in Dock
        Dim hw As HostWindow = frmMain.radDockMain.GetHostWindow(myForm)
    
        If Not hw Is Nothing Then
            'Just show the window
            frmMain.radDockMain.ActiveWindow = hw
        Else
             'Create a new document
            Dim docWindow As DocumentWindow = New DocumentWindow()
            docWindow.Controls.Add(myForm)
    
            'add to Dock
            With frmMain.radDockMain
                .AddDocument(docWindow, DockPosition.Fill)
                .ActiveWindow = docWindow
            End With
  
            docWindow.DockTabStrip.PerformLayout()
        End If
    End Sub
Nikolay
Telerik team
 answered on 24 Sep 2012
2 answers
290 views
I've been playing around with RadDock and not been able to get my head around this control...

Here is my scenario( bit simplyfied):

I've got a RadDock, which I add usercontrols to:

UserControlPlugInDemo ucpid = new UserControlPlugInDemo();
DockPosition dockTo = DockPosition.Fill;
this.radDock1.DockControl(ucpid, dockTo, DockType.Document);

Then, when a user click on a button in one of these, to open a map, I add a new tab containing map with DockPosition.Right.
This works fine.

But next time I add a usercontrol, I want it to Fill(like merging Map with the others tabs), but it adds to the active DockWindow, either o the right or left.

Any tip would be apreciated!
Nikolay
Telerik team
 answered on 24 Sep 2012
1 answer
331 views
OK,

What I thought would be simple is beginning to trouble me.  I've read the documentation and what I gather is that you load / import the HTML formatted text into a RadDocument and then set the RadRichTextBox Document property to equal that of the RadDocument you created.

Here is my simple code.
(This code works, but what I see is not the formatted text FROM the HTML string, but I'm just seeing the HTML string itself)... (Please Help)

//HTML Import
 
HtmlFormatProvider msgHTML = new HtmlFormatProvider();
RadDocument tempDoc = msgHTML.Import(this.scMsg.messageText.ToString());
this.msgContent.Document = tempDoc; // msgContent is the instance of RadRichTextBox

As I said, this compiles but instead of me seeing the formatted view, all that comes up is the Actual HTML code.

Thanks and I hope someone can help,

Cedric
Svett
Telerik team
 answered on 24 Sep 2012
1 answer
164 views
Hi

How can i add a custom papersize to papersizes ?
or use ChangePageSize t0 600*300 pixels

Best regards 


Stefan
Telerik team
 answered on 24 Sep 2012
2 answers
129 views
Hi all, i am working with RadTreeView control and want to get selectedNode when some was selected. I know that it is possible to get this node by using radTreeView.SelectedNode property, but i wanted to data bind this property and work directly with bound logic object. My question, is it possible to data bind selectedNode property in winforms and if yes, how can i do this ?

Thank in advance :)

Iliya
Iliya
Top achievements
Rank 1
 answered on 23 Sep 2012
1 answer
63 views
Hi all.

Currently I'm working on a planning module. To display the different shifts of the employees I'm using recurring appointments.

In the Timeline view I would like to color the background of the scheduler cell instead of displaying the recurring appointment. I'm trying to get this done in the AppointmentFormatting event, because that's where I have all the information I need to achieve this. But I can't figure out how to get the CellElement of that day. 

So is there a way of getting a cell element for the appointment?
Ivan Todorov
Telerik team
 answered on 21 Sep 2012
1 answer
141 views
Hi All,

I have Treeview in my project with "multiSelect" property to true. I have enable drag and drop for my Treeview. But my issue is, before drag and drop the node I need to click the node to select unlike windows file system you can just drag and drop particular file without first selecting it.

When I take mouse hover to node (which is not selected) and push and hold the left button and trying to drag, it will just select the node and not dragging the node.

Please help me to find out what wrong with that?

Thanks
Svett
Telerik team
 answered on 21 Sep 2012
1 answer
134 views
Hi All,

I have treeview with drag and drop enabled and also set the "multiSelect" property to true to select multiple node while drag. I need to show no. of selected nodes to drag like in windows file system while doing drag and drop operation.

Thanks,
Svett
Telerik team
 answered on 21 Sep 2012
8 answers
206 views
Hello,

we are just evaluating the performance of the telerik rad-controls for a rather large migration project (vb6 to VS2008, > 1.500.000 lines of code)and played around a little bit with the test version.

Concerning the RibbonbarControl:

  • Is it possible to automatically let the description text of a start menu item (e.g. done in excel or word) wrap to several lines?
  • We tried to set the font property of a start menu's sub-menuitem different to the description text, but it won't get applied (namely: Text Font is Bold, Description Font non bold). Would that be possible?

(Like it is done in Microsoft Excel, when you open the save sub-menu. You see that every menu item there is bold and the description is non bold. The description text on top of that gets wrapped if it doesn't fit in the line. This is essential behaviour for a ribbon bar's start menu, isn't it?)

Thanks,

Klaus

Jack
Telerik team
 answered on 21 Sep 2012
1 answer
60 views
Hi,

We are using telerik winforms Q3 2009 SP1. The issue happens when the user continuously using the product for long hours - after 4 hours.

When they are continuously using it, the system hangs and throws 'Out of Exception' Error. All the controls get highlighted in orange color.

As it is due to memory exception error, we even tried to minimize the memory in each and every call by doing the following.

  public static void minimizeMemory()
        {
            GC.Collect(GC.MaxGeneration);
            GC.WaitForPendingFinalizers();
            SetProcessWorkingSetSize(Process.GetCurrentProcess().Handle, (UIntPtr)0xFFFFFFFF, (UIntPtr)0xFFFFFFFF);
        }
        [DllImport("kernel32.dll")]
        [return: MarshalAs(UnmanagedType.Bool)]
        private static extern bool SetProcessWorkingSetSize(IntPtr process, UIntPtr minimumWorkingSetSize, UIntPtr maximumWorkingSetSize);

But, it doesn't solve the issue.

As we are in the production, we need your immediate reply on this.

Thanks in Advance.
Nikolay
Telerik team
 answered on 21 Sep 2012
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)
Chart (obsolete as of Q1 2013)
Form
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
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
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
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
Callout
ColorBox
PictureBox
FilterView
Accessibility
NavigationView
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?