allow the control to move with panning


Author
Message
Enjoyear Guo
Enjoyear Guo
Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)
Group: Forum Members
Posts: 30, Visits: 1
I add a textbox control to the nChartControl1 as follows:
NTextBox textBox = new NTextBox();
textBox.Location = new Point(10,10);
textBox.Size = new Size(100,100);
nChartControl1.Controls.Add(textBox);
However, if I try to pan the chart left/right, the textbox control will always stays at the same place. Is it possible to allow it to move with panning.

Thank you.

Enjoyear

Reply
Enjoyear Guo
Enjoyear Guo
Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)
Group: Forum Members
Posts: 30, Visits: 1
What does it mean pass an instance of the class to the control?

a) Pass it as argument of the constructor?!??!
b) Define it as a property!?!?!?
c) inherit from that class? (Can't do this because my class is already inheriting from usercontrol)
d) implement the interface (tried it and it doesn't work)

Please be more specific and I'd appreciate a quick code snippet if you could.

Thanks,
Enjoyear.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search