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 > february 2007 > threads for february 8 - 14, 2007

Filter by week: 1 2 3 4

Add My app to the 'Open With' menu
Posted by ElmoWatson at 2/14/2007 2:52:57 PM
Can someone guide me to a place where I can learn how to, in the Setup/deployment project for my application, add my Application to the "Open With" menu? ...more >>

New to WinForm from Asp.Net
Posted by nkw at 2/14/2007 2:27:35 PM
Hi, are there any resource lke http://asp.net available for Winforms? Any reference, well structured sample database application like pet shop?...more >>

Moving a borderless form that contains child controls
Posted by Flyte at 2/14/2007 12:52:26 PM
Hi all.. I have followed the directions outlined in http://msdn2.microsoft.com/ en-us/netframework/aa497373.aspx#7qgifyua (search page for How do I support moving a borderless form?) private const int WM_NCLBUTTONDOWN = 0xA1; private const int HTCAPTION = 0x2; [ DllImport( "user32.dll" )...more >>

Modal form opening another modal form
Posted by David W at 2/14/2007 12:39:34 PM
I have an application that opens a modal form, FormA. This modal form, FormA may need to open a second modal form, FormB and close/hide itself. FormB can either close out and return control to the main window, return to FormA in an error condition, or open a third modal window FormC. Any s...more >>

Component needs a form's HWND
Posted by mikesnoise NO[at]SPAM gmail.com at 2/14/2007 11:18:55 AM
I am writing a class derived from Component that calls a Win32 function to display a dialog box. The Win32 function takes an HWND as the parent window of the dialog box (for positioning the dialog over the parent). How do I get the HWND of the form that it was dropped on? Thanks, -Mike- ...more >>

Accessing forms from different project
Posted by Dimsion at 2/14/2007 9:49:54 AM
Hi everyone, Does anyone know how i can access forms from different project. I have multiple projects and i was wondering if it would be possible to access those forms without adding it in it into the project itself. Thanks! ...more >>

Double click file - open in my app
Posted by ElmoWatson at 2/14/2007 9:28:38 AM
I set the association for a partcular filetype, to my application. Now, though, when I double click on a file of that filetype, it will open my application, but the file will not automatically load in it. How can I set my program so that, when I double click on a file, the file will load autom...more >>

BackgroundWorker vs. Threads
Posted by techfuzz at 2/14/2007 6:45:35 AM
I am trying to use a BackgroundWorker, but I need to be able to call other functions and procedures from within DoWork. I get an error when I try to do this so I'm lead to believe it is not possible. Is it possible? If so, how? If not, would using Threads be the solution? Thanks, techfuz...more >>



programmatically adding resx file to project.
Posted by Solitude at 2/13/2007 11:24:49 PM
So in my class constructor I am trying to programmatically create a .resx file to be included in our project file if it does not exist and add some strings to it. Has anyone done similar functionallity and if so how did you do it? Thanks, Matt...more >>

arrow keys
Posted by Pascal Cloup at 2/13/2007 9:22:12 PM
Hi, How to intercept th arrows keys in a whole form? thanks in advance, Pascal ...more >>

Possible help for Newbie
Posted by Not Bright at 2/13/2007 3:37:25 PM
Hi All, Hope everyone is well and wouldn`t mind helping a very frustrated newbie out? Im fairly new to VB 2005. I have made a fair very simple Database Projects which have all worked. Im now writing a very simple project which has a Table, and 3 Combo Box`s which are set as Lookups to other...more >>

Using an image in a datagrid column header..
Posted by modi321 at 2/13/2007 2:36:30 PM
I am looking to replace the text of a column header with an image. Is there any particular trick to do this? The image-column only allows for images in the actual rows, but I want to substitute a column's text with an image. Thanks for the help. Oh, and I saw this from Feb 2004, and I am ...more >>

outlook express ver 5.5
Posted by Tazman at 2/13/2007 1:10:00 PM
Can I get a version of Outlook Express to work with Windows XP? Is this still a downloadable version?...more >>

