Click here to Skip to main content
15,911,531 members
Home / Discussions / C#
   

C#

 
Questionweb develpoment Pin
elazor15-Apr-09 9:46
elazor15-Apr-09 9:46 
AnswerRe: web develpoment Pin
buachaill cliste15-Apr-09 10:02
buachaill cliste15-Apr-09 10:02 
GeneralRe: web develpoment Pin
elazor15-Apr-09 19:14
elazor15-Apr-09 19:14 
QuestionSpreadsheet COM in window form application Pin
Binqing15-Apr-09 8:47
Binqing15-Apr-09 8:47 
AnswerRe: Spreadsheet COM in window form application Pin
buachaill cliste15-Apr-09 10:40
buachaill cliste15-Apr-09 10:40 
GeneralRe: Spreadsheet COM in window form application Pin
Binqing15-Apr-09 11:01
Binqing15-Apr-09 11:01 
QuestionCreating a DataTable with the data from an SQL SELECT statement Pin
stonebergftw15-Apr-09 8:31
stonebergftw15-Apr-09 8:31 
AnswerRe: Creating a DataTable with the data from an SQL SELECT statement Pin
PIEBALDconsult15-Apr-09 10:17
mvePIEBALDconsult15-Apr-09 10:17 
GeneralRe: Creating a DataTable with the data from an SQL SELECT statement Pin
stonebergftw15-Apr-09 11:02
stonebergftw15-Apr-09 11:02 
GeneralRe: Creating a DataTable with the data from an SQL SELECT statement Pin
PIEBALDconsult16-Apr-09 6:59
mvePIEBALDconsult16-Apr-09 6:59 
QuestionMultithreaded remoting in C# Pin
NickoT15-Apr-09 7:46
NickoT15-Apr-09 7:46 
AnswerRe: Multithreaded remoting in C# [modified] Pin
DaveyM6915-Apr-09 9:45
professionalDaveyM6915-Apr-09 9:45 
Questiongetting a handle to an embedded flash movie inside a webbrowser Pin
jeanbern15-Apr-09 7:00
jeanbern15-Apr-09 7:00 
QuestionCannot connect to SQL Server 2005 Pin
arimao15-Apr-09 6:38
arimao15-Apr-09 6:38 
AnswerRe: Cannot connect to SQL Server 2005 Pin
stonebergftw15-Apr-09 8:54
stonebergftw15-Apr-09 8:54 
GeneralRe: Cannot connect to SQL Server 2005 Pin
arimao15-Apr-09 9:14
arimao15-Apr-09 9:14 
GeneralRe: Cannot connect to SQL Server 2005 Pin
stonebergftw15-Apr-09 10:32
stonebergftw15-Apr-09 10:32 
QuestionHow to Scan Remote PC For UDP Open & Closed Ports? Pin
alparody15-Apr-09 6:34
alparody15-Apr-09 6:34 
QuestionInvoking a WMI method on a Remote Machine Pin
bbranded15-Apr-09 6:05
bbranded15-Apr-09 6:05 
AnswerRe: Invoking a WMI method on a Remote Machine Pin
bbranded15-Apr-09 8:22
bbranded15-Apr-09 8:22 
Questionsynchronous and asynchronous communication Pin
yesu prakash15-Apr-09 5:52
yesu prakash15-Apr-09 5:52 
AnswerRe: synchronous and asynchronous communication Pin
0x3c015-Apr-09 6:29
0x3c015-Apr-09 6:29 
GeneralRe: synchronous and asynchronous communication Pin
yesu prakash15-Apr-09 18:08
yesu prakash15-Apr-09 18:08 
QuestionProblem in disabling close button(X) of window. Pin
priyamtheone15-Apr-09 5:25
priyamtheone15-Apr-09 5:25 
Hi,
I am trying to work on an application that disables the close button (X) on the upper right hand corner of a window. In order to do that I need to use calls to API methods like GetSystemMenu, EnableMenuItem and RemoveMenu. I can figure out how these methods work but there are certain parameters that these methods have whose values that need to be passed to them as argument is unknown to me. How can I know them.

E.G.- for EnableMenuItem, the parameters are- hMenu (handle to the menu), uIDEnableItem (The menu item to be enabled, disabled, or grayed), uEnable (This parameter must be a combination of at least two of the following:
MF_BYCOMMAND or MF_BYPOSITION
MF_ENABLED, MF_DISABLED, or MF_GRAYED)

Now when I call this method from my application I supply the current window handle as the first argument, the item no. to be disabled/enabled as the second argument but I CAN'T UNDERSTAND WHAT TO SEND AS THE THIRD ARGUMENT. What exactly are the possible values for those parameters- MF_BYCOMMAND or MF_DISABLED. I checked certain examples where they are supplying hexadecimal values like &HF060, &H1, 0x400, 0x1000, 0x2 etc. or integer values like 1024, 2 etc. But how would I know what exactly these values are and when to use which value. The same problem arises in case of calling RemoveMenu method. If you know about any chart or tutorial that lists the values of these parameters then plz refer. Waiting for your help. Thanks.
AnswerRe: Problem in disabling close button(X) of window. [modified] Pin
DaveyM6915-Apr-09 5:31
professionalDaveyM6915-Apr-09 5:31 

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.