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 2006 > threads for september 15 - 21, 2006

Filter by week: 1 2 3 4 5

Load on demand
Posted by freddyboy at 9/21/2006 7:33:40 PM
Hi I'm looking for a magazine article about load on demand , i have seen it very recently (last month or so) but i don't recall which magazine. the article is about load on demand the problem we have is that our application takes a lot of time to load (80 seconds) because it loads all th...more >>


Class Architecture
Posted by Techno_Dex at 9/21/2006 11:12:23 AM
I am using the Enterprise Library, specifically the Logging functionality. I would like to write a class that has protected methods which perform the actual logging of methods that are called and possibly raise events. My problem is I'm struggling with the design. I want to design this fun...more >>

ErrorProvider Property
Posted by Dwight at 9/21/2006 6:33:06 AM
Hi, I know how to set the message for an ErrorProvider through code when handling a validating event, however, I would like to use the message that is entered at design time in the properties window for a given control. ie. Error or ErrorProvider1. How can I use this message with the seterror ...more >>

Multiple applications share one configuration file (ApplicationSet
Posted by nickname at 9/21/2006 3:52:01 AM
Is it possible to have multiple applications sharing one configuration file with the ApplicationSettingsBase class? If so how can i achieve this? Thanks...more >>

System.AccessViolationException running debugger
Posted by V&G at 9/21/2006 12:58:42 AM
Hello all! Sometimes, not consistently, focus change cause the WinForm application, running in debug mode, to throw following exception: ================================================== "System.AccessViolationException: Attempted to read or write protected memory. This is often an indicatio...more >>

How to determine if I am in a web or a windows application
Posted by Jean Paul Mertens at 9/21/2006 12:00:00 AM
Hello to all, I use a lib class to handle all my exeption errors ocured in my objects. Since my objects are used in windows applications as well as in web applications, I would like to determine in my lib class if she is serving a web or a windows application. Is there a neat way to detect ...more >>

MDI Children forms
Posted by PT at 9/21/2006 12:00:00 AM
Hi, is it possible within an MDI based app to somehow get the Z-Orders of windows so it can be possible to save out the positions and order so the next time you ran the app the windows would be in the same state ? I've tried searching about z-order but it seems a no go area and things are just...more >>

ComboBox and Datasource
Posted by Max3vil at 9/21/2006 12:00:00 AM
I have a combobox that load its data from a dataset. After i had load data, i would like to add an element, to a combobox, in the first position. Whow do i do ? any ideas tnx ...more >>



TreeView node chopping off bold text in framework 1.1
Posted by Roy at 9/20/2006 2:36:02 PM
I have a TreeView control and I populate nodes and set their text property. If I make the font of the tree node bold, the part of the last letter is chopped off when displayed. It seems like the length of the tree node label is tied to the normal look of the font, and since the bold view makes...more >>

Dire TreeView performance in .Net 2.0 vs 1.1
Posted by kiwidude at 9/20/2006 2:31:40 PM
All, Microsoft appear to have changed the internal implementation of the TreeView control and the changes appear to be not for the better as far as my application is concerned. Has anyone else had performance issues with it? The issue I have is that I need to change the .Text and .ImageInde...more >>

Launching and controlling MS ACCESS through my windows form
Posted by NathanJ at 9/20/2006 1:20:29 PM
I am trying to open a MS Access Front end through my windows form app. It opens fine when the file doesn't need a password. System.Diagnostics.Process.Start("C:\DBFrontEnds\Employee.mdb") Is there a way I can pass the password to Access in this case? I have looked into the startprocessInfo ...more >>

I really, really need smtp help
Posted by enak at 9/20/2006 11:46:01 AM
I am trying to get some help on how to send email via a remote smtp server. I have posted here several times already. I need to be able to send email using winforms, vb.net 2003 or 2005 through a remote smtp server. The server is hosted by Web.com and I have talked to them but their support is...more >>

MDI Child jiggles like a bowl full of jelly.
Posted by Al Christoph at 9/20/2006 10:21:01 AM
One of my continuing series of postings explaining why VSTS 2005 is not ready for prime time and asking for help. Create a mdi parent form. Add ToolStripPanels to all four sides. Put a flow control menustrip in the top panel and a toolstrip below it. All very reasonable things to do. No...more >>

Field is never assigned to, and will always have its default value
Posted by Shayaan at 9/20/2006 6:44:01 AM
private struct MySTRUCT { public IntPtr hwndMyObj; public Int32 idMyObj; public Int32 MyCode; } In Vb.Net 2005 code above, I am getting a warning message "MyProj.MyClass.MySTRUCT.hwndMyObj is never assigned to,and will always have its default value." The sam...more >>

Textbox with blinking cursor does not receive key input
Posted by huli at 9/20/2006 1:41:48 AM
In our Windows Forms app we are having an issue that our login dialog (a System.Windows.Forms.Form) does not always receive focus. In this case the cursor blinks in the textbox however the field does not receive any key inputs and therefore does not display any text entered. The user needs to cl...more >>

Log in
Posted by Max3vil at 9/20/2006 12:00:00 AM
I need to write two forms, frmMain and frmLogin. I would like to show frmMain after i pres a button in frmLogin. any ideas ? tnx ...more >>

Resizable winform
Posted by news.microsoft.com at 9/19/2006 8:15:55 PM
Hi there I'm using .NET 2.0. When I have a winform with controls how do I make it resizable ? I have tried each of the LayoutManagers that stick with Visual Studio 2005, but they do not look like they have the desired funtionality... Thanks in regards, Jess ...more >>

Controls of a form
Posted by Hamed at 9/19/2006 3:46:40 PM
Hello I have a form that containes a lot of controls including panels those contain other controls. Is there a way to simply get all contained controls either directly or indirectly through other containers such as panel or GroupBox controls? ...more >>

C# Wanna BE
Posted by Alvis at 9/19/2006 3:35:02 PM
Hi i have a url that if i paset it into IE it returns to me a zip file from a remote server. it asks me where do i want to save it then creates the zip file. the file contains the data that i have requested I have created a desk top app that makes the same request to the same remote s...more >>

Combobox droppeddown property and strange mouse cursor behaviour
Posted by Cameron Epp at 9/19/2006 12:34:59 PM
Hello, When I set the droppeddown property of a combobox in my form load procedure, it sets the mouse cursor to the hourglass for the whole form - but I'm not sure why. I would like it to keep the default mouse pointer but when I set the droppeddown property it changes the cursor and it won't...more >>

Assign Combined FontStyle on the fly
Posted by Liming at 9/19/2006 12:06:44 PM
Hi all, I know for fontStyle, I can specify FlagAttribute to get a combone FontStyle like so FontStyle.Bold | FontStyle.Underline The problem I'm having is, depending on what users clicked, I need to dynamically concate the FontStyle together. How do I do that? FontStyle fontstyle; ...more >>

Past due query
Posted by John at 9/19/2006 11:51:14 AM
I am trying to create a past due query of active quotes but instead of giving me a sum, it gives me multiple sums all equal to 1. I assume it is due to the "group by" being different but it won't let me do the query without it. What am I doing wrong? SELECT COUNT(QuoteDueDate) AS Ex...more >>

Unable to edit/move/remove controls in Subclassed form
Posted by Juan Dent at 9/19/2006 10:27:01 AM
Hi, I am subclassing a Form and cannot edit, move or remove controls - or change their properties. A little lock appears by each control. This is in VS2005. How can I control what can be done to subforms, for instance if I were to give my forms to someone and let them derive subclasses and...more >>

How to display unicode characters using a special codepage.
Posted by tobi at 9/19/2006 6:43:01 AM
hello all, Using framework 2.0 I have to display a text, given as a xml data file. The given text contains extended unicode data (see below '↑' represents arrow up decimal code # 8593 given as direct unicode # 2191) <?xml version="1.0" encoding="iso-8859-1" ?> <help> <display>&x2191 ...more >>

System.net.Mail class a html images
Posted by sguernieri at 9/19/2006 5:55:01 AM
I'm trying to send html mails from my .net app and I have problem putting an image file in mail body without putting it into attached files. How can I do? Thks...more >>

How to trap Application Form Change event?
Posted by MilanB at 9/19/2006 5:06:02 AM
Hello, I had to disabled Form Inheritance because bug in VS 2005 in inheritance and localization. ANy suggestion how to trap form when it is to display or something simmiliar, in order to set common properties for all forms. For example: (Not to show in taskbar) thanks MilanB...more >>

Arrow keys work in opposite direction in panel
Posted by kuchuk at 9/19/2006 2:13:54 AM
Hi, I have a panel in my project (C# .NET 2003). I have multiple radio buttons placed in it. When I press UP Arrow key, The focus in the screen moves one radio button DOWN. ofcourse if I press DOWN Arrow key the focus in the screen will move one radio button UP. I guess this is because of the w...more >>

Override OnPaint vs Handle Paint event
Posted by sanjusunny NO[at]SPAM gmail.com at 9/19/2006 1:20:45 AM
I am creating a set of User Controls with a lot of custom painting. Is there a performance hit in doing the painting by handling the Paint event versus putting the painting code in an overridden OnPaint method? I will be creating a a few thousand instances of the custom control. ...more >>

A little help on understanding properties ??
Posted by Paic Citron at 9/19/2006 12:00:00 AM
Hi, I'm currently working on an scenegraph editor. I have a treeview, and when I select a node, it shows its properties in a propertygrid. Each node has a link to the scenegraph node, and I override the property accessors to modify the scenegraph node when the user change something in the p...more >>

Scollable property in Listview class breaks column headers
Posted by Erik Alsmyr at 9/19/2006 12:00:00 AM
When setting the Scrollable property of a listview and resizeing it the headers will be painted wrongly. This defect is documented in MSDN as: In versions of the .NET Framework prior to version 2.0, the column headers were not painted correctly when setting this property to false and resizing ...more >>

Resizing Controls that are contained in a docked Control
Posted by illegal.prime NO[at]SPAM gmail.com at 9/18/2006 7:21:05 PM
I'm surprised that I'm only know discovering this problem, but I suppose I've never needed to change the dimension that is opposite to the docking of the control. That is, when I've docked a control to Top, I've never needed to change its height and vice-versa. But, now I would like to do this...more >>

How to create a TreeView node with no image?
Posted by Juan Dent at 9/18/2006 1:47:02 PM
Hi, I have a TreeView with an associted imagelist. I want some nodes to have no icon. How do I do this? How can I create an "empty icon"? -- Thanks in advance, Juan Dent, M.Sc....more >>

custom gridviw column
Posted by Louis-Pierre Dauphinais at 9/18/2006 1:15:22 PM
Please help, easily reproduced: 1. Create a class inheriting from System.Windows.Forms.DataGridViewTextBoxColumn . 2. Add a simple property to that class (see below for the code I used). 3. Add a column of that type to a DataGridView. 4. Try to set the property you just created using the "Edi...more >>

BackgroundWorkerProcess and GUI updates (progress windows)
Posted by Michael Jervis at 9/18/2006 10:05:47 AM
Hi, I'm writing a little application that scans a large number of media files for processing. The main application currently uses a backgroundworkerprocess to perform the scan. Each media file has meta data extracted and is added to one of a range of lists (pseudo-queues) for later processi...more >>

Font size based on the client rectangle of the control.
Posted by kiranreddyd NO[at]SPAM gmail.com at 9/18/2006 5:44:04 AM
Hi, I have a control that render text. This is done in OnPaint() override by drawing the text. When the control is resized, the text inside it should also be resized according to the size of the control. Either height of the text or width of the text or both need to be resized. So I need ...more >>

Windows Forms Disabled Text
Posted by gareth at 9/18/2006 3:27:23 AM
Hi, I'm trying to modify the tabCrontrol so I can enable/disable tabs. I've got it all working except it doesn't look like I want it to. When a tab is disabled I want the text to look like a disabled button's text (indented grey?). Is there a simple way to do this (is there a "disabled" f...more >>

Howto create semi-modal popup form in MDI application
Posted by Henrik Rasmussen at 9/18/2006 3:25:02 AM
I'm creating an MDI application in C# 2.0. I need to show a popup form (similar to a dialog) on an MDI child form, such that the popup form is modal to the MDI child form, but without blocking other MDI child forms and obviously without blocking the main application. I know that I can't us...more >>

Adding a UserControl to the Component Tray
Posted by ian.kemp NO[at]SPAM gmail.com at 9/18/2006 2:31:32 AM
I have a base UserControl class - DataModule - to which I have added a SqlConnection and a DataSet. The idea is that users will build on this base class, adding their own SqlCommands as needed, but always using the same connection/dataset (i.e. a simple API). The reason for using a UserControl, ...more >>

How can I control positioning of child windows in an MDI form?
Posted by Hamed at 9/18/2006 12:00:00 AM
Hello I have a question about CHILD forms in an MDI form. How can I have a neat positioning of child windows in an MDI form? When I open a new child window in my MDI form it is opened in a new cascading position but when I opens a lot of forms, it goes out of the borders of the MDI form...more >>

MDI Form Position
Posted by Hamed at 9/18/2006 12:00:00 AM
Hello Two questions about positioning: When I run my MDI application developed by VS.NET 2003, the MDI window is opened in a new place and after some run again and again, it opens in a position that some borders of MDI form goes out of the desktop. The WindowState of MDI form is in Norm...more >>

Form.TopMost behaviour
Posted by Yonatan at 9/17/2006 12:39:01 AM
I'm a bit confused regarding the behaviour when setting the Form.TopMost property. If setting the property to 'true', does it make the form top-most of all windows in all applications, or only the form's application ? Searching google, I've found people claiming it's enough to set TopMost in ...more >>

how to show a form or process command line args
Posted by Steve at 9/16/2006 7:46:01 PM
Hello. I would like to write a console application and windows form application all in one. If there are command line arguments, then I would treat it as a console app. Otherwise, I would display a form. I'm having trouble doing this. Any ideas?? Here's what I did so far: 1) Create ...more >>

Validating a DataGridViewComboBoxCell on focus lost
Posted by Nomasnd at 9/16/2006 10:04:01 AM
Hi, i would like to make a DataGridViewComboBoxCell (which often is the last-edited one) validate in such a way that when the datagrid lost the focus the ComboBox cell Text property is setted to the combobox Value property. I've already written all the code needed to change the ComboBox view fro...more >>

What causes exception in ComboBox
Posted by jsh02_nova NO[at]SPAM msn.com at 9/15/2006 9:54:01 PM
When selecting last item in combobox I receive the following exception in VS: System.ArgumentOutOfRangeException was unhandled Message="InvalidArgument=Value of '31' is not valid for 'index'. Parameter name: index" ParamName="index" Source="System.Windows.Forms" StackTrace: a...more >>

Windows Forms Stylesheets?
Posted by jlotmar at 9/15/2006 4:49:02 PM
Is there anything equivalent to CSS for use in windows forms? I’d like to be able to have the colors and fonts determined by some kind of configuration file (ala Cascading Style Sheets) so that individual application users can customize the user interface to there taste. Is there any sim...more >>

datetime
Posted by John at 9/15/2006 3:54:58 PM
I have a date value in a database and I want to show it's value on a form. It is bound to the data and shown with a datetimepicker. When the value in the database is null, an incorect value is shown on the form. is there a way to get null to show when it is null? ...more >>

Detect if Workstation is locked
Posted by ThunderMusic at 9/15/2006 12:54:43 PM
Hi, I want to detect in my C# app (can use iterop) if the workstation is locked. I've seen on the web people saying it's impossible except by looking if the Screensaver process is running. There must be a clean way of doing it because MSN detects it and can change your status based on this. ...more >>

Display ToolTip on TextBox
Posted by escristian NO[at]SPAM hotmail.com at 9/15/2006 12:38:04 PM
(Created on VS2003 using C#) I have derived the TextBox control to create my own control that does a lot of filtering and autocorrection of user input. I want to be able to give feedback to the user when there's a problem the input he's trying to do. A good example is in Windows XP if you go t...more >>

Forcing DataGridView to repaint a row/disabling a row
Posted by scarleton NO[at]SPAM gmail.com at 9/15/2006 9:06:07 AM
I have a datagridview that is bound to a datasource. The under lying data is not from a database, but biz objects. The first colume (InUse) is a check box to determine if the rest of the row is enabled. When the row is not in use, it is grayed out in the CellFormatting event. After the user c...more >>

Form - mouse selected
Posted by mgonzales3 at 9/15/2006 9:06:02 AM
I'm trying to enable my disabled menu options (cut, copy & paste). The requirement is to determine what on my form has been selected with the mouse. How can I determine this? ...more >>

outlook 2003 left panel look in c#
Posted by fredd00 at 9/15/2006 7:58:55 AM
Hi I'm wondering how can i make a control that looks like the left panel of outlook 2003 , i'm talking about the low part where you see mail, calendar, contacts. this panel you can set the height and the number of 'button' will change there is also a configure button to it. how can i build...more >>

GDI objects count
Posted by sonali_reddy123 NO[at]SPAM yahoo.com at 9/15/2006 12:04:15 AM
Hello all, Can somebody help me out regarding how to maintain the GDI objects count in my application it keeps on incrementing and once reaches to 10000 the application dies. Can somebody point to me some sample application which could help me to understand how exactly manage the object dispo...more >>

Custom Control with Transparent Background
Posted by Martijn Mulder at 9/15/2006 12:00:00 AM
/* How can I give my custom System.Windows.Forms.Control a transparent background? In the small application below, I expect to see two partially overlapping circles, a blue one and a red one, but only the blue circle appears. When the background of the controls iis transparent, both circles ...more >>

outlook 2003 left panel in c#
Posted by gh0st54 at 9/15/2006 12:00:00 AM
Hi I'm wondering how can i make a control that looks like the left panel of outlook 2003 , i'm talking about the low part where you see mail, calendar, contacts. this panel you can set the height and the number of 'button' will change there is also a configure button to it. how can i build...more >>


DevelopmentNow Blog