Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Transparency Pin
MrEyes11-Nov-02 3:35
MrEyes11-Nov-02 3:35 
GeneralRe: Transparency Pin
MrEyes11-Nov-02 4:03
MrEyes11-Nov-02 4:03 
GeneralRe: How do i find if user clik "ok" on my Modal Dialog? Pin
perlmunger8-Nov-02 4:24
perlmunger8-Nov-02 4:24 
GeneralRecomended Data Store... Pin
Steve McLenithan8-Nov-02 2:32
Steve McLenithan8-Nov-02 2:32 
GeneralRe: Recomended Data Store... Pin
perlmunger8-Nov-02 5:20
perlmunger8-Nov-02 5:20 
GeneralRe: Recomended Data Store... Pin
Paul Watson8-Nov-02 6:54
sitebuilderPaul Watson8-Nov-02 6:54 
GeneralRe: Recomended Data Store... Pin
Steve McLenithan8-Nov-02 12:00
Steve McLenithan8-Nov-02 12:00 
GeneralNeed Help!!! C# Interfaces and C++ Classes Pin
Chris Powers8-Nov-02 1:51
Chris Powers8-Nov-02 1:51 
QuestionHow do i find if user clik "ok" on my Modal Dialog? Pin
Karavaev Denis8-Nov-02 0:54
Karavaev Denis8-Nov-02 0:54 
AnswerRe: How do i find if user clik "ok" on my Modal Dialog? Pin
Chad Smith8-Nov-02 3:30
professionalChad Smith8-Nov-02 3:30 
GeneralRe: How do i find if user clik "ok" on my Modal Dialog? Pin
Karavaev Denis8-Nov-02 3:46
Karavaev Denis8-Nov-02 3:46 
GeneralScroll Listbox with API Pin
CristianRicciolo7-Nov-02 23:32
CristianRicciolo7-Nov-02 23:32 
GeneralComponent based programming in C# (newbie!) Pin
AaronStibich7-Nov-02 16:41
AaronStibich7-Nov-02 16:41 
GeneralRe: Component based programming in C# (newbie!) Pin
Nick Parker7-Nov-02 17:44
protectorNick Parker7-Nov-02 17:44 
GeneralRe: Component based programming in C# (newbie!) Pin
Stephane Rodriguez.7-Nov-02 19:11
Stephane Rodriguez.7-Nov-02 19:11 
GeneralRe: Component based programming in C# (newbie!) Pin
Nick Parker8-Nov-02 1:54
protectorNick Parker8-Nov-02 1:54 

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.