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 > september 2005

Filter by week: 1 2 3 4 5

Controling detail table
Posted by John at 9/30/2005 10:23:23 PM
Hi I have dragged a master and a detail table on the form. How can I now make the master table control the detail table in that proper detail records are displayed when a master record is selected from the Master BindingNavigator? Thanks Regards ...more >>


Sort Datagrid without Dataview
Posted by msxkim NO[at]SPAM yahoo.com at 9/30/2005 1:13:18 PM
Is there a way to sort a datagrid without using Dataview? I would like to sort it by 3rd column but programmatically. ...more >>

bringing modeless dialogs to front
Posted by Gregory Khrapunovich at 9/30/2005 1:07:51 PM
I have created a form (Windows Forms) that opens several modeless dialogs. Sometimes they become covered by other (unrelated) applications and its annoying to click on each dialog to make them visible again. I would like all dialogs to become visible when main form becomes visible. Main form h...more >>

Make two forms appear active at the same time
Posted by Niksa at 9/30/2005 1:02:44 PM
Hello, I am trying to make two forms appear active at the same time. I managed to make title bar of the deactivated form appear active by manipulating WM_NCACTIVATE message, however I am unable to make the active control on the form appear focused. Is there a way to do this? Thanks ...more >>

How to insert a record with a stored procecure
Posted by dbuchanan at 9/30/2005 1:01:48 PM
Hello, My insert results in two records - or better stated the temporary record (with the temporary ID value of -1) stays as the stored procedure returns the new record with its data base assigned ID value Below is shown the ID field and one data field. Notice the last two records shown. 1...more >>

MDIForms and Focus?
Posted by andreas.baus NO[at]SPAM meta-level.de at 9/30/2005 5:49:35 AM
Is there any way for a MDI child form to be notified when it's parent receives focus? In my example, I have a MDI application with several child forms, and one of them contains a "Paste from Clipboard" button which I want to dynamically enable/disable depending on whether there's actually any da...more >>

Communicate UNIX from c#
Posted by Bala Nagarajan at 9/29/2005 6:13:27 PM
Hi, How do i communicate between C# and Unix? The scenario is as follows. I have a C program residing in UNIX box that does complex calculations and returns a result. I need to invoke this C program residing in the Unix box from Windows Client C# application through a button click event. H...more >>

Graphics 101. Updating drawing.
Posted by Rob Brooks at 9/29/2005 3:14:29 PM
Hi, I'm going some drawing via "Graphics" in a "Paint" callback and the commands will only manifest themselves if I minimise the window and then maximise it again. I'm new to windows programming and so I am obviously missing a lot of the basics when it comes to this sort of thing but my ...more >>



Drag-and-drop, PreFilterMessage in endless loop
Posted by david NO[at]SPAM burgett.com at 9/29/2005 12:46:13 PM
I am trying to implement simple(!) drag and drop on a Windows UserControl. I want to use Windows messages directly (using PreFilterMessage) to do this, rather than simple MouseDown/Move/Up event handling, due to other constraints in the system. The problem I have is that once I handle a MouseM...more >>

how to display rotating globe (or other) to show activity
Posted by KMiller at 9/29/2005 9:10:05 AM
Can anyone point me to a resource that describes how to spawn a thread that allows an image (such as a rotating globe) to launch, while an application is processesing (probably on another thread)? My issue is that a user action (such as a double click on a row in a grid) is freezing my app ...more >>

Shutdown and SystemTray App...
Posted by Fuehner at 9/29/2005 6:29:06 AM
Thanks in advance... I have a windows forms c#.NET app that runs in the system tray; I'm experiencing intermitent problems with when the end-user goes to Log Off, Shutdown, etc... For the most part the app always closes on these events but, there are times when the user has to reselect t...more >>

New feature of VB.net 2005
Posted by Joe at 9/29/2005 2:59:02 AM
any New feature of VB.net 2005 and how to upgrade from 2003?...more >>

Calendar Control....
Posted by Deep Silent Ocean at 9/28/2005 11:15:00 PM
Hi All Is it possible to have Drop-Down calendar control in WinForms ? When I place calendar control in winform, it has fix size. I want drop down calendar which pops down I dont want to use date-picker ... Deep Silent Ocean...more >>

