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 > threads for december 1 - 7, 2006

Filter by week: 1 2 3 4 5

"CancelButton" property resetting itself
Posted by Jack Brown at 12/7/2006 5:46:38 PM
Hi there, Has anyone noticed that the "Form.CancelButton" property occasionaly resets itself to "(none)" in the form's property window for no apparent reason (at deisng time using VS 2005). Has anyone had this problem as well. Thanks. ...more >>


Drag and drop effects on the DataGridView control...
Posted by RMZ at 12/7/2006 3:29:12 PM
Dows the DataGridView control provide a way to symbolize the location between the two rows where the user is targetting a drop? For example, in iTunes you can drag a song in a set from the bottom of the list to the top and as you drag it the space between the two rows were it can insert is symbo...more >>

Overwriting event handler
Posted by Jose Fernandez at 12/7/2006 3:26:17 PM
hello. i have a CheckSecurity method that does nothing but iterate thru every Button control and, after a security level checking, i want to keep or overwrite the Click event handler. i can manually doit for one button and it works perfect. but i don't know how many buttons i am gonna ha...more >>

How does one set an image on a button in a DataGridView cell?
Posted by RMZ at 12/7/2006 12:28:46 PM
Tried setting the cell value = to the button control, no luck it appears to convert it to a string.... I just want to set the image property of the button. ...more >>

Serializable() and ISerializable
Posted by Techno_Dex at 12/7/2006 9:17:08 AM
I am trying to figure out what .NET does to a class that is marked as Serializable in order to get the class to serialize. I know I can implement the ISerializable interface, but I don't want to hand code all of the classes that I have marked as Serializable, the standard .NET functionality ...more >>

Resizing via SendMessage with transparent controls
Posted by gourmete at 12/7/2006 12:23:42 AM
Hello! I have a huge problem! I have a custom-shaped form with no borders and some transparent controls on it. I implemented the resizing functionality via sendmessage: private void resizeBorder_MouseDown(object sender, MouseEventArgs e) { ReleaseCapture(); Send...more >>

Refreh form with progress indicator while in processing loop
Posted by Trees at 12/7/2006 12:00:00 AM
I have a form with a listbox. The listbox is updated with status text that logs the progress of a tight loop that is executed from a button on the same form. The updates don't appear on the form until the processing is complete which is 10 or more seconds later. I'm not too surprised to ...more >>

Load Default Document Icon
Posted by Chris Newby at 12/6/2006 3:59:06 PM
Using .Net 1.1, I have a WinForm app that shows a list of documents: Word documents, Excel documents, PDF documents, etc., whatever documents the user wants. In this list I currently use a default icon that I made that is specific to my WinForm application, however I would prefere to show w...more >>



Get selected text in RTB from ActiveMDI child
Posted by Elmo Watson at 12/6/2006 2:22:05 PM
I have an MDI app - the main control in the one MDIchild form is a RichTextBox in the form load event of one of the forms I call/show, I want to grab the selected text in the Rich Textbox I've tried: With DirectCast(ActiveMdiChild, frmMyForm) label4.text=.RTB1.seltext end with But I get a...more >>

What replaces debug.print?
Posted by Elmo Watson at 12/6/2006 2:19:42 PM
I need to know, in several places in my code, what a variable is. In Vs6, I would just enter a debug.print line for that variable, and it would appear in the Immediate window. I've tried debug.write and searched for something that will do the same thing in VS.Net 2005, but as of yet, have not ...more >>

Where to Store Database Connection String Info for Windows Forms Application
Posted by Merk at 12/5/2006 11:28:12 PM
I'm looking for a safe and maintainable way to store connection string info (connecting to SQL Server 2005 from .NET 2.0 Windows Forms client app); things like server name or IP address and database name. I need to provide the client application with this info for connecting to both a test SQL...more >>

Cant run my app on Vista until NETFX 3.5
Posted by Jared (Home) at 12/5/2006 6:36:24 PM
Due to bug with DateTimePicker I can not deploy mt app on Vista until NETFX 3.5 is release. Is there anyway to disable XP theme dynamically, although it is a Vista theme that is screwing things up? Thanks in advance Jared ...more >>

sage
Posted by Dan at 12/5/2006 4:44:01 PM
Hi, I have a scenario where there are dual/multi monitor systems. I have written a nag (like a message box) application, which prompts the users with a message. Now, in a dual monitor scenario this message gets always prompted in the primary monitor of the user. Is there a way to identif...more >>

How can I change Pannel's Border color?
Posted by Maxwell2006 at 12/5/2006 4:28:15 PM
Hi, We are using panels and SplitContainers in my WinForms application and we are looking for some simple way to change the border color from Black to Blue. I know that we can override the Paint event and have our own painting methods, but I expect there should be much easier way to chan...more >>

Returning a variable
Posted by Nathan Guill at 12/5/2006 2:26:33 PM
I have a databound form that when a user clicks the button to add another record, a new dialog box opens. This form requires a few pieces of information to insure that the new record does not already exist. What I want: 1) If the record does not exist, this form should return the new record...more >>

