When a custom control moves, how to detect when it encounter or overlap with another control?
Platform: Windows XP sp2
Language: C#.net express 2005
User Profile
Collapse
-
How to detect controls that overlap each other?
-
I figured out what happened for this matter: Althought I added the TextBox in .Net GUI, it did not automatically add a line of this.controls.a dd(myTextBox); since I don't have a design.cs file. So I have to manually that line of codes.
However, now I have a new problem: I want the TextBox to be invisible until the user click my custom control.
I added click event handler for the custom control:
public class... -
Lay a control on a custom control
I created a custom control which inherited from the control class, I defined new properties and methods and wrote codes in Onpaint() event. I added this control in my project. Now I can use this in design time as well as run time.
However,when I added some existing .Net controls such as a TextBox onto my custom control, the TextBox did not show up on the windows form. What else I have to do?
Platform: Windows XP SP2...
No activity results to display
Show More
Leave a comment: