ToolStrip Overflow
I need to replace the standard Overflow function in a ToolStrip to a "More..." button which would then pop up a menu with the overflowed items. Does anyone have any ideas about how to accomplish this? ...
I need to replace the standard Overflow function in a ToolStrip to a "More..." button which would then pop up a menu with the overflowed items. Does anyone have any ideas about how to accomplish this? ...
Hi all, How do I sort the columns in a winforms datagrid control into alphabetical order? Thanks ...
My WinForms application has a tab with a System.Windows.Forms.WebBrowser control. There are several controls that set the WebBrowser's .Url property, and when the form repaints it calls the WebBrowser's .Refresh(WebBrowserRefreshOption.Completely) method. Occasionally, however, the form gets repainted and the WebBrowser content doesn't ...
I have a web application that makes heavy use of the Session state to store information about the current user, their personal settings, record their session history and so on. I have found myself retrieving this session information in my business layer, like so: ((UserSession)HttpContext.Current.Session["UserSession"]).User.Info Th...
I'm wondering how people handle a situation like this, when you have a validation event, and you need to show the user a dialog box asking him whether to continue or cancel. The problem is that when showing that dialog box, it causes another validation event because it's considered losing focus on the control again, and you end up with ...
I have a client server application that sends XML over TCP/IP from client to server and then broadcast out to other clients. How do i know at what the minimun size of the XML that would warrant a performance improvement by compression the XML rather than sending over the regular stream. Are there any good metrics on this or examples? ...
I have a .NET Framework 2.0 app and would like to use the Windows Imaging Component. Since my application is a WinForms app and will be redistributed to users via an MSI installer I'm trying to figure out the best way to do this. I see a couple of options: 1) Skip .NET 2.0 and build on .NET 3.0 which includes the Windows Imaging Compone...
I have a radio button on my Windows Form. How can I determine if the CheckChanged event occurred due to a user clicking or selecting the radio button vs programatically setting the event with this.radioButtonAdd.Checked = true; I would like some code to take a different action depending on if the user clicked the button or I raised t...
I think the options screen in Office 2007 is much preferrable to the "traditional" fixed-size options dialog with multiple tabbed pages. What would be the best way to create a similar options screen for my own .NET application? Is there an existing control I can buy (or use for free) to do this? Would it be easier to do this in WPF? ...
How do you access the items collection of a combo box in a specific row in a DataGridView? I'm populating the combo as follows: Dim VATCombo As New DataGridViewComboBoxColumn With VATCombo .HeaderText = "VAT Rate" .Name = .HeaderText Dim VATCol As New JCVATRateCollec...
Has anyone noticed that if you retrieve HTML from the clipboard, it gets the encoding wrong and injects weird characters? For example, executing a command like this: string s = (string) Clipboard.GetData(DataFormats.Html) Results in stuff like: <FONT size=-2>Â Â <A href="/advanced_search?hl=en">Advanced Search</A><BR>Â Â <A href="/...
I have a WinForms C# application using a MS SQL Server Express database. The application is deployed on the PCs of our customers and they don't have computer related knowledge. The application updates the database regularly and I see a lot of fragmentation on the index files. How do I keep the database healthy/responsive over time? ...
Hi. I'm kinda stuck with this one so I hoped someone could help me. I am doing a Winforms application and I need to show a Modal Dialog (form.ShowDialog) that returns a value (prompts the User some values and wraps them in a Object). I just can't see how to do this rather than give a reference into the object or depending on some form...
I am developing an application that will be open source, and i want this application to be updatable through ClickOnce (or similar), but i want to implement it from a free hosting, as i don't know the volume of downloads i will have. I would need something like sourceforge or codeplex,a hosting that allows me to see the version and in t...
i'm trying to change the number of rows in a TableLayoutPanel programatically (sometimes it needs to be four, sometimes five, and rarely six). Unfortunatly changing the number of rows does not keep the RowStyles collection in sync, so you are then not able to set the height of the newly added rows. The following test code demonstrates t...
I'm trying to use the windows native (Theme-aware) header control to display just some column headers. The main purpose is to avoid manually drawing the column headers and rely on the natively supported functionality. So the 2 options I was thinking of are: (1) Use a HeaderControl, and add columns to it (I can't seem to find a header c...
Hi, Is there a way to bind a Generic List to a multicolumn listbox, yes listbox...I know but this is what I am stuck with and can't add a grid or listview. Thanks ...
Hi, I am doing an Financial Winforms application and am having some trouble with the controls. My customer needs to insert decimal values all over the place (Prices, Discounts etc) and I'd like to avoid some of the repeating validation. So I immediately tried the MaskedTextBox that would fit my needs (with a Mask like "€ 00000.00"), i...
I need to create a status dialog for a Windows Mobile application (C# 2.0) that needs to be updated, so MessageBox is out. I tried to just create a new Form class, change the size and call ShowDialog, but it always comes up full screen (minus the title bar of course). The only way I could figure out how to display it small is to set Fo...
Is it possible at all to query (WMI?) the virus defnintions date of definitions installed on remote computers? I'd like to start specificially with Symantec Endpoint Protection, and then branch out to other antivirus products. This is a WinForms, .NET project. ...