Click here to Skip to main content
15,908,166 members
Home / Discussions / C#
   

C#

 
GeneralRe: DataGrid Turning Off Row Headers Pin
MarkMokris27-Sep-04 15:54
MarkMokris27-Sep-04 15:54 
GeneralRe: DataGrid Turning Off Row Headers Pin
sreejith ss nair27-Sep-04 21:03
sreejith ss nair27-Sep-04 21:03 
GeneralRE: Passing Dataset Pin
pj_twitch27-Sep-04 10:07
pj_twitch27-Sep-04 10:07 
GeneralRe: RE: Passing Dataset Pin
sreejith ss nair27-Sep-04 21:08
sreejith ss nair27-Sep-04 21:08 
GeneralRE: Passing Dataset Pin
pj_twitch27-Sep-04 10:05
pj_twitch27-Sep-04 10:05 
GeneralPasting Copied Files into C# .NET App Pin
McClamm27-Sep-04 9:36
McClamm27-Sep-04 9:36 
GeneralRe: Pasting Copied Files into C# .NET App Pin
McClamm27-Sep-04 11:40
McClamm27-Sep-04 11:40 
GeneralForm Transparency Issues Pin
othell27-Sep-04 9:29
othell27-Sep-04 9:29 
Recently I wanted to create a small little program that could sit on the desktop and not block the desktop wallpaper. There are two methods to accomplish this ( that I am aware of ).

1) create a solid color bmp as a background image and set the transparency key to match its color
2) specify the form's background color with a matching transparency key

Now my issues with both methods, but first it should be known that I have set the forms to have no border or title bar and have implemented code that allows me to click-and-hold anywhere ( with exceptions listed below ) on the form and move it. The data actually displayed on the form is just text and one rectangle, all drawn by me ( there are no controls on the form itself ).

1) I have two issues with this method, although it is what I'm prefering to use at the moment. The first seems to be the discrepancy between how the program is handled when the computer's Color Depth is 32bit or when it is less than 32bit ( 16bit ). When the color depth is 32bit then I am able to click on the entire area the form inhabits ( even that which is transparent ) and move it, but if the color depth is less than 32bit ( 16bit ) then only the drawn text or rectangle outline ( since it has no fill ) can be clicked to drag the program around. Clicking on the transparent areas just passes the click through the form to whatever is below ( even when I know the form has focus ). I'd like to be able, regardless of the desktop's color depth, to click anywhere within the form area and move the application.

The second issue I have with this method occurs when I take my executable and put it on another PC ( my PC is XP Pro, the other PC is XP Home.. Both SP2 ). The problem is similar, but a little different. When the 2nd PC's color depth is at 32bit, the transparency does not work. The green/lime ( that's the transparent color I'm using ) background shows. Needless to say this is not acceptable. When I change the color depth to less than 32bit ( 24bit this time ), the transparency actually works, but I come across the same issue of clicks on the transparent areas just passing through.

2) With this method I have not tried it on a 2nd PC yet ( I don't have it available where I am atm ). Its basically the same "issue" as mentioned above with color depth less than 32bit, except it does it with a color depth of 32bit and 16bit. Clicks on the transparent areas just pass right through. I'm tempted to just go with this method and possibly make one area on the form that is meant to be used to drag it around ( similar to the idea of the box that appears to move tables in MS Word ), but I'm hoping there's a solution I'm unaware of before I do that.

Anyways, all of this brings up some interesting questions.

-What does color depth have to do with transparency handling?
-Does the version of XP ( Home or Pro ) handle transparency differently?

Probably some more questions also.

Not sure if it matters, but I'm doing all of this in C#.

So any ideas to get pass any of these issues?

Thanks in advance.
QuestionDatagrid Secrets?????????? Pin
Neko0327-Sep-04 9:01
Neko0327-Sep-04 9:01 
AnswerRe: Datagrid Secrets?????????? Pin
MarkMokris27-Sep-04 10:07
MarkMokris27-Sep-04 10:07 
GeneralRe: Datagrid Secrets?????????? Pin
Judah Gabriel Himango27-Sep-04 10:17
sponsorJudah Gabriel Himango27-Sep-04 10:17 
QuestionHow can I get the Physical IP on client server App ??? Pin
Ahmed Mihaimeed27-Sep-04 7:41
Ahmed Mihaimeed27-Sep-04 7:41 
Questionhow to create outlook 2003 type colors? Pin
vista2727-Sep-04 7:18
vista2727-Sep-04 7:18 
AnswerRe: how to create outlook 2003 type colors? Pin
McClamm27-Sep-04 10:07
McClamm27-Sep-04 10:07 
GeneralRe: how to create outlook 2003 type colors? Pin
vista2727-Sep-04 10:41
vista2727-Sep-04 10:41 
GeneralRe: how to create outlook 2003 type colors? Pin
McClamm27-Sep-04 11:02
McClamm27-Sep-04 11:02 
QuestionHow to configure visual studio for debugging in https(ssl) mode a WebApplication in c#? Pin
zoltix27-Sep-04 5:02
zoltix27-Sep-04 5:02 
GeneralGetting Rid of Asterisk Row in DataGrid Pin
MarkMokris27-Sep-04 2:00
MarkMokris27-Sep-04 2:00 
GeneralRe: Getting Rid of Asterisk Row in DataGrid Pin
RoyClem27-Sep-04 2:36
RoyClem27-Sep-04 2:36 
GeneralRe: Getting Rid of Asterisk Row in DataGrid Pin
MarkMokris27-Sep-04 2:54
MarkMokris27-Sep-04 2:54 
GeneralRe: Getting Rid of Asterisk Row in DataGrid Pin
MarkMokris27-Sep-04 3:45
MarkMokris27-Sep-04 3:45 
GeneralRe: Getting Rid of Asterisk Row in DataGrid Pin
the last free name27-Sep-04 6:00
the last free name27-Sep-04 6:00 
GeneralRe: Getting Rid of Asterisk Row in DataGrid Pin
MarkMokris27-Sep-04 7:18
MarkMokris27-Sep-04 7:18 
GeneralMAPI in C# Pin
Ashutosh j27-Sep-04 1:09
Ashutosh j27-Sep-04 1:09 
GeneralRe: MAPI in C# Pin
sreejith ss nair27-Sep-04 3:01
sreejith ss nair27-Sep-04 3:01 

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.