Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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 > october 2003

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

DPI/Large Fonts issues
Posted by James Hancock at 10/31/2003 11:58:28 PM
There are a couple of things in the framework that don't handle nicely with DPI changes (well lots of things but two that I have noticed) #1 Background graphics on forms tile in large fonts instead of drawing the graphic larger. #2 All of the sizing functions are off when looking at graphics...more >>


Detecting Windows shutdown
Posted by Dave Townsend at 10/31/2003 11:27:19 PM
I am trying to write an application that starts with windows and sits in the systray, only showing a form when the user clicks the systray icon. I have got it working almost perfectly. The systray icon shows up, right clicking it and selecting exit exits the application. My problem is that ...more >>

Raised panel?
Posted by Zoltan Hernyak at 10/31/2003 10:29:32 PM
Hi, I am sure it was asked before, but I don't know the answer. How can I put a raised panel onto my form? The original panel can act only flat or sinked appaerance... In Delphi I can set the outer border to be raised/lowered as well as the inner border... I can't do that in .NET? Why? Or ...more >>

Detecting Resize Completion?
Posted by Dave Veeneman at 10/31/2003 7:35:56 PM
Is there a simple way to detect when a resize is completed? I'm writing a custom control, and I want the control to repaint itself when a resizing is complete, but not during the resizing. The SizeChanged, Resize, and Layout events all seem to fire repeatedly during the resize. Is there an eve...more >>

event for ListView add item
Posted by Ondrej Sevecek at 10/31/2003 6:08:07 PM
Hello, which event (I cannot find one) handles item added into ListView control? Ondra. ...more >>

FEATURE REQUEST: Form splitters that....
Posted by news.microsoft.com at 10/31/2003 4:41:43 PM
actually are nicer to code, at present they just plain suck. ...more >>

Controlling mouse pointer location
Posted by Dave Leach at 10/31/2003 4:35:58 PM
I would like to position the mouse pointer to one corner or the center of my C# application's main form when a particular event occurs, probably tied to a change in some parameter's value. How can I control programmatically the mouse pointer location? Also, can I position the mouse pointer...more >>

Tooltip Text
Posted by Andres at 10/31/2003 4:23:43 PM
Does anyone know how to get the text that is shown in the tooltip of the files that are in the windows explorer. I mean when you put the mouse on a file, the tooltip is shown, and every kind of file shows a different text, i want to know how to get that text. Thanks....more >>



Why events are behaving differently for controls in 1.0 and 1.1 of .NET?
Posted by Anil at 10/31/2003 3:18:57 PM
Hi all, I have observed that some of the controls in 1.0 .NET framework behave differently in 1.1 .NET framework. For example - the ComboBox control: The combo box is in DropDown mode. Consider the behavior of KeyPress event. In 1.0 framework, the combobox Text property contains the modifi...more >>

Bring a window to the top
Posted by Sebastien Lange at 10/31/2003 12:30:54 PM
Hi, Try the code below, and become crazy with me!!! (I have WinXP) My main window call another process (another window that the user must fill in) and wait until the process is finished. I have to deal with thread, otherwise the main window could not be updated/refreshed. So when the proce...more >>

MouseHover event - How do I get the Mouse Coordinates?
Posted by Steve Hiemstra at 10/31/2003 12:01:09 PM
How do I get the Mouse Coordinates when the MouseHover event occurs over a Control (in a Form)? SteveH ...more >>

Inherited Forms
Posted by Marco Roberto at 10/31/2003 10:41:12 AM
Hi, I have the following problem: My application has a base form and all forms inherits this one. The base form has a datagrid and a groupbox. When I put any control in the form that inherits the base form the group box and the datagrid loses the position on the screen. Is there any p...more >>

Grid with cell editors (combo,text,datetime,checkbox) with source!
Posted by CTellez at 10/31/2003 9:40:28 AM
..NET Grid with source code! We invite you to visit us online to see this quite simple yet powerful .NET Grid control written entirely in Visual Basic .NET 2003. Supports cell editing, XML file generation, images in cells and more. Includes binary library you can use with C#, a comprensive manua...more >>

