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

Filter by week: 1 2 3 4 5

DataGridView Glyphs
Posted by at 6/30/2007 8:34:16 PM
Is anyone aware of a way to make multiple glyphs show up. I"ve set all column's sortmode to programmatic and assigned each column a sort glyph direction, but only the first one shows up ...more >>


Where is main?
Posted by Allen Maki at 6/30/2007 3:29:38 AM
I am new to form and controls. I do C++ programming for more than 10 years. I noticed that there is no main function. Can anybody explain what I am missing. I am sure there is some kind of philosophy out there I would be pleased if you could tell me where I can find more informat...more >>

Location vs. DesktopLocation
Posted by Jeff Johnson at 6/29/2007 4:47:06 PM
When it comes to forms, is there any practical difference between the Location and the DesktopLocation properties? And does the SetDesktopLocation() method do anything that can't be achieved by simply setting one of these properties? ...more >>

Question on Assemblies
Posted by Bill Gower at 6/29/2007 2:22:48 PM
I have an app that has multiple distinct modules. Most users will need to have only one of the assemblies/modules available to them. Although other users will need multiple assemblies/modules available to them. Is it possible to build an application that upon startup checks what assemblies ...more >>

Control hotkey on inherited form
Posted by Jack Jackson at 6/29/2007 12:15:58 PM
VB2005. I built a class inherited from Windows.Forms.Form and placed a Button on the form. The button.Text contains "&Quit". I create another class that inherits from the first class. In the IDE designer I see the button and its caption is Quit with the Q underlined, as I expect. When I ...more >>

conditional preventing of dragging files outside of my own app
Posted by Stephan Steiner at 6/29/2007 11:34:59 AM
Hi I'm currently working on an application which can be seen as sort of a modern version of Norton Commander - I have a file list of a directory on my local machine in a Listview in detail mode, and the same for a remote location (not via SMB but a self-written remoting based API). In order...more >>

Displaying part of an image
Posted by NO[at]SPAM win at 6/29/2007 1:30:04 AM
Hi there, What is the best way of displaying part of an image? The problem is as follows: I need to show an area map with objects. Now I need to zoom in on a part of that map to show some more detail. eventually the object are placed based on GPS locations. Any help or direction would ...more >>

Text box size
Posted by John at 6/29/2007 12:00:00 AM
Hi I am using Tahoma 8 size for my text boxes which is changed to Tahoma, 8.25pt by the system. The height of my text boxes is 21 with this font size. Is there a way to reduce the height to 20 without much effecting the font size? Thanks Regards ...more >>



Textbox autocomplete working only if multiline is set to false
Posted by nagar NO[at]SPAM community.nospam at 6/28/2007 10:03:00 PM
I noticed that the textbox autocomplete feature works only if multiline is set to false. Is there a way to have it work with multiline set to true. Thanks. Andrea...more >>

Control buttons (maximise, close (X), mininise) not showing
Posted by SMEC NET Programmer at 6/28/2007 6:22:01 PM
I was wondering about the reason why the control buttons (maximise, close (X), mininise) are not showing despite having the boolean property set to true? They appear on all of my other forms but not this particular form. Is there any reason behind this? -- yours sincerely Craig Hoy...more >>

Accessing the index of the current focused screen
Posted by SMEC NET Programmer at 6/28/2007 6:12:02 PM
I was wondering how to access by index of the screen in which the application is one when there is more than one screen attached to the workstation or notebook to get the bounds of the screen to resize the form to make most use of the screen resolution. I know how using the Screen class to ref...more >>

how add default values to new item in binding source
Posted by Paul Emery at 6/28/2007 5:54:01 PM
Using vs2005 and visual basic for a winform app: I have a form with a sqlserver datasource, tableadapter, bindingsource and bindingsource navigator. The column values are displayed in textboxes on the form. One of the textboxes is read only to the user. Wnen the user clicks the add new on th...more >>

Dynamically set button text in DataGridView
Posted by Curt Gough at 6/28/2007 1:43:04 PM
I have a DataGridView with a DataGridViewButtonColumn that I want to use to enable and disable records in the grid. When the button is clicked I have code to change the value in a field called 'Enabled' from True to False, or from False to True. I can set the Text property of the button thr...more >>

