Groups | Blog | Home


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 > march 2005

Filter by week: 1 2 3 4 5

DataGrid
Posted by yopy k via .NET 247 at 3/31/2005 9:00:38 PM
How to set up row number or column number in DataGrid ? For example, i want grid to have 2 columns and 2 rows. Also how to remove fixed column ? Thank You ----------------------- Posted by a user from .NET 247 (http://www.dotnet247.com/) <Id>9B8J8MnLT0yQCcQZQT30fw==</Id>...more >>


ShowMessage doesn't work
Posted by Jon Gabel at 3/31/2005 6:21:51 PM
I can't seem to make ShowMessage work in my application. I am using the sample code in VS 2003: using System.Windows.Forms.Design IUI Service UIservice = (IUIService)this.GetService( typeof( System.Windows.Forms.Design.IUIService ) ); if( UIservice != null) {UIservice.ShowMessage("M...more >>

How to detect CtrlKey is pressed and an arrow key also
Posted by RD at 3/31/2005 12:01:07 PM
Pressing Ctrl key and down arrow shortly thereafter in a textbox, anyone can tell me how? Can detect one key down but not combination of both. Any help would be appreciated RD ...more >>

Capturing change to TextBox
Posted by JezB at 3/31/2005 11:04:30 AM
I want to simply capture changes to a TextBox and perform some processing when the user has edited the text. The TextChanged event fires even while the user is editing the text, but I only want to perform my validation when the user finished editing the text and moves off the field (tab, en...more >>

System.Windows.Forms.MonthCalendar
Posted by Siu at 3/31/2005 5:17:03 AM
Hi, does exist a free alternative of the System.Windows.Forms.MonthCalendar window control?? Thank you...more >>

How to add direct inherit control(not UserControl) to toolbox
Posted by maxixi at 3/31/2005 4:21:49 AM
Hi, My controls inherits from System.Windows.Forms.ComboBox, After i build the project, i cannot find it on the toolbox. I find the toolbox automatically adds usercontrols. Why not inherits controls? Maxixi ...more >>

Hover text for a DataGrid after Sort
Posted by endymion.keats NO[at]SPAM gmail.com at 3/30/2005 7:57:20 PM
I am working on a datagrid with a lot of columns of data. I would like to be able to freeze the initial columns (Name) like in Excel, but that appears to be too complicated. So what I am doing instead, is based on the row the user is currently Mouseing over on the datagrid, I do hoverText wit...more >>

ListView changes scroll position when it shouldn't
Posted by Aaron Pfeifer at 3/30/2005 4:20:38 PM
So here's the scenario: I've got 2 ListViews, one above the other. These are inside of a ScrollableControl. When the 2 ListViews are large enough, they cause the ScrollableControl to display a vertical scrollbar. The problem comes in when I change the focus from one ListView to another. I...more >>



CheckedListBox won't check!
Posted by Marcos Stefanakopolus at 3/30/2005 3:42:36 PM
I have a CheckedListBox control whose DataSource is bound to an ArrayList. I'm trying to persist the checked state of the items in the list box across invocations of my application. Serializing the data to disk when the application closes works just fine. However, when I try to re-set the ...more >>

RichTextBox refreshing not occurring
Posted by Steve Teeples at 3/30/2005 9:37:05 AM
I have a RichTextBox control in a C# application. I am going through a loop that spawns processes and outputs data to the richtextbox before and after each spawn occurs. The odd thing is is that the rich text box is not being updated till after the looping of spawned processes occurs. I'v...more >>

Getting a dataset of selected rows in Windows Forms DataGrid
Posted by Sn at 3/30/2005 1:50:32 AM
DataGrid control contains GetChanges() method to get a DataSet of rows that have changed. I would like to write a method GetSelectedRows() that returns a DataSet of selected rows (may be multiple rows). I tried to do this by extending the DataGrid control and writing the following method: ...more >>

User Controls
Posted by Chris at 3/29/2005 11:22:32 AM
Hello, I've taken a button component and extended it's functionality by adding a couple small methods and properties. This control is contained within my project tree and has been used on various locations of my form. Now, I want to add another property to the control. In doing so I had hop...more >>

DataGrid Selection Highlighting After Row Sort.
Posted by el_sid at 3/29/2005 12:53:03 AM
I have a DataGrid that is bound to a DataView and everything seems to work fine. When the user clicks on a cell the entire row gets highlighted, however when the user decides to sort the datagrid things go wrong. I have added code to ensure that the row of data the user had selected gets re-...more >>

CheckedListBox data binding to DataView
Posted by el_sid at 3/29/2005 12:45:01 AM
I am trying to databind a checkedListBox to a dataview. The databinding works to certain degree with the different list of "Display Names" from the dataview being displayed as check boxes in the checkedList control. The problem is that when setting the "ValueMember" property for the control ...more >>

How to make an user control button with 2 images.. rollover
Posted by Marcos Beccar Varela at 3/28/2005 4:55:49 PM
Hello.. can anyone help on how to make a button that has one image an when mouse over another image like a web rollover? I need some code if there is availablre.. Thank you all! Marcos ...more >>

PropertyGrid and Password Field
Posted by Hoang at 3/28/2005 4:29:31 PM
Is there any sample that implemented PropertyGrid and Password Field ? TIA. ...more >>

Control receiving Drag-Drop events at Design Time?
Posted by Özden Irmak at 3/28/2005 4:14:39 PM
Hi, I have a custom control which works on a custom Design-Time surface in my application which is created using IDesignerHost and other necessary interfaces... I need this control to receive drag-drop notifications...I tried several approaches like applying my custom controldesigner to ...more >>

ComboBox find item based on value
Posted by nickyw at 3/28/2005 11:34:02 AM
Hi, Can anyone help, I want to get a reference to a combobox item based on the item's value rather than the text (basically what I am asking is, is there a function like 'FindStringExact' for values) , does anyone know how to do this? Thanks, Nicky ...more >>

claendar/datetime picker
Posted by David at 3/28/2005 9:39:37 AM
Does anyone knows how to extend the date time picker/ monthcalendar to present diffrent backgroud colors to diffrent dates ...more >>

Cursor in Textbox
Posted by Nagendra Gunaga via .NET 247 at 3/28/2005 1:53:59 AM
Hello all, I have a text box and a digit value. i want to set the cursor to digit value inside the textbox. eg. if digit value = 2, i want to set the cursor position to 2nd character position inside text box. Pls help me in this regard.. -------------------------------- From: Nagendra Gunaga...more >>

ListView
Posted by Víctor at 3/27/2005 3:52:30 PM
Hello, How can I do a listView with transparent background and visible icons or with image background and icons over background? Thanks. Victor ...more >>

Button with bitmap image
Posted by Phil Price at 3/27/2005 12:52:55 PM
Hi There, I've looked around the Internet (mainly on codeproject.com as it think the website is ace) for a control that can have a standard button, and an image drawn on that button, for example there are buttons like this in Nero Express 6. I've found solutions to this, but they all seem t...more >>

tab.Hide() does not work?
Posted by David A. Schramm at 3/27/2005 8:43:56 AM
I am trying to hide a tab on a tab control but the Hide() method has no effect. Am I missing something or is this broken? ...more >>

WM_NCHITTEST and TabControl
Posted by Jeff Jarrell at 3/25/2005 10:14:17 PM
Ok, now I have done it. After reshaping and adjusting the widths of my tabs (the top part that sticks up), I discovered that the mouse clicks are responding to where the original tabs were. So I went down the road of capturing the WM_NCHITTEST msg, determining if the point is in one of t...more >>

How to determine if event has been delegated?
Posted by Vince at 3/25/2005 7:34:17 AM
I'm writing a framework component, and I would like to be able to determine if a particular event has been delegated or not. By event delegation, I mean: control.event += handler (method); I want to know if the event has already been delegated or not. Even though events use the "+=" syntax...more >>

.net GIS Mapping SDK?
Posted by Ben Wallace (3) at 3/24/2005 9:56:32 PM
Does anyone know or have heard of a GIS Mapping SDK called "Ti-Tuk",....not sure of spelling. Links or any information in regards to .net mapping SDK's is appreciated. Thanks. ...more >>

Listview quirk
Posted by Mark Peterson at 3/24/2005 9:41:32 PM
I've started getting an 'Object reference not set to an instance of an object' error when working with a listview (trying to access the selected item). The specifics - there is only *one* item in the listview when I get this. Here is some output from the immediate pane that I entered while ...more >>

Right-anchored menu
Posted by Peder Y at 3/24/2005 8:57:51 PM
Is it possible to have File, Edit, (...) menuitems anchored to the left hand side of the mainmenu, and Help to the right hand side?...more >>

ComboBox drop down
Posted by J L at 3/24/2005 8:30:54 PM
I asked this on another thread and got no response, so I am trying here. I want to drop down a combox when the mouse enters and collapse it when the mouse leaves. I tried using the MouseEnter event to do the drop down but when the mouse is moved quickly, this event is not fired. I dont know w...more >>

Select all and Copy a DataGrid
Posted by 11Oppidan at 3/24/2005 11:33:39 AM
Hello, Please could someone help do the following using a datagrid and VB .NET: Click the top left cell of the datagrids header to select all the rows in the datagrid (similar to Excel) and also give the user the option to copy the entire datagrid so if they wanted the could choose to past...more >>

Fire events from usercontrol
Posted by ian Forman via DotNetMonster.com at 3/24/2005 9:44:21 AM
I have a usercontrol based on datagrid. Can someone tell me how to explicitly fire the CallCurrentCellChanged event? thanks... -- Message posted via http://www.dotnetmonster.com...more >>

Highlight DataList Item with MouseHover?
Posted by Sacha Korell at 3/23/2005 5:18:34 PM
How would I highlight a DataListItem with a MouseHover? In addition to highlighting the it, I would also like to display a tooltip when hovering over the DataListItem (one pertaining to that item). Sounds easy, but I can't seem to get it to work. Thanks, Sacha ...more >>

#if RELEASE
Posted by Franck Diastein at 3/23/2005 4:38:15 PM
Hi, I'm making some User Controls, and one custom control depends on another custom control... So , I have something as this in UserControl1 text1.text = UserControl2.MyFunction("myparameter")... If I launch the app, it works fine, but if I go to the form where both User Controls are...more >>

CF Cust. Control & Toolbox
Posted by Bill at 3/23/2005 1:19:07 PM
So, I'm working a simple custom control example from the "Microsoft .NET Compact Framework" core reference. Its the Clickable label example. The control actually works but I can't get the "designer" to do its job. When I add the control to the toolbox it displays but is disabled. (I have also...more >>

Good controls site resources?
Posted by Marcos Beccar Varela at 3/23/2005 12:16:23 PM
Hello, does anyone knows a good site for downlaoding free controls? I´m searchng for good menus, like office 2003, and a better listview. Thank you ...more >>

LinkLabel TabStop does not work
Posted by Madhavi at 3/23/2005 11:52:19 AM
I tried to make the TabStop to false for LinkLabel. But somehow it does not work. Any reason why this happens?? Thanks, Madhavi ...more >>

TreeView Set Data like in CTreeCtrl.SetItemData()
Posted by Milko at 3/23/2005 10:25:07 AM
Hello, Working in C# with TreeView and datatable I need to add the record ID for each datarow to the corresponding TreeNode, but to keep it invisible to the user (can not use text property). For example, a table has 3 columns (recID, Name, Address). Need to add "Name" as a node, "Address" as ...more >>

LinkLabel in DataGrid on Windows Form
Posted by Suz at 3/23/2005 8:17:04 AM
I need to put linklabels in a datagrid on a windows form. I have working code that displays a linklabel in edit mode but need the linklabel to display DURING the INITIAL LOAD of the datagrid. For exmple: Microsoft Website www.microsoft.com Google Website www.google.com Yahoo...more >>

Tootip text contents
Posted by Robert Pfeffer at 3/23/2005 7:19:08 AM
Hi, I am trying to use tab characters in the tooltip text. However the tooltip display stops at the first tab. Is there a way to use a tab character(chr(09)) in the tooltip text. It does handle linefeeds(chr(10)). The text has multiple lines. Thanks -- Robert Pfeffer VP of ...more >>

Newbie help
Posted by trialproduct2004 NO[at]SPAM yahoo.com at 3/22/2005 9:21:49 PM
Hi all I have application developed in vb.net containing multiple threads running at a time. If i run application 5,6 times then application is getting closed automatically and at a time of closing application exception is getting thrown whose stacktrace is as below:- at System.Windows.Forms....more >>

Problem with control anchoring
Posted by Louis McCutchen at 3/22/2005 2:32:22 PM
I am trying to change the standard anchoring of a control from top, left and get an error "Object type cannot be converted to target type." when I do this via the Visual Studio IDE. Doing it code works fine, but changing it via the IDE properties window to any of the other anchor options, top ...more >>

standard toolbar items in VS2k5 beta2?
Posted by Jedediah Smith at 3/22/2005 8:42:39 AM
The ability in the designer to add standard items to a toolbar doesn't seem to be available yet in VS beta. Where can I find the image files so that I can add them myself?...more >>

Previous tab control
Posted by news.microsoft.com at 3/22/2005 1:58:32 AM
in the SelectedIndexChanged how can we know which is the previous tab or control that the user came from? I know we could put code in "on focus lost" to set it to the previous control, but is there any c# method that lets us do it ? Thanks HS ...more >>

Data bound ComboBox BUG (again and again) in .NET 1.1 (C#)
Posted by Marcin Floryan at 3/21/2005 11:08:57 PM
Hello! Regarding a known Microsoft bug BUG: ComboBox Does Not Clear When You Set SelectedIndex to -1 (KB327244) I would like to ask, has anyone found a solution for this nasty bug, because the one Microsoft offers is just shit and does not work. I have a simple ComboBox bound to a DataTa...more >>

getting client rectangle minus menu, toolbar, statusbar, etc.
Posted by Jedediah Smith at 3/21/2005 8:38:34 PM
Form.ClientRectangle doesn't seem to account for the menu, statusbar, docked windows, etc. How do I get the rectangle of actual available space in a form?...more >>

collection editor problem
Posted by Allen Anderson at 3/21/2005 7:33:07 PM
I'm trying to solve a problem I've got with the collectioneditor return values. When the collection editor returns, it returns a list of objects from the EditValue function. Where does it go from there though? I can't seem to catch where it's setting it into my Collection class at all. The...more >>

Exception setting SelectedValue in a ComboBox
Posted by Roy Chastain at 3/21/2005 10:22:31 AM
I have code the code below cb_SubProduct.SelectedValue = (string)dg_LicenseList[row,col]; At the point this line of code is executed, (string)dg_LicenseList[row,col] has a valid value. The combobox cb_SubProduct has a DataSet as its datasource. The dataset has 6 rows in it and the value(str...more >>

Preventing recursion due to multiple button clicks
Posted by azgecko at 3/21/2005 9:07:02 AM
How do you prevent multiple mouse clicks on a button from running a process multiple times? I have tried setting up a busy flag. I have also disabled the button while running the process. Example code listed below: The following code does not prevent a fast double click on the button a...more >>

VB .Net ListView
Posted by Sreeraj Harilal via DotNetMonster.com at 3/20/2005 7:23:04 AM
I am doing a project using vb .net. In that project i used a listView control. But i don't know how to programaticaly scroll the ListView control.If any one knows please tell me. -- Message posted via http://www.dotnetmonster.com...more >>

Problem with ReadOnly property in custom control under localizable being True
Posted by James Wong at 3/20/2005 12:00:00 AM
Hi everybody, I've created a custom control which Inherits from a base control and I shadow some properties as readonly. On the form which consumes this custom control, if I set the localizable to true, the IDE will generate some codes like: Me.nubExchRate.ImeMode = CType(resources.GetObject...more >>


DevelopmentNow Blog