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

Filter by week: 1 2 3 4 5

'Live' Updates Reflected on Screen
Posted by wrytat at 11/30/2005 9:55:02 PM
I've to work on a windows application that involves a number of computers communicating with one another. Every day at any point of time, a user at Computer A might press a button and make modifications on the data. Once the button is pressed, the screen at Computer B should be able to reflect...more >>


polling keyboard state (not event)
Posted by Lloyd at 11/30/2005 5:54:29 PM
I'm trying to trap a key during the (rather lengthy) start up of my application, basically if you have a key, lets say right-shift down at a certain point it doesnt start up. kind of like how holding down shift skips autorun of a cd. the reason I want to avoid the keydown event is that it ...more >>

VS2005 - How to connect to a TableAdapter in the data layer
Posted by dbuchanan at 11/30/2005 4:59:15 PM
Here are pertinent parts of my solution structure \\ Solution 'QMS_01 -QmsDataLayer ---My Project ---app.config ---DataSet1.xsd -QmsUI ---My Project ------DataSources (folder) ---------QmsDataLayer.DataSet1+lkpDeviceTypeDataTable.datasource ---References ------QmsDataLayer ---Form1 // ...more >>

Need to execute command from within Windows form
Posted by Philip Colmer at 11/30/2005 4:22:57 PM
I need to run a command line tool from within a Windows form application without the command window opening at all. I had found some code (below) but the window is still opening. Dim psi As New System.Diagnostics.ProcessStartInfo(strCmd, strParams) psi.RedirectStandardOutpu...more >>

Dragdrop and ThreadStateException
Posted by UjjE at 11/30/2005 11:41:10 AM
As a newcomer to C++ i .NET I've come across the following problem: - When trying to establish drag&drop from one form to another I get a runtime exception when the drop form is created: (translated from swedish...) System.InvalidOperationException: DragDrop-registration failed. ---> System...more >>

How to close this thread ?
Posted by Raghu at 11/30/2005 11:17:06 AM
myApplication.exe file is still running even when i close my application . i.e. When i try to delete that its saying file in use ....always going to task Manager is not good ........When i use this method this.close() its saying resources cannot be loaded when can i overcome this .......more >>

Grab Handles on textbox
Posted by Bob Dankert at 11/30/2005 11:14:13 AM
I am trying to create a control which inherits a textbox and has granhandles on the top and bottom of the control allowing the user to resize the control vertically on the form. I have no problem handling the mouse events and resizing the control, however I am haivng problems drawing grab han...more >>

Error loading design screen for an Inherited form
Posted by Brandon Owensby at 11/30/2005 11:03:48 AM
I am using MDE 2003 version 7.1.3088 with .NET Framework 1.1. I have a C# program with a Windows Form I want to inherit from. When I create the inherited class I get an error when I try to go to the design screen. It says that there was an exception trying to get an instance of the base class...more >>



Application.Run and ShowDialog (modal dialog on top of main form)
Posted by Bob at 11/30/2005 9:00:48 AM
Suppose I create a very simple Windows Forms application, consisting of a main form, Form1, with a (modal) dialog form, Form2, intended to appear on top of the main form. static void Main() { Application.Run(new Form1()); Form2 myForm2 = new Form2(); myForm2.ShowDialog(); } ...more >>

Is it possible to get an parameter object from the stacktrace?
Posted by DBxGlock at 11/30/2005 7:44:36 AM
Howdy all, Is it possible to use the stacktrace to get the actual object being passed into a method via the stacktrace? For example, in the call: System.Windows.Forms.Application.Run(System.Windows.Forms.Form mainForm) Is it possible to obtain the actual Form "mainForm"? Thanks, Dan ...more >>

Can't remove expression column!!! So I can't update data!!! Help
Posted by dbuchanan at 11/30/2005 4:14:12 AM
Hello, Bart Mermuys wrote: > There is however a bug with Updating DataTables that have expression > column(s), you need to remove the expression columns before and re-insert > them after a da.Update. ~ Bart, are you there? I added an expression column to the dataset to display the valu...more >>

Datagrid column width.
Posted by Alundra at 11/30/2005 12:00:00 AM
Hi all, I've been coding Java programs for several years, this is the first time I code in vb.net. (No experience in coding using vb). I use visual studio .net 2003. I use a DataTable to store data from database and display it using a DataGrid control. I use DataGridTableStyle and DataGridColum...more >>

