Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Don't forget to read Tuesday's email newsletter for your chance to win a free copy of Construct 2!


Windows Form Program Problem


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
6 replies to this topic

#1 YNV_DeViouS   Members   -  Reputation: 126

Like
0Likes
Like

Posted 23 January 2013 - 08:22 PM

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.



Sponsor:

#2 Nypyren   Crossbones+   -  Reputation: 4499

Like
0Likes
Like

Posted 23 January 2013 - 08:36 PM

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



#3 YNV_DeViouS   Members   -  Reputation: 126

Like
0Likes
Like

Posted 24 January 2013 - 07:55 PM

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.



#4 Nypyren   Crossbones+   -  Reputation: 4499

Like
0Likes
Like

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



#5 YNV_DeViouS   Members   -  Reputation: 126

Like
0Likes
Like

Posted 24 January 2013 - 08:49 PM

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.



#6 YNV_DeViouS   Members   -  Reputation: 126

Like
0Likes
Like

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.



#7 YNV_DeViouS   Members   -  Reputation: 126

Like
0Likes
Like

Posted 25 January 2013 - 11:27 PM

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






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS