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 > december 2006

Filter by week: 1 2 3 4 5

Showing Minimized form
Posted by Kimera.Kimera NO[at]SPAM gmail.com at 12/30/2006 4:19:26 PM
I want to show the form when the option to show is clicked on a systray icon, but nothing is shown. The only way i can make this shown is to add Me.Show, however this gives a entirely shrunk window, that now wont hide again (even with adding Me.Hide) Could anyone give me the reason for this an...more >>

ShowInTaskBar = False
Posted by Kimera.Kimera NO[at]SPAM gmail.com at 12/30/2006 3:50:44 PM
I'm having a problem with using this. I'm using two forms, on load the first form hides itself, then shows the next form. On the next form, the form is minimized to SysTray, however when i set ShowInTaskBar to false, the program will terminate. Is this a bug? ...more >>

User Control Instance/DataGridView.Columns in Visual Studio Design
Posted by Sorin Dolha at 12/30/2006 9:42:00 AM
I have a Windows Forms-based project in Visual Studio 2005, containing a simple user control (class) and a form (class) that hosts an instance of the user control. The user control class contains (aggregates) a DataGridView instance (using a private modifier). Also, within the user control ...more >>

What prevents control from changing LOCATION?
Posted by Kristijan Marin at 12/30/2006 1:32:46 AM
Hi, I have a usercontrol control that acts as a container inside which I have userpanels ... that have picturebox controls inside Upon zoom parameter the control inside container is resized or shrinked ...... so basicaly i resize/shrink the image The problem occures only when i have the...more >>

How to create a managed container control capable of hosting controls using only their handles?
Posted by ObsesivelyCurious at 12/29/2006 4:12:55 PM
I have a question for all you smart people out there. I need to create a managed windows forms control that can contain controls knowing only their handles. In fact, all it really needs to do is host a single control in such a way that from the user's perspective it looks as if only one contro...more >>

Forms ok in design mode, cropped in run mode, only on my monitor
Posted by RobinS at 12/29/2006 3:42:34 PM
Hello to all, and happy new year! I have this application that someone wrote that I'm sort of checking out. The forms look fine in design mode, but when I run the application, it crops off the bottom of almost every form. I haven't figured out yet if there's a pattern to it. I compared two f...more >>

How to do a bubble window?
Posted by David Thielen at 12/28/2006 5:28:00 PM
Hi; Is there a url somewhere that shows how to popup one of those little bubble windows with a pointer to one of my controls? -- thanks - dave david_at_windward_dot_net http://www.windwardreports.com Cubicle Wars - http://www.windwardreports.com/film.htm ...more >>

MessageBox.Show(text) has blank caption - why?
Posted by wizofaus NO[at]SPAM hotmail.com at 12/28/2006 4:24:31 PM
MessageBox.Show() provides an overload where you supply only the text. I figured that, like MFC and similar frameworks, the caption would be the application name, which is 99% of the time what you would want. But no...the documentation even states that the caption is blank. But when would it ev...more >>



Serializing to xml.
Posted by Sugandh Jain at 12/28/2006 3:02:18 PM
I am using a method to serialize objects to xml. this method is working fine to serialize most of the objects to Xml. For one collection object, it is not doing so. The Collection and its containing object are marked [Serilizable]. What could be the reasons for the object not getting seriali...more >>

WinForms equivalent to java.awt.Component: isShowing()
Posted by rbaut NO[at]SPAM ecs at 12/28/2006 9:04:50 AM
Hey guys, is there a WinForms equivalent to this Java AWT method? ...more >>

WinForm 2.0 hosting Word 2003
Posted by Niyazi at 12/27/2006 10:01:03 PM
Hi, I used to have DSOFramer.ocx and I can very well host the Word 2003 when I coded with VB.NET 2003. And the form had only 2 button other than hosting Word. First button for exit and second button was to save into SQL Server 2000. Now I am mostly coding with VB.NET 2005 and I would like...more >>

DataGridView adding multiple bands.
Posted by RMZ at 12/27/2006 1:44:48 PM
Does the Microsoft DataGridView control support multiple bands (i.e. expanding rows with embedded grids). If not, can anyone recommend a good third-party solution for someone needing to manually build out a multi-band grid without a fixed data source. The Infragistics controls seem to be based e...more >>

