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 > april 2008 > threads for april 1 - 7, 2008

Filter by week: 1 2 3 4 5

custom TextBox
Posted by cronusf@gmail.com at 4/7/2008 12:54:22 PM
Hello all, I wanted some advice on the easiest way to go about the following: I have some TextBoxes that are enabled/disabled at various times in the program. When they are disabled, the default is a gray background with dark gray text. Is it possible to customize the text color when the Te...more >>


Storing string with variable as app setting
Posted by John at 4/5/2008 11:20:49 AM
Hi I have a string expression which is evaluated based on value of a variable like this; "MyTable.MyField = (" & MyVar.ToString & ")" I need to save this expression as app setting so I can change it without having to recompile and reinstall the app every time. How do I do this? Creat...more >>

Click once issue & desktop shortcuts
Posted by eschneider at 4/4/2008 11:11:58 AM
Hello, The location of the Click Once Client update was changed (Cert expired), while the users desktop shortcuts remained from the Original install. I confirmed that the application starts using Start Menu / Programs, but not the old desktop shortcuts. This makes sense to me, but is there ...more >>

DPI issues
Posted by Jeff at 4/3/2008 8:18:00 PM
Are there any suggestions for developing large windows form applications (1000+ forms some with 30-50 controls on the form) in .NET 2.0 that scale properly in 96DPI and 120DPI. Microsoft ISV is discussing to switch to WPF but am curious on others have handled this. We are seeing labels...more >>

custom control size
Posted by cronusf@gmail.com at 4/3/2008 1:25:22 PM
I have a custom control that draws a special grid. The size of the control should be computed based on the number of rows and columns (plus some padding). Right now I set the Width and Height of the control manually in OnPaint() (based on the number of rows/columns). This is working, but I am ...more >>

How to modify HScrollBar
Posted by cronusf@gmail.com at 4/3/2008 1:17:55 PM
I want to do a control like this: http://img216.imageshack.us/img216/1629/ctrlib6.jpg The HScrollBar class almost does this. However, instead of rendering the scroll "knob", I'd like to draw text to show the position (e.g., in the image, it draws 13/16). Any tips on how to do this?...more >>

How to read sequentially from a random point in a large Xml File. (200 - 2000 MB)
Posted by Schwartzberg at 4/3/2008 12:59:08 PM
Hello Have a huge XML file with multitudes of "LogEntry" nodes / text lines. A small sample of this xml/text content is below. The file could be anywhere between 200 to 2000 MB. My questions comes in two parts. (A) I would like a solution (or ideas for it), in C#, -- to randomly access ...more >>

Is there a Multi Control DataGrid?
Posted by Jim Bob at 4/3/2008 12:25:54 PM
I'm using VS 2008. In another language (Delphi) I have used in the past, there was a datagrid where you could place multiple contols inside each row (labels, textboxes buttons) and show multiple data in a row on a datagrid. Does Visual Studio have such a control? jwc *** Sent via Develo...more >>



Forms inheritance and templates
Posted by Mark Baldwin at 4/3/2008 11:14:10 AM
I have a project that brings up numerous forms that all follow the same format both in the way they look and work. I need to find a solution that saves me time recreating a form from scratch and at the same time allow me to make UI changes that then apply to forms that have already been create...more >>

Unbound dgv - save two of the columns to a join table
Posted by dbuchanan at 4/3/2008 8:12:37 AM
Hello, I have a dgv populated as the result of a dragDrop. It will contain 5 columns. The datagrid view is unbound. The dragDrop operation allows the user to select value. Those selected values are associations that I then want to make by saving off two of the columns to the join table? ...more >>

DragDrop - add a column
Posted by dbuchanan at 4/3/2008 8:03:28 AM
Hello, I have a source dgv with 4 columns and a target dgv with 5 columns. I would like to supply column #1 in the target dgv with a value contained in a variable. All rows resulting from the drag drop would therefore receive the identical integer value for column #1. How do I do this? ...more >>

data changed on form
Posted by parez at 4/3/2008 6:38:15 AM
Is there a built in way of knowing if the content of the fields on a form has changed? Is there any event that gives you before and after value of the text? TIA...more >>

drawing custom control
Posted by cronusf@gmail.com at 4/2/2008 4:42:19 PM
In my control's constructor I set: SetStyle(ControlStyles.UserPaint, true); SetStyle(ControlStyles.AllPaintingInWmPaint, true); My reference book, "Programming Windows Forms" by Charles Petzold says this means that all painting logic is performed in the OnPaint method. I override OnPaint...more >>

Auto select in listbox when user types in textbox
Posted by Sheldon at 4/2/2008 2:44:03 PM
Help! I used to user the following code in VB6 to scroll the listbox in response to a user typing in text: In a module: Public Declare Function SendMessage Lib "user32" _ Alias "SendMessageA" (ByVal hwnd As Long, _ ByVal wMsg As Long, ByVal wParam As Long, _ ByVal lParam As...more >>

diagram
Posted by Julia at 4/2/2008 2:05:01 PM
I have a Windows app and I would like to add some diagrams to it. What is the best way to do this?...more >>

Get time zone
Posted by Rob Oldfield at 4/2/2008 1:10:01 PM
Is there any way to get the current time zone from a machine? I'm getting information (on spreadsheets) from a 3rd party where all times are written using GMT, but when I store that I want to convert it to my current time zone....more >>

Click Once or Webforms app
Posted by Terry Holland at 4/2/2008 9:39:00 AM
I am designing an application that will be used by users on the corporate domain. From one point of view the application would be better suited to a winforms environment because of the rich features that will be required on the forms. However, I also need to minimise support & easy deploym...more >>

Changing a default behavior of RichTextBox
Posted by MindWanderer at 4/2/2008 5:50:25 AM
I have created a rich text box for my application and a tool strip which has bold, italic, underline and other formatting icons on it, that affect the selected text's formatting. I've also written a key down event handler for the form the text box is in that handles keyboard shortcuts. All my...more >>

grid of buttons
Posted by cronusf@gmail.com at 4/1/2008 10:38:43 PM
Hello, I need to write a custom control that renders a grid of buttons (sort of like the ChooseColor dialog). Here's a screenshot of what I am after: http://img388.imageshack.us/img388/2055/grides9.jpg Basically, every element stores two buttons. I'm not sure how to get the "sunken" lo...more >>

How to create .msi setup for windows application that include .net framework 2.0 & other Resource files & DLL.
Posted by harshad at 4/1/2008 4:06:41 PM
Dear All, I create .net 2.0 windows application I want to distributes throw CD that why require Setup file. So how to create .msi setup for windows application that include .net framework 2.0 & other Resource files & DLL. Thanks, Harshad ...more >>

change color of disabled textbox text
Posted by parez at 4/1/2008 1:37:39 PM
how do i change color of disabled textbox text? TIA...more >>

How dynamically move control up?
Posted by Cirene at 4/1/2008 11:25:36 AM
I have a panel with certain controls in it. I have a checkbox to show/hide the panel. Below the panel is a TabControl. When I hide the panel, how can I get the Tab Control to grow UP (staying anchored on the left, right and bottom)? Thanks! ...more >>

IS it possible?
Posted by Jim Bob at 4/1/2008 10:39:07 AM
I have an app written in vb.net 2003 that runs primarilly under a Win 2000 terminal server environment. I need to add a scan function whereby I want to attach a scanner, scan in documents and be able to see these in my app. Keeping in mind all will need to be in a TS session. Before I ge...more >>


DevelopmentNow Blog