1) The sample I showed you is just an example. I wrote it specifically to illustrate the problem I'm having. It is not my actual code. It is just an example of the problem I'm experiencing. The control does nothing on purpose, to show the problem with
the designer, it's not meant to be executed at runtime.
2) Yes, I'm sure there's a better option, but I don't have that luxury unfortunately. I work at a company that is upgrading our existing code from .Net 1.1 to 2.0, with as little rewritting as possible.
3) You mention that the designer code has problems. What problems? Everything looks ok to me. It doesn't need to access anything in the control as far as I know, it's simply meant to be a non-functional representation of the control.
Given the sample code I provided, why can I not move it around in the designer? Why does it stay at the top left and only allow me to drag it into containers? What am I missing. This worked in 1.1.
Phlow
0 Points
7 Posts
Re: Custom control can't be moved from the top left corner in the designer. (.NET 2.0 VC#2005)
Dec 23, 2006 03:44 AM|LINK
Thanks for your reply.
1) The sample I showed you is just an example. I wrote it specifically to illustrate the problem I'm having. It is not my actual code. It is just an example of the problem I'm experiencing. The control does nothing on purpose, to show the problem with the designer, it's not meant to be executed at runtime.
2) Yes, I'm sure there's a better option, but I don't have that luxury unfortunately. I work at a company that is upgrading our existing code from .Net 1.1 to 2.0, with as little rewritting as possible.
3) You mention that the designer code has problems. What problems? Everything looks ok to me. It doesn't need to access anything in the control as far as I know, it's simply meant to be a non-functional representation of the control.
Given the sample code I provided, why can I not move it around in the designer? Why does it stay at the top left and only allow me to drag it into containers? What am I missing. This worked in 1.1.
Thanks