Click here to Skip to main content
15,926,703 members
Home / Discussions / C#
   

C#

 
QuestionUndo and Redo in c# Pin
hiremath7121-Mar-07 4:21
hiremath7121-Mar-07 4:21 
AnswerRe: Undo and Redo in c# Pin
Bekjong21-Mar-07 4:32
Bekjong21-Mar-07 4:32 
AnswerRe: Undo and Redo in c# [modified] Pin
joon vh.21-Mar-07 4:33
joon vh.21-Mar-07 4:33 
GeneralRe: Undo and Redo in c# Pin
hiremath7121-Mar-07 18:54
hiremath7121-Mar-07 18:54 
AnswerRe: Undo and Redo in c# Pin
Pete O'Hanlon21-Mar-07 4:34
mvePete O'Hanlon21-Mar-07 4:34 
GeneralRe: Undo and Redo in c# Pin
hiremath7121-Mar-07 18:55
hiremath7121-Mar-07 18:55 
AnswerRe: Undo and Redo in c# Pin
JoeSharp21-Mar-07 4:34
JoeSharp21-Mar-07 4:34 
AnswerRe: Undo and Redo in c# Pin
Stefan Troschuetz21-Mar-07 4:35
Stefan Troschuetz21-Mar-07 4:35 
AnswerRe: Undo and Redo in c# Pin
joon vh.21-Mar-07 4:44
joon vh.21-Mar-07 4:44 
GeneralRe: Undo and Redo in c# Pin
hiremath7121-Mar-07 18:57
hiremath7121-Mar-07 18:57 
Questioninstallation Pin
sreerajknair21-Mar-07 3:58
sreerajknair21-Mar-07 3:58 
Questionwav to mp3 without lame Pin
sreerajknair21-Mar-07 3:50
sreerajknair21-Mar-07 3:50 
AnswerRe: wav to mp3 without lame Pin
Russell'21-Mar-07 4:00
Russell'21-Mar-07 4:00 
AnswerRe: wav to mp3 without lame Pin
Dan Neely21-Mar-07 4:07
Dan Neely21-Mar-07 4:07 
QuestionRelate webcontrol to sister control in page Pin
Matglas21-Mar-07 3:45
Matglas21-Mar-07 3:45 
QuestionEvent,Click Pin
abalfazl21-Mar-07 3:43
abalfazl21-Mar-07 3:43 
AnswerRe: Event,Click Pin
joon vh.21-Mar-07 4:51
joon vh.21-Mar-07 4:51 
AnswerRe: Event,Click Pin
abalfazl21-Mar-07 9:27
abalfazl21-Mar-07 9:27 
QuestionHow to use Multicoloms In ListBox Pin
pashitech21-Mar-07 3:29
pashitech21-Mar-07 3:29 
AnswerRe: How to use Multicoloms In ListBox Pin
Laxman Auti21-Mar-07 4:27
Laxman Auti21-Mar-07 4:27 
QuestionSPI_SETWORKAREA Problems Pin
AndyBob21-Mar-07 3:26
AndyBob21-Mar-07 3:26 
Hi everyone. I'm trying to use SPI_SETWORKAREA to reserve some space down the side of the screen for my application.

Everything works fine as far as other applications go (the space is reserved so that a maximised window doesn't cover the area, for example) but the desktop itself isn't affected. That is to say, icons on the traditional Windows desktop don't obey the new work area, meaning half of them end up underneath my window.

The code I'm using is as follows:
{
        RECT R;

        R.Left = 300;
        R.Top = 0;
        R.Right = Screen.PrimaryScreen.WorkingArea.Right;
        R.Bottom = Screen.PrimaryScreen.WorkingArea.Bottom;

        IntPtr p;
        p = Marshal.AllocHGlobal(Marshal.SizeOf(R));
        Marshal.StructureToPtr(R, p, false);

        SystemParametersInfo(SPI_SETWORKAREA, 0, p, 0);
        int ret = Marshal.GetLastWin32Error();
}


    RECT OriginalScreen;
    public struct RECT
    {
        public int Left;
        public int Top;
        public int Right;
        public int Bottom;
    }

I know I can achieve all of this (including resizing the desktop icon area) by creating an AppBar, but would rather use the SETWORKAREA if possible. Has anyone got any suggestions? I'm running this on Vista if that makes any difference. Thanks in advance!
GeneralLayout Pin
V.21-Mar-07 2:52
professionalV.21-Mar-07 2:52 
GeneralRe: Layout Pin
Laxman Auti21-Mar-07 3:18
Laxman Auti21-Mar-07 3:18 
GeneralRe: Layout Pin
V.21-Mar-07 4:35
professionalV.21-Mar-07 4:35 
GeneralRe: Layout Pin
Laxman Auti21-Mar-07 5:01
Laxman Auti21-Mar-07 5: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.