Archived Months
November 2003
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > dotnet windows forms controls > october 2005

Filter by week: 1 2 3 4 5

IComponentChangeService and ControlDesigner
Posted by kevin cline at 10/31/2005 1:12:50 PM
I am attempting to write a custom designer that uses the IComponentChangeService, but am unable to obtain the IComponentChangeService via the following code: class Control1Designer: ControlDesigner { public Control1Designer() { Logger.Log(); } pub...more >>


How to tell when control loses focus
Posted by JezB at 10/31/2005 12:00:00 AM
I have a user control that I want to display slightly differently if it has input focus. Trouble is, I can't see any event available (like FocusChanged) to tell it when focus is gained and then lost again (upon which I want to force repainting). The same is true for any focusable Control (i...more >>

Licence needed for VB.NEt Resource Kit
Posted by Milkus at 10/31/2005 12:00:00 AM
Hi All, Coming Late to the VB.NET Party, I have just heard about VB.NET Resource Kit. I have downloaded and installed it, but am need of a Component One Licence key. The free offer has ended, but I was hoping someone could oblige me. Thanks Milkus ...more >>

Changing the colour of the border on a Panel
Posted by Wayne Gibson at 10/31/2005 12:00:00 AM
Hi, Was wondering if anybody had come across this problem. I wanted to change the colour of the border for panel. So I decided to overload the panel class as follows: public class RSPanel : System.Windows.Forms.Panel { private System.Drawing.Color mBorderColour = System.Drawing.Color...more >>

Draw RichTextBox Background?
Posted by Özden Irmak at 10/30/2005 8:36:46 PM
Hello, Does anybody have any code snippet to draw RichTextBox Background, preferably C#? Thanks, Özden ...more >>

Controls do not scroll well within the parent container
Posted by JezB at 10/30/2005 6:54:07 PM
I've built a user control that includes an image. I have a scrolling panel that contains a number of these controls, but when I scroll the panel the controls flicker terribly as the Paint method gets continually called. If I use native controls such as PictureBox controls, the images scroll ...more >>

Compact Framework and ControlDesigner
Posted by kevin cline at 10/28/2005 1:27:01 PM
Can someone give me step-by-step instructions for associating a custom editor and designers with controls in a WinCE5.0 Control Library? At http://www.mooseworkssoftware.com/VS2005%20Control.htm I found this: "...we set the Editor attribute of the class to that editor as shown below." <Ed...more >>

Copy/Paste from Datagridview
Posted by Glen at 10/28/2005 8:42:39 AM
Can anyone point me to an article/example of how to do a copy from a datagridview? I have a datagridview in which a user can select a block of cells (not necessarily complete rows). I would like them to be able to copy this info by either a right-click (context menu) or CTL-C. Any help wou...more >>



custom event
Posted by Victor Paraschiv at 10/28/2005 12:00:00 AM
I create a custom event as follows: public delegate void delegMarkReceivedMessege(char ch); public event delegMarkReceivedMessege MessageReceivedEvent; and I want to fire it. I use MessageReceivedEvent('A'); and I get a nullreferenceexception. I can see by myself that the...more >>

A blinking text
Posted by Victor Paraschiv at 10/28/2005 12:00:00 AM
I need to make a text blink. I thought of a System.Threading.Timer and an Invoke function but this approach gives me headaches. Is there a better option ? Victor...more >>

ComboBox SelectedIndexChanged vs. SelectedValueChanged
Posted by Stephen Boutros at 10/27/2005 2:26:29 PM
I'm sure I'm missing something, but what's the difference between these two events? Both of them always fire one after the other and I can't find a case where one would fire and not the other. I tried loading a ComboBox with a list of items, some of which had the same value, and I expected ...more >>

Transparency on icon forms designer
Posted by Carl at 10/27/2005 12:00:00 AM
Hi, I have a component, which have an icon (converted from the bmp files that comes with VS2005), it is correctly displayed. The problem occurs when the component (non visual, like the menu strip) is placed on the form (the area below the form in the IDE). The "transparent" color is not tra...more >>

Background colors in RichTextBox
Posted by brian at 10/26/2005 8:49:02 PM
Hi, I've been playing with RichTextBox and rtf format for a little while.. I've learned how to insert a color table in the head of my document and I've learned the mark-up for coloring text... So, let's say I have a header and color table like this: {\colortbl;\red255\green0\blue0;\red0\gr...more >>

Multi Select In Treeview
Posted by themoosman at 10/26/2005 3:58:03 PM
Does the tree view in VS 2005, have mutli select capability? If not does anyone know of any alternatives....more >>

How do I clear an image from a Picture box
Posted by Arne at 10/26/2005 1:28:05 PM
How do I clear an image from a Picture box? ...more >>

Adding extra entries to the ContextMenu on a TextBox
Posted by Dave Moran at 10/26/2005 8:48:10 AM
How do I add extra entries to the ContextMenu on a TextBox? I want to retain the existing 'standard' menu entries and append one or two extra entries. Dave...more >>

Message Box Display Problem
Posted by a_ryan1972 at 10/26/2005 7:22:09 AM
I have Visual Studio .NET 2003 installed on my desktop and on my laptop. I didn't get any errors during either installation. I'm trying to insert a message box unsing the Msgbox control. On my laptop, when I click the button, I get a blank message box, but on my desktop, I get a message b...more >>

Overriding Default Button Text at Design-Time
Posted by Glen at 10/26/2005 7:10:12 AM
Could someone please tell me how to override the default text when placing a custom control on the design surface? I have created a button control that inherits from System.Windows.Forms.Button. The only things I want to happen at design time is that the button is sized to specific size, an i...more >>

How to paint a shadow?
Posted by JezB at 10/26/2005 12:00:00 AM
I can't find a good way to draw a nice shadow behind a rectangular object. I can of course display a light grey rectangle behind the rectangle, offset by a few pixels, but this just does not look very professional. Instead I want a grey shadow that is "blurred" at the edges. I can't prepare an...more >>

Datagrid - end edit?
Posted by John J. Hughes II at 10/26/2005 12:00:00 AM
I have a derived data grid which shows a custom control. This works fine. When the something changes it calls ColumnStartedEditing which shows the pencil. This works fine. If the user moves to the next row or column the pencil leaves and the data is saved. This works fine. I have been t...more >>

Need help to use Windows Forms in Internet Explorer.
Posted by Moohanan at 10/25/2005 11:00:03 PM
I would like to know as How to use the Windows Applicaion into Internet Explorer(Web) without writing any new code. I would like to know weather it's possible or not. Please help me. It's very urgent....more >>

Custom TreeView Control Form Designer
Posted by nullmind NO[at]SPAM gmail.com at 10/25/2005 10:14:08 PM
I have extended the TreeView control: public class PropertyTreeView : TreeView I want to take advantage of the form designer's capabilities but it complains that it's not a proper user control, etc. I can't subclass UserControl because I need to maintain all of the TreeView's methods, pro...more >>

window (form) minimum size
Posted by Raj Chudasama at 10/25/2005 2:50:59 PM
i have an app in for which i have a Size set to width = 735 and height = 574. I want to set this as the minimum size of the window and no limit for the max. However, when i set the above size as the minimum size the .net framework subtracts atleast 24 pixels and sets the minimum to 735 x...more >>

Add a node in the middle of a Treeview
Posted by Arne at 10/25/2005 12:06:03 PM
I load my Treeview with nodes at startup time. My nodes are five levels deep. On the deepest level I have a contect menu which should allow the user to add nodes in the middle of the treeview. How do I add nodes in the middle of a treeview?...more >>

Attaching Property pages to Custom Control
Posted by Gaurav Bhardwaj at 10/25/2005 11:24:01 AM
Hi, I want to create a custom control to be used in a different application. Is there any way to attach property pages to custom control as we can do in ActiveX controls? I want to create a control which can be dragged and dropped on an application. When we double click the control, a property...more >>

Access To Controls
Posted by Terrance at 10/25/2005 10:41:05 AM
Hello, I have a problem that I'm trying to solve in VB.NET but having any success. I have a user-defined control that is button. When the user clicks this button it changes the forms title bar to the appropriate title; for example, when the user clicks the ADD button the title in the form says...more >>

Tabcontrol with just images on the tabs doesn't centre the images
Posted by Frederik Mangelsdorf at 10/25/2005 7:20:09 AM
Dear all, Does anyone know a quick way to make the tabcontrol display tabs without text but just images, to show these images in the center of the tabs. I've found that the control always reserves space on the right hand side to allow for a text title as well. As always any relies are m...more >>

Windows Forms with Rounded Corners
Posted by eXtreme at 10/24/2005 9:32:40 PM
How do I create my own windows form that has rounded corners on the outside of the windows instead of corners. I've seen skin programs that do this and believe I need to use GDI+ to do it. I would like to learn how to do this, but need a pointer to a book or samples that demonstrate how to...more >>

VS.NET 2003, WinForm, Transparency, Gradient Background, and Label
Posted by eXtreme at 10/24/2005 9:31:10 PM
What is the best way to make a label transparent when it is sitting on top of a gradient backgroun or gradient image streched in a picturebox control? Do you know of any thirdparty controls that makes this easy? Thanks, ...more >>

DataGridView, Custom Columns
Posted by Wayne Gibson at 10/24/2005 6:20:56 PM
Hi, I'm using the DataGridViewTextBoxColumn and I'm trying to find a way to detect when the a key is pressed whilst it is being edited. But there doesn't appear to be any events for this.. So I was wondering if anybody had written any custom columns to catch these events. Thanks Way...more >>

Extending TreeView to include Subscript and Superscript Text
Posted by Mike Burr at 10/24/2005 3:58:10 PM
Hi All, I am writing a program that performs some simple chemical formula analysis, in an effort to improve the UI, I was hoping to extend the Treeview Control (.NET Framework 2.0 Windows Forms) to allow superscript and subscript text in the treenode names. Any help with this would be greatly...more >>

Deployment of Windows User Controls for Web Pages
Posted by Wayne Gibson at 10/24/2005 11:59:40 AM
Hi, Was wondering if anybody could point me in the right direction. I'm looking at developing a Windows User Control using Visual Studio .NET 2005 in C#. The user control is to be used on a web page to replace an existing Java applet. One of the main reasons for switching from Java to th...more >>

Compact framework DataGrid how do I set the focus to a specific cell?
Posted by jamie at 10/24/2005 10:15:58 AM
I have a pocket PC application and I effectively need to do lots of data entry in something like a spreadsheet. I added a datagrid but you can't directly edit the cells in the compact framework. So I added a row of textbox's to the top. Now data is entered in the text boxes which is then a...more >>

Image Editor Control
Posted by JT at 10/24/2005 7:20:15 AM
Hi all, I am looking to build, or preferably buy, a control that can be placed on a Windows Form that will allow the user to load, edit, and save images at runtime. The control would have the following characteristics: 1. Be hostable by Windows Forms. 2. Allow me to set a background imag...more >>

Select a row in a datagrid
Posted by Arne at 10/24/2005 5:35:18 AM
How can I catch the event when someone clicks on a row in a datagrid? I need to find cell 5 in a datagrid row which holds my key....more >>

How do I set column widths in a datagrid?
Posted by Arne at 10/24/2005 5:22:01 AM
My table styles blows up Dim dgts As DataGridTableStyle = New DataGridTableStyle dgts.MappingName = "composition" CatCompositionGrid.TableStyles.Add(dgts) dgts.GridColumnStyles(0).Width = 75 dgts.GridColumnStyles(1).Width = 25 dgts.GridColumnStyles(2).Width = 25 dgts.GridColumnStyles(3).Width...more >>

Mdi Flickering problem
Posted by Imran at 10/22/2005 11:52:47 AM
Hi , I have an mdi applicaton. When user switch between child forms they are flickering like crazy! When a Child Form loads, you can see it in it's original size (the size from Design-time) then all this flickering while maximizing . Some times after the flickering it shows multiple control bo...more >>

Clearing A PictureBox
Posted by nbohana at 10/21/2005 2:36:04 PM
I have a PictureBox on a windowsform. I scroll through the data using 'Next/Previous'. Some of the data does not have images associated with the data. I would like to clear the PictureBox before scroll. Can someone tell me how to do this? -- Norm Bohana...more >>

Formatted Datagrid
Posted by Arne at 10/21/2005 9:53:02 AM
ow do I format data columns in a datagrid? I would like to set the width of each column....more >>

Datagrid
Posted by Arne at 10/21/2005 9:35:12 AM
How do I catch a select event in a datagrid? How do I access the row after a click?...more >>

Actual alpha-blended controls?
Posted by VijayS at 10/20/2005 11:33:41 PM
Hi, We all know that transparency is cool, but I'm not having any luck creating a UserControl or button that is truly transperent, so that everything behind is visible in the regions I choose. I made a sprite animation package (I think there's an article somewhere on the net) that used colo...more >>

ScrollableControl 16 bit AutoScrollPosition limit .Net v1.0
Posted by Özden Irmak at 10/20/2005 10:01:39 PM
Hello, One of the controls I develop is derived from ScrollableControl... I recently discovered that ScrollableControl in .Net Framework v1.0 accepts 16 bit scroll value instead of 32 bit like in v1.1. I would like to ask if anybody knows a workaround or fix for that issue? For some re...more >>

Treeview events
Posted by Arne at 10/20/2005 6:14:31 AM
A treeview control as 60-70 events to pick from. I don't which one is the best to use. Private Sub CatalogTree_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles CatalogTree.Click CurrentNode = CatalogTree.SelectedNode() The code above gives me the wrong node when I single ...more >>

Scrolling and Toolbar problem
Posted by Fiaz Ali Saleemi at 10/19/2005 10:55:33 PM
Hi All I have a form which contains Toolbar at the top. Form is scrollable when I scroll the form Toolbar also get scrolled and disappeared. What would be the best solution to overcome this issue. Any help will be appreciated. Thanking in advance Fiaz Ali Saleemi ...more >>

Change focus
Posted by Mervin Williams at 10/18/2005 8:18:07 PM
I have a form with a datagrid and two buttons on it. Upon opening the form, focus goes immediately to the datagrid. How do I set focus onto one of the buttons. I've tried to use "btnSave.Focus()", but to no avail. Please help. Mervin Williams ...more >>

Locked controls
Posted by Arne at 10/18/2005 7:06:02 AM
Is there a way to associate a label control with a textbox? I need to find an easy way to align controls....more >>

Listbox problem
Posted by niclas at 10/18/2005 2:23:09 AM
Hi all! I want to do the following: 1. Get a list from a table into the listbox, with a displaymember and a valuemember. 2. Then I want to add one row; displaymember = "New email job" valuemember = 0 Does anyone know how I can do this? Thanks all, Niclas ...more >>

Available values for some object type property in custom component
Posted by Korzh.com support at 10/18/2005 12:00:00 AM
Hello, The situation: I have two components ComponentA and ComponentB. public class ComponentA : System.ComponentModel.Component { private ComponentB b; public ComponentB BRef { get { return b; } set { b = value; } } . . . . . . } public class ComponentB :...more >>

Rectangles w/ LineCap.Round
Posted by MikeY at 10/17/2005 3:00:54 PM
I'm getting lost in my code so hopefully someone can help me out of this maze. I've read the previous post on 'Round Borders Rectangles' and viewed the links. What I'm trying to do is replace an existing form button with a rectangle button with rounded ends. My problem is that I can replace...more >>

Basic Control Question Please. Dont forward me To ASP.NET Security Forum
Posted by ChristianProgrammer at 10/17/2005 2:00:37 PM
We Have a solution with some odd 19 or so projects one of which is a ASP.NET E-Commerce web site. The remaining projects support same in some way or another. Customer Support, Order Tracking,, whatever... I created a Wonderful Custom Data Grid Control for Win Forms (we write in C#) base...more >>


DevelopmentNow Blog