write with color in datagridview
Posted by JO at 12/5/2006 11:24:19 AM
hello, how can i make to write my text with a color in my datagridview ? for example, i want a text in blue if it ok for one condition, green for an another condition.... thx ...more >>

closing form, and all modals on top of it
Posted by CBanu [IXIA] at 12/5/2006 9:20:17 AM
Hi, I have an application that connects to a server. The server might send an event that should cause my app to go offline. However, the user could have at that particular moment a wizard (in the form of a modal dialog), which also could have other modals or message boxes on top of it. When I...more >>

Click event not raised when clicking a button after displaying a dialog box
Posted by Natalya.Pinsker NO[at]SPAM constellation.com at 12/5/2006 8:09:57 AM
Hello, In the Validating event of a TextBox, I am displaying a Yes/No message box. If clicked on No, I cancel any subsequent events. This works just fine. If clicked Yes, I want to go on. This doesn't work if I click on a button (like a Save button). The focus stays with the Save button ...more >>

Assembly Download Cache - Not Working "As Advertised"
Posted by jonathan.beckett NO[at]SPAM gmail.com at 12/5/2006 3:19:27 AM
Hi all, I am wondering if anybody has ever solved the problem with the Assembly Download Cache not really caching things? Here's what's happening... I have a winforms based usercontrol that I am displaying in IE6. When IE is launched, it fetches the new version of the usercontrol from the...more >>

Multiple DirectX forms
Posted by Jon Harrop at 12/4/2006 9:46:54 PM
Hi! I am trying to write a program to visualise data using DirectX. I have written a class derived from Form that creates a window, initialises managed DirectX and draws the appropriate animation. I want the user to be able to spawn as many new forms as they want. They are essentially ind...more >>

VS2005 window form designer doesn't work
Posted by pengb at 12/4/2006 6:02:34 PM
Hello: Just recently installed the 2005 and trying to use it when I found that I don't have any toolbox items when in the window designer. I research online and found links that said the form need to be in IDE.. how do I put it in IDE? I normally don't work with window form. But for this pro...more >>

Changing DisplayNames of my properties using PropertyGrid component, how ??
Posted by Tugrul HELVACI at 12/4/2006 5:08:06 PM
I'm using Delphi 2006 and I have a class defination like this: TPerson = class fPersonName : String; fPersonSurName : String; fPersonAge : Integer; published property PersonName : String read fPersonName write fPersonName; property PersonSurname : String read fPersonSurname write ...more >>

Can A ListViewItem Be Transparent?
Posted by A_StClaire_ NO[at]SPAM hotmail.com at 12/4/2006 3:16:15 PM
hi, I have ListViewItems that consist of nothing more than text. I am setting their BackColor property to System.Drawing.Transparent. however when they're loaded their BackColor appears to be white. does anyone know why this is? would it have anything to do with the fact that I'm dynamica...more >>

