|
-
April 28th, 2008, 09:05 AM
#1
How to connect my pictureBox class to pictureBox element on F..
Hi, Pros! I have a class
class MyPicture: PictureBox
...
And I have an element on Form pictureBox1. But the problem is that this
element is connected to:
private System.Windows.Forms.PictureBox pictureBox1;
but I want it to be like this:
private MyPicture pictureBox1. But the problem is that Microsoft warns
that I can't edit in there:
...
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
...
this.pictureBox1 = new System.Windows.Forms.PictureBox();
...
}
... as you can see I have no right to edit it like this:
this.pictureBox1 = new MyPicture();
How to overcome this legally?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|