Blake81
Well-known member
I found and tried this example code:
	
	
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
 
This works well for making the whole form invisible, but I tried to make an image in Paint that was a 300x300 square with the corners painted red, hoping they'd disappear if I set that as the background image, but that didn't work. How would I go about doing that? Can I make a Paint image with parts painted red so those parts won't show? Also, using that code, most of the form was invisible, but I could still see the blue title bar and the blue around the whole edge of the form. Can I get rid of that too?
	
		
			
		
		
	
				
			
			
				VB.NET:
			
		
		
		BackColor = Color.Red
    ' Make the background color of form display transparently.
    TransparencyKey = BackColorThis works well for making the whole form invisible, but I tried to make an image in Paint that was a 300x300 square with the corners painted red, hoping they'd disappear if I set that as the background image, but that didn't work. How would I go about doing that? Can I make a Paint image with parts painted red so those parts won't show? Also, using that code, most of the form was invisible, but I could still see the blue title bar and the blue around the whole edge of the form. Can I get rid of that too?
 
	 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		