Not sure what you want to do but the following is something to look in to.
If you set the form's TransparencyKey property to the same colour as your form's background then the background becomes transparent and click events pass through the form to the window/object behind.
If you then set the form's BorderStyle property to None, then only the objects on the form are visible. This effect can be used to overlay one form on top of another while still having the form below clickable. However, when the form below is clicked the transparent form is sent to the back so it has limited use realy.
Also, anything drawn on the transparent form will display (provided it is not the TransparencyKey color).
Edited 6 Years Ago by nick.crane: Added border style bit
Now my image has a sketchy border. How can I fix this?
Not sure about this as it depends upon your image. I am guesing that the image border (or form border) has a dithered colour (i.e. uses two or more colored pixels in a pattern to create the impression of another colour; most often found in low colour images) resulting in something like the transparent ties we used to see in the early days of TV blue screening.
Experiment with a couple of solid colour images that match and don't match the TransparencyKey to check if it is the image or the form.
I also recomend that the TransparencyKey is set to a solid primary/secondary colour (i.e. one of R G B C M Y); magenta is my favourite for a transparent background in my images.
I am writing a java program that needs to execute shell commands, so I wrote a function that would take the command to execute as a string (ie: "mkdir ~/Folder1") and execute that command with the shell. Here is the function:
Runtime run = Runtime.getRuntime();
Process pr = ...
Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them.
I don’t want at this stage work on a big separate project as I've already got plenty ...
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.