| Thread | Last Post | Replies |
|
| ImageList collection in a control | 11 Feb 2006 06:37 GMT | 2 |
This is my custom control. When I try to add a image, I got the following error message. "Parameter must be of type Image. Parameter name: value" public class AControl : UserControl
|
| controlpaint.drawfocusrectangle(g,r) colors | 10 Feb 2006 20:17 GMT | 1 |
when using the 2-parameter form of this shared function, where the hell is it getting the colors from? neither of the colors appear in my system palette; one of them is black, which is not one of my system colors. the other is close to 2 of my "shadow" colors, but doesn't match. ...
|
| Loading application w/in MDI form | 10 Feb 2006 19:07 GMT | 1 |
I've searched around for this and have found some VB examples but 1) I'm not sure that they're VB.NET and 2) If they are VB.NET, then they're not working once ported to C#. I'll be doing this in .NET 2.0 w/ VS.NET 2k5 Below is my code:
|
| Passing mouse events up to a control's container | 10 Feb 2006 19:02 GMT | 3 |
I want to handle events in a container (eg. MouseMove in a Panel). Problem is: when the panel contains Controls and the mouse moves over that control, MouseMove is no longer fired in the container. How can I force this?
|
| Extending TreeView and TreeNode | 10 Feb 2006 16:30 GMT | 2 |
I've posted the same question on msdn forums, but I'll try it here too since I'm lost here. I'm creating a custom TreeView with custom TreeNode classes nested. This is a sample what I want to do:
|
| Make Thread-Safe Calls to Windows Forms Controls | 10 Feb 2006 12:15 GMT | 4 |
I want to get the value of a property of a control from a thread other than the thread the control was created on, as far as I can see this is not the same as invoking an operation on a control on a different thread I have used the following code as per the guidance in the msdn ...
|
| Drag'n'Drop with Animation | 10 Feb 2006 11:59 GMT | 1 |
I've mastered basic drag'n'drop, but I want to display more than just a simple cursor when dragging an object, I also want to display a semi-transparent representation of what I'm actually dragging as I move the mouse, which in my case will be some text in a box with a fill image ...
|
| About textbox Validating, Validated & TextChanged | 10 Feb 2006 11:23 GMT | 1 |
I have a textbox that should be numeric, so I've written some code in the Validating event. When the text was changed (and if it's valid!), I need to compute some other values. I've done this in the Validated event. However, when the users tabs over that field, the Validating & ...
|
| focus goes to windows desktop after clicking on messagebox button | 10 Feb 2006 10:43 GMT | 1 |
In a VS2005 app with VB.NET. In a mdi child window I open a messagebox to ask a confirmation from the user. After the user clicks on the yes or no button, the main application is hidden behind all other open application windows.
|
| How can i know if it is safe to call Invoke on a control? | 10 Feb 2006 09:59 GMT | 10 |
If you want to do some operations on a UI control from a thread other than the UI thread, you've got to first marshall the call to the UI thread using Control.Invoke or Control.BeginInvoke. So i've created in my application a UI control solely for the purpose of marchalling ...
|
| Import XML into MS Access | 10 Feb 2006 09:39 GMT | 1 |
I develop a WinForms application with capability to import data from a large XML file into the MS Access database. Which way is a best way to perform it? Thanks in advance,
|
| Start application with input parameter | 10 Feb 2006 09:30 GMT | 1 |
I am developing a module to an existing software (that is not changeble), where I will put hyperlinks to the module. This is a software where I have customers with a specific ID. The hyperlink could look something like "c:\program
|
| Clicking on UserControl background fires Validating event twice | 10 Feb 2006 06:16 GMT | 1 |
I have a Form containing a Label (Label1), a TextBox (TextBox1), and a UserControl itself containing a Label (Label2) and a TextBox (TextBox2). There is an event handler for the Validating event of TextBox1, which checks whether the TextBox contains a valid value and, if not, ...
|
| Problem localizing inherited form | 10 Feb 2006 05:13 GMT | 8 |
I have a problem trying to localize an inherited form using VS2003. I have inherited a form from a non-localized base form in a third-party assembly. Since all controls in the base form is protected there's no problem changing for example the Text property of inherited Label ...
|
| Why can't you inherit System.Windows.Forms.Form? | 10 Feb 2006 01:19 GMT | 8 |
The designer doesn't seem to like it but the question is why was it designed like this? Cheers, Rob. PS. And can you do it in VS 2005?
|