DataGridView Row properties not working in Form_Load?
Posted by gadgetophile NO[at]SPAM gmail.com at 9/28/2005 3:05:38 PM
Running VS2005 Release Candidate, I'm having a bit of a headache with DataGridView row-level properties. If I try to make changes to row properties (e.g. myDGV.Rows[0].ReadOnly = true, or myDGV.Rows[0].Frozen = true) in the Form_Load, after databinding, the changes do not "stick". Stepping th...more >>

Using .net windows user controls in to browser
Posted by Sajjad at 9/28/2005 2:03:16 PM
Hi, I am have an application which uses cotnrols and i want to expose it using browser in an asp.net application. What happens is if my control has fields declared those are from other dll (which is strongly named), It doesnt load. 1. Is there some known issues with refering types from o...more >>

beta2 compared to rc1, different designer code for DataGridView columns
Posted by Ralf Jablonski at 9/28/2005 12:48:04 PM
There is a small but important difference in designer generated code for DataGridView columns. Beta 2: // // iDMaterialDataGridViewTextBoxColumn // this.iDMaterialDataGridViewTextBoxColumn.DataPropertyName = "ID_Material"; this.iDMaterialDataGridViewTextBoxColumn.HeaderText = "ID_Ma...more >>

Problem with smooth scrolling a window
Posted by JezB at 9/28/2005 11:06:46 AM
I'm implementing a pop-up taskbar notifier window which is supposed to "slide up" from under the taskbar. It's working but its quite primitive. All I do is to create a timer which on every Tick (25ms), moves the position of the window up a notch. If the pc is doing nothing it scrolls accept...more >>

TreeView OnBefore/After select
Posted by Lionel at 9/28/2005 9:55:02 AM
Hello all, quick question: If I've overridden both the "OnBeforeSelect(...)" and "OnAfterSelect(...)" methods of a Treeview control, and have: e.Cancel = true; in my OnBeforeSelect(...) method (in order to cancel the event), will the framework still call OnAfterSelect(..)?...more >>

Refresh problem
Posted by B. Chernick at 9/28/2005 7:16:03 AM
I have a Winform that instantiates a class and then calls a subroutine in that class. This routine is extremely long and database intensive and I am trying to display its progress by raising an event each time a record is processed. The Winform is supposed to catch this event and update ...more >>

MULTISELECT DATAGRID
Posted by NQ at 9/28/2005 6:45:02 AM
Is there a good way to get an arraylist of all selected rows in a datagrid without loop through all the rows of its dataview ??? I have a great number of rows shown on the datagrid. For the performance of the application I think it's no a good idea to loop through all the rows to test IsSelec...more >>

form dll locked?
Posted by Joe at 9/28/2005 2:46:02 AM
If the form dll is using, will the dll file locked and can not be overwrite ...more >>

connection string in app.config security problem
Posted by Joe at 9/28/2005 2:45:04 AM
Dear all, if we write the connection string in app.config, then it can be changed easily after deploying, but the password, and user name will be exposed to the client and posing a security problem to the sql server, any good advice to do this...more >>

reporting tool
Posted by subscription NO[at]SPAM gmail.com at 9/28/2005 2:01:48 AM
Hi, what are the top 3 reporting tools used in windowsforms ? we use crystal reports, but it doesnt seem to handle stuffs like page breaks etc.. when exporting to pdf as good as it should be Thanks Subramanian ...more >>

Design question
Posted by Joe at 9/28/2005 1:07:02 AM
If a company have a SQL Server and many retail store in other location. If the retail store doesn't have T1 connection and just broadband or modem to connect to the internet. Then the retail store have VB.NEt application installed and connect to the company SQL Server. Will this design have ...more >>

TabControl MouseHover Event : Help...
Posted by Deep Silent Ocean at 9/27/2005 8:00:25 PM
Hi How to implement MouseHover event in TabControl in WinForms... I want to select the Tab depending on which the mouse is, so that user does not have to click on Tab.. Thanks Deep Ocean......more >>

