winforms

What technology is used for Visual Studio SDK window?

What library is used to create a window form like below? It certainly does not look/feel/acts like a typical windows forms app. ...

Physical middle-tier separation for Windows Forms apps

I've been designing quite a few Windows Forms applications lately (data-entry apps, office integration, etc), and although I've always designed with logical tiers in mind, the "middle tier" business logic layer has always been hosted on the desktop PC (i.e. physical client-server). As I approach more complex applications, I find myself ...

VS 2008 Windows Forms make "View Code" the default for UserControls

We have some UserControls that can not be designed. So the Windows Forms Designer in VS 2008 is pretty much useless and it takes some time until the designer throws the exception when accidentally doubleclicking the UserControl in the solution explorer. Is there a way I can make the designer open the C# code view when doubleclicking on a...

C# datatable from sql join 2 columns same name

I have a sql select like so which returns a datatable: select * from table1 a join table2 b on a.id=b.id Both table1 and table2 have a column named itemno . How do i reference the 2 separate columns? Normally I would use something like: datarow["itemno"].ToString(); <=first column named itemno only datarow["b.itemno"].ToString(); <=...

How to catch an exception in WinForms when there are many actions that are asynchronous operations

Hi: I have many asynchronous operations in different class. When error,it will throw special exception which is inherited from System.Exception. In some form,I wanna catch it by messageBox. The function "Application.ThreadException" cannot catch it. In other word,I cannot catch all the exceptions by the function when there is some ...

changing selected itms color in a listbox

i want to change the color of a selected items from a list box control how to do that in windows(Winforms) ...

C# WinForms App Maxing Processor But Doing Nothing Strenuous!

I have a netbook with 1.20Ghz Processor & 1GB Ram. I'm running a C# WinForms app on it which, at 5 minute intervals, reads every line of a text file and depending on what the content of that line is, either skips it or writes it to an xml file. Sometimes it may be processing about 2000 lines. When it begins this task, the processor get...

Hide the WinForms cursor 'persistently'?

Hi, I am developing a full-screen application which contains some animated Forms controls (basically, labels which move). I want to hide the cursor after a period of inactivity, and I have tried using the method given in this thread: http://stackoverflow.com/questions/744980/hide-mouse-cursor-after-an-idle-time While this works in a s...

How can I control the border thickness and color on Windows Forms?

I know that this can be controlled at the system level, but I want to override the system setting and have a certain appearance for only my application. I'm assuming there must be a Windows API function to control this because I've seen another windows app that does it. (It is not necessary to go into the reasons why I should not do th...

Best way to implement "Remember Me" check box in WinForms / WPF

I want to add a "Remember Me" check box to the login form of my WPF App. What's the best way to do this? Currently the app logs in via a websevice call that returns an authenticated token that it uses for subsequent calls. Should I simply two-way encrypt and store this token somewhere in the files system? ...

VS Studio 2008 VB.Net Winform - can it be run on a MAC?

Hi, Our company has a handful of Mac users. I recently built a Winform application and now my main user is using a Mac. Is it possible to run this application on a Mac? What would have to be done to convert it? If it is too much, I may just rebuild it is asp.net as a web application. Thanks in advance! JCC ...

Moq with WinForms MVP Pattern - Failing Test

Hi all - I'm learning TDD and the MVP pattern. I've created a simple WinForms app that's like a replacement for the TOAD SQL tool. I'm trying to go back and write tests now for the code I've already written (which I know isn't the correct process for TDD, but please bear with me). In my test class for the form, I want to test the conc...

WinForm Calendar. Is there a freeware one?

I'd like to display a month calendar with items on the calendar, much like Outlook's month view. I see that there is a ASP.NET calendar but is there nothing for WinForms? I don't want just a small drop down list date selection control. I'm looking for something like this ...

Data binding not updating.

I created a simple example with data binding (unfortunately we have a similar case in our system). I created a funky combo box: public class FunkyComboBox : ComboBox { private object currentValue = null; public FunkyComboBox() { if (LicenseManager.UsageMode == LicenseUsageMode.Runtime) ...

How can I create a fluent interface for defining Dialog Boxes?

I am looking for examples and experience of using fluent interface to define simple Dialog Boxes (and other UI elements). (I may need to add support for custom Dialog Boxes to an in-house programming language and I think a fluent interface may be the best way of doing it) The UI system will be build on Winforms OR WPF if that effects ...

Update UI from external event

First of i am not a UI developer and this is probably a very simple problem. What i have is a external service that I subscribe to an event, when ever that event fires a service picks this up, manipulates the data in some way then gives the UI the data to display What i am unsure of is how to archetect this and keep the dependancy betw...

Unable to set the DropDownHeight of ComboBox

I cannot get the DropDownHeight of the ComboBox set properly to display all the items. I am using a control that inherits from the ComboBox. I have overridden the OnDrawItem and OnMeasureItem methods in order to create multiple columns and text-wrapping within a column if it is required. This all works fine. The problem occurs when I...

where is user.config?

in vb.net i am trying to save application settings but for USER but i cannot find the user.config file when does this file get created? i searched my entire hardrive. i also searched the entire project. ...

My.Settings.mytext has a value but i cannot find where it is set?

onload i do a msgbox (my.settings.mytext) it returns a value, but i cannot find where in the project i have set this value!! it was definitely set by me, but i cannot find it anywhere. please help it is attached to textbox1.text, but that has no value either ...

Pushing a list of colors into colordialog.customcolors

I have a list of colors i.e.: "1323523, 12342, 2354, 356234, 234234" Each of these numbers stand for a color. I would like it so that when there is colordialog.showdialog, this list of colors shows up in the colordialog custom boxes. this is how i am doing it currently, but for some reason the customcolors are not being added. i know ...