how to tell if notifyicon hooked ok
Posted by Jim Mead at 2/13/2007 12:50:02 PM
I have C# code that runs during login (HKEY_LOCAL_MACHINE\\...\\Run...) This applications main user interface is a notifyicon with a popup menu to open a larger form. Orignally I had a problem where the tray icon would only appear intermitently on reboot. A work around I have place now is t...more >>

ReportViewer Display Mode question
Posted by Voivod at 2/13/2007 6:23:06 AM
Hi, just a simple question... I've a report (rdlc) inside a reportviewer, and i'd like to catch a sort of "DisplayModeChanged" event, but the ReportViewer doesn't have this kind of event. So I was trying to figure out an alternative way... Basically I need to set a parameter to a X value when...more >>

Dispose questions
Posted by JS at 2/13/2007 5:34:16 AM
I have a user control with a panel on it. This panel is dynamically populated with controls and sometimes I need to clear off all of the controls and repopulate with new ones. 1. Disposing all controls on the panel for (int ii=this.panel.Controls.Count-1 ; ii>=0 ; ii--) this.panel.Contr...more >>

Insert Attachment in Microsoft Outlook
Posted by Jetson at 2/13/2007 4:31:21 AM
Hi! I want to open my default client application from a windows form application. I have the code but I don =B4t found how to inserts attachment s? Can anybody help me? Thanks. ...more >>

Logitech quickcam pro 5000 with windows xp media edition and MSN
Posted by Waqas at 2/12/2007 11:08:00 PM
I can't get my webcam to work with msn at all! I've tried everything the logitech tech support have suggested. It keeps saying my webcam is either not connected or being used by another program..which it isn't. I know the webcam itself does work I am able to use it with yahoo messanger. ...more >>

TypeConverter question
Posted by --== Alain ==-- at 2/12/2007 8:33:31 PM
Hi, i've developed my own TypeConverter and i have some issue. Here is my custom control class definition : [Category("Appearance")] [Browsable(true)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] [Description("Setup Style, Type and Color of gridlines to draw...more >>

.NET C# Winforms question about window opening
Posted by Brian Simmons at 2/12/2007 8:12:53 PM
Hi All, I think I have a question that probably has an easy answer, but I can't manage to find it. I come from a Sybase PowerBuilder programming background, and pretty much all PB developers used the following technique: "Post"ing a method/event when opening a window, so that the window d...more >>

Global Exception Handling
Posted by Simon Harvey at 2/12/2007 7:45:33 PM
Hi All, I'd like to be able to display a nice custom form to the user when any exceptions occur within my Windows Forms application. In asp.net I would use the global exception event that yuo can handle in global.asax. Is there something similar in Windows Forms? If there isnt something ...more >>