How to rebind a datasource to a ComboBox?
Posted by Michael at 9/27/2005 4:32:30 PM
Hello, The first time I bind an array to a ComboBox, it works fine. But when I try to rebind to the ComboBox, it fails. I tried code like: this.BookList.DataBindings.Clear(); and this.BookList.DataSource = null; this.BookList.Refresh(); No luck so far. I don't get any error; just that ...more >>

Getting rid of focus on a control
Posted by Marina at 9/27/2005 1:24:12 PM
Hi, Let's say there a bunch of textboxes on the screen, and there is a toolbar on the form (Infragistics). When a button is clicked, whatever field the user was last on needs to be validated, and then some work done based on what the button was that got clicked. The problem is, the valid...more >>

DataGrid Hierachy Objects
Posted by cretzler NO[at]SPAM community.nospam at 9/27/2005 12:31:40 PM
Hello, I've been working with the Windows Forms datagrid, and can't seem to figure out how to get the currently selected row when dealing with objects that have a Hierachy. For example we have a recursive tree like structure that consists of DecisionMakers. The objects we are dealing with...more >>

loading different forms in place of panel
Posted by Steve at 9/27/2005 9:26:54 AM
I am looking for a way to switch between different forms in my main form. In other words, I want a behavior where I can show different controls based on the selected context of the treeview. I thought I could do this with the tab control, but quickly realized that I can't hide the tabs. CodePro...more >>

Adding Application to Scheduled Tasks Programmaticly
Posted by Lenn at 9/27/2005 6:52:22 AM
Hi, I developed a console .exe application which is going to run on scheduled basis, it will be scheduled to run in Windows Scheduled tasks. Client wants some kind of utility that would help them manage scheduled tasks on different servers. So, how can I add scheduled task to local machine or...more >>

VS.NET Application Wizards - Do I have the 'complete' set?
Posted by Rob Brooks at 9/27/2005 12:00:00 AM
Hi, I'm brand new to writing managed .NET and I'm having some confusion following the simplest of tutorials as I believe that my application wizard in Visual Studio .NET 2003 may not be all it should be. I read "Open Visual Studio.NET and create a new WinForms application called HelloTea...more >>

