How to change the form border color c#?
I would like to change window form border color (the border with the form title). the example i found in codeplex is too much and confusing. can any help me on something simple ...
I would like to change window form border color (the border with the form title). the example i found in codeplex is too much and confusing. can any help me on something simple ...
When the checked state of a check box change, I would like to know what the new value is. his is what I am doing: Friend WithEvents clstTask As System.Windows.Forms.CheckedListBox Private Sub clstTask_ItemCheck(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ItemCheckEventArgs) Handles clstTask.ItemCheck Dim Selecte...
I'm working on building up an MVP application (C# Winforms). My initial version is at http://stackoverflow.com/questions/1422343/ ... Now I'm increasing the complexity. I've broken out the code to handle two separate text fields into two view/presenter pairs. It's a trivial example, but it's to work out the details of multiple presenters...
Hello everyone, I'm working on creating a custom winforms datagridview control that inherits the built in DataGridView control. I'm having an issue with the Columns property, the property is set to as ReadOnly so I can't edit any information in it and need to add columns to the datagrid. If you look at the property outside of my custo...
I have a date import project in which the clients send ANSI-latin1 encoded files (iso-8859-1). However... It seems that on a weekly basis we get a surprise file, one that is not of the correct format and the import basically dies horribly and needs manual intervention to recover and move on... Most common bad file formats seem to be e...
I'm writing a windows forms application in C# whereby some windows utilities can be launched (e.g. CMD prompt, Registry editor, Events Viewer etc) and placed in an MdiClient control on the main form. Everything is working great except that the scroll bars in the MdiClient control aren't automatically appearing when a child window falls ...
Hi, Just building my first WinForms application. Question - What's the easiest/best approach for saving some data between use of the application (e.g. list of URL with status & date/time in this case)? I don't see any need for a database. For example * Is just storing to text file easiest? * Or is storing to XML file just as ea...
I need some guidance on where to research further incorporating license key enablement for a WinForms application. That is incorporating those key concepts you see often such as: 30 day trial Need license key to unlock the application beyond this Possibly the ability to unlock power user functionality using this approach What is the...
I am developing web application using MVC. A lot of efforts are going into the design model and controller. I know I can reuse the modal in winforms. But can I reuse the controller in winforms ...
I have a UserControl for Windows Forms. How can I convert it to a component? What I want to do is, to add it to the VS toolbox, add it to form with drag and drop at design-time and change its Location and Dock properties using the Properties window. What should I look for to do this? I've created something similar before but it was a Co...
I need to develop a Winforms application where users are given permissions to access menu-items in a menu-strip as assigned to them. I have anticipated the following technique: (1) Menu Strip is mapped into a corresponding treeView with checkBoxes, (2) A user is selected from the combo-box, (3) Some tree-view-node check-boxes are che...
When I copy, for example, the word "Çamlık" from a web page into a rich text box (forms application) at runtime, it is displayed as "?aml?k". Is there a setting in the richtextbox control or form or application to fix this? If not, what is the "socially acceptable" method? (.Net 2008) ...
I'm getting this error when I'm using COM reference in winform. I tried using Window Media Player COM in winform and it's working fine. But I got this error when I tried using with other COM dll. I tried "regsvr32" to that COM dll but it was successfully registered but I'm still getting this error when I run my winform that is using th...
How can we set WebBrowser.DocumentType ? ...
Load PDF Document in WebBrowser using DocumentStream ...
I would like to create a Windows Forms application that when run is only visible once another external window (notepad.exe) is enabled/focused. Any hints, I don't know where to begin. If my form is running I would like it to popup when Notepad is enabled and disappear when Notepad loses focus. ...
Hello fellow developers, I'm currently developing a WinForms application in C#, and need some input on how to manage toolbar buttons, menus and other context sensitive elements. What is the best practice for this? I've found the article 'Use Design Patterns to Simplify the Relationship Between Menus and Form Elements in .NET' on MSDN b...
EDIT 11-20-2009: This question was posted quite some time ago, but the problem just crept up again this morning; so I'm hoping somebody else can provide some insight (though the answers provided already have been helpful). Once in a blue moon in our production environment we get a NullReferenceException from referencing the Items proper...
I have a RichTextBox that I want to re-format when the contents of the RichTextBox changes. I have a TextChanged event handler. The re-formatting (changing colors of selected regions) triggers the TextChanged event. It results in a never-ending loop of TextChange event, reformat, TextChange event, reformat, and so on. How can I disti...
This is a followup to WinForms RichTextBox: how to perform a formatting on TextChanged? I have a Winforms app with a RichTextBox, the app auto-highlights the content of said box. Because the formatting can take a long time for a large document, 10 seconds or more, I've set up a BackgroundWorker to do the re-formatting of a RichTextBox. ...