Changing a border color on a Windows Form
Does anybody know how to change the border color of a datagridview in a windows form? ...
Does anybody know how to change the border color of a datagridview in a windows form? ...
Hello, I'm new to the windows form scene and I was just wondering how I could group the radio buttons (alot like ASP.NET's radiobuttonlist!) So I can switch between each case chosen from the options. Thats it really, thanks... ...
My customer want me to change the default maximise-buttons functionality to maximise the form over all screens the customer have. I have already written some code to measure the correct rectangle to put the form to, but when i assign it to the MaximisedBounds attribute of the form, there are some issures: The screen (in my 2 screen tests...
According to http://msdn.microsoft.com/en-us/library/aa984351%28VS.71%29.aspx Disabling the first or toplevel menu item in a menu (for example, the "File" menu item in a traditional File menu) disables all the menu items contained within the menu. Likewise, disabling a menu item that has submenu items disables the submenu items. A...
Within a Winform app, I would like data in an instantiated class to be accessible by multiple form controls. For example, if I create Class Foo, which has a string property of name, I'd like to instantiate Foo a = new a() by clicking Button1, and when I click Button2, I'd like to be able to MessageBox.Show(a.name). There may be multipl...
I'm working in C# with a textbox that acts as input for a database (Access SQL) record lookup by id number. I want to be able to use AutoComplete on the text box but with some limitations. The big issue is that the number of ids in the system is on the order of thousands so instead of filling the AutoComplete box once with all of them, ...
Hello, I've couple of questions regarding scrolling ListView without using external ListView controls from other vendors (free or pay versions). How to make 2 (or more) ListView bound together in the way that if i start scrolling one ListView the other one does exactly the same? Is it even possible to do with native 3.5 or 4.0 (when i...
I'm using WebControl from Windows Forms in C# and I'm trying to load a Web Ajax content (i suposed that the content is ajax) this is the code of the page retrieve from the explorer: <ul id="building"> <li id="button1" class="on"> <div class="supply1"> <div class="buildingimg"> <a class="fastBuild tips" title="|Expandir...
Hi everyone, If I have Checked list box in Win forms which I fill like this List<Tasks> tasks = db.GetAllTasks(); foreach (var t in tasks) tasksCheckedListBox.Items.Add(t.Name); How can I iterate tasksCheckedListBox.Items and set some check boxes as checked? Thanks ...
I have just upgraded to a machine running Windows 7-64bit. Now in VS2008, when I go to set the BackColor property of a control on a WinForm, the usual color picker (Custom/Web/System) has been replaced with just a simple dropdown list containing the names of the System and Web colors. Is this just a quirk in my installation, or does th...
In my application... to navigate between winforms what i do is that i make an object of the form that needs to be shown and i use Register reg = new Register() reg.show(); this thing has two problems if i do it with a button, more than one instance of same form could be opened. if i close through which the instance was created, th...
i need to block file download in webbrowser control in C#.net.. how can i do it? ...
I am using PropertyEditor in .NET 3.5 application to allow users edit settings contained in some serialized class. This application requires localization to support multiple languages. Localized strings implemented using standard .NET Resources. PropertyEditor requires category, display name and description to be set via attributes. Exa...
Tried the CreateParams override as suggested here, however, the taskbar button does not appear on initial load. The user has to activate another window, then re-activate the target window before the taskbar button appears. Any reason why this is so? How do you workaround this? ...
I'm planning to create a news item which uses xml as it's backend and the Display should be like: Date: 08/Mar/2010 ------------------------------ Title | News ------------------------------ News 4 | Some news News 3 | Some news News 2 | Some news News 1 | Some news ------------------------------ Date: 07/Mar/2010 ----------------...
I want to use date time picker for my window application. I am using Min Date Max Date property in my code. But user interface for inputing date is very complex for the purpose of accounting where we need faster typing speed and no or very less use of mouse. I want to modify a user interface for date time picker such that user need to ...
How can I check if two System.Drawing.Color structures represent the same color in 16 bit color depth (or generally based on the value of Screen.PrimaryScreen.BitsPerPixel)? Let's say I set Form.TransparencyKey to Value1 (of Color type), I want to check that when the user selects a new background color for the form (Value2), I don't set...
When I click minimize button in my Windows Forms application, I don't want it to perform the classic Windows minimize animation (window going down to taskbar). As far as I know, there's no Minimize event, I can just use Resize, but I have no clue how to detect if I clicked minimize button. I tried to use if ( WindowState = FormWindowSta...
I have been given the task of converting a forms application to WPF. The application used TreeNode which is from System.Windows.Forms.TreeView. I know WPF has TreeView but i cant find TreeNode is there a direct conversion for it from Forms to WPF? ...
Our application uses a webbrowser control on a form to navigate to our website when a certain action is performed on our 'text-based' legacy application. All was fine in IE5, 6 and 7 but now it appears IE8 shares session cookies not only between tabs in the same intance but also between all instances. This is a major bother if a user w...