---
title: "how to split a single picturebox into three partitions"  
description: "how to split a single picturebox into three partitions"  
author: "Madhu Mitha"  
published: 2015-03-23  
updated: 2015-03-23  
canonical: https://www.mindstick.com/forum/23043/how-to-split-a-single-picturebox-into-three-partitions  
category: ".net"  
tags: ["vb.net"]  
reading_time: 1 minute  

---

# how to split a single picturebox into three partitions

hi,,\
I want to [split](https://www.mindstick.com/blog/11920/top-3-voltas-split-acs-for-your-home) a single picturebox into three [partitions](https://answers.mindstick.com/qa/96923/what-are-hard-disk-partitions) so that i can save my [image](https://www.mindstick.com/articles/23551/an-investigate-distinctive-seafood-restaurant-for-your-image-stamp-character) in in three locations with different sizes.. is there [anyone](https://www.mindstick.com/articles/23207/how-to-find-the-best-fit-job-for-anyone) know how to do.. plz help me doing this\
thank you\

## Replies

### Reply by Madhu Mitha

hi Ankit,, It is possible by using same method can i draw strings.. i get input from three textboxes and i want to place the strings in different location\
thank u

### Reply by Anonymous User

You can use an array with a size of 3. Then it's much easier to do this using a couple of loops like this:

```
var imgarray = new Image[3];            var img = Image.FromFile("media\\a.png");            for (int i = 0; i < 3; i++)            {                for (int j = 0; j < 3; j++)                {                    var index = i * 3 + j;                    imgarray[index] = new Bitmap(104, 104);                    var graphics = Graphics.FromImage(imgarray[index]);                    graphics.DrawImage(img, new Rectangle(0, 0, 104, 104), new Rectangle(i * 104, j * 104, 104, 104), GraphicsUnit.Pixel);                    graphics.Dispose();                }            }
```

Then you can fill your boxes like this:

pictureBox1.Image = imgarray[0];

pictureBox2.Image = imgarray[1];


---

Original Source: https://www.mindstick.com/forum/23043/how-to-split-a-single-picturebox-into-three-partitions

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
