Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
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 > september 2003 > threads for thursday september 25

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

selecting multiple rows in a datagrid programatically
Posted by jack charbonneau at 9/25/2003 11:55:51 PM
Hi I need to select multiple rows in a DataGrid in my program. I do this: dataGrid1.Select(rowNumber); which works fine if I only want one row selected, but sometimes I need more than one. How do I do this? thanks ...more >>


No-touch deployment [no response]...
Posted by Terry Mulvany at 9/25/2003 11:16:22 PM
Greeting All, OK I keep reading about no-touch deployment so I visited=20 http://msdn.microsoft.com/library/en-us/dv_vstechart/html/vbtchNo-TouchDe= ploymentInNETFramework.asp?frame=3Dtrue downloaded the sample, and I'll be damned if everything went Ok up until = the final step to test by hit...more >>

(Urgent)Regarding : STAThreadAttribute
Posted by Chandrakant Shinde at 9/25/2003 9:51:06 PM
Hi there, I want to copy a Image to the clipboard. When i try to do so following exception occurs : "The current thread must set to Single Thread Apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it" Following are the points i ...more >>

Panel.Enabled property and the propagation to subitems
Posted by Alexander Groß at 9/25/2003 8:17:46 PM
Hello everybody, I encounter problems with the Enabled-property of panels and the propagation to subitems of the container. Overview: On a form there is one panel (named "A"), which surrounds all other controls on the form (except two buttons). Inside panel A lies a checkbox. Below this ch...more >>

Form Update
Posted by Ken at 9/25/2003 6:11:23 PM
I am wondering if there is a method than can be called when updating several controls on a form so the form does not repaint when each control is updated. For example if there are 5 text boxes on the form and all of them have to be updated I believe the form paints each time the Text property of...more >>

Layout problem - Mainmenu + toolbar + a "filled" control
Posted by Action at 9/25/2003 5:27:54 PM
I have a form that has a main menu (dock: top) and a tookbar (dock: top) I tried to insert a control that is (dock: fill) I found that the toolbar actually 'covered' the top of the 'filled' control.... how should I solve this?! ...more >>

Language support for UI application in win98
Posted by kuldeep at 9/25/2003 5:15:17 PM
Hi all, I have developed a application that supports localization in .net. It shows all the controls with english and hindi text depending on the culture selected. The application runs well on windows 2000 and windows xp but when run on windows 98 the hindi text appears as garbage. Can anyone h...more >>

Catch key press in a datagrid
Posted by Rob Oldfield at 9/25/2003 5:07:37 PM
I have a windows forms data grid where I want to disallow the editing of certain cells. At the moment though I can't get any code to trigger, whether I include it in any of the DataGrid_KeyDown/Up/Press events. Hopefully, I'm just doing something very silly. -- Rob Oldfield www.realuk.co.u...more >>



Designing controls
Posted by joe at 9/25/2003 4:04:31 PM
Hi, I need a control like the one in an Excel worksheet. I want to write one myself. Which way is it better to go: 1. Draw all cells by hand on a lets say UserControl, do hit testing, scrolling and all by myself-lots of work but better control of what is going on 2. Use labels to rep...more >>

Form Ont Top All Applications
Posted by Mauricio C. Pires at 9/25/2003 2:12:47 PM
Someone know how to make a Form on top all applications? Tanks....more >>

How to change the control property on another form?
Posted by Suresh Kumar at 9/25/2003 2:01:55 PM
Hi, I want to change the label button on one form from a Class? How do I do that? I have made the property in the form to be public. But whenever I close and open the file, it changes it back to private. Thanks for the help. Suresh ...more >>

Menu.MenuItemCollection
Posted by RF at 9/25/2003 1:59:14 PM
I've added the System.Windows.Form.dll as a reference. When I try to locate Menu.MenuItemCollection in the object browser I can't find it or when coding at design time! Am I missing something. Any help is appreciated. Thanks, RF ...more >>

How to get App path of WinService
Posted by Lin BoRen at 9/25/2003 1:59:04 PM
I was using Environment.CurrentDirectory when I tested my class in a winform wrapper, but but now that I've move it to a WinService this gives me "C:\WinNT\System32" How can I get the Path of my assembly? Thanks in Advance, Byron ...more >>

Control tips
Posted by Rob Oldfield at 9/25/2003 1:02:23 PM
I think I must be going mad. This has to be included in .Net and I just can't find it. Controls on a windows form. How do I get explanatory text to display when the user hovers the mouse over a control? (i.e. the stuff that Access calls control tips) Thanks. -- Rob Oldfield www.rea...more >>

Change Graph Line Colors at Runtime?
Posted by Ken at 9/25/2003 12:13:06 PM
Using Crystal Reports 9 RDC, VS Studio 2003, C#, Client/Server Application with Windows Forms. Is it possible to change the graph line colors in a chart at runtime? If so, does anyone have sample code for C#? Thanks in advance! ...more >>

Fill a combo box from collection, but bind to a custom class?
Posted by Mike Hofer at 9/25/2003 11:12:16 AM
I am trying to do something a little nonstandard, and am having some difficulty determining (a) if it can be done and (b) if so, how to do it. What I want to do is fill a dropdown combobox with data from a collection. Then, I want to bind that list to a member of a custom class. (Don't ask why...more >>

The listmanager's position must be equal to rownum.
Posted by Luca at 9/25/2003 10:34:04 AM
Please help me. I must correct this error : The listmanager's position must be equal to rownum. Parameter name : rownum do you want to correct the value ? I have this error with VS2002 and also with VS2003. ______________________ I'd like to have a datagrid with all the columns of my t...more >>

Setting ListView Focused Color
Posted by Brian Reed at 9/25/2003 9:52:24 AM
I am managing colors in my list view and setting the entire row to a given color. If I select a row and then click in an area that does not have a row, my previously selected row draws as white because it still has the focus. There are too many scenarios that I would have to reset the focus. I...more >>

Validating events
Posted by Pascal Cloup at 9/25/2003 9:21:30 AM
Hello, How can i disable the Validating Event of all the controls of a form after a click on a Cancel Button and close the Form? Or how can fix the order of Validating events of the controls in a Form? Thanks in advance. Pascal ...more >>

Escape characters in RichTextBox....
Posted by Sinex at 9/25/2003 5:10:22 AM
Hi ! I have a form. The form has a textbox and a richtextbox. There is a button also. When the button is clicked, whatever text was typed into the text box, must be copied to the richtextbox. At runtime, I enter the following string into the text box: Hi\nHello\nHow\nDo\nYou\nDo ...more >>

Process -> MainWindowHandle always coming back as 0???
Posted by Steven Van Dyke at 9/25/2003 3:53:02 AM
I'm using a mutex to ensure only 1 instance of my app is created. It works fine. If an instance of my app IS already running, I want to use the following code to bring the window to the foreground. BUT, the MainWindowHandle is always 0 (I checked all processes and they are all 0). How can I ge...more >>

Getting data from a datagrid
Posted by Robert Batt at 9/25/2003 2:50:58 AM
Hello, I have a bound datagrid called dgjobs that is bound to a dataset called dsjobs using the following code. Me.dgJobs.DataSource = dsJobs.Tables!Jobs cm = CType(Me.BindingContext(dsJobs.Tables!jobs), CurrencyManager) The grid populates just fine however when the currentce...more >>

Preventing deletion of certain characters
Posted by EKS at 9/25/2003 1:24:08 AM
In a textbox control, how can you prevent the deletion of certain characters? For example, a user shouldn't be able to delete the backslash "/" character but can delete other characters. Thanks a lot :)...more >>


DevelopmentNow Blog