I am doing a windows form program in c# for a school assignment. I haven't completed the program yet, but when I was testing to make sure my math and what not was working all of my textbox's were see through and I could click through them onto the windows below the program as if it were transparent. Does anyone know why this is happening and how to fix it? Thanks in advance.
Windows Form Program Problem
#3 Members - Reputation: 115
Posted 24 January 2013 - 07:55 PM

On the left is what the program looks like in the designer and on the right I have the program running. As you can tell it is see through and I don't know why. I haven't changed any properties in the designer on any of the elements.

Here is my code. And like I said I haven't completed this yet I just wanted to make sure that there were no errors before I continued. Any ideas? Thanks in advance.
#4 Members - Reputation: 1879
Posted 24 January 2013 - 08:41 PM
Well, it's not your code that's causing the transparent textboxes, unless you've set up some weird settings in the .Designer.cs file.
It's probably something else on your system that's interfering somehow (corrupt .NET or Windows installation, strange video driver, a video renderer using a color-keyed technique, some software which manipulates HWNDs with certain properties, etc).
#6 Members - Reputation: 115
Posted 24 January 2013 - 08:53 PM
I also wrote a program on the lecture my teacher was giving but I am not able to submit that as my own program, but I used all the same elements as that program but for some reason this happened to this program and not the one I did with the class and my teacher. This is very strange lol.






