Telerik Forums
UI for WinForms Forum
4 answers
166 views
I'm using the RadRibbonBar with VB 2008.net express edition. I've followed the extra steps to get the ribbon bar to appear in the toolbox and everything seems to be OK. However, recently I find that when I create a new project the ribbon bar works fine until I save the project. Then the application won't start - nothing has changed since the last test other than saving the project. I've tried this out several times, changing different things, and have shown fairly conclusively that it is the saving of the project that causes the problem.

My test case was to create a new project, add the ribbon bar to the form, run the program. All fine. Save the project, run the program. Failed. All default names were left alone, no changes were made to the ribbon bar or the form.

This is the error that I get:

InvalidOperationException was unhandled

An error occurred creating the form. See Exception.InnerException for details.  The error is: That assembly does not allow partially trusted callers.

What can I do to fix this? Any suggestions greatfully received.

Thanks,
Martin.
Nikolay
Telerik team
 answered on 21 May 2008
1 answer
143 views
I can't find any control that works like the ASP.NET Schedule control on the Win32 platform. Am I blind og doesn't it exist?

Best regards
Dan
Boyko Markov
Telerik team
 answered on 21 May 2008
1 answer
146 views
A quick question about standard control properties;

I have just started using the Winforms control set and started throwing some controls onto the forms expecting to have little problem when swapping out standard controls (buttons, check boxes) etc.  I was surprised to find that the checkbox doesn't have a checked property??  Obviously I should be using IsChecked, but why the deviation from having the standard properties.  I assumed that I should be able to simply swap out the basic UI controls without issue.  Am I missing something very obvious here??

Thanks in advance.
Georgi
Telerik team
 answered on 20 May 2008
1 answer
186 views
The SortChanging-Event does create an wrong handler:

It should be (original documentation):
Private Sub radGridView1_SortChanging(ByVal sender As Object, ByVal e As SortChangingEventArgs)

It is (my project):
Private Sub rad_grid_SortChanging(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.GridViewCollectionChangingEventArgs) Handles rad_grid.SortChanging

ergo, there no methods like e.NewSortExpression, etc.

I use the Version 6.0.2!

regards
Michael
Jordan
Telerik team
 answered on 20 May 2008
1 answer
254 views
I have a RadGridView which I clear the rows from, then add 5 or so records.  The bottom border is missing though...I can see the vertical column lines, but nothing at the bottom...is this a bug?

Screenshot
Nikolay
Telerik team
 answered on 19 May 2008
2 answers
114 views
I have used the Q3 2007 RADdatetimepicker on a windows form in my project. When I upgraded to Q1 2008, the form shows the following error message at design time:

"Value is lower than the minimum available value"

How can I resolve this error?
Boyko Markov
Telerik team
 answered on 19 May 2008
1 answer
152 views
I have a winforms application correctly displaying data from a dataset.

When a user double clicks on a row it opens a document associated with that row - I want the row to then be highlighted (ie create a border around it) so that the user knows they have viewed that item.

the code i'm using for this is:

 dg2.Rows(dg2.SelectedRows(0).ViewInfo.CurrentIndex).VisualElement.BorderColor = Color.Blue
        dg2.Rows(dg2.SelectedRows(0).ViewInfo.CurrentIndex).VisualElement.BorderColor = Color.Blue
        dg2.Rows(dg2.SelectedRows(0).ViewInfo.CurrentIndex).VisualElement.BorderBoxStyle = Telerik.WinControls.BorderBoxStyle.OuterInnerBorders
        dg2.Rows(dg2.SelectedRows(0).ViewInfo.CurrentIndex).VisualElement.DrawBorder = True

this works fine - until i use the scroll bars - the highlights stay in the same place visually - but this now highlights the wrong items.

Help please......
Jack
Telerik team
 answered on 19 May 2008
4 answers
168 views
With the Q3 2007 this lines works

        For Each column As Telerik.WinControls.UI.GridViewDataColumn In RadGridView.MasterGridViewTemplate.Columns
            column.Filter.Function = Telerik.WinControls.UI.GridKnownFunction.Contains
        Next

but with the latest version i obtain the error
Error    1    'Function' no es un miembro de 'Telerik.WinControls.Data.FilterExpression'.
(Function is not a member of Telerik.WinControls.Data.FilterExpression)

Sorry for my english, i'm spanish.

Jordan
Telerik team
 answered on 17 May 2008
3 answers
299 views
Hi,
    if I try to cancel a delete action in the RadGridView, I got a execption error.

