Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21243

[RESOLVED] How to make a selection box

$
0
0
I have an array of UCs like this:

Code:

+-------+-------+
|  1  |  2  |
+-------+-------+
|  3  |  4  |
+-------+-------+
|  5  |  6  |
+-------+-------+
|  7  |  8  |
+-------+-------+
|  etc  |  etc  |
+-------+-------+

When user right mouse down on any cell (that's what I'm calling each UC) I want a red selection box to appear around (but on top of) the cell like this:

Code:

+-------+-------+
|  1  |  2  |
+-------+-------+
|  3  |  4  |
+-------+-------+
|  5  |  6  |
+-------+-------+
|  7  |  8  |
+-------+-------+
|  etc  |  etc  |
+-------+-------+

I can't use a transparent Image control as that has no ZOrder and a Picture box does but it is not transparent in the center.

I guess my question is what control can I use to do this

I guess I can use four Picture boxes with a width of 2 and move them to that position but would like a single control if possible

Viewing all articles
Browse latest Browse all 21243

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>