I have some resources (images in this case) in a resource file that I use on controls in my Windows Forms project. The Visual Studio Resource Selection dialog doesn't have very good support for choosing images from resource files unless they're in specific locations, but you can edit the designer file directly, and this works just fine; ...
Is it possible to save a WinForms user control(ex: button) to the database?
Or the only thing that can be saved is the settings property.
EDIT:
Like what triggerX said. I tested the serializable idea.
btnAttrib.cs
[Serializable()]
class btnAttrib
{
public Point LocationBTN { get; set; }
public Size SizeBTN { get; set; }
p...
I have an UI application that serves several functions (<800KB). I wanted to allow minimizing it to the system tray, and continue to decode data coming from the serial port and sending network messages.
Can I simply hide the main form and create a NotifyIcon in the system tray, or are there other considerations for system tray applicati...
Hai,
Am using DevExpress Tree List in C#.NET application .I want to know about how to trigger select event of checkbox control in DevExpress XtraTree List.
example:
I'm using a treelist extra editors devexpress. The columns are loading from database and contain check boxes.when checked a check box and press an edit button i want to ...
how to create trial period setup file for 30 days of my c# windows application?
...
I've designed a winforms dialog that is too large for a netbook's 800 x 480 resolution.
How can I fix that the dialog is shown properly. Is there a simple way that avoids a complete redesign?
Here's a screenshot of my problem: http://img689.imageshack.us/img689/2449/allgemeina.jpg
...
Hi, can anyone help me how to apply transparency on picturebox on Winforms? I have a panel as a main container having a background picture, and I have a picturebox which overlapped on it. So all I need is to have a transparency on picturebox.
...
I've seen these questions but both involve methods that aren't available in the CellStyle Format value. I only want to show the hours and minutes portion (16:05); not the seconds as well (16:05:13). I tried forcing the seconds value to zero but still got something like 16:05:00. Short of using a kludge like providing a string or a Dat...
I need to be able to turn off some cells in a row based on a boolean flag. If the flag is true I everything should be enabled and visible like normal. If the flag is false however I need to have several cells in the row made invisible and readonly.
...
I want to remove and add a control at runtime on a WinForm. The problem is, that the Control must have the exact same size, location and anchors as another one.
If the user opens the window and a certain criteria is fulfilled, I want to delete the old control and replace it by another.
So, I tried this:
RichTextBox InsideText = new Ri...
Which one is the best .NET ORM for using in a Windows Forms application?
I like NHibernate, but it seems that NHibernate is mostly used in web applications.
...
I have a Label on a Windows.Form. I set the AutoSize property on the label to True and I noticed that when I do that, it pads the right hand side with ~5px of white background. I have the Padding property set to [0, 0, 0, 0]. Is there a way to get rid of this?
I would like to get the bounds of the label as close as possible to the text...
I have a DateTime column in my winForms DataGridView; currently the field can only be edited by typing the date in manually "2010/09/02", what would be needed to have a DateTimePicker (or equivalent) used as the editor instead?
...
I want to trigger some code whenever I push out a new version of a Click-Once application that I'm building. Maybe an event isn't the right word, but the idea is the same.
If any of you have suggestions, I'd appreciated it, thanks!
...
I have a DateTimePicker cell in my DataGridView. I'd like to be able to enter edit mode and drop the calendar when a button is clicked. I'm able to do the first part without difficulty but the second isn't working. If I have a standalone DateTimePicker the SendKeys call does work as expected.
//Select the cell and enter edit mode -...
Let's say I have a WinForm that has a menu strip in it. Let's say one of the items of this menu strip is named Cars.
Whenever I open my WinForm, I want to add a subitem under Cars for every car in a table.
Is this possible to do with code?
...
The requirements I'm up against
About 12 people are using this application, but we only want to allow 4 to close the application through traditional methods (Alt+F4, File > Exit, Close)
If any other method is used (TaskManager, WindowsShutdown) or one of the allowed users close the application, we need to perform some clean up (Closi...
Hi,
We want to test a connection to an application as a feature of a program we are developing, but to go further with this, we want to actually do a sort of diagnostic test to ensure that the app is working and not just take the service status as gospel (the main windows service running does not mean the app is working fully). However...
Hello,
I have gotten a program Im working on to load some pictures and display them within a listview after using a openfiledialog. What I am looking to do now is take this one step further and auto-load the images from a directory 'icons' within the application directory. Im not too sure how to go about it, So Im going to paste my curr...
I understand Thread.Abort() is evil from the multitude of articles I've read on the topic, so I'm currently in the process of ripping out to of my abort's in order to replace it for a cleaner way; and after comparing user strategies from people here on stackoverflow and then after reading "How to: Create and Terminate Threads (C# Program...