Telerik Forums
UI for WinForms Forum
3 answers
225 views
Hi there

I want to use RichTextBox in confirmation dialog (using docx templates) and insert string and Images at corresponding bookmark position.

foreach (BookmarkRangeStart bm in radRichTextBox1.Document.GetAllBookmarks())
{
        switch (bm.Name) 
        {
           case 'OrderNo':
              //how to replace only content of bookmark leaving formating and bookmark
              break;
            ...
        }
}

Need help - thanks!
Julian Benkov
Telerik team
 answered on 05 Oct 2011
1 answer
130 views

Hi

Sometimes the following exception is thrown in our application:

Parameter is invalid.

ved System.Drawing.Region.GetHrgn(Graphics g)    
ved System.Windows.Forms.Control.GetHRgn(Region region)    
ved System.Windows.Forms.Control.OnHandleCreated(EventArgs e)    
ved System.Windows.Forms.Form.OnHandleCreated(EventArgs e)    
ved System.Windows.Forms.Control.WmCreate(Message& m)    
ved System.Windows.Forms.Control.WndProc(Message& m)    
ved System.Windows.Forms.ScrollableControl.WndProc(Message& m)    
ved System.Windows.Forms.ContainerControl.WndProc(Message& m)    
ved System.Windows.Forms.Form.WmCreate(Message& m)    
ved System.Windows.Forms.Form.WndProc(Message& m)    
ved Telerik.WinControls.UI.RadFormControlBase.WndProc(Message& m) i :linje 0    
ved System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)    
ved System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)    
ved System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 

No line of code is specified in this exception. One of our customer is using Citrix and this exception is more frequent there.

How can I solve this problem?

The exception is oftenly thrown while refreshing data in RadGridView, RadDatagridviewComboboxes and other controls. Actually I can not reproduce this exception on my machine but in the situation told by customer, we are refreshing data.

Telerik version used by application is v2011.1.11.419.

Any help would be appreciated.

Thanks

Regards

 

Jack
Telerik team
 answered on 05 Oct 2011
1 answer
68 views
hi everybody is there a way that we could loop to selected rows using two buttons button1 and button2, like for example i want the small arrow to point to the first selected row with document name f10_oct1_en.pdf, currently it is pointing to f36_may07_en.pdf, and each time i click the button it jumps to the next selected row which in my case if the arrow is on f10_oct1_en.pdf will go to f21_dec17_en.pdf, same thing will happen to the prev button only going backwards..
i have attached a png file on the thread so you could understand what i mean...
thank you very much...
Emanuel Varga
Top achievements
Rank 1
 answered on 05 Oct 2011
8 answers
98 views
I have used Telerik ASP.net AJAX and Reporting in the past.  I now have a project that seems to lend itself to WinForms, but my concern is that I would rather have it be a web application.  Here is what it needs to do: 
  1. integrate with a currently working classic asp web program  (not a problem as we already have a .net component doing this)
  2. have a bunch (25) of forms that the users will be filling out that will save the data to a database.  the forms are some yes/no questions, some fill in, and some drop down choices: pretty basic stuff just collecting data. 
  3. some users will only be viewing these forms and their data; need to have them open automatically in a pdf.
  4. in some cases, if the user answers a certain question with a Yes, we need to ask the user (probably with a popup box) if they want to do something, and we have to save that response to a separate database.
  5. would like to have some of the questions appear/disappear based on responses to other questions.
  6. need to be able to work offline and then update the database when they are connected at a later time

I would prefer that they don't have a standalone application that has to be installed.  That is my concern with using the WinForms.  Any advice would be appreciated.

Thanks, Amy
Amy
Top achievements
Rank 1
 answered on 04 Oct 2011
6 answers
682 views
I did some searching around, but couldn't find an answer to this.

I have a PageView with 2 tabs that I have set to use the Office2007Silver theme.  I have added images to both of the tab and while those look nice the text on the tabs is too small and I would like to increase it.

I have tried changing the font size in several places, but none of them change the font.

I tried directly in the properties of the PageView object. 

I also expanded the PageView Tasks and clicked "Edit UI Elements" because this section helped me change properties of buttons I'd applied a theme to.  I tried the PageViewLabelElements, StripButtonElements... eventually I changed the font size for every single element in this section, but nothing changed.

So where/how do I change the font size on a tab on a PageView object that has a theme applied to it?

/<evin
Kevin
Top achievements
Rank 1
 answered on 04 Oct 2011
1 answer
96 views
I am using telerik GridView to modify a Visual Studio extension sln. the Gridview has checkboxColumn, textColumn and ImageColumn. CheckboxColumn uses Telerik.WinControls.UI which is a ~7MB dll file. Adding a 7MB reference file within Visual Studio extension package  is not acceptable. Is there any other way I can use Checkbox column without referencing the large dll file.
Emanuel Varga
Top achievements
Rank 1
 answered on 04 Oct 2011
2 answers
139 views
Hi all,

I have to ask a newbie question:

I have a Gridview that displays Data from my Database and I already have the code for INSERT,UPDATE,DELETE..
But I have a TextBoxColumn there named Gender. In the database..it was a field that has Char(1) data type.
 I'll just have to put M or F into this field.

 I want to make this column into a ComboBox column that has 2 items.
Just Male and Female so that the user may not mistake in inputing data


I am a student and totally new to these controls
Thanks 
Ivan Petrov
Telerik team
 answered on 04 Oct 2011
1 answer
172 views
Hi,

How can I reduce the header row height when in the Details View mode? It is far bigger than it needs to be and I can't figure out which properties to change. Any help would be much appreciated!

Cheers,

Steven
Ivan Todorov
Telerik team
 answered on 04 Oct 2011
3 answers
148 views
i would like to setup a wizard to have a page right after the Welcome page that determines which of the next sets of pages would be "executed", then, returning to the "main" wizard execution.

basically, it's ... Welcome->option page-> ... branched pages ... ->common page1->common page2->finish.

for one of the branches, there are 4 pages, while in the other branch, there are 2 pages.  after the completion of either of the branches, clicking on the Next button would go to "common page1" and so on.  clicking on the Back button (from "common page1") would go back to the last page of the branch.

thanks,

pete.
Alexander
Telerik team
 answered on 04 Oct 2011
1 answer
262 views
Editing UI Elements and trying to code it does not have any effect on the RadDropDownList ddb_1.
The SELECTED item in the box is blue. Which is good. But all items in the list are still black...

ddb_1.DropDownListElement.ForeColor = Color.FromArgb(21, 66, 139);
ddb_1.DropDownListElement.ListElement.ForeColor = Color.FromArgb(21, 66, 139);
ddb_1.DropDownListElement.ListElement.ElementTree.RootElement.ForeColor = Color.FromArgb(21, 66, 139);

Please , help me to make list items in the list blue color.  Please see attached pictures.
Same problem with the treeview...
Ivan Petrov
Telerik team
 answered on 04 Oct 2011
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
Iron
Iron
Sergii
Top achievements
Rank 1
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
Iron
Iron
Sergii
Top achievements
Rank 1
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?