winforms

Import external dll based on 64bit or 32bit OS

I have a dll that comes in both 32bit and 64bit version. My .NET WinForm is configured for "Any CPU" and my boss will not let us have separate installs for the different OS versions. So I am wondering: if I package both dlls in the install, then is there a way to have the WinForm determine if its 64bit/32bit and load the proper dll. I...

Tri-state checkboxes in wxPython's CustomTreeCtrl?

I have a CustomTreeCtrl with some items with children themselves. Unfortunately there is no indication when only some children of an item are selected - the parent checkbox is either checked (all children selected) or unchecked (no children selected). Is there any way of using a tri-state checkbox, rather than the current checked/unche...

Display same webpage on many screens

I have a website with live stats that I wish to display to every agent (150) in a call centre. The agent application is windows forms and so the obvious way would be to host a WebBrowser control and simply point it to the site. However the site is not mine, and the site owner is understandably nervous about a site going from very littl...

How can I change default Control properties?

How can I change for example default width and height for buttons, etc? ...

Features of a robust WinForm application

[Based on the strong comment below (dated April 7 and 8, 2010) from when I originally posted this question, I took a hard look at what I wrote and asked myself "Huh? What am I really after here?" I decided drastic action was called for: discard the original text, make the question simpler and cleaner, and focus on what I really want to g...

Why Resource (.resx) file added on merely changing Form size and on adding button which is not resource

1- Resource files suppose to be added on adding some resource in application like image or audio or video etc. But if I just change size of form a .resx file incleded under that particular form. Changing size of form does not add any resource so why this .resx file? 2- I dropped a button on form and a resource file is included; again th...

PrintableArea in C# - Bug?

I am having an issue with PageSettings.PrintableArea's width and height values. Width, Height, and Size properties claim to "get or set" the values. Also, the inflate() function claims to change the size based on values passed in. However, all of these attempts to change the value have not worked. Inflate() is ignore (no error, just pas...

C# - Remove the "click" sound from Winform WebBrowser?

Hello. Does anyone know how to remove the "click" sound you get when navigating to another page, when using a WebBrowser on a WinForm? I would have thought they would have included an option to choose weither you want it enabled, but they didn't. Thanks for the help! ...

Are there any Dropdown controls with checkboxes in them?

I've seen some for web using javascript, but I am looking for a Windows Form control that is a ComboBox that when opened displays a list of checkboxes and labels, allowing to select one or more, with a "Select All" option. Would like a non-commercial solution. ...

COM Interop between 32 bit and 64 bit applications

I have a .NET windows forms application compiled as x86 – it needs to be compiled as x86 because it references 3rd party DLLs which are 32 bit. The application uses COM interop to automate Office applications and also AutoCAD. My question is: will my COM interop code work okay on a 64 bit operating system against the 64 bit versions of O...

Best Practices for Exchanging data between Desktop and Web Application

Hi, I have to pass information from a desktop application to Web application and vice versa. What are the best practices that are regularly used? Currrently I'm using Asp.Net and a Winforms. To pass data to Web Site im creating a (POST) WebRequest and posting an xml to the site. To pass data to Application im using .Net Remotin...

Running a Windows Forms app. from a service.

Hi, I have a strange application in that for development and testing I need a windows forms application so that I can monitor what it is doing. For production, the application will be started from a service and no visible UI is needed. I dont really want to re-write the app. once it is completed into a console app so I would like to leav...

How to use NHibernate.Burrow with winform/desktop application?

1) Is it possible to use Burrow with winforms application or WPF application? 2) Are there any samples how to configure Burrow with winforms app. ...

How do I get the WinForm Designer to totally ignore a property on a custom control?

This must be a FAQ, but I can’t find a duplicate question! There are lot of different attributes that control what the WinForm Designer does with properties on a custom control, I am never clear on the one I should use in this case. I am looking for: Designer does not show property in grid Designer does not read value of property Des...

A free WYSIWYG control for DotNet

I search a free and easy to drag&drop in my winform WYSIWYG-Control. The background is, I don't have time I can spend on the control, it must be there and ready. DotNet.2 C# NO ASP! WinForm! ...

String Matching.

I have a string String mainString="///BUY/SELL///ORDERTIME///RT///QTY///BROKERAGE///NETRATE///AMOUNTRS///RATE///SCNM///"; Now I have another strings String str1= "RT"; which should be matched only with RT which is substring of string mainString but not with ORDERTIME which is also substring of string mainString. String str2= "RAT...

Winforms: How to Skin Scrollbar in ComboBox?

Hi, I have skinned most controls in my Winform app, except the ScrollBar in ComboBox, Any ideas? Thanks. (I use C#/.NET 2.0) ...

Winform and ValidateChildren()

Probably a stupid simple question but here goes. If I have a winform app and on the Validating_Event for a container control I call ValidateChildren(). I am assumming I need a Validate_Event for each child control that I want validated, correct? I know I need the control to have Causes Validation = True but I would still need to put...

Can you change VS Win Forms designer code generation?

We implemented new coding standards, which call for our private members to have a leading underscore. Like so: private System.Windows.Forms.Label _label; Unfortunately VS will put out the default below when you drag a new label onto your form: private System.Windows.Forms.Label label1; Is there a way to change the default to: pri...

Windows Forms User Controls in WPF app.

Could someone post a link to simple tutorial, which describe how to use User Controls, created in Win Forms in WPF aplication's? Sank's a lot. ...