How to prevent data from being randomly deleted?
Posted by Kenneth Bohman at 10/31/2003 7:13:19 AM
Linking two or more datagrids in .NET (1.0) is by design a nightmare. There are several examples on how this has been disencouraged. The problem I'm facing now is slightly different and definitely more severe than previous ones. One client started complaining after six months of using ...more >>

Beep in textbox when ENTER
Posted by Raffe at 10/31/2003 2:29:11 AM
I want to use ENTER to do TAB. ENTER moves from one control to the next, just like TAB would do. This works fine with sendkeys but I always get a beep when I press ENTER in a textbox. Can I kill this beep? Why beep? /Raffe...more >>

data grids with combo boxes
Posted by Geraldine Hobley at 10/31/2003 2:13:22 AM
Hi, I need to add a combo box to a data grid, however the catch is that the datasource for each combo box is different in each row. I have added a combo box for a customer column like so ' we need to have a combo box in the customer column Dim ComboCustCol As New Dat...more >>

Double Click a datagrid row
Posted by Gary at 10/31/2003 12:13:29 AM
How can I just double click anywhere on a row and catch the event? I just want to double click and get the the value of a hidden ID column. I have double click working, but only if you double click the record selector, but I don't want a record selector showing on the grid. I would use...more >>

More Zero deployment
Posted by Gary at 10/30/2003 11:52:31 PM
Can anyone suggest a way of making sure that no more that one instance of a zero deployed app can be run? Can't use the standard method of checking if a process already exists because it executes as IIEXEC and not the .exe name. Any suggestions? Cheers Gary...more >>

Connection string
Posted by Ben Peeters at 10/30/2003 10:26:04 PM
Hi, I 'm developing a multi-form windows application. I have to interact with a database at different places. What is the best place to keep a connection string to the database so that I can just access it right there? Ben ...more >>

System.Diagnostics.Process.Start forcing browser to stay on top
Posted by mBird at 10/30/2003 7:34:27 PM
I launch a file in the browser from a function in my application: string f = "test.htm"; System.Diagnostics.Process.Start(f); The browser stays on top (so the application gets hidden under the browser). But ... When I put System.Diagnostics.Process.Start() in a class and make a method ...more >>

Inheriting from an Inherited Form - Possible?
Posted by Adam Tompkins at 10/30/2003 6:18:25 PM
Form A inherits from a base form. Form B inherits from Form A. When I try to open Form B in the IDE I get an error: ' The path is not of a legal form ' If I change Form B to also inherit from the base form it opens fine. Any help would be appreicated. - Adam ...more >>

a nullpointer in drawing.dll?? bug??
Posted by Bartje at 10/30/2003 5:39:52 PM
I'm putting my first steps in the code access security world and to run applications with different evidence. I've been trying to write a hostapplication to give assemblies a certain evidence and the hostapplication seems to work well but when I close the application, I get the following n...more >>

Keyup event: how to detect if another key is pressed
Posted by moondaddy at 10/30/2003 4:42:36 PM
I'm using vb.net/vs2003: In a combobox's keyup event I need to exit the keyup event procedure if the user was executing (Alt + S) to save the record, but if the user was simply entering the key (S) then I need to finish executing the code in this sub. I envision suto code looking like this...more >>