Compare Two ArrayList
Posted by Gomathi at 9/27/2005 12:00:00 AM
hi all, In my windows application(C#) , i have two arraylists. I want to compare those two arraylist. Is there any way for that? Thanks in advance. Gomathi ...more >>

SQL Enterprise Manager and Query Analyzer
Posted by Richard at 9/27/2005 12:00:00 AM
Is there a menu or utility that will export the data in a table as 1 sql insert statement per row, to a text file? ...more >>

Data-GUI matching
Posted by Z at 9/26/2005 5:31:04 PM
Hi, I am experiencing this problem all over again: I pass some data to a form, so the form initializes its controls with this data. Now when the user use these controls to change data I trap the event and change the data so it is updated whit what the user selected from GUI. The problem is...more >>

Removing reference created by ShowDialog(owner) - memory 'leak'
Posted by Jim at 9/26/2005 4:04:02 PM
Hi, I have a lingering reference to a form, that is created by a call to ShowDialog - what I'd like to know is how to remove the reference. Eg. Form1.cs private void button1_Click(object sender, System.EventArgs e) { long memBefore = System.GC.GetTotalMemory(true); Form2 f2 = n...more >>

PDF gets corrupted when sent as an email attachment
Posted by Jim Covington at 9/26/2005 12:16:42 PM
I have an app that creates customer information and creates a pdf report. It ecrypts it and password protects it. The report is sent as an email attachment. THe report is confidetial. All of the pdfs open fine on local machine but customer gets errors when opened. This is documented at h...more >>

DataSet.HasChanges = True after DataSet Loaded
Posted by Aspnot at 9/26/2005 12:05:01 PM
I have a form with various controls on it. After I load my DataSet and show the form, I make no changes to the data in the controls on the form. On close, I check to see if the DataSet HasChanges is True. However, it is always true after looping through all of the tables in the DataSet and ...more >>

How to keep menu navigation on MDI parent form's main menu?
Posted by Dave Leach at 9/26/2005 11:19:04 AM
I am working on an MDI Windows Forms application using C# and VS.NET 2003. The main form has a MainMenu with several MenuItems. The child forms displayed in the main form's client area do not have menus. The problem is that when the main menu is activated by pressing the Alt key and the u...more >>

DataGridView Cell MouseOver
Posted by Bidarkota at 9/26/2005 9:48:03 AM
How to access the full text of a cell when i mouseover on a DataGridView Cell. I need to get it like a tool tip when i mouseover on a DataGridView Cell. Any Sample code is greately appreciated. Thank you...more >>

my project should run when people logon into windows or system
Posted by Ramesh at 9/26/2005 6:37:17 AM
Hi everyone, i have one application(windows or web application) that application should run when i logged into windows for example, when ever user logon to the system or windows my application should get the login and display as welcome "login name" so my application should run when anybody l...more >>

How to cancel standard mouse event handling?
Posted by Soeren D. at 9/26/2005 1:36:02 AM
I have a control with a standard reaction to doubleclicks, that I would like to overwrite. In good old Win32 days this could simply be done by not calling DefWndProc for the event. I cant find a way to do this in WinForms Do you have a suggestion on how to handle this? Thanks in advance...more >>

newbie's question need help
Posted by Alien at 9/26/2005 12:00:00 AM
hi guys. i have a question here. in the framework2.0. each control has a rendermode property. we can customerize these control (draw the control ourselves) by override these render class. But why we do that instead of directly overriding the control's paint event( like onpaint and onpaintbac...more >>

How can i open and close form rapidly without any showing on the screen?
Posted by nomenklatura at 9/25/2005 11:29:51 PM
Hi, my functions is open "x" (mdi child form) form and close then but when i try (not exactly code): for i=0 to 5 x.show x.visible=false bla bla x.close next x is first showing a little on the screen and then closen rapidly but i don't want to see anything x form wh...more >>

treeview.checkboxes property
Posted by Abraham Luna at 9/25/2005 1:22:20 PM
i have a treeview that i set the checkboxes property to true. i don't want to display the checkbox for all the treenodes, just the ones that need them. is there a setting on the treenode that can hide its checkbox? ...more >>

Compute (sum of datagrid column) for a calculated field ???
Posted by dbuchanan at 9/25/2005 7:35:50 AM
Hello, Is there a way to compute the sum of a calculated field in a datagrid? What makes this situation particularly challenging is that the caluclated field is a complicated expression that depends on muliple fields and conditionals. The fact just mentioned makes in impossible to sum the s...more >>

Capture mouse scroll-wheel
Posted by JezB at 9/24/2005 10:47:42 PM
I have a windows application (c#) which does not display any scroll bar (I really don't want it to!). However, I want to capture when the mouse scroll-wheel is used to "page-through" some of my data, without recourse to a scroll-bar. Can I capture when the mouse scroll-wheel is used? If so how...more >>

Launcher doesnt!
Posted by MarkAurit at 9/24/2005 12:39:01 PM
Hi I have a solution that has 2 windows forms projects: one a very simplistic form, and the other a stub to do nothing more than launch the first's form. I got the vb code and concept from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadvnet/html/vbnet10142001.asp Ive ...more >>

Application running on workstations with different screen resoluti
Posted by Wishing I was skiing mom at 9/23/2005 1:57:07 PM
I have a VB .Net Windows Form application that was developed on a workstation with a screen resolution of 1280 x 1024, Normal DPI. After installing the application on other workstations I have found that the form no longer fits on the screen due to the display settings, form is now too large ...more >>

Font Size Resize problem
Posted by RedEye at 9/23/2005 1:24:17 PM
Hello, I have a WinForms application that needs to use a font size of 8.25. Everything on the form is spaced and organized around that size of font. The problem: A user has there system font size set to extra large and the form is all messed up. What can I do to enforce the font size se...more >>

creating shortcuts for the VS project ...
Posted by ve at 9/23/2005 9:37:01 AM
Hello guys, i have created a VS installer to my application. Basically i want to add short cuts at the desktop and startmenu. i created the shortcut under the "Users Desktop" and "Users Start" but the problem is it is point to the folder of the installed application. How can i make it to po...more >>


DevelopmentNow Blog