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 2006 > threads for april 8 - 14, 2006

Filter by week: 1 2 3 4 5

ListView: Virtual & OwnerDrawn flicker problem
Posted by Patrick Wolf at 4/14/2006 11:02:04 PM
Hi, I got a challenge with the ListView. When using the Virtual Mode and OwnerDrawn the images flicker very strongly. When using the normal mode and OwnerDrawn there is no flicker. I would need to use the Virtual Mode though :). Could anybody help (please use the code below as an example)...more >>


Panel positioning
Posted by Gabriel at 4/14/2006 6:23:49 PM
Hello, I have a form, on this form 2 panels (on the left for a treeview, on the right for the content). Is it possible to resize automatically the panels to adjust them to the main form' size if I resize this one ? In Delphi, it was possible to align right (or left) the panels. Not possi...more >>

ListView, IComparer & column-re-ordering...
Posted by Shawn M. at 4/14/2006 12:01:02 PM
Hi All! This question has been posted before, but unfortunatly I was unable to get an answer. I use a special ListViewItemComparer-class to sort items in a listview for any column, and I have also allowed column-reordering. So far so good, but if I click the columnheader of any column, a...more >>

NET Magazines
Posted by Bob Costello at 4/14/2006 10:24:01 AM
Does anyone have any recommendations on magazines having articles/code related to NET development? Thanks in advance....more >>

Newbie with Treeview Problem
Posted by Oh-its-all-gone-wrong at 4/13/2006 3:06:49 PM
Hi All, I have a TreeView setup with 2 Items on it. Node1, Node2. I would Like to be able to open a form called Form1, when I double click on Node1, Form 2 when I double click on Node 2. I`ve done a google search but can`t find to much info on it. Could somebody possible point me in the ri...more >>

Resolution Problem
Posted by Charles A. Lackman at 4/13/2006 2:53:59 PM
Hello, I have been working with Visual Studio.net for a few years now and just recently come to a problem. Up until now I have created all my programs to be resolution specific. Most of them are written to run at 800 X 600, others were predeterminted as to what resolution they would be wr...more >>

Support for Generics in Forms and Controls
Posted by Chuck Cobb at 4/13/2006 2:34:45 PM
I just discovered the hard way that the Visual Studio designer for forms and controls does not support generics. I created the following controls: Base Class: public partial class CtlDataGrid<CollectionClass, InfoClass> : CtlBase where CollectionClass : BaseCollection<InfoClass...more >>

Remote Assistance In Code
Posted by Davie at 4/13/2006 11:30:01 AM
I have an application which would create an email, however, I would ideally like to attach a remote assistance file from the user. Can this be done through code, where the email is created and the remote assistance file is added as an attachment. Basically exactly what happens when the user Re...more >>



CheckedListBox control not displaying properly for some users
Posted by matt.metcalf NO[at]SPAM gmail.com at 4/13/2006 9:29:36 AM
Greetings... I have created a set of forms for an Office Add-In that use, among other things, CheckedListBox controls. The software has been installed by about 15 users so far, and two of the 15 are having trouble with it. Everything else in the application works fine, but for the CheckedLi...more >>

FormClosing event performed twice
Posted by Stefanie Knapp at 4/13/2006 3:06:04 AM
Hi, I've got a problem with a .NET 2.0 application: When I try to cancel the FormClosing event of the main form of the program (e.Cancel = true), this same event is performed a second time (now it can be cancelled successfully). The first time the FormClosing-method is called with CloseReason...more >>

How do I disable a PropertyGrid item at runtime
Posted by mudassirahmed368 NO[at]SPAM gmail.com at 4/13/2006 1:58:10 AM
How do I disable a PropertyGrid item at runtime. i am using this on windows form.and want only few items to be editable to the user.other items should be disabled ...more >>

databinding untyped dataset and visual design
Posted by Simon Lampen at 4/12/2006 8:44:01 PM
Hi, I have lots of trival databound forms that maintain simple tables that I want to port to winforms and edit with a datagridview or similar. I would like to achieve the following: Deriving from a baseclass 'DataBoundForm' or similar I want to be able to set a design-time sql select state...more >>

CompositeUI Application Block?
Posted by David Veeneman at 4/12/2006 7:13:09 PM
How do I get started with the Composite UI Application Block? There's a lot to the framework, enough that it will take me a long time to figure it out just by looking at the code. I've looked at the Walkthrough and QuickStart projects, but there doesn't seem to be any documentation, other t...more >>

.NET Windows Forms Application VS MS Access client Application
Posted by Jordan S. at 4/12/2006 4:09:39 PM
SQL Server will be used as the back-end database to a non trivial client application. In question is the choice of client application: I need to be able to speak intelligently about when one client (MS Access vs ..NET Windows Forms) would be preferred over the other. While I have some go...more >>