FlowLayout mode for Windows Forms in .NET 2.0?
Posted by ShadowChaser at 10/30/2003 3:26:01 PM
The company I work for develops database applications using .NET (C#). Much of our data could be best represented in a "flow layout" or document-like format. Unfortinately - there is no flow layout in .NET for windows forms, only absolute positioning, which abosoltely sucks for text integ...more >>

Get Checked nodes in TreeView
Posted by john at 10/30/2003 2:32:30 PM
I have a tree view where the user can check any or all of the nodes. is there a built in way, in the tree view, to get an array of the checked nodes? or do i have to do a recursive search through the node graph and check each one if its checked or not? Thanks, John...more >>

Background load of a form
Posted by Muscha at 10/30/2003 2:29:18 PM
Hello, I have this form that is control heavy and take a while to load. When the form loads I can really see that it loads the control one by one (or noticeable) even in a fast computer. Is there a way to background load the form and when it finishes loading everything then do a .Show() or ...more >>

help to find an article
Posted by christophe at 10/30/2003 1:46:53 PM
hi, does anybody know how to get this article : http://www.amazon.com/exec/obidos/tg/detail/-/B00008I9MO/ref=pd_sxp_f/002-9517499-2817649?v=glance&s=ebooks because amazon refuse to sell it to people out of the USA ... is there another place to buy it? tkx Christophe ...more >>

Get a NULL value in a textbox
Posted by Filip De Backer at 10/30/2003 11:23:03 AM
Hi, When i delete the text of a textbox, the value is an empty string. How can I get a NULL value in it. I know that it is DBNull.Value, but how can I simple get this value in the textbox when I delete the string in it? Thanks for any answers Filip...more >>

Databinding with Nested Objects
Posted by Victor Jones at 10/30/2003 10:44:09 AM
Hi I was wondering if there was any approach to bind an object that contains a nested object within. Suppose class A is defined as class A { . . . //Property that exposes nested object public B prop { get{return new B();} } } and class B is defi...more >>

How can I get the instance of a winform class?
Posted by Jeff Yang at 10/30/2003 10:22:19 AM
How can I get the instance of a winform class? namespace DZ { public class Form1 : System.Windows.Forms.Form { private System.ComponentModel.Container components = null; public Form1() { InitializeComponent(); } ....... [STAThread] static void Main() { Applic...more >>

Control Transparency
Posted by Rick Strahl [MVP] at 10/30/2003 10:20:58 AM
Is it possible to make stock controls like Label use a transparent background? +++ Rick --- -- Rick Strahl West Wind Technologies http://www.west-wind.com/ http://www.west-wind.com/wwHelp ---------------------------------- Making waves on the Web ...more >>

Validation of all controls on a Windows form
Posted by fred.iannon NO[at]SPAM alohapos.com at 10/30/2003 7:53:56 AM
All, I have a number of controls on a form. Each has its' own "Validating" event handler in order to make sure the user enters "valid" data (this can also be used to make sure the user enters required fields...the data is initially null/empty, etc..) Everything works fine if the use...more >>

DataGrid highlight
Posted by Bart at 10/30/2003 7:18:47 AM
Hi, I am using C# and want to highlight an entire row in a DataGrid when I click the row. I tried this in VB and it works, however in C# I cannot get it to work properly. I have an MousDown event that tells me which row I clicked and then I try to do: dgCustomers.CurrentCell = new ...more >>

Changing the font of TreeView lines
Posted by webcrawler NO[at]SPAM mailandnews.com at 10/30/2003 7:11:42 AM
Greetings, Is it possible to change the font attributes of the TreeView grid lines. I would like to change the colour of those lines, or at the very least make them bold. The only feature the TreeView provides is whether to hide or show them using the ShowLines and ShowRootLines properties...more >>

Inheritence question
Posted by Bob Shafer at 10/30/2003 5:28:37 AM
I am inheriting from a picturebox and would like to hide some of the public properties and methods. Can this be done. Thanks! Bob....more >>

How to process arrow keys?
Posted by bj at 10/30/2003 12:16:45 AM
Hello I need to catch arrow keys down event from control derivied from usercontrol -OnKeyDown method seems to work for all keys besides arrow keys -however OnKeyUp method works just fine for them - OnKeyDown works when i press arrowkeys + modifiers keys like CTRL, so could anybody point...more >>

me.Visible = false in Form_Load doesn't work
Posted by Martin G. Brown at 10/29/2003 11:42:03 PM
I am trying to write a system tray application. I want it to have an invisible window when it loads, with just an icon in the bottom right of the screen. I have placed the following line in the Form_Load event but it doesn't seem to work. me.Visible = false The form just gets displayed a...more >>

How to query Active Directory
Posted by Ondrej Sevecek at 10/29/2003 10:42:58 PM
Hello, how one can connect and then query information from Active Directory? Or some other LDAP enabled system? Many thanks Ondra. ...more >>

Event subscription
Posted by joe at 10/29/2003 9:47:05 PM
Hi, I have a user control which subscribes to user defined events fired from a worker thread. I have a variable, which holds reference of an instance of this control: MyClass { MyControl m_MyControl; ...... SomeFunction() { m_MyControl=new MyControl(); } } Fro...more >>

Inherited Form - Must specify value for source
Posted by Lisa Gay at 10/29/2003 5:33:56 PM
I have created a class library test.dll with contains several objects including a form called frmMDIFrame. I started a new project and included the test.dll as a reference and placed the dll in the project's execution directory. I created a new form inherited from frmMDIFrame in the test.dll. I ...more >>

Can I define a conditional code block that is not compiled when a form is loaded into the designer?
Posted by Mountain Bikn' Guy at 10/29/2003 5:27:47 PM
I have a block of code that compiles and excutes correctly. However, it is not compatible with the forms designer. Is it possible to conditionally exclude this small block of code when the form is loaded into the designer? I can manually comment it out now, and then the form loads into the design...more >>

Do threads behave Differently on Windows 98?
Posted by Codemonkey at 10/29/2003 4:46:41 PM
Hi, Sorry for the cross group post, but I couldn't find a group that deals with threading in .net. Anyway, I've noticed a difference in the way my program acts on Windows 98 than it does on WindowsXP and was wondering if anybody can explain this behaviour. My application runs in the back...more >>

Urgent!!~~ Need help to figure out the following problems...
Posted by Ivan at 10/29/2003 4:11:49 PM
HI ALL, I 'm having 2 questions need to figure out urgently. Please give me some = advices or answer with some sample code if anyone know why it happens or = how to fix it. Thanks~ Question 1: How to handle the event if user click on the datagrid row header (select = the whole row) and pr...more >>

Hide or Close doesnot work
Posted by Hari at 10/29/2003 2:24:17 PM
VB.NETers, I have a problem with my form not getting closed and it gives me error to either continue or quit. I am using the following code frmmain.show() ---- this works frmLogin.Hide() -- this is where it bombs out. This is a project that I successfully upgraded to .NET from VB6 A...more >>

FolderBrowserDialog BUG
Posted by Dennis at 10/29/2003 2:02:51 PM
Does anyone know if using the FolderBrowserDialog (Framework 1.1) has a bug for when the entry point for Main is attirbuted with [MTAThread]? My application works as expected when the [STAThread] is present. But when it is [MTAThread] for Main then the FolderBrowserDialog comes up empt...more >>

Disbaling RightMouse Button Click
Posted by Karuppasamy at 10/29/2003 1:34:25 PM
Hi In Windows Application (C#), on RightMouse Button click in a Textbox, a Popup menu with Cut / Copy / Paste is appearing. How to disable this behaviour. I dont want to allow the user to copy and paste using the rightmouse button. How to do that? waiting for your reply Regards Karu...more >>

width of tooltip rectangle
Posted by Wiktor Zychla at 10/29/2003 12:37:11 PM
is there any way to customize the width of tooltip rectangle? right now it tries to fit the screen width and it looks rather ugly when processing a long string. can I somehow inherit the ToolTip class and set the fixed rectangle width? can I then override the ToolTip's OnPaint method? tha...more >>

X-Axis Offset?
Posted by Zach Nelson at 10/29/2003 12:14:25 PM
I'm working on a control that simulates a timeline and it supports "zooming" so you can drill down and get finer detail along the timeline. I accomplish this by always drawing the same tick marks starting at 0 on the x axis, but I use Graphics.ScaleTransform(zoomfactorX, 1F) to scale the entire d...more >>

Fire custom event in form from a method in a module
Posted by moondaddy at 10/29/2003 11:58:56 AM
I have a combo which I want to have a custom event do something with the selected item in the combo (This could replace the SelectedIndexChanged event). 1) The combo's key up event calls a public method in a module which does some things such as do an autocomplete for the combo. 2) If a...more >>

ComboBox datasource updates
Posted by Carl at 10/29/2003 11:22:20 AM
I have a ComboBox with an ArrayList as its datasource. The list displays its initial elements fine. however when I add elements to the ArrayList they are not reflected in the list and the Items Collection doesn't reflect the new values. Do I have to do something to ensure that the contr...more >>


DevelopmentNow Blog