The problem appear in the Option dialog of the radRibbon. In this dialog I got a radGridview, if something are deleted, I check if I can delete it. If not a set the e.cancel = true. If e.cancel=true the system give me this error:

System.ArgumentOutOfRangeException was unhandled  
  Message="L'index Ã©tait hors limites. Il ne doit pas Ãªtre négatif et doit Ãªtre inférieur Ã  la taille de la collection. Nom du paramètre : index" 
  ParamName="index" 
  Source="mscorlib" 
  StackTrace:  
       Ã  System.Collections.ArrayList.get_Item(Int32 index)    Ã  Telerik.WinControls.UI.GridViewInfo.DeleteRow(GridViewDataRowInfo[] rows)    Ã  Telerik.WinControls.UI.GridTableBodyElement.ProcessCmdKey(Keys keyData)    Ã  Telerik.WinControls.UI.RadGridView.ProcessCmdKey(Message& msg, Keys keyData)    Ã  System.Windows.Forms.Control.PreProcessMessage(Message& msg)    Ã  System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)    Ã  System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)    Ã  System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FPreTranslateMessage(MSG& msg)    Ã  System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)    Ã  System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)    Ã  System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)    Ã  System.Windows.Forms.Form.ShowDialog(IWin32Window owner)    Ã  System.Windows.Forms.Form.ShowDialog()    Ã  Progest.ProgestVB.frmMain.RadRibbonBar1_OptionsButton_Click(Object sender, EventArgs e) dans C:\DotNet_WS\Progest\Dev\Progest\Forms\frmMain.vb:ligne 191    Ã  System.EventHandler.Invoke(Object sender, EventArgs e)    Ã  Telerik.WinControls.RadItem.OnClick(EventArgs e)    Ã  Telerik.WinControls.UI.RadButtonItem.OnClick(EventArgs e)    Ã  Telerik.WinControls.RadItem.DoClick(EventArgs e)    Ã  Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)    Ã  Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)    Ã  Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)    Ã  Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)    Ã  Telerik.WinControls.RadElement.DoMouseDown(MouseEventArgs e)    Ã  Telerik.WinControls.RadControl.OnMouseDown(MouseEventArgs e)    Ã  System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)    Ã  System.Windows.Forms.Control.WndProc(Message& m)    Ã  System.Windows.Forms.ScrollableControl.WndProc(Message& m)    Ã  Telerik.WinControls.RadControl.WndProc(Message& m)    Ã  Telerik.WinControls.UI.RadPopupControl.WndProc(Message& m)    Ã  System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)    Ã  System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)    Ã  System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)    Ã  System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)    Ã  System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)    Ã  System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)    Ã  System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)    Ã  System.Windows.Forms.Application.Run(Form mainForm)    Ã  Progest.ProgestVB.Program.Main(String[] args) dans C:\DotNet_WS\Progest\Dev\Progest\Main.vb:ligne 17    Ã  System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)    Ã  System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)    Ã  Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()    Ã  System.Threading.ThreadHelper.ThreadStart_Context(Object state)    Ã  System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)    Ã  System.Threading.ThreadHelper.ThreadStart()  
  InnerException:  

I try to use e.cancel=true in the validating event and all work good. I have trouble only in the deleting event.

The exception are on the line:  opt.ShowDialog()

        Private Sub RadRibbonBar1_OptionsButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadRibbonBar1.OptionsButton.Click  
            Dim Opt As New dlgOptions  
            Opt.ShowDialog()  
            Opt.Dispose()  
        End Sub 

here the deleting function:
        Private Sub RadGridSegments_RowDeleting(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.RowDeletingEventArgs) Handles RadGridSegments.RowDeleting  
            If oSegment.PeutEffacer(e.Row.Cells("ID").Value) = False Then 
                MessageBox.Show(RM.GetString("dlgConfig_EffSegment"), "", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)  
                e.Cancel = True 
            End If 
        End Sub 

any suggestion?
Jack
Telerik team
 answered on 17 May 2008
3 answers
177 views
Ok, so I have the trial for the Q1 2008 Winforms and I would like to test out the desert theme...actually...any theme would be nice.

I create a new radform, set the theme to Desert and in the designer it looks great. I run it...everything goes back to plain.

If I choose other themes most of them don't even change from the default. The few that do still don't show anything at runtime.

What am I missing?

David
Peter
Telerik team
 answered on 17 May 2008
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
ScrollablePanel
DataEntry
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
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?