DragDropEffects.Scroll
Posted by costashu at 6/28/2007 12:10:03 PM
1. What means "scrolled in" in this MSDN Library for Visual Studio 2005 explanation - "All - The data is copied, removed from the drag source, and scrolled in the drop target"? 2. What means "scroll" and "scrolling" in this MSDN Library for Visual Studio 2005 explanation - "Scroll - Scrolling...more >>

Reading file associated icons from a secondary thread not returning correct icon - IconTest.zip (0/1)
Posted by nagar NO[at]SPAM community.nospam at 6/28/2007 8:33:53 AM
I need to read the icons from a secondary thread so that the file list is returned prompty in a listview. I'm using a background worker object to retrieve icons asynchronously. What happens is that the icons for certain files (I verified this happens for xml and sln files on my system) are not...more >>

Treeview Index problem
Posted by B. Chernick at 6/28/2007 7:56:02 AM
I'm trying to program a form with a treeview. I have just created a root node in the control. Now I have called a routine to create a child node. As I create these nodes I want to keep track of their indices in a data structure. The code is roughly as follows: (Assume the original root ...more >>

Windows Service - No mapping between account names and security ID
Posted by IKatzav at 6/28/2007 5:36:03 AM
Hello all I prepared a windows service and tried to install it with a small bat like this: @ECHO OFF REM The following directory is for .NET 2.0 set DOTNETFX2=%SystemRoot%\Microsoft.NET\Framework\v2.0.50727 set PATH=%PATH%;%DOTNETFX2% echo Installing WindowsService... echo ------------...more >>

working with Directory class
Posted by AVL at 6/28/2007 5:08:03 AM
hi, i've used Directory.GetFiles(path, "*.*", SearchOption.AllDirectories) method to return the files in a given path.... but i've a small concern here...whenever I give path like "d:\", i'm getting an unauthorizedaccess exception...this is because i'm not able to read certain directories ...more >>

TableLayoutPanel and Transparent controls
Posted by Ahmed at 6/27/2007 8:33:21 PM
My app used to work perfectly, i have a picture box and an invisible panel which overlaws some shapes over an image. I wanted to add a TableLayoutPanel so i can add some additional controls, i embedded the picturebox in a cell and not it seems my invisible panel cannot display over my pictureb...more >>

Selecting a value in a bound combobox?
Posted by Magnus Bergh at 6/27/2007 7:34:22 PM
I thought this was easy, just to SelectedValue in code for example Combobox1.SelectedValue= "ABC". Looks on screen like it works and the correct value shows in the combobox but the underlying datasource is not updated. It is like the usual order entry example where you have a combox disp...more >>

OpenFileDialog creates handle to a folder
Posted by Hayato Iriumi at 6/27/2007 7:09:29 PM
Hello, folks. I have an issue with OpenFileDialog. Let's say I chose a file at C: \TestFolder\TestFile.txt using OpenFileDialog. After I choose the file, I tried to delete the folder from Windows Explorer, but it says that another process is being used by another person or program. So I opene...more >>

Docking a Windows Form to Screen edge
Posted by Mike at 6/27/2007 6:26:00 PM
Sorry for cross post - my other post produced to results. I need to create a C# 2.0 Windows XP SP2 application that has the following features: Sidebar - vertical bar on a desktop which basically functions as a control panel for other gadgets. I can drag and drop any of my gadgets into or ...more >>

CHKDSK Output Message Question
Posted by Tecknomage at 6/27/2007 1:34:02 PM
Whenever you run CHKDSK one of the message lines is "usn journal verification." What is the "usn journal?"...more >>

Give parameters to a HelpFileName string
Posted by Sitar at 6/27/2007 12:30:05 PM
Hello, I'm having difficulties with a customized help system we have. As it is common to different apps, there is a common entry point, a page called StartHelp.html which contains some scripts and has a table with corresponding helpID and help file names (not only html file. It can be pdf ...more >>

How to get DataGridView row coordinates?
Posted by Richard Lewis Haggard at 6/27/2007 9:50:49 AM
If a DataGridView row's index is known, how can that row's bounds be determined? -- Richard Lewis Haggard General: www.Haggard-And-Associates.com Please come visit here for a couple thousand good giggles!: www.haggard-and-associates.com/Humor/humor.htm ...more >>