Basic .NET questions non-language specific
Posted by Robert Meek at 12/26/2006 8:00:47 PM
I'm using VS 2005 with the Chrome add-on to write NET applications in Object Pascal. But my questions are very basic and no language specific so I'm hopeful someone here can help me. 1. I'm not sure I understand the relation of the References section of the Solution Explorer. I tho...more >>

Compile Time Error
Posted by Ruben Monteiro at 12/26/2006 5:13:40 PM
Hi! After a lot of internet search, i'm still not able to find the solution for this problem "Value of type 'System.Drawing.Size' cannot be converted to 'System.Drawing.Size'." this happens when i try to compile a windows forms application and happens in the following lines, this also happens ...more >>

How to bind a DataGridView to a DataSet without a database?
Posted by bill at 12/26/2006 11:37:00 AM
All, Where can I find some sample code for binding a DataGridView to a dataset without having the dataset attached to a database? TIA, Bill ...more >>

Static vs Non Static DAL Class(es)
Posted by Fred Mertz at 12/26/2006 10:48:30 AM
I'm wondering what some of the important considerations are regarding implementing the DAL as a static class vs creating instances of it as needed. I'm writing a .NET 2.0 Windows application (MDI) that will communicate with a SQL Server; approximately 120 users. On smaller apps I have te...more >>

How to use FTP Commands in C#
Posted by be.ravishankar NO[at]SPAM gmail.com at 12/25/2006 9:40:58 PM
Hi everyone.. I want to know how do we use FTP commands in C#..Please help me in the same ...more >>

Can't Make Primary Key Column Invisible in DataGrid?
Posted by Joseph Geretz at 12/24/2006 10:37:01 PM
Visual Studio 2005 / FX 2.0 I've got a datagrid which is bound to a BindingSource, pretty standard stuff. Basically the grid is populated with every column from the underlying table. I've got some columns marked as invisible, however the primary key column keeps showing up. The best I can d...more >>

Bug in designer
Posted by Teemu at 12/23/2006 3:26:51 PM
I noticed a strange bug in designer. Bug hides controls from my form. I tried this with C# and VB Express Editions and both the result was the same. Here is description how to see this bug: 1. Create Windows Application solution 2. Add user control to this solution, just create the control ...more >>

How to properly code GetFormattedValue in custom GridViewCell
Posted by James H. Hansen at 12/23/2006 12:49:27 PM
I found an excellent article in the MSDN library by Règis Brid showing how to create a custom DataGridView column for NumericUpDown controls at http://msdn2.microsoft.com/en-us/library/aa730881(vs.80).aspx I am using the article as a basis for a numeric textbox column, but I am really puzzling...more >>

Treeview File System
Posted by Larry Dodd at 12/22/2006 3:27:00 PM
I would like to know the best way to load a Treeview in VB.NET 2005 with the directories and files located in a path on the hard drive. I would also like to know the best way to refresh this view when a file was added or deleted from the file system as well....more >>

datagridview dinamic fill
Posted by luibio NO[at]SPAM gmail.com at 12/22/2006 11:22:51 AM
How can i made SUB to fill a datagrid view with large amount of data like SLQ 2005 query? ...more >>

Windowsform like control panel
Posted by stbo66 at 12/22/2006 12:00:00 AM
Any sample on how to create a windows form like windows xp control panel ? Happy Holiday Stefano ...more >>

How Can I prevent form maximize when double- clicking title bar
Posted by cok119 at 12/21/2006 10:48:08 PM
Hi, all How can I prevent form maximize when double- clicking title bar ? thanks ...more >>

Request
Posted by Larry Smith at 12/21/2006 12:11:55 PM
Hi there, Sorry if this is inappropriate for this NG but I'm looking for samples of form-based ".resx" files that were created in a non-English version of Visual Studio 2005 (or 2003 if necessary). If anyone has access to this could I trouble you to send me a copy at lsmith999999@hotmail.co...more >>