Command Line Parameters
Posted by Glen at 4/12/2006 11:23:50 AM
I have a windows application that accepts command line parms at startup. It works fine. However, if (while the app is running) the user tries to run it again with another command line start, I would like the existing instance of the app to take the new command line parms and act appropriately....more >>

Refresh of DataGridView cell
Posted by jens.ro at 4/12/2006 10:54:13 AM
Hello, when I change the cell of a (data bound) DataGridView directly by setting the 'Value' property of the cell, the cell is updated not before I change the focus by clicking into another cell. I tried to call methods like 'Update', 'UpdateCellValue', 'Invalidate' and 'InvalidateCell' just ...more >>

Generated UPDATE statement. could not determine which columns uniquely ...
Posted by somersbar NO[at]SPAM yahoo.com at 4/12/2006 3:45:18 AM
hi all, i am having trouble updating a datset because i get the follwing error in the Data Adapter configuration Wizard: Generated UPDATE statement. could not determine which columns uniquely identify the rows for "Customers" 'Customers' is the only table from the database that im using f...more >>

Restore application settings
Posted by Udo Nesshoever at 4/12/2006 12:00:00 AM
Hi yall! Has anyone expirienced the same? I align some controls on a form (set the anchors, right align some so everything resizes/moves nicely when the form is resized. I store the forms size and position into the applications settings. When I restart and reload these settings, the applica...more >>

Is there any function return the short date format on the regional and Language Options under control panel?
Posted by ABC at 4/12/2006 12:00:00 AM
Is there any function return the short date format on the regional and Language Options under control panel? ...more >>

button control on a cerain place in an image
Posted by Rain at 4/11/2006 7:37:01 PM
how do i place a button control on a certain part(using coordinates) in an image... in short, i want the functions of a button in a certain part of a image that in going to be placed in a form in C#.. Thanks in advance!...more >>

Windows Shutdown with .NET 2.0?
Posted by wrytat at 4/11/2006 6:16:01 PM
I am using .NET 2.0 Framework, and Visual Studio 2005. Is it possible to code a program such that when the user clicks a button, it shutdown windows, irregardless of Windows XP or 98? If so, how to do that? ...more >>

[C#] RichTextBox autoscroll after style change
Posted by Leon Friesema at 4/11/2006 5:48:12 PM
Hi, I'm working on a RichTextBox with some "in-program" style-features (e.g. *no way* becomes bold : like MS Word does). Got everything working fine, flickerfree and reasonable fast, but in order to set the style of some part of the text I use the "Selection" method (in the case of *text* the...more >>

NumericUpDOwn
Posted by Z at 4/11/2006 5:26:01 PM
Hi, If users change the value of NumericUpDown by clicking the arrows, this change can be trapped with the .ValueCHanged event. But .ValueCHanged will not work if users change from keyboard? How do I trap all changes in NumericUpDown no matter if instigated from arrow keys or from keyboard...more >>

WebBrowser control and Flash
Posted by Sean Thompson at 4/11/2006 5:19:17 PM
Hi all Flash does not respond with the webbrowser control for .net 2.0. Is there a work around to get flash working? thanks Sean ...more >>

MDI Positioning
Posted by Shawn M. at 4/11/2006 12:56:02 PM
Hello, I am creating a MDI child window from a MDI parent window. I have tried setting the Left and Top members before calling Show() and it seems to have no effect. If I set Left and Top after calling Show() the form flashes in the default location and moves into the position I set with...more >>

.Net 2.0 Split Container and Tab Control Format Issue
Posted by amyl NO[at]SPAM paxemail.com at 4/11/2006 11:55:16 AM
I am having a layout issue I can't seem to work out in Visual Studio 2005. I have a Windows form with a Split Container. In the second panel (right side) I have a tab control. The tab control has anchor properties of left, right, top, and bottom. It also has its dock property set to "Fill". ...more >>

Creating a Windows Forms DLL for usage in Win32 application
Posted by bofh NO[at]SPAM primusnetz.de at 4/11/2006 4:45:56 AM
Hi, is it possible to create a DLL including some functions which will create a Windows Forms Dialog? If this is possible i'd like to know if i can use this DLL in native ( normal win32 ) applications? If this is also possible please tell me how this has to be done. Thanks a lot Michael ...more >>

win32 in memory
Posted by Rain at 4/11/2006 4:25:02 AM
Does anyone have a sample code for this? I want to draw an image in memory into another image using C# and win32 gdi.. if its confusing i'll rephrase it. I want to draw many images into one image in memory using win32 gdi (sample using bitblt or any suggested win32 that works the fastest) sin...more >>

Closing a form
Posted by nbohana at 4/10/2006 11:22:02 AM
I have a windows form (a). On the form there is a search button that causes another windows form (b) with a datagrid used to display the retrived data from the SQL database. I would like to close form (a & b) when I select the requested record. And reopen form (a) and display the selected rec...more >>

RichTextBox woes
Posted by sb at 4/10/2006 11:17:38 AM
My app needs to load a plaintext file (1 to 15MBs), edit & convert it to rtf, and finally output it to a RichTextBox (RTB). Simple enough... Loading a 5MB file (average case for this app) and editing/converting it to an rtf string takes about 1 second to accomplish...no big deal. However, ...more >>

Does a Window have to be visible to receive Messages
Posted by NickiC at 4/10/2006 11:13:02 AM
I am trying to monitor incoming messages by overriding the System.windows.form WndProc method. I have a radar device that sends messages via the Message parameter for the WndProc method. The program i am developing should be a console application but the radar only sends messages via the wnd...more >>

Simple "Browse for a file" control
Posted by PK9 at 4/10/2006 9:35:01 AM
I apologize that I am new to windows forms programming. I'm looking for the correct control or components to use to create standard browse-for-a-file capability. I'd like to have a textbox and a button next to it that says "Browse". When you click the browse button you would get the standar...more >>

Email blocked by ISP
Posted by Steve, Putman at 4/10/2006 8:49:34 AM
Hi gurus, I need some advises/suggestion. We are using the following command to send email from the client. Its pretty simple Dim MailMessage As New System.Net.Mail.MailMessage(strFrom, strTo) MailMessage.. MailMessage.. Dim client As New System.Net.Mail.SmtpClient("host") client.Send...more >>

Window size control
Posted by Chris Saunders at 4/10/2006 6:46:34 AM
I wish to have a window whose width can be resized but not its height. I tried this: this.MaximumSize = new System.Drawing.Size(0, 300); this.MinimumSize = new System.Drawing.Size(0, 300); which according to the documentation on MaximumSize and MinimumSize should accomplish what I want. Th...more >>

One click deployment and plugins
Posted by poppy at 4/10/2006 2:58:02 AM
I have a windows app which is distributed using click once deployment. This works great but I now face a dilemma. I have just developed a plugin for my application which I would like the parent application to consume/invoke using reflection. Is there any way I can force these plugins to downl...more >>

Help with Menu Item, MDI app
Posted by M. G, at 4/10/2006 2:51:29 AM
Hi Everybody I want to add to my "File" menu the "Recent Files" list in Visual C# 2003. Hope you can help me. thanks ...more >>

Combo box clearing
Posted by Jared at 4/10/2006 12:00:00 AM
Hi, I have combo Box clearing when form overlaps...Can't seem to catch the event. Why is it doing this? ...more >>

Dashed Line
Posted by JezB at 4/10/2006 12:00:00 AM
Trying to draw a dashed line within a User Control I get error: Changes cannot be made to Pen because permissions are not valid Why is this ?? Pen dashed = Pens.DarkGray; dashed.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash; g.DrawLine(dashed, 0, 100, 200, 100); ...more >>

Support for Postscript fonts
Posted by JezB at 4/9/2006 9:42:37 PM
I have some fonts installed on my machine which I think are postscript format (they are .pfm files), but I can't use these in my windows application. Any reason why not ? ...more >>

ScrollBar Bug/ Problem in .Net 2.0?
Posted by Kieron at 4/9/2006 7:15:33 PM
Hi all, I'm mimicking the AutoScroll functionality from a ScrollableContainer on my user control (for reasons of having more control and flexibility), but I seem to have hit a bit of a wall. In the case of having a horizontal scroll bar, I set his .Maximum property to say 167, but when I...more >>

Title Bar
Posted by Cairn at 4/9/2006 9:35:02 AM
I wish to replace the tile bar with my own code which will have its own max min buttons etc, but wish to still keep the Border style, if I set the FormBorderStyle property ot none I loose the border of the window, and all the oterh option always provide some sort of title bar. Any Ideas. T...more >>

SplitContainer and GetChildAtPoint
Posted by Adergaard at 4/8/2006 3:36:01 PM
I have a UserControl that I have a SplitContainer in. I have placed several Controls in the panel1 and 2 of the split container and I want to be able to do a "GetChildAtPoint" when clicking on the UserControl. However, all I get is the SplitContainer as result. How can I disregard the spli...more >>

Message queue in modeless dialogs
Posted by eduwushu at 4/8/2006 2:16:01 AM
Hi, i have a multithreaded application which uses forms and i have a worker thread that has to create a modeless dialog to monitor some of the operation which it has to do. The problem is that if you create the dialog and call show() from the thread this dialog wont't have a message queue and ...more >>

Is there any best methods to deloyment a win-form solutions to over 200 pcs?
Posted by abc at 4/8/2006 12:56:28 AM
Is there any best methods to deloyment a win-form solutions to over 200 pcs? ...more >>

How to decide the best choice between web-form and win-form for the next solution?
Posted by abc at 4/8/2006 12:54:12 AM
How to decide the best choice between web-form and win-form for the next solution? In my case, the new projects will have over 200 users to use and we will apply part-by-part function components add to production environment when we developed a part and parts. The projects will have a very...more >>


DevelopmentNow Blog