.NET, and "know" when a keyboard button is being pressed
I'm making a program in C#, And I want to know when the user is pressing\pressed a keyboard button (for now: 1-9 buttons on keyboard). How can I do it? ...
I'm making a program in C#, And I want to know when the user is pressing\pressed a keyboard button (for now: 1-9 buttons on keyboard). How can I do it? ...
Hi all, I 'am building a small windows form application. I have a View - a simple form that has some functionality in it. a Controller - a class that will react to loading, saving, getting data from the model and prepare it form the view etc. a Model - a class that will get and save data to DB or file. The controller is creating a fo...
I have a Picture box inside a Groupbox in my form with the Picture of a radar set as the background picture. My intention is to dynamically load tiny Jpeg images within the radar area (overlaid) at runtime but I am unsure as to the best way to achieve this. All crazy ideas welcomed (but I would prefer sane easy to do ones). Thank you all...
Which are your favorite windows forms books/blogs/websites? (I don't think this is a dup...have checked other related questions) ...
i am trying to set one of the custom colors of the colordialog to be the current background color of the form. i am doing it like this: ColorDialog1.CustomColors(0) = Form1.BackColor.ToArgb it is not working. please help! vb.net code please please note that i only need a specific element to contain the color. not necessarily 0, but p...
I have a richtextarea with a bunch of text in it. I would like to somehow make it expand to fit all the text without showing scroll bars. I would like the width to stay standard and the height to expand. Is there a good way of doing this? I planned on looping through and adding a pixel to its height every time.. and then checking if ...
Hi, I have values stored in the database describing panels, combos, textboxes, labels etc...to be dynamically generated based on what the user set it up to be on a setup form, mainly used for input, including validation rules and datatypes to be specified during the setup of the form. Problem is, I need to render the "Form" in both w...
In .Net 2.0, the WinForms ListBox and ComboBox controls allow you to search through the list by pressing the first letter of the list item on the keyboard. Subsequence presses of that key will cycle through the list items starting with that letter. A browser like FireFox on the other hand lets you "typeahead" search for items in a list...
I'm not sure if a component exists for this or if I'll have to look at how to create one, but here goes... I'm trying to find a dropdown-style list for images I can use in a program of mine. It's fairly simple, just needs to display a few images in a grid with tooltips for each one, and I need to be able to get whichever one was last p...
Hi there, Does anybody know how to click on a link in the WebBrowser Control in a C# Windows Forms Application and then have that link open in a new tab inside my TabControl? I've been searching for months, seen many tutorials/articles/code samples but it seems as though nobody has ever tried this in C# before. Any advice/samples are ...
In asp.net, it is quite easy to convert a datatable to an excel file. How do I do the same for datatables in winforms? For Example: in my asp.net code, here is my function to convert the datatable to excel: Public Shared Sub DataTableToExcel(ByVal dt As DataTable, ByVal FileName As String HttpContext.Current.Response.Clear() Http...
I have inherited a control from Panel-Class. I have added some events to this control. I gave move - ability to this control and so on .. I have two display screens. I have a main program where the inherited panel is displaying an image on a small area. I want to show this panel fullscreen on a second. I created a new form and use t...
I wish to make controls like textbox, combobox, listbox and other user editable controls to be bound with validation, so i thought of extending the existing controls and make a new VTextBox, VComboBox, VListBox which have a validationregex property and an error provider component attached with them. My prime aim is to have validation att...
Hi, I was wondering if there was a simple way of doing this (setting a property or something of the ListView) rather than going through the Drag events. All I want is similar functionality to Windows Explorer, where users can drag the ListViewItems within the ListView and when dropped they remain where the user left them. All I want to...
DevExpress or ComponentFactory's: Krypton Toolkit I am looking for people's experiece with either. Ease of use(programmatically)? Accessability of help and support? User Community? Stability of controls? Ability to extend? I am not asking anyone to Google it for me. I would like actual experience with either control suite(why I...
i am looking for a winforms solution for a heatmap control. Essentially if i have a bunch of sales data and i have different dimensions (region for example), i want to visualize the profit and loss per region and also factor in the size of the region. Similar to this: http://www.smartmoney.com/etf/maps/ does anyone recommend a third p...
Hello, I was experimenting a little bit with Castle winforms in a winforms project. I wanted to register all my form dependencies with Castle windsor. This way I would have a single instance for all my forms. Now I have some problem though. I'm in a situation that form x has a dependency on form y and form y has a dependency on form x...
Would Like to know how best to implement the Presentation Model pattern. I have read about MVVM but does not apply to me as I'm not using Silverlight or WPF. ...
I have to make speech recogintion application that should work on MAC and PC, i have a idea about SAPI but it will for only for PC not for MAC. Is there any other API or frame work i can use to achieve this, programing language not bar for me. ...
I have a custom form, B. B is created by A, which has a handle to B.VisibleChanged. B only has an OK and Cancel button on it, and I want to do some logic when OK is hit. B's OK button is dealt with like this: Me.Result = Windows.Forms.DialogResult.OK Me.Hide() The code in A is properly hit and run, but it never hides B. When I c...