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 > february 2007

Filter by week: 1 2 3 4

datetime picker problems
Posted by Michel Posseth [MCP] at 2/28/2007 7:13:03 PM
Hello we have encountered the following problems with the date time picker control A : datetime picker control gives focus to last entered field when moving back and forward with focus how do we reset this to the first field ? B : datetime picker in DD-MM-YYYY default format ( europe...more >>


.NET application error
Posted by Mike S. at 2/28/2007 12:23:03 PM
I'm sorry to post here, but the MCP Partner Hotline stated I had to try the managed newsgroups on this issue. If this is the wrong board, please direct me to the correct one. I'm trying to use the Microsoft Certified Partner "Small Business Assessment Toolkit" found at https://partner.micr...more >>

Do we have a better approach?
Posted by Andrew at 2/28/2007 8:40:00 AM
Hi, friends, I am using .net 2005 to develop a window form application. It has about 15 buttons (with icon on them) which need to be visible/invisible dynamically based on user's selection and rights. I know I can create 15 buttons and handle them individually, including moving their pos...more >>

Remove last row in a unbound datagridview
Posted by gsudeesh NO[at]SPAM gmail.com at 2/28/2007 6:42:28 AM
Hi All, I have a undound DataGridView. That is, I am populating the DataGridView using the DataGridView.Rows.Add() call and by setting the values to individual cells in the row. When I am adding data to the DataGridView using such a method, I am getting an unwanted row at the bottom of the D...more >>

How would I tell when a winform is "dirty"?
Posted by David C at 2/28/2007 2:24:28 AM
I need to know if at least one of the winform's controls have been edited by the user. Controls can have textboxes, combo boxes, datagrid, etc. If any one of the forms have been touched and the user hits the exit button, I want the form to ask if the changes should be saved to the database. ...more >>

How would I tell when a winform is "dirty"?
Posted by David C at 2/28/2007 2:19:56 AM
I need to know if at least one of the winform's controls have been edited by the user. Controls can have textboxes, combo boxes, datagrid, etc. If any one of the forms have been touched and the user hits the exit button, I want the form to ask if the changes should be saved to the database. ...more >>

How to improve performance for stock exchange data display received from third party com component
Posted by Rajat at 2/28/2007 12:00:00 AM
Hi, I could not get the answer on the Performance community hence forwarding the same issue here... I am using a third party COM component to get very very fast data stream. I have dragged the com component on a windows form. Now we can request the data for specific symbols on this com com...more >>

how to mimimize an application
Posted by Saravanan at 2/27/2007 10:54:12 PM
Hi I am using C#, i dont know to know how to minimize the application in Taskbar when i click the button(its not minimizebox button), that means how to handle it?? normally if u click the minimize button on the form it will minimize the form, how can i do it in a simple button click event ...more >>



Binging custom objects to the DataGridViewComboBoxColumn
Posted by Steve Bugden at 2/27/2007 11:43:35 AM
Hi, I have bound a collection of type IBindingList to a DataGridView. Each object in the collection contains various string properties, Customer Name, Contact Name etc. It also contains a property 'MyOrder' of custom type 'Order'. The Order class simply contains properties like OrderID,...more >>

Basic Separator Line Control
Posted by Digital Slug at 2/27/2007 10:35:03 AM
Hello, I finally have to breakdown and ask..... Is there a basic "Separating Line" control or "Bevel Line" control. It appears as a simple 3D line. I'd like to know if there is such a control or will I have to create my own line control? Examples: (Observe lines on these screen) 1...more >>

FindRows() doesn't find last entered row in a DataGridView...
Posted by Charlie NO[at]SPAM CBFC at 2/27/2007 8:52:22 AM
Hi: I'm using FindRows() to locate rows in a DataGridView. When adding new rows consecutively, the last row added is not found when calling FindRows(). It's not until you shift focus away from newly added row by selecting other rows will it find it. It's like it's not being committed. Wh...more >>

Call another program from withing windows forms
Posted by johnblayze at 2/27/2007 6:15:51 AM
Hey Guys, I am developing an FTP application that needs to start another program. What is the command for me to start a program within a windows forms application? For example, if I wanted to start excel from within my application, how do I go about doing that??? thanks, in a...more >>

need a example to show how to implement state management in UI
Posted by c2 at 2/26/2007 7:13:29 PM
hello, i want to apply state management to enable ,disable ui correctly and better code . may give me some tips, reference ...more >>

Syntax to get filename list from Multi-select Open file Dialog
Posted by ElmoWatson at 2/26/2007 5:29:05 PM
I need to get the list of files, in a multi-select OpenFileDialog, formatting the list for my purposes (adding to an array) I can't seem to grasp the syntax - - here's part of what I've tried, after creating two variables (s and sList): Dim sList as String() '< - array I want to use Dim ofd...more >>

Window Forms and panels
Posted by Bill Gower at 2/26/2007 4:25:26 PM
Should anything even a menu, toolbar or statusbar ever be directly placed on the main window or should they always be placed on a container such as a panel? Bill ...more >>

.Net 2.0 Pb with multi threads and DataSet dataBinding
Posted by Steve B. at 2/26/2007 4:01:32 PM
Hi, I've build an application that use several threads in background. These threads are managed by a manager object and store control data in a dataset. I've also bound the DataSet to a GridView control. When I run the application, althought I "see" the gridview control to be filled a...more >>

Context sensitive help in wpf application
Posted by Atul Bahl at 2/26/2007 4:01:10 PM
Any suggestion or how to display context senstive help like office 2007 in wpf apps. I would like to use XPS to display the help which may include video, text etc.. Any ideas or patterns will help. Thanks...more >>

Using WPF as a Wizard - XBapp vs XAML Win Form
Posted by John A at 2/26/2007 2:06:35 PM
Hi all, I am currently maintaining a web based survey tool that is very poorly written. I see no reason for leaving it as a web based application and many good reasons for making it a windows forms based application. I know that by using an XBapp (XAML Browser Hosted Application) you can cre...more >>

Asynchronous Programming Model - how to implement?
Posted by Dmitry Nogin at 2/26/2007 2:00:29 PM
Hi, I'm trying to implement APM (Asynchronous Programming Model) API by myself - I mean: IAsyncResult BeginMyFunc(AsyncCallback, object @object); void EndMyFunc(IAsyncResult result); functions pair. The problem is that my working thread has to report updates to the GUI by System....more >>

IDE BindingSource error message
Posted by Flomo Togba Kwele at 2/26/2007 1:36:15 PM
I used the Data Sources window to drop a custom object onto the designer surface. It created a BindingSource and BindingNavigator as a result. When I open the Properties window on the BindingSource, I see DataSource property set to the object I created. However, when I try to dropdown the D...more >>

IDocHostUIHandler ShowContextMenu problem with one of the args
Posted by barker7 NO[at]SPAM yahoo.com at 2/26/2007 12:01:15 PM
I have created a context menu when a user right clicks on a link. I've implemented IDocHostUIHandler and post the menu if the right click happened on a link: public uint ShowContextMenu(uint dwID, ref tagPOINT ppt, object pcmdtReserved, object pdispReserved) { Write(string.Format("Conte...more >>

Paging with the DataGriView control
Posted by Ben at 2/26/2007 9:37:07 AM
Hi all, Is it possible to view result sets with the DataGriView control, instead of it showing all the results at once? For example, showing the first 10 results, then the next 10 and so on, just like in web pages. Thanks, Ben...more >>

Displaying a selected ListViewItem
Posted by Day at 2/26/2007 8:53:27 AM
Hi~ I'm writing an application that displays a list of files in a ListView control and updates their status while filtering and copying processes happen, i.e. - I copy a file, that file's status is displayed as being transfered. I filter a file, it then shows the result of the filtering, etc....more >>

How to convert the items in a listbox to an arraylist?
Posted by Philip at 2/26/2007 3:44:03 AM
Hi, I want to make an arraylist of all the items in a listbox. Can I do it like this: CType(lstSelectedList.DataSource, ArrayList) Or is there a better way in VB.NET (Framework 1.1) thanks Philip...more >>

Strange concurrency error
Posted by John at 2/25/2007 8:44:38 PM
Hi I have a perfectly working vs 2003 winform data app. All the data access code has been generated using the data adapter wizard and then pasted into the app. I had to add a new field in the backend access db which I did. I then dragged the table to the dataset and deleted the old table...more >>

WPF v Windows Forms
Posted by vulcanite at 2/25/2007 11:55:03 AM
Hello all, I am just trying to get up to speed with WPF (and .Net 3.0 in general), and trying to decide whether it is worth using WPF for a new business application (job tracking) which will be used by small businesses on windows Pcs (XP/Vista). Hope to have it ready by late 2007. The ...more >>

Visual Studio 2005 SP1, and Vista
Posted by Johnny E. Liner at 2/24/2007 10:00:31 AM
Hello, About a week ago, I upgraded my development laptop to Vista Ultimate and Office 2007. After I reinstalled my Visual Studio 2005 Professional, I installed the VS 2005 SP1 update. I still keep getting a message dialog box that states ... Visual Studio 2005 SP1 requires and update for W...more >>

ClickOnce and Basic Authentication
Posted by Al at 2/23/2007 1:03:09 PM
We have a "ClickOnce" application that we are attempting to deploy. The application deploys correctly to the web server but when we attempt to down load the application to the client it gives an error that indicates we don't have the rights to it. We have traced it down to the fact that we a...more >>

User Controls Help
Posted by nntp.microsoft.com at 2/23/2007 11:01:08 AM
I have been struggling with this for too long now, an desperately need help. I'm an asp.net programmer, but am working on a windows form for this app. I have 1 form and 2 user controls, Say UC(A) and UC(B). UC(A) has a datagrid, UC(B) has a ListBox. When I click on the Datagridrow in UC(A)...more >>

How to get the main window object from outside the object?
Posted by Funnyman at 2/23/2007 10:27:03 AM
I'm pretty new to .net Windows Forms, but I've done a lot of searching and can't find an answer to this question. Here's what I'm trying to do: main() { Form1 myForm = new Form1(); Application::Run(myForm); } Function1() { // I need to modify elements of myForm either /...more >>

auto close a messagebox on event firing, C#
Posted by Renster at 2/23/2007 7:56:10 AM
Folks, Im all too familiar with Messagebox.Show - but now I have a situation where I need a similar sort of messagebox to appear, but to automatically disappear when an event fires - ie, messagebox.show ("Please plug the device in the USB port"), then when the user plugs a device in, and the ...more >>

problem when changing visibility of UserControl (VB.NET Windows Fo
Posted by Philip at 2/23/2007 5:50:49 AM
Hi all, ..NET Framework 1.1 / Windows Forms - VB.NET I have a wizard form and a user control with 2 listboxes on it (plus other user controls for multiple dates and string values). At runtime I create a new panel, then I instantiate the user control, pass in an arraylist as the data sou...more >>

Is form visible to the eye
Posted by PDB at 2/23/2007 1:05:05 AM
Hi all, is there a way to determine whether a form is visible on screen or not. I don't mean is it .Visible or .Hide() but can the user actually see the form (be it focused or not) For that matter can it be detemined exactly how much of the form is visible. tia paul ...more >>

How to customize the form
Posted by Saravanan at 2/22/2007 11:16:21 PM
Hi, I am creating windows form at the run time and also i am setting the FormBorderStyle to FixedSingle. So that the form comes with some standard size, but i wanted to customize the form size.. How can i customize the form size with FormBorderStyle property as FixedSingle.. Even when i tri...more >>

Removing TreeView nodes with custom images
Posted by Marko Bozikovic at 2/22/2007 5:54:09 PM
Hi all, Using VS 2005, and I have a problem with removing nodes with custom images from a treeview. TreeView's ImageList is initially empty. First, I add a default/root image: treeView.ImageList.Images.Add("Tree_Root", new Bitmap(Resources.Tree_Root)); treeView.ImageKey = "Tree_Roo...more >>

XmlDocument.Load() crashes designer but works anyway?
Posted by DanThMan at 2/22/2007 3:28:08 PM
The following code works when I debug and when I install the software and run the .exe, but if I try to open the form in the designer (which causes this code to run), I get an error: Private Sub LoadTestSettings() Dim rootPath As String Dim eventHandler As ValidationEventHandler ...more >>

Menustrip combobox overrides..
Posted by modi321 at 2/22/2007 2:13:52 PM
I am using VB.NET 2.0, and I am having a trouble of time making the menustrips combobox act how I want. What I am shooting for is instead of the bland list box popping down when I click on the combobox I would rather have it popdown with a data grid instead. Is there any way of overwriting th...more >>

None of the KeyXXX events seem to be firing on my form :-(
Posted by Simon Harvey at 2/22/2007 1:30:55 PM
Hi All, I need to submit a form when the user presses enter. No problem I think to myself - I'll just use the KeyDown event of the form. So I've added an event handler for that event (and the other Key events) and everything builds, but I can't seem to get the events to fire :-( Can anyo...more >>

Dynamic MenuStrip Question
Posted by Dave Coate at 2/22/2007 12:53:18 PM
Hi With the following code, I can create a MenuStrip with one item, "Admins". When the user clicks on Admins, it dynamically adds items to the menu Admins. (In this case "Dave" And "Elizabeth") When I run this form, the first time I click on "Admins", nothing happens. Everytime I click o...more >>

Problems with the Windows Forms Listbox (VB.NET 1.1)
Posted by Philip at 2/22/2007 7:22:43 AM
Hi, I have auser control with two listboxes on it. When the user selects one or several items in the left box and clicks Add, they are copied into the listbox on the right. When the user selects one or multiple items in the listbox on the right (lstSelected) I want to remove the selected it...more >>

ReportViewer - accessing *second* object in object data source....
Posted by oliharvey NO[at]SPAM googlemail.com at 2/22/2007 6:36:13 AM
....grrrr - this is driving me mad !!!!! I have a number of addresses to display on my report. my object data source is an "Address" business object. I can bind a collection (list) of address - and pass these into a report for tabulation - no problem. I can also access the frist address...more >>

what control to use
Posted by Tarscher at 2/22/2007 5:15:54 AM
Hi all, I have an application that has a form (MainForm) with a tabcontrol. I want to populate the tabs (3 tabs) with other controls. I prefer to put those controls (3 controls) in different classes since this allows me to break up the UI in functional parts. Momentarily I'm using usercontr...more >>

help with where the item will be dropped during drag drop
Posted by Tarscher at 2/22/2007 12:43:31 AM
Hi all, Users can rearrange a listbox by a drag drop operation. All is implemented but it's not always easy for the user to know where exactly he is dropping his item. Does .net provide you with some sort of functionality that indicates where you will drop your item? Eg: when the user hover...more >>

Data-bound DataGridView, overloaded ProcessCmdKey & CancelEdit problem
Posted by Pavel Maly at 2/21/2007 9:05:17 PM
Hello, I need some help with a DataGridView control and ProcessCmdKey method of the form. The DGV is data-bound to an Access database table with a few NOT NULL columns. The ProcessCmdKey method of the form is overloaded. I tried to use return base.ProcessCmdKey(ref msg, keyData); in the...more >>

How to clone a "Control"
Posted by Rob Stevenson at 2/21/2007 8:37:56 PM
Does anyone know how to do this accurately. I really only want to clone the design-time properties which should make the task easier. I've searched high and low however and still can't find a problem-free solution. Even (ad-hoc) solutions posted by MSFT employees have problems. For instance, i...more >>

wpf book recommendation?
Posted by Paul at 2/21/2007 1:52:20 PM
Any recommendations for WPF books? I'm a little skeptical of reviews on Amazon right now, since they might be astroturfed by the publishers....more >>

Dataset and scalability issue
Posted by Nick nkw at 2/21/2007 10:50:04 AM
I am creating a winforms application. Drag and drop and VS 2005 automatically created Dataset based on the MDB schema. I found it seems that all the changes are cached in the memory. Will the default way has any scalability issue if the database tables are huge? What's the solution if it doe...more >>

problem getting data from drag drop
Posted by Tarscher at 2/21/2007 8:27:34 AM
Hi all, I have a 2 classes (A and B) inheriting from 1 base class (parent). I populate a listbox with those 2 classes (A and B). I want to implement some drag and drop ordering code on the listbox. To get the data out of the dragged item I try: Parent myParent = (Parent)e.Data.GetData(type...more >>

popup a form remotely
Posted by sumu at 2/21/2007 2:20:06 AM
I am doing a simple chat server using .net remoting. When client application in my system gets a message, i call a method which creates a new object of a form to display message..The problem is i cant call Show method or Showdialog. if i call Show method, the form is not being displayed. if i c...more >>

Developing a WYSIWYG - IDE type application. How would you do it?
Posted by iKiLL at 2/21/2007 12:00:00 AM
Hi all I have been asked to develop a solution that is customisable by our clients. It is supposed to run on the Windows Mobile 5.0 CF2.0 environment using Merge Replication. I have looked into allowing the creation of Addin's but that has been rejected as it would require t...more >>


DevelopmentNow Blog