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 2004

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

DataGrid highlighted row dissapears
Posted by marknewsgroup NO[at]SPAM hotmail.com at 9/30/2004 7:13:28 PM
Hi This is a repost of a post that was posted over a year ago but had no replies and i'm having this exact problem and can't figure out a (good) solution. Anyone have any ideas? Thanks When navigating with the up/down arrow keys in a populated datagrid, the selection (highlighted row)...more >>


How to sense shift being held?
Posted by Daniel Carlsson at 9/30/2004 5:08:59 PM
Hello I have a bit of a problem, Im building my own component which shows a specialized list of data. Its used to allow you to select patterns from the data. Each cell is its own control and stored in the parent control. The problem is that I want to be able to select an area when shift is h...more >>

How to get the Process the Active Proces?
Posted by DraguVaso at 9/30/2004 4:25:08 PM
Hi, In my VB.NET-application I need to get the Process that is currently active on the screen of the user. I need it to get back to that application after that I brought mine to the front... for exemple: user types in Word... my application triggers an event, has to come to the foreground (...more >>

Databinding to a checkbox
Posted by Marina at 9/30/2004 4:10:12 PM
Hi, I have a datafield containing Y or N. I would like to databind to the checkbox, and tell it that Y denotes the checked state and N denotes the unchecked state. In fact, I would like to be able to do something like this to arbitrary values which should denote the checked and uncheck state...more >>

Toolbar flickering on form resize
Posted by metalseb at 9/30/2004 4:05:23 PM
Hi there. I've got a form with several controls in it; treeview, tistview and a toolbar. All the controls are anchored so that they resize according to the form window resizing events. all is fine except for the toolbar and the statusbar which flicker a lot while resizing the window. I'm using...more >>

Newbie: Autofill for ComboBox ?
Posted by steve at 9/30/2004 11:46:32 AM
Hi, I am wondering if I can easily reproduce the "autofill" effect in a combobox that i have populated from a dataset OR in general from a static list. I want to create the effect that when the user starts typing and the cmbBox automatically fills the *closest* match. I noticed that if i star...more >>

WinForm Memory Management
Posted by DotNet at 9/30/2004 11:21:01 AM
When I create a winform app (even with no additional code or controls), it typically takes 7 - 10Mb on startup. An app with 3 forms can take 3x that. That memory is allocated to the process only until I minimize the window, which drops it to < 1Mb. How can I reclaim this memory through ...more >>

keyboard converter
Posted by cwineman at 9/30/2004 11:16:49 AM
I am working on a form that receives keyboard events. Upon an event you know what key was pressed, and you know whether or not the ALT,CTRL, or SHIFT keys were being held down. I was wondering if there was a class that would figure out the difference between say, a "B" versus "b" or a "3" ...more >>



Get width of menu item
Posted by at 9/30/2004 10:25:14 AM
Hi, I'm trying to right-align a context menu with its source control. Here's what I have to LEFT align it: '\\\ Dim pt As New Point(0, myButton.Height) myContextMenu.Show(myButton, pt) '/// It looks like I need the width of the context menu to get the correct point: Dim pt as New Point...more >>

Looking for the ErrorProvider a grid uses when bound to IBindingLi
Posted by Michael Opel at 9/30/2004 6:35:04 AM
Hi, I bind a data adapter (which implements the IBindingList interface) to a data grid. For the data rows there is also an adapter which implements the ICustomTypeDescriptor, IEditableObject and IDataErrorInfo interfaces. All works fine to bind my custom data types to the grid using my adap...more >>

MDI Container without scrollbars
Posted by therochworks NO[at]SPAM web.de at 9/30/2004 3:14:51 AM
Hi, how can I set a MDI container without scrollbars (if the child is larger than the parent)? Set AutoScroll = false doesn't work. Please help me. thx Rochi...more >>

Alignment
Posted by mschep NO[at]SPAM deloitte.nl at 9/30/2004 2:36:19 AM
Hi, Is there a way to use a alignment for the datagrid header and a different one for the content of this column? I've got a column with amounts. the amounts I would like to align to the right; The column header however I want to be aligned to the left. Michel...more >>

Don't need to do load event from inheritance form
Posted by KPH at 9/29/2004 8:25:03 PM
Hi all, Assuming I have 2 form controls on my application. First form is parent form and second form is inheritance form that inherit from first form. When I want to view designer of second form (inheritance form) it is always done at load event of first form (parent form). I have test by ...more >>

Creation of semi-transparent filled polygons?
Posted by B. Chernick at 9/29/2004 7:51:03 PM
I have relatively little experience in Dot Net graphics. I have a picturebox with a background image. For the purpose of this application it is necessary to draw polygons (both filled and outline only) to emphasize parts of the image. It would probably be better if the background image...more >>

Customize TaskBar Menu
Posted by at 9/29/2004 3:29:09 PM
Hello, I'm trying to add a "Send to Notification Area" item to the context menu for my application's taskbar button. (For example, right-click a CHM file (i.e., SQL Server BOL) in the taskbar, and it has three extra menu items...Separater, Jump to URL, and Version.) The only thing I found ...more >>

assign the socket permission to the NTD winform
Posted by zbcong at 9/29/2004 3:11:48 PM
hello i write a smtp client winform (using socket 25 connect to smtp server),and deploy it to iis by NTD (no-touch deployment),i can launch the form from the client machine,when i want connect to the smtp server,the security exception is thrown,i know that i have not assigned the socket permissi...more >>

Database independent application using C# 2003
Posted by Hari Shankar at 9/29/2004 2:33:53 PM
Dear all I have to develop a database independent application in c# 2003. It means the underlying database should be anything like ACCESS, Oracle or SQL and my application should not get affected if i change between databases. i also have a requirement of storing 10,000 user records in my databa...more >>

How to read All Data from SerialPort (2005)
Posted by DraguVaso at 9/29/2004 2:09:01 PM
Hi, I'm experimenting with the Serial Port in VB.NET 2005. Although it isn't that easy to get any feedback from my COM-port as I thought it would be... How can I read all the Data that the port sends back? I tryed with SerialPort1.ReadLine, but that blocks the application and takes a lot ...more >>

Drag and Drop from one form to a 2nd form
Posted by AlBruAn at 9/29/2004 1:51:05 PM
I've been trying to perform a drag and drop operation from a PictureBox control in a standard C# form (with a FixedToolWindow border) to another standard C# form, but cannot get it to work properly. In the FixedToolWindow, I have the following code: myClass c = new myClass(); // cont...more >>

Exception trying to instansiate an inherited form
Posted by Ron L at 9/29/2004 12:59:58 PM
I have created a form for my application. Once the form was working, I copied that form to a new form that would contain all the common elements of all forms in my application and made the existing form inherit from the common one. Now when I try to run my application I get the following err...more >>

System Tray Program
Posted by Lou Civitella at 9/29/2004 12:47:25 PM
Using VB.NET. How can I create a system tray program that displays number as my system tray icon instead of an actual icon? I am creating a weather program and when I minimze my program to the system tray I would like to show the temprature in the system tray. thanks in advance, Lou ...more >>

Display XML held in a string
Posted by Martin at 9/29/2004 10:54:10 AM
Hi, I have a string with XML in it. I want to display this xml in a windows form. I have looked at Microsoft Web Browser control, but it seems to want to work with a url. How can I just pass my xml string for displaying? Thanks Martin ...more >>

DataGrid Column Headers
Posted by guy at 9/29/2004 9:33:03 AM
I have a number of datagrids bound to collections. When the collections are populated i get the column headings as per the ColumnStyles for the grid. However if the collection is empty no column headings are visible. Is there a way to force the headings to display other than having a dummy i...more >>

Group icon blank when multiple dialogs are open
Posted by Jeremy Chapman at 9/29/2004 8:38:57 AM
In my application, if one dialog is open, the taskbar icon shows as the icon of the form. If multiple dialogs are open, then windows groups them under one icon in the task bar, but the icon is blank. The application definitely has an icon, as is show by the compiled executable. Does anyone kno...more >>

3-D FlatStyle is too flat!
Posted by Jeff at 9/29/2004 7:48:00 AM
Hi, A System.Windows.Forms.Button with FlatStyle set to 3-D (Standard) is not 3-D enough for my application. Its hard to tell when the button is up or down. Users of my application need a strong visual feedback. Does anyone know if its possible to increase a Button's border width/thicknes...more >>

override of TreeView
Posted by gabriel at 9/29/2004 5:23:01 AM
hi i want to override the windows forms tree view in a custom control in a way so the selected tree node does not center itself inside the tree view (is quite nasty if the tree view is scrollable, then you have to scroll back to get to the little + in front of the name). does anybody know...more >>

.NET Equivalent for ShowCaret, SetCaretPos
Posted by johndoe NO[at]SPAM driver.net at 9/29/2004 3:47:16 AM
Is there a .NET equivalent to the Win32 API's for ShowCaret and SetCaretPosition. I am trying to draw a blinking caret and hope that I donot have to go through and create my own graphics routine just to get a native caret look alike ...more >>

Delete allowed even when datagrid is set to readonly!
Posted by Dick at 9/29/2004 3:33:02 AM
I have a datagrid bound to a strongly typed dataset. The datagrid can be made readonly by either setting its ReadOnly property to True or by setting the dataset's DefaultView's AllowDelete, AllowEdit, and AllowNew properties to False. But in either case the datagrid still accepts a delete keyp...more >>

Draw table with GDI+
Posted by Walter at 9/29/2004 1:38:17 AM
Is there a quick and easy way to draw a table on a winform? For my university assignment, we are asked to practice drawing with GDI+, so we are not allowed to use any built-in controls. The table has 5 columns and 2 rows and the first row is the heading. I guess I could use g.DrawRectangle()...more >>

Bigger windows form that screen resolution ??!!
Posted by Bragadiru at 9/28/2004 2:26:48 PM
Hi all, I want to create "the biggest" windows form, but, at design time, I cannot exceed 1292,972. My maximum screen resolution is 1280/960. I'm using Visual Studio .NET 2002. I found this at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsform...more >>

Getting Text from a RichEdit20a
Posted by DancinDom at 9/28/2004 2:02:51 PM
I am primarily a web developer, but I am branching out for this project into the world of Windows Forms. I am looking for any help, examples, samples to show me how to retrieve text from a RichEdit20a (or RichEdit20w) that exists in another application running on the same box. This is the o...more >>

BUG: WinForms Status Bar Problem on XP
Posted by Sal Bompensaro at 9/28/2004 1:25:46 PM
I think I've discovered a bug in the WinForms StatusBar control as implemented on Windows XP. A picture is worth a thousands words so: This is the way my form is *supposed* to look. Here you can see it running on my development server which is Win2003 Server: http://temp.codefanatic.com/usen...more >>

Issue with messageBox
Posted by Mukesh at 9/28/2004 12:39:31 PM
Hi I just fould a issue with MessgeBox. When i show the messagebox in my app. Now if the user click any where else on the form out of messagebox. The click event is kind put in a que. Now if there is a button or other control where that person clicked, the button / control click event is fir...more >>

Control validation problem prevents me from tabbing out of a contr
Posted by Doug Perkes at 9/28/2004 11:45:05 AM
I am using simple databinding on a small form with only about 10 controls. My problem is that the _second_ time I open the form and edit a value, I am no longer able to tab or click out of the control that I just changed the value in. Here's what I mean: 1. Open the app 2. Open the Details f...more >>

DataGrid: Can I use two text lines in the header ?
Posted by Heinz Z. at 9/28/2004 11:11:09 AM
Hello, I have some boolean columns in my datagrid. To minimized the column width I want to change the height of the header row and write the header text in two lines. Is this possible ? How can I do that ? Thank you Heinz ...more >>

How to change the font of the main menu in application window?
Posted by Dave Leach at 9/28/2004 10:51:03 AM
I am developing a windows forms application using VS.NET in C#. I am using the MDI style. I have a main menu defined with several layers of menu items. I know that I can change the appearance of all menus by changing the Menu property within the advanced appearance of the system display pro...more >>

Passing large data between forms
Posted by vikrantca at 9/28/2004 8:15:05 AM
Hello, I have an application that simulates heat exchangers. There is a Edit form that allows to edit the parameters of the heat exchanger - 50-60 parameters. Currently Iam using 6 structures (each with 8-10 elements) that I pass between the main form and the edit form. These structures are...more >>

Impersonation and SQL Connections
Posted by Clint at 9/28/2004 7:41:04 AM
Hello all - I'm having a problem concerning Impersonation while connecting to SQL Server. I'm not sure if I'm posting this to the right newsgroups, so let me know if it belongs elsewhere, and please excuse the cross-post. I'm writing a Windows Forms application that makes direct calls to a...more >>

Add a small icon to column to signal a sort on this column in list
Posted by Greg at 9/28/2004 6:49:01 AM
Hello everybody! I have a sortable listview control (ie, can click on any column and sort asc/dec) however I would like to include a small icon, a 'triangle' or 'arrow' indicating that column the sort is on. This is common behaviour almost everywhere, including the windows explorer. I h...more >>

Handle form closing
Posted by Etienne Charland at 9/28/2004 1:57:21 AM
I have an MDI form containing child forms. I want to handle form closing to display a confirmation message when a form is closed or when the main form is closed. However, the Closing even of the child forms is raised before the Closing event of the MDI form when you close the MDI form. So, if ...more >>

How do I listen on a directory?
Posted by Haim at 9/28/2004 1:20:25 AM
I know it is possible to use a listener on a directory so that if there is any change I can catch it and update my application accordingly. Anybody know or have a code example as for how to do this? Thanks, Haim....more >>

Datagrid Empty Set
Posted by Jeff Haumesser at 9/27/2004 6:45:47 PM
Here is one I am stuggling with: I have a project I'm developing in VB .NET. I have a datagrid in a window with two columns. The first column is readonly and the second column is not and initialized with Zero's. The values in column two must be numeric. How do I prevent the user from le...more >>

Large Fonts not scaling correctly on tab control.
Posted by Wyatt at 9/27/2004 5:43:06 PM
I have a problem which I have been able to reproduce in a very simple project. I have a form with a single tabcontrol control with two tab pages. The tabcontrol's Anchor property is set to Top, Left, Bottom, Right (all 4 directions). On each tabpage, I have a DataGrid. Each DataGrid's Anch...more >>

Negative Numbers?
Posted by Charles A. Lackman at 9/27/2004 4:29:21 PM
Hello, I have some textboxes that are doing addition: Dim AString As Double AString = Convert.ToDouble(TextBox1.Text) - Convert.To(DoubleTextBox2.Text) TextBox3.Text = AString.ToString("#,##0.00;(#,##0.00);0.00") When the result is negative it is displayed as "(46)" or whatever the value ...more >>

Using the same connection over many forms
Posted by Dani at 9/27/2004 3:01:03 PM
Hi, I'm writing a client-server winfroms application, I've notice that every time I use the wizard to create a bound datagrid, I create a new sqlconnection. I wish to create one connection in the main form, and use it in the rest. (b/c changing something in the connection string - like pwd ...more >>

Panel backgroundimage disappear when EnableVisualStyle
Posted by MatsL at 9/27/2004 2:34:10 PM
I have a panel with a backgroundimage with a docked transparant label. If i enablevisualstyles the backgroudimage disappear. Any ideas why? // Mats ...more >>

ComboBox woes
Posted by Wade at 9/27/2004 1:39:02 PM
I need help solving a couple of problems (and learning a couple of concepts) involving ComboBox columns in my DataGrid. The first problem involves my custom ComboBoxColumn class. I don't have experience making custom classes so I downloaded some code. From what I've read, it's pretty stand...more >>

howto put a Byte Stream directly in a picture-box?
Posted by DraguVaso at 9/27/2004 12:59:09 PM
Hi, In my application I receive a Byte Stream (Dim bytFile() As Byte) which contains a jpeg-picture, which I want to display in a picturebox. I want to display it directly from the bytfile() without first writing it to a file and than reading it. Does anybody knows how to do this? I h...more >>

Problems running .NET apps on other machines
Posted by Max at 9/27/2004 12:38:44 PM
I'm fairly new to distributing .NET applications, and so far no one is able to use the apps I create. They do run on all 3 of my machines. I include the dotnetfxredist with the setup files. One person cannot even install the framework from Windows Update. It's giving them errors and I'm unable to...more >>

Application Restart or Reload Urgent....
Posted by Chris Calhoun at 9/27/2004 12:02:44 PM
Does anyone know how to restart an application from itself? Or is there a way to completely reload an application form code simulating a restart? Thanks in Advance! ...more >>


DevelopmentNow Blog