detecting 12 or 24 hour support for DateTime
Posted by freddyboy at 12/21/2006 11:52:19 AM
Hi I'm trying to detect if the current culture support 12h or 24h? I need to change string values based on the hour formatting. I tried to DateTime dt = new DateTime(1,1,1,14,0,0,0); string s = string.Format("{0}:00", dt.Hour.ToString()); // I want s to output 14:00 when using 24h and...more >>

Office like closing childform warning message.
Posted by Jose Fernandez at 12/21/2006 9:47:18 AM
Hello i am creating an application. It's an MDI parent with all the child. I have been trying using the OnClosing event in every child. It works OK BUT not the way it should be. The problem is that when i close one child form individually, it works fine. when i close the mdi parent, it als...more >>

CSV File reading
Posted by Sara at 12/21/2006 5:37:11 AM
Hello There, Can anybody help me in reading through large csv files size of about 200mb, with 200 columns. I have tried with streamreader object parsing line by line but its bit slow, does anybody have a better solution. I dont want to landup using 3rd party component. Regards, Sarava...more >>

byte array in DataGridView
Posted by hajduk_25 NO[at]SPAM yahoo.de at 12/21/2006 2:36:56 AM
Hi, my problem was already posted here in a similar manner, but I didn't find a convincing solution for it yet. It's about the following: I use in C# a DataGridView for displaying data, and one of the columns is a byte array (it's a tinyblob in MySQL, I use it for simulating GUIDs in MySQL, b...more >>

Embed formula editor in app?
Posted by Chris Bordeman at 12/20/2006 10:55:25 PM
How is this done? I want to define some variables, then let the user edit a formula using the same UltraCalcManager formula editor that appears in design time. ...more >>

dot NET Control Naming Conventions
Posted by Baskar at 12/20/2006 10:04:01 PM
Hi, Looking for a coding standard/guidelines document which talks about Control Naming Conventions.(ex: Label - lbl). If any, kindly provide me the link. Regards, Baskar C.G ...more >>

Why don't Menus, Status Bars, etc. Decrease Form Client Area?
Posted by Joseph Geretz at 12/20/2006 7:40:44 PM
I laid out all my form widgets based on this.ClientRectangle. I expected that when adding a Menu this would decrement from the Form's client area, since that's what I'm used to from my years of VB6 development. But this didn't happen. So is the difference between the Form size and its Client...more >>

How to Add Icon into EXE Assembly
Posted by sheeeng NO[at]SPAM gmail.com at 12/20/2006 6:09:42 PM
Hi all, How to Add Icon into EXE Assembly without referencing an external *.ico file? Thanks in advance. ...more >>

Calling a method in one MDI child from another MDI child
Posted by Earl at 12/20/2006 2:32:45 PM
I need to call a method on an owned child form, and am wondering if the best way of doing this is to capture the Closing event of the form that passes control back to the form where I have the method. The structure is like so: frmMain (MDI, runs on app start) calls frmB (MDI child), whi...more >>

Supress Alternating Row Style for Specific Data Grid Column?
Posted by Daniel Manes at 12/20/2006 1:49:34 PM
My DataGridView is set up like this: * Main row background color = white * Alternating row background color = light gray I also have a read-only (non-editable) column I want to show up as solid dark gray (i.e., no alternating row colors), but it shows up as alternating dark/light gray. Is ...more >>

