Jump to content
  • Advertisement
Sign in to follow this  
k4rm4

Windows Form Program Problem

This topic is 2068 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement

That shouldn't happen by accident.  However, we have no way of guessing what is causing it.  Can you post some code?

Share this post


Link to post
Share on other sites

ScreenShot2_zps9d4fc5ce.jpg

 

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.

 

ScreenShot1_zps9e2f20de.jpg

 

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.

Share this post


Link to post
Share on other sites

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).

Share this post


Link to post
Share on other sites

Do you think it could be a property of the textboxs themselves? Or the property of the program background? Because when I changed the color of the textboxs I can see what I type but if I click the textbox its still transparent.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

A friend of mine helped me out. It was the OpacityKey in the properties that was screwin with my program. Thanks for the help though :)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!