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 > january 2004 > threads for friday january 16

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 31

Context Menus
Posted by JezB at 1/16/2004 5:19:03 PM
Given a reference to a Form object, I want to do some processing on each of the ContextMenus used in that form. How can I do this easily ? The only way I can think of is to parse the entire Controls collection and evaluate each one to determine if it has a ContextMenu attached, and then to kee...more >>


reusing treenodes in multiple treeviews...
Posted by Tim Mackey at 1/16/2004 4:27:00 PM
this is an unusual problem and there doesn't seem to be anything about it online. i have several winforms that create different treeviews based on the same data, they may be opened by the user at the same time, and i want to achieve consistency between all views, without resorting to regeneratin...more >>

layout ui best practices
Posted by Lance Johnson at 1/16/2004 3:22:21 PM
I've been looking around and wanted to know if anybody knew of any good books for laying out dialogs/forms. We have quite a few dialogs with buttons besides just OK/Cancel and other various situations and we were trying to figure out what's a standard practice for this so we had some guidelines...more >>

User Inactivity Timer
Posted by Stanley Glass at 1/16/2004 2:26:53 PM
I am looking for a way to build in a timer that if the user does not do something in a certain time the program forces them to close it down and open it up or enter a password to continue. I know how to use the timer object but how do I know if the user has done something within my app? Would i ...more >>

Print Text on paper form
Posted by paul .G at 1/16/2004 2:06:22 PM
hi all. This is my problem: I have developed a software for my client. There is a form in the software that the client can enter text and numbers and then application prints it out on a blank paper. Now my client wanted me to print out the text and numbers on a paper form at corresponding posit...more >>

Properties from another Form
Posted by Ben dotNet at 1/16/2004 2:03:15 PM
I would like to get the width property of an active mdiform from a child form. How can I access this property? (vb.Net) Thanks --Ben ...more >>

How to limit to only one copy running?
Posted by casp at 1/16/2004 2:02:16 PM
I'm trying to let the user can only run one copy of the application. If the user try to execute another copy of the application, a message box will be popped up say "another copy is running...". How to achieve that? Thanks, ...more >>

Print pdf file in C#, need help, thanks!
Posted by ywchan at 1/16/2004 1:02:27 PM
I have tried to print pdf by using gswin32 and call it through the process class but I can't change the paper orientation....no matter I have set dORIENT1 = true / false...it is printed as portrait.... Does anyone know how to change the paper orientation in my case? or having some other ide...more >>



sending event data between UI and worker threads?
Posted by Tim Mackey at 1/16/2004 12:37:07 PM
hi, i have a worker thread that raises an event. i'm sending an object as the sender of the event. my UI thread is listening for the event, and i'm wondering if it will screw up the UI thread if it responds to an event raised from a worker thread, and accesses the object sent with the event? ...more >>

Secondary Sort using IComparer
Posted by Jason Daley at 1/16/2004 11:38:14 AM
In the following example, does anyone know if and/or how you would do a secondary sort? ' ****************************** ' Usage ' ****************************** Dim alPeople as New Arraylist alPeople.Add(New objPerson("John","Doe")) alPeople.Add(New objPerson("Jane","Doe")) alPeople.Add...more >>

floating toolbar
Posted by ar at 1/16/2004 11:07:31 AM
hI, Im having some trouble with creating a floating toolbar in vb.net, I do not want to use the toolbar control because I want to include other controls on my toolbar, not just toolbar buttons. I'm creating a Form based toolbar, a Form that is owned by a MDI control, but I have some problems....more >>

Copy and Paste Files to and from the Clipboard
Posted by DraguVaso at 1/16/2004 10:28:55 AM
Hi, I'm looking for a way to Copy and Paste Files to the clipboard. I found a lot of articles to copy pieces of text and bitmaps etc, but nog whole files. Whay I need is like you have in windows explorer: when you do a right-click on a file and choose Copy, and than paste it somewhere in my...more >>

raising events with derived classes...
Posted by Tim Mackey at 1/16/2004 10:09:00 AM
hi, i have a class 'WebManTreeNode' that inherits from Windows forms TreeNode. i have added a 'TextChanged' event to it, because i need to listen out for it, but i am unable to intercept the TreeNode.Text property to raise my event whenever the property changes. i have tried overriding the Text...more >>

how can I highlight a whole row in datagrid programmatically??
Posted by Jason at 1/16/2004 9:56:53 AM
thx all for example, I want to highlight the end of the whole row every time when the form load ...more >>

drawing a caption close button
Posted by thatisvaliant at 1/16/2004 9:36:06 AM
i need to draw a close button within my tabbed MDI application. (i'm using c# with windows forms app) i tried using ControlPaint.DrawCaptionButton(), this lead to 2 problems. 1) i couldnt get the button to paint using windows xp styles so it would be red etc. 2) ButtonState.* doesnt seem to suppo...more >>

Implementing IComparable in a custom class (sorting more than one way)
Posted by jdaley NO[at]SPAM data-tronics.com at 1/16/2004 6:32:39 AM
I have a custom class that provides information about training course history (in-house IT training). There are numerous course history entries for a student or group of students, and they're each new'ed up as an objCourseHistory object and stored in an arraylist. (Hardcoding examples for i...more >>

Creating a Graph like Performance Monitor in .NET
Posted by achalk at 1/16/2004 12:11:05 AM
All of us are familiar with task manager and the "Performance" tab. I want to create that kind of graph in .NET and WinForms. I.e. a line graph that is updatable in real time. It is unclear to me whether this is a GDI+ or DirectX application. Also i can't find examples of anything similar. If anybod...more >>


DevelopmentNow Blog