I'm learning Chinese at the moment and I have gotten my hand on a Chinese dictionary definition.
Now I would like to make an interface.
All I really want the application to do is when I point my mouse pointer over any text on the screen (in any window), it would identify the text I am pointing at and then display a small form over it, ...
Hi,
QUESTION - How can I run some common code from both (a) scheduled via Windows Task & (b) manually from within WinForms app?
BACKGROUND:
This follows on from the http://stackoverflow.com/questions/2489999/how-can-i-schedule-tasks-in-a-winforms-app thread
REQUIREMENTS
C# .NETv3.5 project using VS2008
There is an existing funct...
How can I produce a similar output in C# window forms in the easiest way?
Is there a good library for this purpose?
I just needs to be pointed in the direction of which graphic library is best for this.
...
I'm using webBrowser.Navigate(url) control to display page.
I noticed this action steals focus from current control (grid) and than I have problem to focus grid back (tired myGrid.Focus, .Select etc...)
This is really annoying behaviour of browser...
Does anyone knows how to prevent focus stealing by Browser or (if not) hot to force to ...
I am using html agility pack to parse html tabular information. Now there is some html content with missing ending tags and from such page because of missing ending tags html agility pack does not parse information properly.So I want to insert ending tags where there are missing ending tags so html agility pack parse information properly...
If I drag and drop an assembly, or use the Toolbox's "Choose items..." dialog, should I be choosing the debug or release version of my assemblies from their bin\ folders?
I.e. is Visual Studio clever enough to work out that when I want a release build it'll reference Release built assemblies?
...
I am about to start a new Windows applications and the contenders for the platform are:
Windows Forms
WPF
Silverlight
Now my experience with WPF at least in my last application was not very encouraging (the app failed to run on the deployment machines and I had to re-do it in Winforms). So my confidence is shaken here.
My app is for...
How can I produce a messagebox in a C# Win Forms application that displays a combobox with a series of values to select as well as the usual "Ok" button?
I would like to be able to trigger this on calling the MessageBox.Show() method. I am assuming some sort of override will be necessary, but I haven't seen any pre-existing examples for...
We're having a serious issue at work. We've discovered that after the station where the client was running is locked/unlocked the client is blocked. No repaint. So the UI thread is blocked with something. Looking at the callstack of the UI thread (thread 0) using windbg we see that a UserPreferenceChanged event gets raised. It is marshal...
I have a windows application with an MDI form and some child forms.
I need to save the position of the child forms and then restore when it is opened again.
How to do that in C#?
Also, I need to check if the child form's title bar is not hidden under the mdi form (e.g title bar might get hidden because of mdi form's menus). If this is ...
We're looking to replace DataGridView in our Winforms app. What are the alternatives - commercial or otherwise - that we ought to evaluate?
...
I'm wondering if anyone is familiar with designing UIs to be scalable to any resolution. Are there any libraries or functionalities of .NET that make this easy? We also have Infragistics controls as a resource.
...
What's a good technique to create a WinForms Form instance, display it (non-modally) but not have to keep a reference around to it? Normally, as soon as the variable goes out of scope, the form is closed:
var form = new SuperDuperForm();
form.Show();
// Form has probably been closed instantly
I don't want to have to keep track of ins...
I have a panel that is docked to the right side of a windows form. I set a color with a setting on the panel but I want to then update the main form (not the panel) backcolor to the new setting. But when I use me.backcolor = setting it changes the panels backcolor.
This is also with VB.net windows forms with Visual Studios 2008
Thanks...
I have an UserControl and would like to hide the resizing handles in design-time, just like the TextBoxControl, that has only two handles (left and right ones)... the height of the textbox is fixed, unless you say it is multiline. In that case, the textbox shows all nine resizing handles.
...
I have a folder with .txt files in it. How can i make my menuitem get those .txt files and put the filenames in the menuitem, so that it creates a list of all .txt files in that folder.
So when i put a .txt in the folder the program automatically creates the menu item.
Does someone knows how to do this, or perhaps an example?
...
My goal is totally fit image in toolStripButton and toolStripDropDownButton.
If a image in the button set with image property, I can not totally fit the image in the button. Because of margin, border, or something of the button.(I don't know exactly).
So I try to set the image in the button with BackgroudImage property. After I adjust ...
I use MouseMove event to move objects(say labels).
simple principle(schematic):
OnMouseMove(e MouseEventArgs)
if e.Button == Left
deltaX = e.X - lastX
foreach label in labels
label.Location.X += deltaX
lastX = e.X
Once the labels number increase, I start to see the labels traces along the movin...
Hi,
I am working on a WinForms app in C#, VS2008.
How do I setup Checkbox's in a Groupbox so that I can reference checkbox states at the group level? For example 7 checkboxes for each day of the week. Then I would like to be able get the state when checking via something like: "result = daysOfWeek.Monday;"
I'm probably missing t...
I am using the Windows Forms TreeView class which contains a set of TreeNodes. The TreeNodes can have child nodes.
I have a root node with 2 sub nodes (Node1 and Node2)
Node1 has 2 subnodes (child1 and child2)
I have a function that will allow a user to select any node and move it to another node:
TreeNode SelectNode = this.TreeView1...