Invoice Form
Posted by Ahmd at 6/27/2007 12:00:00 AM
Pls Help I want to create a Invoice form using vb.net pls tell which control i should use. I want item list also in in the invoice form thank you in advance ...more >>

Ask child controls ignore received event and let its parent to process it.
Posted by zlf at 6/27/2007 12:00:00 AM
Hello, I'm developping an UserControl, filled with child controls on it. I want to make the UserControl to display a message when user db-click on any place on it, but it seems now, all of those db-click events are hold by its child controls, what should I do to ask child controls ignore rece...more >>

auto scrolling a RichTextBox
Posted by Afshar Mohebbi at 6/27/2007 12:00:00 AM
Hi everybody, I have a RichTextBox in my form and I'm adding plenty of text (follwoed by \n\r) to it and want it to be scrolled automatically to show last texts. I have put it to my form and it should work like a logger. Can I achieve it by using RichTextBox? Thnaks in Advance: Afshar Mohe...more >>

Wrong row selected when pressing down arrow key after sort
Posted by Simon at 6/27/2007 12:00:00 AM
Hi everyone, I'm having a frustrating problem with the datagrid control. I have added code so that the currently selected row remains highlighted even after a sort. This seems to work perfectly in all but one respect. After the sort, the row will move position and will remain selected. Th...more >>

Binding to a ComboBox
Posted by Bill Gower at 6/26/2007 7:39:55 PM
I have a combo box in which I want to display the distinct values in a field in a table. Depending on the table name and the field name entered by the user, I build an sql statement _Sql = "Select distinct " + _fieldName + " from " + _tableName and fill a dataset with the results How...more >>

Combobox with check items
Posted by tJ at 6/26/2007 1:59:50 PM
I am searching for an example where a combobox is extended to contain checkbox items. I've looked all day now, and so far the best links are: 1) http://www.codeproject.com/useritems/CheckComboBox.asp?df=100&forumid=421877&select=2100429&msg=2100429 and 2) http://www.codeproject.com/combobo...more >>

Problem with DataGridView formatting and default values
Posted by B. Chernick at 6/26/2007 10:56:00 AM
I am rather unfamiliar with the DataGridView. I am trying to do a project with VS2005 and SQL Server 2000. Assuming a DataGridView bound to a table, what is the best place (best event) to catch new records and supply default values? (Also assume that several of these fields do not permit n...more >>

How to allow user to enter 'Enter' in a RichTextBox
Posted by Richard Lewis Haggard at 6/26/2007 10:21:08 AM
In VS05, I have a form that has a standard RichTextBox control in which my client wants to be able to type an Enter key and have the RichTextBox respond by inserting a new line instead of either moving to the next control in the Z order or closing the form. He doesn't want to use Ctrl+Enter. H...more >>

my.Computer.Screen.WorkingArea retrieves incorrent width & height when screen resolution changes
Posted by danzhonguk NO[at]SPAM yahoo.co.uk at 6/26/2007 8:23:48 AM
Just got a problem about "my.Computer.Screen.WorkingArea". It seems not to work properly. I have got my windows application developed with VB.NET in Visual Studio 2005. What I want to do is to change the size of my forms when screen resolution changes. With the application running, I changed t...more >>

RichTextBox and other controls wont update
Posted by Afshar Mohebbi at 6/26/2007 4:12:18 AM
Hi everyone, I have a loop that runs thousands of time an does IO operations. in each loop I update RichTextBox.Text but it does not take effect until the end of whole loop. It occurs about other controls too. How can I enforce these controls to be updated correctly? I'm using: VS 2005, C...more >>

How to access combo box properties of DataGridView combo column
Posted by Steve Marshall at 6/26/2007 1:31:39 AM
Hi, I have an unbound DataGridView with just 1 column in it. The column is a combobox type, and I need to be able to attach the datasource to it programmatically. This is because it is a DataTable that gets built dynamically at runtime. But I can't see how to get at the underlying combobox t...more >>

Enum question
Posted by Bill Gower at 6/25/2007 9:07:56 PM
I have a group of 7 checkboxes representing the days of the week. I have an enum that that corresponds to the days ex. DaysOfWeek.Sunday, DaysOfWeek.Monday etc. I have a library that has a function that I call and need to pass the days of the week that the user has selected concatenated by ...more >>

Unable to change the column header text in DataGridView
Posted by Oldman at 6/25/2007 3:04:00 PM
I am trying to change the column header text to red and I have this code: dCol.HeaderCell.Style.ForeColor = Color.Red; This change does indeed stick and I can see it in the debugger. However, the column name text is still showing up as black. I have seen this same problem asked around bu...more >>

launch Excel from WinForm app
Posted by BrenB at 6/25/2007 2:49:50 PM
I want to open an Excel doc from my .NET 2.0 WinForm application. I have a list of UNC path names of Excel documents a user might want to open. The way I'm doing it now works, but when the user closes Excel, it is still running; I can see it in the list of processes in TaskManager. My Win...more >>

Customize Title Bar
Posted by at 6/25/2007 1:10:11 PM
Does any body knows how can I customize winform's title bar to add some controls. For example, I need to add a text box and a button. Thanks. ...more >>

Google-like sidebar in C#. Are there any controls? Please help
Posted by Mike at 6/25/2007 12:53:01 PM
Hi! I am tasked to write a Google-like toolbar application in C#. We explored using Google Desktop SDK but found it too limiting in the way it handles communications with the backend and too limiting with UI presentation. I need to create an application that has the following features: ...more >>

Controlling row height in DataGridView
Posted by Richard Lewis Haggard at 6/25/2007 9:40:24 AM
Here are the goals: 1) Give the user the means whereby a row's height expands to display the entire contents of its tallest cell. 2) Give the user the means whereby a row will shrink down to a single line. 3) Give the user the means whereby a row's height can be manually set by dragging the...more >>

