Click here to Skip to main content
15,915,094 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionEnable the smart tag menu at run-time Pin
kaminem31-Aug-07 2:53
kaminem31-Aug-07 2:53 
AnswerRe: Enable the smart tag menu at run-time Pin
Christian Graus2-Sep-07 11:17
protectorChristian Graus2-Sep-07 11:17 
QuestionCinema Application Pin
1203b564230-Aug-07 15:30
1203b564230-Aug-07 15:30 
AnswerRe: Cinema Application Pin
Michael Sync30-Aug-07 20:18
Michael Sync30-Aug-07 20:18 
AnswerRe: Cinema Application Pin
Christian Graus2-Sep-07 10:29
protectorChristian Graus2-Sep-07 10:29 
GeneralRe: Cinema Application Pin
Vasudevan Deepak Kumar5-Sep-07 7:07
Vasudevan Deepak Kumar5-Sep-07 7:07 
QuestionFailed to identify calling batch script Pin
Jack Rong30-Aug-07 9:23
Jack Rong30-Aug-07 9:23 
QuestionPreventing Window Drags Pin
TyrionTheImp29-Aug-07 3:58
TyrionTheImp29-Aug-07 3:58 
Hi,

I`ve run into an interesting situation here.I created an AppBar
(as per the tuto :http://www.codeproject.com/csharp/csdoesshell3.asp) and am now trying to extend it by preventing any window from being anywhere within the Appbar`s reserved space.
The current implementation always keeps the AppBar as topmost on the z-order, but is it possible to stop a window drag operation from entering the AppBar area itself, or in general for any form`s area ?
One technique i tried was to use the ShellAPI function of SystemParametersInfo for GETWORKINGAREA & SETWORKINGAREA , but the trouble with this is that the "boundary" keeps varying i.e all the other windows are supposed to be confined to the reduced desktop working area but if u try to drag these windows they get progressively closer to my appbar(which is docked to the left edge of the screen). The code snippets are as below :

<br />
private const int SPIF_SENDWININICHANGE = 2;<br />
<br />
private const int SPIF_UPDATEINIFILE = 1;<br />
<br />
private const int SPIF_change = SPIF_SENDWININICHANGE;<br />
<br />
private const Int32 SPI_SETWORKAREA = 47;<br />
		<br />
public static int SetWorkspace(RECT workspaceRect)<br />
{<br />
<br />
        IntPtr ptr = IntPtr.Zero;<br />
        ptr = Marshal.AllocHGlobal(Marshal.SizeOf(workspaceRect));<br />
	Marshal.StructureToPtr(workspaceRect, ptr, true);<br />
	return UnmanagedMethods.SystemParametersInfo(  SPI_SETWORKAREA, <br />
                                                     Marshal.SizeOf(workspaceRect), <br />
                                                     ptr, SPIF_change);<br />
}<br />


1. Is there any setting via control panel that enables me to reduce the desktop area manually(coz that way , i can do registry changes at startup and let the system handle all the behind-the-scenes manipulation )
or
2.Is there any other alternative approach ?

thanks in advance Smile | :)
QuestionProblem debugging custom UserControls Pin
Luka Grabarevic28-Aug-07 21:48
Luka Grabarevic28-Aug-07 21:48 
QuestionHow to upload image and save in a database Pin
Kartik Rathi28-Aug-07 21:01
Kartik Rathi28-Aug-07 21:01 
AnswerRe: How to upload image and save in a database Pin
Michael Sync30-Aug-07 20:05
Michael Sync30-Aug-07 20:05 
GeneralRe: How to upload image and save in a database Pin
Kartik Rathi1-Sep-07 1:48
Kartik Rathi1-Sep-07 1:48 
GeneralRe: How to upload image and save in a database Pin
Michael Sync1-Sep-07 3:27
Michael Sync1-Sep-07 3:27 
QuestionHow to remove one line in the content of file Pin
thuannguyen28-Aug-07 19:23
thuannguyen28-Aug-07 19:23 
AnswerRe: How to remove one line in the content of file Pin
Christian Graus28-Aug-07 21:11
protectorChristian Graus28-Aug-07 21:11 
AnswerRe: How to remove one line in the content of file Pin
Paramhans Dubey29-Aug-07 20:20
professionalParamhans Dubey29-Aug-07 20:20 
Questionc+++ Pin
ellllllllie28-Aug-07 3:17
ellllllllie28-Aug-07 3:17 
AnswerRe: c+++ Pin
Colin Angus Mackay28-Aug-07 4:02
Colin Angus Mackay28-Aug-07 4:02 
GeneralRe: c+++ Pin
ellllllllie28-Aug-07 5:05
ellllllllie28-Aug-07 5:05 
QuestionC++ Pin
ellllllllie27-Aug-07 20:38
ellllllllie27-Aug-07 20:38 
AnswerRe: C++ Pin
Christian Graus28-Aug-07 21:10
protectorChristian Graus28-Aug-07 21:10 
QuestionWindows Forms Apperance Pin
PJ_1234526-Aug-07 20:53
PJ_1234526-Aug-07 20:53 
AnswerRe: Windows Forms Apperance Pin
Christian Graus2-Sep-07 11:26
protectorChristian Graus2-Sep-07 11:26 
Questionhow to get types of contols inside resx file Pin
ma7moud_7elmy26-Aug-07 10:58
ma7moud_7elmy26-Aug-07 10:58 
QuestionInfopath 2003 Pin
lavanya_satheesh23-Aug-07 2:22
lavanya_satheesh23-Aug-07 2:22 

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.