Search results for query: *

  1. P

    Compile fails - no error message

    Fair point. I'll turn it on and see if it helps - once I've waded through the list of issues of course....
  2. P

    Compile fails - no error message

    No. Not sure I see what you're getting at....
  3. P

    Compile fails - no error message

    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...
  4. P

    Compile fails - no error message

    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...
  5. P

    Remove the highlighting from combobox when selected

    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...
  6. P

    override combobox onpaint

    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...
  7. P

    Remove the highlighting from combobox when selected

    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...
  8. P

    Remove the highlighting from combobox when selected

    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...
  9. P

    Remove the highlighting from combobox when selected

    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...
  10. P

    Remove the highlighting from combobox when selected

    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...
  11. P

    call method in container control

    Perfect, thanks.
  12. P

    Cannot place control on user control

    Thanks very much, very informative. I think I can see the solution now.
  13. P

    call method in container control

    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'...
  14. P

    Cannot place control on user control

    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...
  15. P

    Cannot place control on user control

    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...
  16. P

    User control location

    Perfect - I've made the changes and it's improved the interface considerably. Thanks very much!
  17. P

    User control location

    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...
  18. P

    User control location

    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...
Back
Top