I'm trying to set up a DataGridView to represent a page out of a map book. Each cell in the grid represents a MapGrid object. Users would use this to set the route for the MapGrids.
public class MapGrid
{
public int ID { get; set; }
public short PageNumber { get; set; }
public char ColumnNumber { get; set; }
public byt...
The WinForms GroupBox control doesn't support MouseMove (or at least, not consistently), and I don't understand why.
Since it descends from Control, it does have a MouseMove event, but GroupBox explicitly reintroduces it with Browsable(false), so it's not shown in the Property Grid. You can hook the MouseMove event at runtime, and somet...
I am using CustomButton and CustomLabel derived from Button and Label. They have extra functionality that I need.
The visual difference is minimal but I don't know how .NET calculates Winforms disabled colors.
...
Hi guys,
A while ago I asked for some help about setting up a progress bar to show to the user how much progress has been made on the given set of files and folders.
See here:
First Attempt At Background worker.
As a result I managed to get it to work but on some occasions it partially fills up and sometimes not at all. Exiting with ...
So which one is the newer one, and why would I use one over the other. Or more importantly, over Windows Forms?
...
I'm trying to figure out the best way to manage multiple forms in a C# application that uses dual-monitors. The application starts to a "launchpad," which just gives the operator some quick information and a "GO" button. Pressing that button hides the launchpad and displays a form on each monitor in full-screen. I've tried to capture ...
I don't find a CanGrow property on the Textbox control. This is common in some other controls, and what it does is expand the control to acomodate more data. Anyway to get this feature in the TextBox?
...
I am what I would consider a very experienced web developer, not to mention programmer in general. One area I have never seriously moved into is winforms development. Could someone recommend some resources that would be assist me in getting familiar with winforms? Many of the resources I have found are less than desirable in that they ei...
_documentContent contains the whole document as html view source.
patternToFind contains text to be searched in _documentContent.
Code snippet below works fine if language is English.
The same code however doesn't works at all when it encounters a language like Korean.
Sample Document
Present Tense
The present tense is just as you...
hi all
is it possible at all to somehow make the label contorl multicolored? i have a rich textbox that the user enters text into, and if they change the font for some words in the rtf, and changes colors, and underlines one or more words here and there etc, i need to be able to display the resulting text, with the correct styles set by...
I have a form that has to be on top for a period of time, and then can be set behind other windows normally. Is there anything in addition to setting Me.TopMost to True or False that needs to be done? I ask because it doesn't seem to be working.
...
I'm making a Windows Forms application which has a standard DataGridView in it. The DataGridView has several DataGridViewComboBoxColumns in it. And they are a pain to work with. To get one of them to open up (as in, drop down the list), you have to click the cell at least 3 (!!!) times. Seems that the first click ends the editing of the ...
I've got a Windows Forms (C#) project with multiple comboboxes/listboxes etc that are populated when the form loads.
The problem is that the loading of the comboboxes/listboxes is slow, and since the loading is done when the form is trying to display the entire form isn't shown until all the controls have been populated. This can in som...
Hi,
I've got two pictureboxes in a windows form which are assigned a new image in a separate thread, then are made visible to the windows form. So if we had two pictureboxes, A and B, if A is visible with an image on, B is invisible and a bitmap is loaded from a file and is assigned on the image property of B on a separate thread, then ...
I have MyTreeView : TreeView component. And Nodes collection is filled in this component.
When I place this component on the form, the Designer duplicates all Nodes items. So I need to force the designer not to serialize this public (non virtual) Nodes property, or force designer to clear Nodes collection before enter items there.
Is i...
Normally when I override the OnPaint method, I create pens and brushes, etc inside it and then dispose them.
I also read somewhere that instead of recreating these pens and brushes, etc to create them once as static members, and then dispose them once when the form is closed, etc.
Is this a better practice?
Is there a better way for t...
My application has a main window that contain a TabControl with about 7 TabItems. Inside each tabItem I put a UserControl.
I would like that (no matter the active tab, or control) when the user press a combination of keys then user-interface jumps to a specific tab. that is, The same behavior that Firefox: alt+1 goes to the first tab, a...
How would you launch a winform app from within an asp.net page?
...
Hi, i am trying to handle a mouseclick event on a particular form that should fire if the mouse cursor falls between a set of coordinates - lets say a square.
I understand that if i had an empty form i could simply tie in to the mousemove event and off i go. But in reality there may be up to 10 different overlapping controls and in my t...
Here's my scenario:
I'm using the WebBrowser control in a WinForms app to display data. The HTML is served via the DocumentText property and I want to use jQuery to interact with the contents. Loading jQuery from the web (Google APIs) works:
actual html inside DocumentText, head block:
<script type="text/javascript" src="http://ajax.g...