Advice on whether or not Microsoft has fixed the buggy combos .. thus worth the move from VS2003 to VS2005
Posted by Earl at 11/29/2005 10:52:34 PM
To upgrade or not? This, to me, is based upon whether or not Microsoft has -- at least -- fixed the buggy controls from VS2003: Combo (clearing and binding context issues) Checked ListBox (checked items losing status when control goes visible) Datagrid (header alignment to the right smashes i...more >>

Where should a second form be instantiated?
Posted by Filipe at 11/29/2005 12:11:04 PM
Hello, having an application with a Main form (Form1) and a second form (settingsForm1) that should only show up when the user clicks the settings menu button, where should the code: settingsForm settingsForm1 = new MyApp.settingsForm() be placed? First i have put it inside the Form1.Ini...more >>

ContextMenu Underline Missing
Posted by Scott at 11/29/2005 11:05:12 AM
All, I have defined a ConextMenu to appear within a TextBox. I added the ampersand to text of menuitem as "&Hello". The underline appears in the resource editor however when I run the windows form and right click in the text box the uderline does not appear. Does anyone know how t have the...more >>

How can a .NET 2.0 DLL get application icon at runtime?
Posted by DBxGlock at 11/29/2005 10:56:35 AM
Howdy folks, I have a library that is included by other applications. The library provides a pop-up form. I'd like the pop-up form to be able to use the same icon as the application that's calling it. Because I don't have control of all the applications that will use this library, I can't ...more >>

TabPages.Insert does not work as advertised
Posted by taarheel at 11/29/2005 9:56:55 AM
OK, so there have been about a million posts on the subject of showing/hiding and reordering TabPages in TabControls, and all note that the TabPageCollection class did not expose an Insert method in ..Net 1.1. But now hallelujah in .Net 2.0 there is a public Insert method on TabPageCollection...more >>

why cant i see wmplayer video through overlays
Posted by ve at 11/29/2005 8:05:08 AM
Hi, I have an application window with opacity 25%. I can see through all background application windows. But when i set it over the Windows media player playing a video, the part of the wmplayer goes blank. May i know the technical reason behind this??? vinod...more >>

Location of ClickOnce settings?
Posted by Jakob Lithner at 11/29/2005 7:12:09 AM
I tried to find information on where the settings go, but I didn't find anything. And I can't find neither the settingsfile nor the EXE-file after install. Feels a bit strange not knowing where my application goes .... I guess it's by intention, but sometimes it is good to have control on wha...more >>

DataGridTableStyle and relationship
Posted by dbuchanan at 11/29/2005 7:08:24 AM
Hello, I am using Win forms VB 2003 When my form loads I fill two tables that have a relationship between them. One table1 is the main data table. Table2 is a lookup table. The Table1 stores the key from Table2 . The goal is to display the value from Table2 in the DataGrid as if it were a f...more >>

How to add new records to the top of the DataGrid
Posted by dbuchanan at 11/29/2005 4:39:09 AM
Hello, I am using Win forms VB 2003 The form design requires the newest records appear at the top of the DataGrid. I load my form with a stored procedure that orders the records with the newest one on top of the DataGrid. New records are added by the user by filling out the controls on...more >>

entering internationalized input
Posted by Lloyd Dupont at 11/29/2005 12:00:00 AM
I have implemented an international text editor based on uniscribe, GDI & GDI+. While it display internationalized text fine I realize user input are no good. So far what I do: I override Control.OnKeyPressed(char keyCode); I was expecting the appropriate char to be passed on. Now I test...more >>

Control Copy, Different Object
Posted by Tom_B at 11/28/2005 5:32:03 PM
How can I create a second control as a copy of the first, except for the name, without both controls being the same object? Thanks....more >>

Detecting if a Printer supports Collation
Posted by ShadowFRJ at 11/28/2005 3:50:02 PM
Can someone provide a definitive method for determining, programatically, whether or not a printer supports collating on its own? I've found this question asked but not answered many times and would appreciate any clear answer. Obviously MS products can do this. Word correctly determines w...more >>

PrintDocument and PaperSize
Posted by Pashkuale at 11/28/2005 2:49:07 PM
I tried several ways to programmatically set the size of a page while printing with PrintDocument object without success. In pratice, this code... Dim printInvoice As New PrintDocument AddHandler printInvoice.PrintPage, AddressOf Print printRicevuta.DefaultPageSettings.PaperSize = New Pape...more >>

How to disable all screen refreshes ?
Posted by JezB at 11/28/2005 11:02:59 AM
I do some fairly complex manipulations of many of the controls on my form, including location and size (even the size of the form itself). I want to disable all screen refreshes until all this is complete, and just display the result at the end. How can I do this? SuspendLayout/ResumeLayout do...more >>

Designing forms for 120DPI, 133DPI etc
Posted by JezB at 11/28/2005 9:37:22 AM
I have a windows form app that runs perfectly on a standard 96DPI screen. If I increase this to 120DPI, suddenly things go wrong: text overflows,things no longer fit in their containers causing scroll-bars to appear (eg. on panels), weird things start happening with GDI+ painting, etc. Is t...more >>

STAThread error on windows grid
Posted by Vishy at 11/28/2005 9:35:28 AM
Hello guys I'm getting following error "The current thread must set to Single Thread Apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it" on CTRL+C on grid cell; I'm opening this form from a .net dll; so there's no Main() metho...more >>

tiered datagrid rows?
Posted by oscar at 11/28/2005 7:40:05 AM
i have a datagrid that i need to tier rows in. some rows will have additional info that needs to be optional to display. i'd like a "+" for the user to click on and the additional information shows in the current datagrid. rows that do not have any additional info will not have a "+". is...more >>

Very strange combo with tab control behavior -- additional bug?
Posted by Earl at 11/27/2005 4:35:31 PM
I have a tabstrip with 7 tabs and several of the tabs have combos. The combos are all bound to listarrays. When I clear the combos, I use the following code: cmbContactType.SelectedIndex = -1 cmbContactType.SelectedIndex = -1 cmbContactType.Text = "" However, I have noticed that AFTER I ...more >>

Detection of "any event" in winforms app
Posted by Anders K. Jacobsen [DK] at 11/27/2005 12:00:00 AM
Hey I want to apply an auto logout functionality to my windows forms appliaction (.net 2 / 2005). I want to have timer which i reset after each action user do. eg. Push a button, pick a menu item etc. Since i don´t have a custom global event handler it would be pretty cumbersome to call ...more >>

winforms model?
Posted by rich at 11/27/2005 12:00:00 AM
Does WinForms 2 have equivalents of the model bits of Java Swing (ButtonModel, TableModel, TreeModel, etc), or has someone written such a thing, or do I have to roll my own? ie does Winforms only provide the visual bits of trees, etc? Thanks, Richard....more >>

Formatted Output with Newline
Posted by Larry at 11/26/2005 1:28:45 PM
if I type in the return character in a text box or richtext box, I do not see the newline character in a string. Scenario - I type 2 paragraphs in a text box. Visibly I can see the information the windows form, but if I output the text in the textbox to a string, and write the string to a...more >>

Selecting/disabling pictureBoxes.
Posted by Jesse at 11/26/2005 2:59:33 AM
I've got a bunch of PictureBoxes on a form. People can click on them to "select" them. I'm trying to figure out how to show three different states: unselected, selected, disabled ("grayed out"). Basically, I want to apply (and later undo) a color transformation to the whole image. Is there ...more >>

UserInterfaceProcess AB and CompositeUI AB
Posted by hB at 11/26/2005 1:52:11 AM
Hi all, (I do not know which is the exact newsgroup for this post) I am doing application based on SOA. My client app is winforms and we are targeting it as smart client. I know about MVC in general. And I am puzzled how to go with MVC in my this Smart Client User Interface (winform based...more >>

how to use propertyGrid? Can you help me?
Posted by NguyenVanDiep at 11/26/2005 12:00:00 AM
how to use propertyGrid? Can you help me? Thanks! ...more >>

High performance output window
Posted by Anthony Brien at 11/25/2005 9:37:38 PM
I have a puzzling situation in a C# application and hope someone has an idea how to fix it: I have an application with a LogService for reporting errors, warnings and other messages. The output is sent to a log window just like Visual Studio's output window. The output window is in its own sep...more >>

Create Pointer to Buffer?
Posted by scottf35 NO[at]SPAM gmail.com at 11/25/2005 8:19:51 PM
Hi, I am trying to copy a window to a file and I have found some windows messages that I can use with the SendMessage API that I presume will help me do this. One message is GetText which will copy the text in a window to a buffer. However one parameter is the lParam and the definition say...more >>

Graphical Resources
Posted by HaySeed at 11/25/2005 8:03:02 PM
Can anyone recommend a good resource for learning sophisticated graphics development in C#? I see geat renderings in the work of others, (3D objects, drop shadows, elegant curves etc.) but all the books I read stop at elementary manipulations of lines, rectangles and brushes....more >>

How to find all the instances of a control in my windows applicati
Posted by Kingherc at 11/25/2005 3:18:01 PM
So, I have a Windows Forms application in .NET 2.0. I also have a custom UserControl. How do I find all the instances of my UserControl in an Application? I've just tried the new Application.OpenForms with a loop that searches all the controls in the opened forms, but my program just crushe...more >>

Prevent listview backgroundimage from scrolling with list
Posted by Bob Dankert at 11/25/2005 12:55:30 PM
Is there any way to prevent the listview background image from scolling with the listview contents? I would like to have an image which does not change and does not move. This is using the 2.0 framework. Thanks! Bob Dankert ...more >>

Format Float
Posted by O-('' Q) at 11/25/2005 12:26:19 PM
Is there an equivalent to Delphi's FormatFloat() function in C#.NET? I am using VS2005 and can't find any good resources on this type of function. Everything leads to a dead end so far. Thanks for any help. -- Kirby ...more >>

Ownerdraw listview in 2.0 - DrawColumnHeader question
Posted by Bob Dankert at 11/25/2005 12:18:05 PM
In 2.0, with an ownerdrawn listview, is there any way to ownerdraw the entire column header section? Currently, I can draw the column headers for each column but I can not draw the region to the right of the column headers. For example, a 500px wide listview with one 100px wide column will ...more >>

terrible annoying BUG in VS.NET 2005 with UserControl at DesignTime?!
Posted by Pieter at 11/25/2005 9:23:08 AM
Hi, I'm getting a really terrible and anoying bug/problem in VS.NET 2005: 1. Create a new Windows Application. 2. Add a new class Class1. 3. Add a usercontrol UserControl1. 4. Add a public instance of Class1 to UserControl1 (with WithEvents): "Public WithEvents ThisClass As New Class1". 5...more >>

MDI child form without tab
Posted by Michael Jackson at 11/25/2005 1:09:51 AM
My VS2003 VB.NET app's main form is MDI container. I want to be able to display a form as an MDI child, but without the close, maximize,maximize buttons and without the tab associated with it. This form will be used to display status info, thus should never be closed or selected; just always ...more >>

Control appearance in VS 2005 and .net 2.0
Posted by Jean Paul Mertens at 11/25/2005 12:00:00 AM
Hello, After playing a while with the new VS2005 I started to convert my existing Windows Forms projects from .NET 1.1 in VS2003 to .NET V2.0 in VS2005. After a few days converting and warning and bug hunting I finaly had a succesfull build op my projects and libs but great was the desolut...more >>

OnThreadException misses exceptions
Posted by Carl at 11/24/2005 11:10:18 AM
Hi I have in my program.cs code the followning line: Application.ThreadException += new ThreadExceptionEventHandler(eh.OnThreadException); It has been working fine, catching all exceptions that is thrown, and not caught anywhere else in the application. Now, I have a case where it does ...more >>

slide in Label
Posted by Pieter at 11/24/2005 9:20:09 AM
Hi, For status messages ("succesfully saved", "item added", ...) I want a label that slides in on the moment there is a message, shows the message for 5 seconds, and than slides away again. I googled for it, but didn't find anything usefull. Anybody has any idea? Some sample code? I'm u...more >>

Office 12 Ribbon Menus
Posted by Steve Drake at 11/24/2005 12:00:00 AM
Has anyone managed use the office 12 ribbon menus in a windows forms app? Or... anyone know if a 3rd party component developer is planning on creating them? Cheers Steve ...more >>

can you make a pop up user control resizable like a form
Posted by sdfsdfds at 11/24/2005 12:00:00 AM
Hi, I have a user control that pops up much like intelisense in visual studio to display a range of navigable options when a key combo is pressed within a textbox. I have called the user control within the parent form and programmatically called it using the following code within the parent fo...more >>


DevelopmentNow Blog