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 2006 > threads for september 8 - 14, 2006

Filter by week: 1 2 3 4 5

Performance of form controls refreshing on Resize
Posted by Michael Russell at 9/14/2006 7:56:24 PM
Hi, I'm a little new to forms programming with C#, so I'd appreciate some pointers on how I can improve the (perceived) performance of my form when it's resized. My form contains a TabControl, which has a couple panels, about 15 text boxes + labels, and two comboboxes, all bound to a custom...more >>

The good old Cross-thread operation not valid
Posted by batvanio NO[at]SPAM gmail.com at 9/14/2006 6:21:45 PM
Hi, Does anyone know if there is a better solution for the good old "Cross-thread operation not valid" than dealing with delegates and Invokes? (This happens when you access GUI from a thread that did not create it) I realize that the problem is based on the old Windows requirement (only t...more >>

return value
Posted by John at 9/14/2006 11:36:50 AM
I had this working and now it's not. I call one form from another then I return a value to the first. I had a public sub in the parent form that the child would call and set the variable. The value in the parent form always ends up 0 now. Even though it appears the value the child is sen...more >>

Tracing not allowed in installed winforms application
Posted by enantiomer at 9/14/2006 11:06:55 AM
I have tracing set up in my application to write out to a log file. Now If I install the application from my setup project and try to run it, I am getting an exception that says something along the lines of: "UnauthorizedAccessException: ... Access to the path ....\myAppLogFile.log is denied" ...more >>

get form
Posted by Julia at 9/14/2006 6:51:02 AM
Hi I have a windows application. This application opens some forms. I wold like to get the first form (the one includes main) from the other forms and call some functions in that form. How do I do this? I know Thanks Julia...more >>

Get Latest version on startup
Posted by Jared at 9/14/2006 12:00:00 AM
Hi, Anyway to hide the dialog box when getting latest version on project startup. ...more >>

Making sure special characters display correctly
Posted by Al Christoph at 9/13/2006 11:40:02 PM
I will admit it up front, ever since some version of DOS went global, I've gotten a headache everytime I even contemplated codepages:-) I want to be able to display three special characters, in one case as the password character, and in the other cases as the text on a small button in a dat...more >>

ReportViewer... "the handle is invalid"
Posted by Rob MacFadyen at 9/13/2006 8:22:56 PM
Hi all, Posting this again using my shiny new posting alias (so an MS representative will respond). Using the 2.0 framework (no hotfixes) I'm trying to print a report without previewing it. The code looks like: public partial class fErrors : Form { private DataImportServices.Impo...more >>



About maximizing the forms into the task bar.
Posted by Ravindra at 9/13/2006 3:56:00 PM
Hi all, I am doing an desktop application in vb.net. For forms i have used the property formborderstyle=none. So what happens when i minimize the form into the task bar,and again right click on the form i could not the maximize or minimize or restore. So please let me know how to do this. ...more >>

Publishing from a ClickOnce deployment project
Posted by NewDawn at 9/13/2006 9:29:02 AM
How do you publish from a deployment project? I know how to publish from the solution (right-click select publish and use the publish wizard) but now I want to do the same steps automatically in a deployment project. If I need to use a custom action, what do I actually need to do within the ...more >>

ComboBox binding to subset of another ComboBox
Posted by Webbert at 9/13/2006 6:12:01 AM
This is for a Windows Forms application... I am wanting to set up binding once, if possible, for a second combobox that contains filtered data based on the first. I know I can capture the event of the first combobo and then bind the second based on the value, but was hoping that there is a...more >>

Tooltip in TreeView control
Posted by kuchuk at 9/13/2006 4:29:05 AM
Hi, I have a TreeView control in my project (I am working with VS2003, C#). I also have a tooltip attached to it, which I use to display special information once user places (MouseMove) the mouse on a TreeNode. The TreeView control has a basic behaviour that once a TreeNode text (name) exceeds ...more >>

Display of tab control pages
Posted by SteveR at 9/13/2006 2:42:01 AM
I know how to stop a user selecting a different tab page (see Disable tab control pages in this newsgroup). Can I also change the text colour of the tab page header so that it appears 'disabled'? I can only find colour properties for the tab page itself. -- Steve...more >>

DataGridView - How to disable jumping on next row on Hit ENTER?
Posted by MilanB at 9/13/2006 1:20:01 AM
Hello, I have problem, on modal dialog, user has to select one value from DataGridView. AcceptButton is set on Form, but DataGridView jump on next row on user Enter, so wrong row is selected. Any suggestion how to disable jumping to next row when user hit Enter button? Thanks MilanB...more >>

Disable tab control pages
Posted by SteveR at 9/12/2006 11:48:01 PM
Is there a way to stop a different tab control page from being selected without disabling the entire tab control? (The user needs to be able to use the controls on the tab page but shouldn't be able to select a different tab page). If I can stop the selectedindexchanged event from bubbling up ...more >>

Prevent control from being dragged off
Posted by Seth at 9/12/2006 8:48:22 PM
(I had posted this over on microsoft.public.dotnet.framework.windowsforms.designtime but it didn't see any action, so we'll try microsoft.public.dotnet.framework.windowsforms now) I have a custom Control that uses a custom Designer that inherits from DocumentDesigner. The designer is spec...more >>

How to set the BackColor of a single item in ListBox
Posted by Buddhist.CHinA NO[at]SPAM gmail.com at 9/12/2006 6:01:15 PM
I mean, I only wanna change the BackColor of some items in a ListBox, not the whole background color. The items are type of ObjectCollection, so it looks like no way to do so. Can someone explain how to? thx in advance. ...more >>

VB to C# issue
Posted by Arvi at 9/12/2006 3:41:22 PM
Hi, im converting a VB web app to a C#. i have problem with the following line ds.Tables[0].Rows[ind].Item["taskid"] ERROR - 'System.Data.DataRow' does not contain a definition for 'Item' whats the alternate that i can use? please let me know Thanks ...more >>

a ListBox issue
Posted by batvanio NO[at]SPAM gmail.com at 9/12/2006 2:21:59 PM
Hi I have a COM DLL which has a method that adds an item into a client - provided listbox given the listbox handle (using Win32 SendMessage) - Something like (pseudocode) void AddItem (HWND clientHandle) { char sText[] = "blahblahblah"; SendMessage(clientHandle, LB_ADDSTRING, 0,(LPARAM) s...more >>

FileDialog AddExtension bug?
Posted by Joel Moore at 9/12/2006 11:23:59 AM
I've got SaveFileDialog.AddExtension set to True. I've got SaveFileDialog.Filter set to "JPG Image (*.jpg)|*.jpg|PNG Image (*.png)|*.png" If I invoke this dialog and type a file name like "test file.whatever" the dialog does not append the extension for the currently selected filter (.jp...more >>

Tree View
Posted by Nick Thompson at 9/12/2006 10:21:03 AM
Could you please let me know the best approach to create something like the visual studio watch window, ie a tree view combined with a list view. it may be you have created this from scratch, but has any one an example....more >>

ErrorProvider not showing ampersand
Posted by sprice at 9/11/2006 1:00:02 PM
I'm using an ErrorProvider to display validation info on a simple text-box. I need to be able to let users know that they cannot use certain characters. One of the characters is an ampersand (&). The problem I have is that the tool-tip for the errorprovider won't show ampersands. I'm guess...more >>

DataGridViewColumn.AddRange problem
Posted by Tim Van Wassenhove at 9/11/2006 12:18:24 PM
When i run the code below i recieve the following error message: At least one of the DataGridView control's columns has no cell template. --------------------------------------------------------------------------------- this.dataGridView1.Columns.Clear(); DataGridViewColumn[] columns = new...more >>

Run .NET Application From CD
Posted by daokfella at 9/11/2006 11:35:05 AM
All of my experience is with ASP.Net. But I'm working on a winforms app right now and I have a bit of a dilemna with this new project. I'm converting an old FoxPro database app to a .Net winforms app. The old application ran entirely from the CD (aside from the database files). When first load...more >>

Auto Expand Textbox
Posted by Thom Little at 9/11/2006 10:39:48 AM
Is there a textbox control to which I can pass a string of an arbitrary length and it will automatically expand to allow all characters to be displayed? I need to have a fixed width and allow the control to add add"lines" with the wrapped text if needed. -- -- Thom Little -- www.tla...more >>

IE Hosted UserControl - javascript interaction not working.
Posted by sunev at 9/11/2006 10:00:02 AM
I am trying to get a UserControl hosted in IE working. Having read some articles on this and followed the examples (Jay Allen’s article at http://msdn.microsoft.com/msdnmag/issues/02/01/UserCtrl/ was a great source, especially for the security side of things), I have been able to use para...more >>

Problem with CanFocus and SetFocus()
Posted by Brian at 9/11/2006 8:12:00 AM
I am running into a problem with the CanFocus property not allowing me to set the focus to a control. The application is a Form which has a Panel and in the panel are a series of user controls. Each of the user controls consist of a label and a combobox or text box which is determined at runti...more >>

How to tell WebBrowser control what credentials to use?
Posted by Adar Wesley at 9/11/2006 1:57:02 AM
Hi, I am using the System.Windows.Forms.WebBrowser control in a WinForms application to automate some actions agains a web application. How do I tell the WebBrowser control programatically what credentials and what authentication mode to use when accessing a web site? A code snippet wou...more >>

Quest: Bringing To Front All Top-Level Forms My App Shows...
Posted by bj7lewis at 9/10/2006 12:00:00 AM
I have a C# app in VS.NET 2002... It shows 2 sibling forms with their parent as the desktop... Now I have Winamp(just an example my app doesn't use Winamp) setup to have Winamp's main controls position on the lower left corner of desktop and my playlist dock to the right side of desktop. Wh...more >>

Drag & Drop "A first chance exeption of type 'System.ArugumentExc.
Posted by MobileMan at 9/9/2006 10:05:02 AM
I am emplementing Drag & Drop in a VS2005 C# WinForms application. I have 2 ListView controls on a form, whereby I'm attempting to Drag a ListViewItem from ListView "A" onto ListView "B." All the events (ListView_ItemDrag, ListView_DragEnter, ListView_DragDrop, etc., etc.) seem to be fir...more >>

Help: Win Controls Hosted in IE - Cannot pass/retrieve parameters in JS
Posted by tomromanul NO[at]SPAM yahoo.com at 9/8/2006 3:15:22 PM
Hi all, I built a Windows Froms user control and I use it in IE 6+. It functions properly (it displays properly in IE and executes code, such as displaying a message box), except that in the web page I cannot do any scripting (javascript) against it. This control has a public property Text2, ...more >>

Embeding external application onto a windows form
Posted by feudalac! at 9/8/2006 10:43:12 AM
Hello I want to be able to open an external application and embed it on my form (something like an user control...) Specificly: In my app, i have a panel at the bottom and want to embed a command prompt (cmd) so it can't be moved around and it must appear as it is part of my application......more >>

Get mouse coordinates on screen?
Posted by feudalac! at 9/8/2006 10:41:03 AM
Hello How can i get mouse coordinates on the screen in VB.NET? I have a borderless window and i must move it... thanks -- You're not paid to think. A mindless worker is a happy worker. Shut up and do your job! - Tata Feudalac! -------------------------------------------------...more >>

Message box & calendar controls not displaying correctly - locali
Posted by Kaine at 9/8/2006 2:50:01 AM
In our application we allow the user at runtime to select the language the application should be displayed in. For the majority of things this works fine, our forms display correctly, the same with menus etc and error messages except for the following: MessageBox - The buttons are always d...more >>


DevelopmentNow Blog