Yes, I've restored from a backup.
I think I've identified what the problem was. One of the projects provides methods to load resources from a dll. I was trying to load a resource into a base user control, and derive a new one from this. It was failing with a null reference and hence not...
I have a solution containing 21 projects that has been working fine for a while. However, I've changed something and now compile fails.
The problem is that there is no error created in the Error List so I haven't the faintest idea how to fix it. I suspect it's something to do with a missing or...
Resolved
Hi,
Finally resolved this issue by overrriding the onpaint method of the user control as below;
Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs)
MyBase.OnPaint(e)
Me.combobox.SelectionLength = 0
End Sub
Using selectedindex = -1...
Hi,
How do I override the onpaint event for a combobox so I can change the color of the text background when it's selected?
I want to remove the highlighting from a combobox and the only way I can think of to do this is to override onpaint and draw the text again using my own colors.
Does...
Hi,
I've cleared up some of the issues I've had with this. I don't think the issue is with the fill_combo function. However, in answer to your question, the combobox is filled via the constructor. This works fine and produces a list of professions as I require.
The problem is that when I read...
Remove combo box highlighting
Hi,
I have a user control that contains a combo box and a button. The combobox contains a list of user professions (nurse, doctor etc.). I've created a text property that accesses the combobox text so by using
my_user_control.text = "some text"
the combobox...
Hi,
Thanks for the response but I've tried that without any luck. I've had a look into this further, and there appears to be others noticing strange combobox behaviour....
To explain further...
The combobox inherits from a base one that is set with the appropriate formatting. Its constructor...
Hi,
There's probably some easy way to do this but it's driving me mad...
I have a form with a combo box that is populated from a database. When I set the text of the combo box to the value in the db
.Uc_address1.cmb_country.SelectedText = C_User.country
the combobox remains highlighted, and...
Hi,
I've created a simple user control (uc_ok_cancel_apply) that includes OK, Cancel and Apply buttons. I want to use this on various user controls or forms so I can provide a consistent look.
If I add this to a user control, I can call a public method by referencing the form via the 'my'...
Zip file attached
Hi,
Thanks for taking an interest. I'm using 2008 express.
I want to be able to drop controls from the toolbox on the uc_user control. I've looked into this further, and can do it programmatically, although being able to use the designer would be greatly beneficial in terms...
Hi all,
I've created a user control that acts as a header for my forms onto which I can drop heading labels etc. This uses a custompanel control that inherits from panel and allows you to add curved corners, color gradients etc. I've used this in the past without any problem.
I want to use my...
User control renders slowly
Hi,
I have a user control containing some labels that need to resize according to how long the label text is. The text comes from a database.
I've achieved what I want using the paint event of the control;
Dim StringSize As New SizeF
'check which...
I have a user control (that displays some basic information about some events) called AE. I have another user control called CTCAE containing a panel that I wish to populate with the AEs. Within each AE is a tablelayoutpanel control, and within each cell of this is a label.
The labels are...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.