Hi,
I have a third party grid that is binded to an object. Each column is binded to a property of the object. Now, I get the selected row from the grid and cast to the object like:
var item = myGrid.ActiveRow.ListObject as Bench;
item.RequestedBy = WindowsIdentity.GetCurrent().Name;
_controller.Process(item);
The problem is that ...
I'm working on a grid view that will display cells that will have some controls inside of it. For example, a cell will have three or four labels and maybe a color picker. The values of those labels can be databound.
I'm assuming that I need to create a custom DataGridViewCell but I'm having a hard time finding documentation that talks a...
hello,
sometimes when i want a winforms control to be docked also to the right or bottom of the parent container (usually a UserControl), it's borders are extended way beyond the parent's right or bottom border, so that a part of it is not visible anymore. even though the anchor is set to right.
this only happens when the application ...
I want to spice up some gray WinForm apps. Any recommendations for free WinForm libraries.
I have seen AquaButtons at http://www.codeproject.com/KB/buttons/aquabutton.aspx
I am looking for more versatile free libraries which add similar buttons, color gradients to panes, title bars, toolbars.. etc.
Also if you know of sample apps on t...
I have 10 records of data in a DataTable which has 3 fields "Foo", "Bar", and "Baz".
If I connect wire this into a DataGridView I see 10 rows and 3 columns, and the column headers display the names of the fields.
I'm wondering how easy it is to reverse the rows and columns so that with the same data I end up with 3 rows and 10 columns,...
...similar to those produced by email clients like thunderbird or outlook, sliding up or fading in from the tray.
...
I use BackgroundWorker most of the time in the win form apps to show progress as I'm getting data. I was under impression that Work_completed is guaranteed to be executed on Main UI thread but it's not. If we create a thread and call the worker.RunWorkerAsync within it, it breaks if we try to update any gui control. Here is an example
p...
I'm trying to find out how to make the appearance of a check box look like it does when you hover a mouse over it. I have a group of check boxes without labels and I want to indicate focus this way. I'm currently drawing a focus rectangle around them and it works fine but I'd like to try it this way instead.
I know I can paint it myself...
I have a Dictionary that contains items and prices. The items are unique but slowly get added and updated through the lifetime of the app (i.e. I don't know the item strings in advance). I would like to bind this structure to a DataGridView so I can show updates on my Form, something like:
Dictionary<string, double> _priceData = new Dic...
Over and over, I find myself developing WinForm business application screens that have a bunch of text boxes for search criteria, then a search button. These are mapped into an expression using Linq, then passed onto my Linq2Sql layer.
I'd like to create an easy way to "bind" these textboxes to the underlying query using different opti...
I have created a simple test form with FormBorderStyle = FixedToolWindow by default and added a button that will switch between FixedToolWindow and SizableToolWindow on mouse press.
Switching the FormBorderStyle between these two seems to produce a weird effect that's causing a lot of issues on my application. The problem is that the wi...
I have a Winforms control that starts off completely transparent, but then lines are drawn on it for stuff. I want mouse events to completely ignore the control and instead go to the stuff (buttons and all that junk) below.
Is there any way to do this? P/Invoking stuff would be fine, by the way.
...
Hi,
I wonder about dynamically changing of class name in .NET application. For example WindowsForms10.SysTreeView32.app.0.19fd5c7. The last string "19fd5c7" would change, but I don't know what makes it changing. Is it the version, the GUI modification, environment, OS or what?
Thanks.
...
Hello everyone,
I've been using Webservices so long.
But,so far up to what I know,I haven't found a solid point for using WCF over Webservices.
Webservices hosted with Cassini webserver = WCF?? Is that all?
Thanks
...
Hi all,
I am working on .NET 2008 winforms, I am trying to drag and drop objects from a DataGridView to some other control. So I had to override the OnMouseDown event handler. Since I have checkboxes there, their state is never changed. Here's my overriden method
public class SeriesGrid : DataGridView
{
protected override void On...
Hi, I have a scenario where I am populating a combo box with the template names. Amongst the templates one would be a default template. I want to highlight the default template name when I populate the combo box (so that the user knows which one among the items is the default). Is it possible to do so? If yes how? I am using a Windows Fo...
As you know, one can customize the width of the scrollbar width in Display Properties -> Appearance -> Advanced -> Item: ScrollBar. The default value is 17. However, I can't assume this is always the case, is it possible for me to retrieve this value?
...
Hello guys first of all apologize for asking such a simple and yet redundant question but it seems my case is kinda bit different where googling failed to provide answers.
I have a solution with 2 projects say proj1 and proj2 where proj1 is a winform application and proj2 is a classlibrary application.proj1 is sitting here
C:\Docume...
The company I work for(as a Solo Dev) is a simple, non-profit org. The majority of the apps I have worked on so far and the majority in the queue are glorified Database front ends. To be honest, half of them could be "Jimmy-rigged" to work in Access. I am not an Access developer though and would prefer not to be.
What I am looking ...
I'm trying to split an app.config file into multiple files to make it easier to manage the differences needed for different environments. With some sections it was easy...
<system.diagnostics>
various stuff
</system.diagnostics>
became
<system.diagnostics configSource="ConfigFiles\system.diagnostics.dev" />
with the "various s...