controls

Design time license failure in FIPS validated .NET framework

We use ComponentOne controls in our Winforms application for .NET 2.0 and we have a problem when we attempt to use it on FIPS validated platforms - the licx file seems to fail and the control creation fails and even the ComponentOne activation seems to fail. Is there a workaround for this ? ...

.NET DataGridViewLinkColumn flicker on hover on link

There's a flickering issue when using a DataGridViewLinkColumn. If you hover on a link, it gets redrawn with a flicker. Doublebuffering, or setting options like LinkBehavior: "NeverUnderline" doesn't seem to have any effect. What's causing it and can it be fixed ? ...

c# dynamic control names

hello I'm working with .NETCF framwork in c#, and I want to know if I can access the controls somehow like this: string field="txtName"; this.Controls[field]; or is this impossibile? ...

IE6 HTML control wrapping

Is there any way to prevent wrapping across controls in IE6? For example, I have a label and a single select box. The select box width is dynamic (depending on the content). I want the label to always be to the left of the select box. Right now the problem I am having is the select box drops below the label. I have tried using the <...

how to use multiple tab controls, and to be able to call a selected tab control with buttons.

Please I am trying to assign each button on the left its own Tab control. That is for example, when the Intake form button is pushed, it will have its own set of tabs (its own tabcontrols) am i supposed to place multiple tab controls on the artboard, or is there a way to programatically change the names of the tabs, and there contents, ...

ASP.Net MVC: Showing the same data using different layouts...

Hi guys I'm wanting to create a page that allows the users to select how they would like to view their data - i.e. summary (which supports grouping), grid (which supports grouping), table (which supports grouping), map, time line, xml, json etc. Now each layout would probably have different use a different view model, which inherit fr...

Web browser.navigate("www.somesite.com") Load page in window but Webbrowser.Document returns Null

Hi.. I am using Web browser control in a window form. Here i am navigating to some site with 1 parameter. It is loading the page into web browser but when i am looking for webbrowser.document to find some html tags so it is showing NULL for it. I want to find out All Anchor tags in webbrowse Loaded page. Following is my code. webChatP...

Recommended WinForms control for lots of read-only formatted text.

I`m working in a serial terminal project developed in VB.NET. I need to display a lot of formatted (color, font styles) text data in a read-only control (the incoming serial data). I don`t know if it's a good idea to use richtext control or a grid, or there's a better third party control? Thanks ...

How to change "area" of a control in DesignMode?

When I drag and drop a TextBox from the toolbox onto a WinForm, I can drag it around on the form as I like. Now I create a new class and inherit it from TextBox. I add a new property called CaptionLabel. When set to a value, I dynamically create a Label control, set its value and finally add the label to the TextBox' parent controlcolle...

C# .NET : Showing a simple list with a 32x32 icon column and a 2 line text column

I'm using .NET 2.0 with standard controls. I want to display a simple list with the following formatting: Column1 contains a 32x32px icon The second column contains 2 text lines: 1 Bold formatted text line 1 Non bold line Rows are separated by a dotted line (3px space, 1px dot, 1px height) What's the best way to do this ? .... e...

Diffrernce between BackgroundWorker.ReportProgress() and Control.BeginInvoke()

What is the difference between options 1 and 2 in the following? private void BGW_DoWork(object sender, DoWorkEventArgs e) { for (int i=1; i<=100; i++) { string txt = i.ToString(); if (Test_Check.Checked) //OPTION 1 Test_BackgroundWorker.ReportProgress(i, tx...

How can I add an event handler to an event by name?

I'm attempting to add an event handler for every control on my form. The form is a simple info box which pops up, and clicking anywhere on it does the same thing (sort of like Outlook's email notifier.) To do this, I've written a recursive method to add a MouseClick handler to each control, as follows: private void AddMouseClickHandler(...

.NET Setting TileSize.Width gives either scrollbar or blank space

When you set listView1.TileSize.Width = ListView.Width You get a horizontal scrollbar because the item is too wide. This happens until you subtract 4 pixels. When you do listView1.TileSize.Width = ListView.Width -4 you get a 5 pixel blank space, because the item is too narrow ??? What's going on here ? Is this some kind of evil ...

How can I dynamically clear all controls in a user control?

Is it possible to dynamically (and generically) clear the state of all of a user control's child controls? (e.g., all of its TextBoxes, DropDrownLists, RadioButtons, DataGrids, Repeaters, etc -- basically anything that has ViewState) I'm trying to avoid doing something like this: foreach (Control c in myUserControl.Controls) { if (...

Previous active control in javascript

Hi, I wanted to know how I could find the previous active control on a page. I have a couple of textboxes and a button, and when i am on a certain textbox and I click the button, I want to highlight that textbox. I have the highlight functionality covered, but I don't know how to find out which textbox to run the function on... Please ...

How can i create a submitable form that contains dynamically added and removed controls

Hi All, I am trying to create a form that is made up of controls with values that represent an entity with multiple child entities. The form will represent a product with multiple properties where the user will then be able to create options with multiple properties which in turn be able to create multiple option-items with multiple pr...

Rule control to windows form (word style)

There are any control who can draw a rule regardless of the screen resolution? e.g. I wanna draw some text box 2 inches left and 3 inches down, and i wanna put the rules to guide the user. Or any idea to develop something like this? ...

Recommendations for C# controls that can be used to create a hierarchical list of prioritised items?

I need to be able to display and edit a hierarchical list of tasks in a C# app. It can either be a Windows form app, or ASP.NET. Basically, I want similar behaviour to the way Microsoft Project handles tasks. The control would need to: 1) Maintain a list of items made up of several fields 2) Each item can have a number of children (a...

What's the "Find Result" Control Visual Studio Integrated?

Hi, I am developing a simple Windows Application in C# and Visual Studio 2005. I need a search result control - just like visual studio integrated by itself. After I double click each line to trigger the individual event. I tried multi-line textBox Control, but whole the box can only support one click event. thank you. ...

PowerPoint-like resizable picture and text boxes as .NET controls

I'm looking for a way to implement a surface (in C#, Windows Forms) where the user can add pictures and text in resizable boxes (with resize handles) - like in PowerPoint. Does anyone know a ready-made control (preferably free) that can do that? This is what I mean: Thanks ...