binding dataset to DataGridView
Posted by bill at 12/20/2006 12:28:12 PM
All, I have the following: BindingSource bs = new BindingSource(); private void initDataGridView(DataGridView dgv) { // dsForDGV is a datset object on the form dsForDGV.Tables[0].Rows.Add("abc"); bs.DataSource = dsForDGV; bs.DataMember = dsForD...more >>

Cycle through components on a form at run time
Posted by Andrew at 12/20/2006 12:23:11 PM
I have a need to cycle through the compoents on the form in my program at run time to check for the existence of certain components. I do *not* mean the Controls via the form.Controls array, I want the non visual components. I know the components are not technically part of the form but th...more >>

Form Naming Convention
Posted by Smithers at 12/20/2006 10:13:14 AM
Is it common practise to begin the name of form classes with "frm" (e.g., frmOneForm, frmAnotherForm). Or is that generally considered an outdated convention? If not "frm" what is a common or recommended practise? Thanks. ...more >>

Preventing MDI to close if childforms exists
Posted by Jose Fernandez at 12/20/2006 10:02:23 AM
hello i been trying to get this done but so far... unsuccesful. What can i do to prevent the user close my Main MDI form by pressing Alt+F4, or clicking on the Close button of the form? thanks in advance ...more >>

Grid Header Colors <1153920970.598006.148040@m79g2000cwm.googlegroups.com>
Posted by Chris at 12/20/2006 8:16:03 AM
I am having the same issue. I set the Header colors in the style using the Properties tool, but the new colors do not show up at runtime. EggHeadCafe.com - .NET Developer Portal of Choice http://www.eggheadcafe.com...more >>

Setting datasource of combobox changes the visual text field
Posted by progressdll at 12/20/2006 3:05:09 AM
I fill an arraylist from a function ArrayList ar=Kleur.FindAll(Artikel.Nummer); And set the data source comboBoxExKleuren.DataSource=ar; But this combobox changes the visual text field to the first field in the array Any solution to stop this? ...more >>

running application on vista
Posted by sonali_reddy123 NO[at]SPAM yahoo.com at 12/20/2006 3:03:55 AM
Hi all, I have encountered a problem on running my vb.net application on vista. The problem occcurs while writing the data to xml which I create in my application path. It fails to modify the xml and gives error as failed to write the data to xml. Same scenario works on other PC's who ...more >>

Displaying Extended Latin-1 characters in a multi-line Textbox
Posted by Paul Bradshaw at 12/19/2006 2:36:41 PM
I have a weird situation... I have a unicode text file that contains Latin-1 characters. This code displays fine in unicode text editors, and when converted to ANSI by a tool like EditPad, it looks correct as well. But when I use the code below to load it into a Text box, all the extended char...more >>

Simple(ish) problem with a user control
Posted by James Crosswell at 12/19/2006 2:34:22 PM
I have a very simple user control. I want this control to act as a sort of container so that I could drag/drop other components (from the toolbox) onto this control and then dock them etc within this user control. What do I need to do to achieve this? I can mimic the behavior that I want at...more >>

InvokeRequired
Posted by Samuel White at 12/19/2006 11:55:47 AM
Hi there, I need to iterate all "TreeView" nodes on a worker thread. When doing so, I'll call "InvokeRequired" and route all method/property calls through "Invoke()" as required. However, for each "TreeNode" object I encounter in the tree, must I also route method/property calls on this obj...more >>

OpenFileDialog needs STAThread, but I need MTAThread
Posted by Shannon Cayze at 12/19/2006 10:59:29 AM
Hello all, In my Windows Forms app I'm opening an OpenFileDialog. This throws the following exception because I have the MTAThread attribute on the Main method: "Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has...more >>

Scrollbars on Custom Control
Posted by gotcode NO[at]SPAM gmail.com at 12/18/2006 6:03:20 PM
Hello, I'm seeing some weird behavior and the MSDN documentation is lacking in an example of actual usage. What I've done is create a custom control that derives from either ScrollableControl. I want a vertical ScrollBar that I can control the visibility and parameters of. To accomplish this ...more >>

Wierd Quantum Error
Posted by andyblum NO[at]SPAM gmail.com at 12/18/2006 2:20:24 PM
Working with a thrid party control (Sybase DataWindow.Net). It is a great component but I found something really wierd and need help. The object has a field inside of it called PrimaryBuffer. This field is null when it shouldn't be (I wont go into the details). However, when I inspect the o...more >>

Make combobox uneditable....
Posted by RMZ at 12/18/2006 8:28:02 AM
Is there a property to set in order to make it so the user can not edit the value of the currently selected item in a ComboBox, default is editable. ...more >>

complex treeview best practices
Posted by Robert Ludig at 12/18/2006 5:52:42 AM
I have a TreeView that displays a very big amount of complex hierarchical data where the elements in the tree represent all sorts of different datatypes. These datatyps again store one or more typed lists of other datatypes wich will appear as childitems in the treeview. E.g. the datatype "Build...more >>


DevelopmentNow Blog