I'm new to VB.Net so please bear with me. OK, I have placed buttons and other items on my form and the program works fine except that if the window is moved around the background shows through at the top of the buttons just near the outer line and below on a label. It looks as if the button has a 'Dirty Mark' on it and when you move the window around so this mark moves.
At this stage the button and label have their default settings but even if I change the Back Color the problem still exists and I cannot seem to clear it.
I'm having trouble visualizing this problem. Could you provide some pictures? Have you tried messing around with the styles properties of these controls?
Sorry mate, I have just spent some 20 minutes trying to get a screen capture without success, so I'll try and explain it more clearly.
When I place a button on the form it has a gradient backcolor called Control and each button has a border. Inside the border is a 1 pixel wide clear area the acts like a window and you can just see what is behind. This only appears when you run the program, so when you move the form around this area alters as you pass over what ever is behind the form on the screen.
you are evidently running vista. Aero glass works by the theme using a set color as a transparency and the glass is drawn over that part. Well guess what? If your gradient happens to contain that color, that particular spot the color exists will become transparent as well.
Yes, the all incompassing VISTA. Sorry I should have made that clear first up. I take it that there is nothing that can be done at this stage. I'll try and test my program on a non Vista machine and see if the problem still exists.
As I mentioned first up, I'm new to VB.Net and am just going through the basic program codes just to get a better feel of the new environment and the changes. I must say that I like the clean look of it so far. OK, here is the simple calculator program which I'm trying to send as a *.rar zipped format.
Best Rgds,
Tarablue
Last edited by Tarablue; Jan 1st, 2008 at 10:52 PM.
If you zipped it then it would be a ZIP file. It's a RAR file, so you rarred it. Zipping does not just mean compressing; it means compressing to ZIP format. That said, WinZip 11 does support RAR format. If you want the widest audience then use the most common format, which is ZIP for compression. Every Windows user can unzip a file even if they haven't installed any third-party software, so it makes sense to use the ZIP format unless you know your audience can unrar.
If you're going to start dictating what software other members should have installed on their systems then you're not going to get much help. It's up to you to make the effort if you want us to help you. If it's too much trouble for you then it's probably too much trouble for us too.
It was not my intention to dictate anything to anyone, it was just that I had Win Rar installed on my computer and when I had finished it came up as a zip file.
I look around for a copy of Win Zipp and try again.
Seems its missing some files still. The MyProject folder is empty
Error 1 Resource file "My Project\Resources.resx" cannot be found. MathCalculator
Error 2 Unable to open module file 'C:\DeleteMe\MathCalculator\My Project\Application.Designer.vb': The system cannot find the file specified. C:\DeleteMe\MathCalculator\My Project\Application.Designer.vb 1 1 MathCalculator
Error 3 Unable to open module file 'C:\DeleteMe\MathCalculator\My Project\AssemblyInfo.vb': The system cannot find the file specified. C:\DeleteMe\MathCalculator\My Project\AssemblyInfo.vb 1 1 MathCalculator
Error 4 Unable to open module file 'C:\DeleteMe\MathCalculator\My Project\Resources.Designer.vb': The system cannot find the file specified. C:\DeleteMe\MathCalculator\My Project\Resources.Designer.vb 1 1 MathCalculator
Error 5 Unable to open module file 'C:\DeleteMe\MathCalculator\My Project\Settings.Designer.vb': The system cannot find the file specified. C:\DeleteMe\MathCalculator\My Project\Settings.Designer.vb 1 1 MathCalculator
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Well hes got resource file and to be sure whats going on you really need everything as he has it. Anyone can take a single file and say its working but it wont be a true test.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
You don't need to install the program on a different system to see if the problem still exists. All you need to do is temporarily change the theme on your own system to somethings besides Aero Glass.
And Aero Glass isn't the only thing that does transparency this way. Overlays work the same way.
Boy have I started something, and this is my first posting in VB.Net - which seems to sound an onimous bell, don't you think.
OK, I have zipped the files that were in the main folder together with those from the My Project folder, so I hope all the required files are there.
So far as Aero Glass in comcerned, I changed the theme to Classic Windows and that only highlighted the problem even more.
I went back and started a new project and added some buttons, just as I did before - no changes, and when I ran it there was no problem, so I'm completely baffled as to why it should play up on the original.
I'll go right back to the start of this test program and document/test everything I do in an attempt to try and nail down when the problem arises, if it ever does again.
I'm sorry to have caused so much trouble on my first visit.
Boy have I started something, and this is my first posting in VB.Net - which seems to sound an onimous bell, don't you think.
OK, I have zipped the files that were in the main folder together with those from the My Project folder, so I hope all the required files are there.
So far as Aero Glass in comcerned, I changed the theme to Classic Windows and that only highlighted the problem even more.
I went back and started a new project and added some buttons, just as I did before - no changes, and when I ran it there was no problem, so I'm completely baffled as to why it should play up on the original.
I'll go right back to the start of this test program and document/test everything I do in an attempt to try and nail down when the problem arises, if it ever does again.
I'm sorry to have caused so much trouble on my first visit.
Best Rgds,
Tarablue
Here's the same zip file, but with all the files in the correct folders within the zip file (he zipped all the files, but with no folder structure intact)
I also ran this in WinXP Pro w/ SP2, the transparency problem with the text in the title bar and around all the buttons exists in XP too
Last edited by JuggaloBrotha; Jun 30th, 2010 at 03:00 PM.
Currently using VS 2015 Enterprise on Win10 Enterprise x64.
The only thing I can see so far is that you need to change the FlatStyle property to "System" in order to have the actual AeroGlass theming applied. Otherwise what is the transparency issue?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Found the problem. You have the TransparencyKey property of the Form set to White. Right click on the property and click "Reset". This will fix all your transparency issues under all themes.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Hooray, at least you can now see the problem. It's the little bit around each button that has this little bit of transparency which allows the background to show through. If you had a Word document full of text lines when you run my little program and start to move it around you will see little bits showing through and moving as you move the program window around - BUT what's the answer?
So far on my new attempt at this program nothing is going wrong. It's taking a while because at every little thing I do I'm running the program in an attempt to nail down the cause.
You guys are just to quick for me. I'll go back to the original and have a look at that. As usual, what seems to be a major problem turns out to have such a simple answer.
You can all relax now - thank you all for your input and assistance.