Click here to Skip to main content
15,915,324 members
Home / Discussions / C#
   

C#

 
GeneralFileSize Pin
kavehdr8-Nov-02 12:08
kavehdr8-Nov-02 12:08 
GeneralRe: FileSize Pin
ian mariano8-Nov-02 20:03
ian mariano8-Nov-02 20:03 
GeneralC# determinism Pin
AaronStibich8-Nov-02 12:03
AaronStibich8-Nov-02 12:03 
QuestionAaarrrgggghhh what have I done??? Pin
LongRange.Shooter8-Nov-02 9:24
LongRange.Shooter8-Nov-02 9:24 
AnswerRe: Aaarrrgggghhh what have I done??? Pin
LongRange.Shooter8-Nov-02 9:41
LongRange.Shooter8-Nov-02 9:41 
GeneralHashtable Pin
afronaut8-Nov-02 6:57
afronaut8-Nov-02 6:57 
GeneralRe: Hashtable Pin
perlmunger8-Nov-02 7:19
perlmunger8-Nov-02 7:19 
GeneralRe: Hashtable Pin
afronaut8-Nov-02 8:51
afronaut8-Nov-02 8:51 
GeneralRe: Hashtable Pin
perlmunger8-Nov-02 9:22
perlmunger8-Nov-02 9:22 
GeneralRe: Hashtable Pin
afronaut8-Nov-02 9:52
afronaut8-Nov-02 9:52 
GeneralRe: Hashtable Pin
leppie8-Nov-02 12:48
leppie8-Nov-02 12:48 
GeneralRe: Hashtable Pin
John Fisher8-Nov-02 11:05
John Fisher8-Nov-02 11:05 
QuestionCan someone verify these assumptions on dialog boxes? Pin
LongRange.Shooter8-Nov-02 6:35
LongRange.Shooter8-Nov-02 6:35 
AnswerRe: Can someone verify these assumptions on dialog boxes? Pin
Daaron8-Nov-02 6:44
Daaron8-Nov-02 6:44 
GeneralRe: Can someone verify these assumptions on dialog boxes? Pin
LongRange.Shooter8-Nov-02 6:48
LongRange.Shooter8-Nov-02 6:48 
AnswerRe: Can someone verify these assumptions on dialog boxes? Pin
Richard Deeming8-Nov-02 6:53
mveRichard Deeming8-Nov-02 6:53 
AnswerRe: Can someone verify these assumptions on dialog boxes? Pin
James T. Johnson8-Nov-02 7:07
James T. Johnson8-Nov-02 7:07 
GeneralTransparency Pin
MrEyes8-Nov-02 6:14
MrEyes8-Nov-02 6:14 
GeneralRe: Transparency Pin
Paul Watson8-Nov-02 6:45
sitebuilderPaul Watson8-Nov-02 6:45 
GeneralRe: Transparency Pin
Andrew Lewis8-Nov-02 8:50
Andrew Lewis8-Nov-02 8:50 
GeneralRe: Transparency Pin
Paul Watson9-Nov-02 5:38
sitebuilderPaul Watson9-Nov-02 5:38 
Generalwin2k can show transparency too ... Pin
Karavaev Denis9-Nov-02 5:33
Karavaev Denis9-Nov-02 5:33 
GeneralRe: win2k can show transparency too ... Pin
Paul Watson9-Nov-02 5:38
sitebuilderPaul Watson9-Nov-02 5:38 
GeneralRe: Transparency Pin
MrEyes11-Nov-02 1:52
MrEyes11-Nov-02 1:52 
Thanks for the replies but unfortunatly they dont bring me any closer to an answer. The following is a summary of the test machines :

1) Win 2000 (SP2) - 1024*768 - 32bit color depth
2) Win XP - 1024*768 - 32bit color depth
3) Win 2000 (SP2) - 1024*768 - 32bit color depth
4) Win XP - 1024*768 - 32bit color depth

Now my form background transparency works fine on machines 1 & 2 but does not work on other two (2 & 3). I have also noticed that "opacity" works on all machines (i.e. setting the entire form to 25% opactity results in a "see through" form)

I have also tried using different image formats (i.e. gif) and also different transparency colors (current using fuschia (255,0,255) all to no avail.

I am 100% this is probably all being caused by some option I have missed, but if that is the case it isnt detailed in MSDN link above

Once again, thanks for the replies so far, any further suggestions would be greatly appreciated

PS. if anybody is interested enough, a copy of the VS .NET projects files can be found here (http://www.randomportal.com/shapedwindow.zip 256kb) - bear in mind this is a test application and is not "pretty"

PPS. Alternativly the following is the source code for the form (bear in mind that the image is held with a resx resource file). This code is also autogenerated by VS .NET, so one would assume that its correct, hmmmm

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace ShapedWindow
{
public class Form1 : System.Windows.Forms.Form {
private System.ComponentModel.Container components = null;

public Form1() {
InitializeComponent();
}

protected override void Dispose( bool disposing ) {
if( disposing ) {
if (components != null) {
components.Dispose();
}
}
base.Dispose( disposing );
}

private void InitializeComponent()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.BackgroundImage = ((System.Drawing.Bitmap)(resources.GetObject("$this.BackgroundImage")));
this.ClientSize = new System.Drawing.Size(229, 228);
this.Name = "Form1";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Form1";
this.TopMost = true;
this.TransparencyKey = System.Drawing.Color.Fuchsia;
}

[STAThread]
static void Main() {
Application.Run(new Form1());
}
}
}

GeneralRe: Transparency Pin
Paul Watson11-Nov-02 2:11
sitebuilderPaul Watson11-Nov-02 2:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.