Combobox performance
Posted by Fad at 2/12/2007 12:06:55 PM
I've measured the execution time of the following code, and it's variable from 0,5 sec to 1 sec.. How I can improve performance..? for (int i = 0; i < 8; i++) { myCombobox1[ i ].Items.Clear(); myCombobox1[ i ].Items.AddRange(stringArray1); myCombobox2[ i ].Item...more >>

Resize nested control at runtime
Posted by Russ Green at 2/12/2007 11:14:04 AM
I have a VB.NET app that uses lots of forms which I am loading into a panel cotrol using..... Me.pnlMain.Controls.Clear() frm.TopLevel = False frm.WindowState = FormWindowState.Maximized frm.Dock = DockStyle.Fill frm.Anchor = AnchorStyles.Left + AnchorStyles.Right + AnchorStyles.Top + A...more >>

Setting a style for a selected row in the DataGridView
Posted by Simon Harvey at 2/12/2007 10:13:32 AM
Hi Can anyone tell me if there is a property for setting the default cell style for a cell thats selected. I can see properties for the default cell styling and alternate row styling but not for selected styles. Am I missing something here? Do I have to write some custom formatting code? ...more >>

setting form Size - hack at form.designer.cs ?
Posted by Oli at 2/12/2007 9:05:58 AM
Hi - I would like to set some properties to constants (these may ultimately come from app.config) eg the Size property. If I do this in my Form constructor - then the values seem not to get applied in the designer. Also - the "InitializeComponent" call has already done a Suspend/Resume layo...more >>

How to Create WinForms client and ClassLib server as one assembly?
Posted by Joseph Geretz at 2/11/2007 7:02:26 PM
I'd like to break up my aplication into a WinForm executable, plus a class library containing application utility functions. But I don't want any client other than my own application to have access to my application library. Isn't this the point of an 'assembly'? So how can I generate these ...more >>

A Label control that its text can be selected with the mouse
Posted by Ben at 2/11/2007 9:08:01 AM
Hi, Is there a way to allow the Label control to select its text with the mouse by the user? I've looked at the Label's properties but I couldn't find anything making this possible. Am I missing something here? Well, it can be done with a Textbox control, but the problem with this approac...more >>

Displaying a status image in a datagridview
Posted by Simon Harvey at 2/10/2007 2:55:05 PM
Hi all, Can someone show me, or direct me to some code which deals with the following (pretty standard) requirement: I have a database column with an integer indicating status e.g 1 = Available, 2 = Out of Stock and so forth. In the datagrid, I would like to be able to display an approp...more >>

Need help on some PropertyGrid and PropertyGridView members
Posted by Helen.K at 2/10/2007 6:54:00 AM
Hi, I'm looking for a way to test the application with the PropertyGrid control, namely, to programmatically obtain grid items, select items, etc. I explored the PropertyGrid object with the test tool and found a number of protected (or maybe even private) members that I guess can help me with...more >>

GroupBox and/or Tab Control Font Colours
Posted by Andrew McNab at 2/10/2007 12:01:00 AM
From all the control properties I have seen, there isn't a way of changing the font colour for GroupBox titles and TabPage titles. Is there any way around this? Would it be possible to clone the control and modify it or are the colours inherited from the OS colour schemes? I have no idea how t...more >>

MDI app - don't load document twice
Posted by Elmo Watson at 2/9/2007 11:19:44 PM
How can I (in VB.Net 2005) check (when loading a file), to make sure if it's already been loaded - then prompt the user to see if they really want to do it (since it's already been loaded)? ...more >>

Still trying to find icons used in standard toolbar
Posted by Bill Gower at 2/9/2007 2:43:16 PM
I am trying to find out where Microsoft stores the icons it uses to populate the "insert standard items" on the toolbar. I would like to use them as images for the menu. I have the professional version of VS 2005 but the images provided do not inluded these icons. Bill ...more >>

MouseHover but on grid rows
Posted by Peri at 2/9/2007 10:07:56 AM
I would like to achieve something like Control.MouseHover but not on whole DataGridView but on a single rows. Any ideas? -- Peri...more >>

toolstrip container backcolor and gradients - I want it to look like outlook 2003!
Posted by Kevin at 2/9/2007 9:54:18 AM
Having moved to .net 2.0 I love the new ToolStripContainer, however it is causing me some issues with colours in the rest of my application. With visual styles enabled the ToolStripPanel is a blue gradient, from light blue on the right, to a darker blue on the left. I would really like the c...more >>

OT: Crossword Puzzle Creator - .NET Source
Posted by Bob Johnson at 2/9/2007 9:53:45 AM
I'm looking to create a small Windows Forms (2.0) application that enables the user to create basic crossword puzzles that are printable (ideally ..PDF). I just spent a bunch of time with Google and it seems that there are a lot of apps for sale (no source), a lot of shareware Java applets - s...more >>