Invoke Treeview Click Event
Posted by Shayaan at 12/4/2006 3:14:00 PM
In the following VB.Net code; how do I invoke the TV_Click event in Button2's Click event. Thans Private Sub TV_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles TV.Click MsgBox(TV.SelectedNode.Text) End Sub Private Sub Button2_Click(ByVal sender As ...more >>

textBox.focus()
Posted by David C at 12/4/2006 3:07:10 PM
I am trying to do what Javascript does to a textbox control, that is getting the control to focus AND place the cursor right inside the textbox. textBox.Focus() does not cut it. Thanks. ...more >>

Listbox text update problem
Posted by josephbubba NO[at]SPAM hotmail.com at 12/4/2006 1:10:25 PM
I'm having a problem with a simple ListBox control. When I try to update an item in the listbox, and only the case of the item is changing, the displayed contents do not update. The simple app below can be used to demonstrate the problem. It simply adds one item "Page 2" to a listbox (listB...more >>

how to make a form always look focused
Posted by MKin at 12/4/2006 12:13:01 PM
Greetings, I have an application which uses multiple forms, but with one being the "main" display form. I would like the main form to always have the appearance of being focused. How can this be achieved? I do not want to make that main form actually be always focused, because the secondary...more >>

Cancelling a BackgroundWorker thread
Posted by Bob Costello at 12/4/2006 3:53:01 AM
I have a long database search operation that I am running in a separate thread using a BackgroundWorker component. I need to give the user the ability to cancel the operation. However, the BackgroundWorker doesn't seem to have enough functionalality to solve my problem. I start the thread w...more >>

Treeview with folder nodes
Posted by martin at 12/4/2006 2:28:02 AM
Hi, I would like to create a treeview with folder nodes just like the one used in "Explorer :: Folder options :: View :: Advanced settings". Basically, I want it to look like this: My first folder |_| First item in first folder |_| Second item in first folder My second folder ...more >>

Handling a TreeView scrollbar
Posted by Kimon Ifantidis at 12/4/2006 12:55:00 AM
I have a split container, with a tree view docked on the left panel and a drawing panel docked on the right one. I need to synchronize vertical scrolling for the tree view and the drawing panel. Is there any way to get access to the tree view control's vertical scroll bar? Although the vert...more >>

Tooltip in user controls
Posted by Bharathi kumar at 12/3/2006 11:54:10 PM
Hi, I have a usercontrol (UsrCtrl1) that contains some labels. I have another user control (UsrCtrl2) where I have six UsrCtrl1 controls named objUsrCtrl1 to objUsrCtrl6. I have added a Tooltip instance in the UsrCtrl2. ToolTip1.Active = True Public Sub objUsrCtrl1_MouseEnter(B...more >>

Unhandled Exception in GDI+ Part III
Posted by Al Christoph at 12/3/2006 5:03:02 PM
As described in parts I and II of the subject thread I have a program that displays images whose source is not under my control. Current batch of test images contains an animated gif that is not well behaved. We see the first frame and eventually it causes the subject exception. (IE 7 and Wind...more >>

Unhandled Exception in GDI+
Posted by Al Christoph at 12/3/2006 4:19:00 PM
I am getting the subject error message when an animated gif is displayed in a picture box. I did not create the gif and in general what will be displayed in that box is NOT under my control. (Other animated gifs jpegs etc display fine.) The ugly thing is that other Vista programs, namely W...more >>

How can I Add ToolStripButtons on a Child Form Dynamically with events
Posted by Garry at 12/2/2006 12:00:00 AM
I have written vb.net code to add toolstripbuttons to a predefined toolstrip on my MDI child form. I can assign them a .bmp file from a global ImageList etc. I used the 'behind code' to get a code sample to do this BUT, I cannot see a way to add a single event handler to deal with the vario...more >>

Unpublishing a ClickOnce Application.
Posted by howardw NO[at]SPAM nospam.nospam at 12/1/2006 5:21:00 PM
We are having good results with ClickOnce deployment of a Winforms application on our intranet, using VS2005. However, we mistakenly published a new experimental build. How can we "unpublish" it? Can someone tell me what the correct procedure is? Is this documented somewhere? Would the foll...more >>


DevelopmentNow Blog