Click once parameters not coming through
Posted by CSharpner at 6/25/2007 6:45:59 AM
I posted this a while ago with no response other than a confirmation from someone else. Has anyone gotten this to work? Problem: I've created a click-once deployed application that cannot receive paramters from the query string in the URL of the click once page. I've followed this to the l...more >>

help on treeview
Posted by AVL at 6/25/2007 5:00:00 AM
hi, i've used a treeview control in my windows form.... i want to display the text of my treeview nodes as hyperlink..instead of showing it as plain text...... how can i acheive it? ...more >>

Writing control properties to xml
Posted by John at 6/25/2007 3:23:22 AM
Hi I am trying to right all control properties on my form to an xml file. My complete VB code so far is given at the end below. I have two problems currently. 1. On the line PropValue = Prop.GetValue(Ctrl) I get the error "Conversion from type 'Padding' to type 'String' is not valid." wh...more >>

Combobox: Disable dropdown but keep text editing function?
Posted by JamesB at 6/25/2007 12:00:00 AM
I have a combobox on a form that is populated with a bunch of items. A user can select an item, and other related things on the screen fill in. I am implementing an Edit mode, so that once clicked, the user can change the information and save it. While in Edit mode, I would like to disable the...more >>

Writing/reading control properties to a file
Posted by John at 6/24/2007 4:28:43 PM
Hi I am trying to save settings of controls on my form to a file so I can read them back later and recreate the controls on the form. I have figured out how to go through all controls and get their properties (see code below). What I am not sure is; how and what type of file format I need t...more >>

Passing values from a Form to a Controller class
Posted by Bill Gower at 6/24/2007 3:33:39 PM
I have a controller class that creates an object and then calls a form for the user to fill in some information that will populate the object with after the form is closed. What is the best way for the controller to get the data the user entered into the form. Should the controller pass the ...more >>

Error in design mode when inheriting from a UserControl deriving class in .NET 2.0
Posted by nagar NO[at]SPAM community.nospam at 6/24/2007 12:00:00 AM
I'm upgrading my C# project from .NET 1.1 to .NET 2.0 and I've noticed the following. I have a base class called UserControl1 that inherits from UserControl. Then I created another class (BatchActionControl) that inherits from my UserControlDerived and, although the applications runs correc...more >>

char to system string
Posted by sonic at 6/24/2007 12:00:00 AM
hi! How to put this char buffer[300] = "ffffff" into label->Text? I need to convert it to system:string:/ regards, sonic ...more >>


DevelopmentNow Blog