Assembly Version problems
Posted by Philip at 2/9/2007 9:36:01 AM
Hi, I have built a Windows Forms app (.NET Framework 1.1, VB.NET). I thought that if I left the Assembly version in AssemblyInfo.vb as the default (1.1.*) then the Build number would change every day (since Jan 1 2000), and the Revision number would change every second (since midnight) ...more >>

paging search results
Posted by Ramu at 2/9/2007 8:01:08 AM
is there any control which I can use to display search results using paging, I don't want to get all the results from database, instead I want to make a database call to get the results for each page. can I use datagridview or listview control to page through the search results and make database...more >>

How to use On-Screen keyboard
Posted by Steve at 2/9/2007 7:55:03 AM
C# I am trying to automate the standard Microsoft On-Screen Keyboard. I have an app running on windows xp on a touch screen device. I want to popup the on-screen keyboard whenever they enter a text box so they can enter some text. How can this be done? Thanks Steve...more >>

How to access columns having same name in a datarow More options
Posted by vish at 2/9/2007 7:31:47 AM
Hi all, I know this might look strange at first look, but i am looping thru a dataset created using two different tables from database.These two tables have some fields with the same names. Now i want to use those columns from datarow. How can i get exactly the same column i want not the ...more >>

DataGrid - prevent open space on right
Posted by john coltrane at 2/9/2007 5:26:38 AM
When I create datagrids the user can resize the right-most column leaving empty space on the right side. Is there a way to prevent this? thanks for the help john ...more >>

Generating 3D graphs in .Net 2.0 windows forms.
Posted by Vikas agarwal at 2/9/2007 3:43:01 AM
Hi, I m willing to use Charting Tool to draw 3D Charts in Windows Forms in .Net 2.0 I want to generate a chart having all 3 axes plotted on the screen i.e. X(Customer_acctbal),Y(supplier_acctbal) and Z(Compilation Cost). My questions are: 1) Is this possible to draw usin...more >>

PropertyGrid problem
Posted by John Brown at 2/8/2007 7:14:14 PM
Hi there, I've created an expandable "PropertyGrid" control that initially looks = like this when fully expanded (you'll need a fixed-space font in your = news-reader to see it properly aligned): -Name -Dimensions 10,20 Width 10 Length 20 As soon as I type in a na...more >>

ClickOnce deployment, include font
Posted by Robin at 2/8/2007 3:30:01 PM
special fonts are not included in my deployed windows forms application (.net 2.0). How can I include them during installation? I am using ClickOnce and all I have read is that you need to create a Setup and Deployment package and install the font to the users windows directory. Would this...more >>

Drawing special text with gradient colors (Windows Forms VB.NET 1.
Posted by Philip at 2/8/2007 9:40:01 AM
Hi, I am building a splash screen, and I have a gradient color scheme for the form ... I am writing vertical and horizontal text on the form using the Graphics object (in the Paint event) like this: >>> CODE >>>> With e.Graphics Dim oFontSplashHead As New Font("Comic Sans", 18) ...more >>

datagridview - don't want any rows selected initially....
Posted by Oli at 2/8/2007 8:16:48 AM
hi all - try as I might I can't get my datagridview to *not* select (and hence highlight) a row... ....any help appreciated, cheers, O. ...more >>

Refresh a single GridItem on a PropertyGrid
Posted by Chris at 2/8/2007 3:56:32 AM
Hi, does anybody know how to refresh single GridItems of a PropertyGrid control? I know I can use PropertyGrid.Refresh() to update all GridItems, but this will steal the focus when you are editing one of the GridItem values. I need to find a way to update the displayed value of a single Gr...more >>

outlook 07 TODO bar! PLEASE HELP!!
Posted by giddy at 2/8/2007 12:41:00 AM
hi , i need to handle tasks in my app and i need to make something like the outlook 07 TODO BAR.... http://gidsfiles.googlepages.com/outlook_todo.jpg i need to know: 1. What exactly is it? a form , panel? ! 2. how is the vertical bar made?? its colour changes when clicked and ...more >>


DevelopmentNow Blog