sairam

sairam

  • NA
  • 69
  • 0

Picture Box runtime creation in Rich text box

Oct 6 2008 4:50 PM

Hi

I need to create few pictureboxes at runtime. These picture box that is created should be movable and should be placed in a richtextbox at the desired location.

Ex: I have to click a button, with which a picture box is created . Upon clicking the picture box, the dialog box containing the folders in the computer has to be opened, and a picture has to be selected. Thsi picture should fit in the picture box.

 

Similarly one more picture box shud be created , placed in richtextbox and a picture is added to it.

 

The number of picture boxes to be created at runtime depends on the requirement.

So My questions are

1. How shud i create picture boxes at runtime?

2. Each picture box created should be placed in a richtextbox at the desired location.

3. When the picture box is clicked, the browse dialog box has to be opened, so that i can select the picture from the c drive, this p[icture has to be placed in the picture box.

 

Please help me guys.

Thanks

Konala


Answers (3)