How to change display settings without calling Win32 API functions in VB.NET.

How to change display settings without calling Win32 API functions in VB.NET.

Post by Maohulih » Thu, 29 Aug 2002 16:43:43



How to change display settings without calling Win32 API
functions in VB.NET.
 
 
 

How to change display settings without calling Win32 API functions in VB.NET.

Post by Sandi - Microsoft MV » Thu, 29 Aug 2002 16:52:28




Quote:> How to change display settings without calling Win32 API
> functions in VB.NET.

As is becoming far too common since the inception of
communities.microsoft.com, the question you are asking is not relevant to
this newsgroup, but more importantly it is doubtful you will find anybody
in this group that will be able to answer your question.

Please repost to a newsgroup relevant to the software you are using.

--
Hyperlinks are used to ensure advice is current.
________________________________________
Sandi Hardmeier
Microsoft MVP (Internet Explorer and Outlook Express)
http://www.mvps.org/inetexplorer
Full list of Microsoft MVPs:
http://support.microsoft.com/default.aspx?scid=fh;EN-US;mvpawardintro

 
 
 

1. Solutiion: Calling WIN32 API Functions

Thanks to all the people who responded to my call for help.

When calling the MessageBoxA external function it is important to include
the 4096 style value. This ensures that all other Windows applications are
inaccessible until the message box is displayed and the user responds.

________________________________________________________________
ROUTINE MessageBoxA
   MODULE=USER32
   MINARG=4
   MAXARG=4
   STACKPOP=called
   RETURNS=short ;
   ARG 1 input num  format=pib4. byvalue;
   ARG 2 input char format=$cstr200.;
   ARG 3 input char format=$cstr200.;
   ARG 4 input num  format=pib4. byvalue;

and this SCL code fragment
      text = 'Export schon ge?ffnet';

      style=4096+48+0;

      rc = MODULEN('*e','MessageBoxA',0,text,'Problem', style);
__________________________________________________________________
(code courtesy of Andreas Grueninger)

Tony Romeo

AXA Australia, ISG - Data Services


---------------------- Forwarded by Tony Romeo/MEL/NMLA/NMH on 06/12/2000
02:11 pm ---------------------------

Tony Romeo/MEL/NMLA/NMH
01/12/2000 07:17 pm


cc:
Subject:  Calling WIN32 API Functions

I have an SAS/AF application written in Frame/SCL running on Windows 95
which makes use of the WIN32 API function to display a message box (with
the OK and CANCEL buttons).

Under SAS 6.12 the message box would display correctly but under SAS 8.1
the message box is not given the focus (ie. you need to minimize the SAS
application so that the message box becomes visible).

Has anyone had similar problems?

Thanks in advance,

Tony Romeo

AXA Australia, ISG - Data Services


**********************************************************************
Important Note
This email (including any attachments) contains information which is
confidential and may be subject to legal privilege.  If you are not
the intended recipient you must not use, distribute or copy this
email.  If you have received this email in error please notify the
sender immediately and delete this email. Any views expressed in this
email are not necessarily the views of AXA.   Thank you.
**********************************************************************

2. Where can I report bugs about Notes.

3. Calling WIN32 API Functions

4. TI COFF File Format

5. any API described to use Berkeley DB within VB/VB.NET like languages?

6. Factory methods

7. Call External and Win32 API dll's Subroutine calls

8. Again utf transformation problem

9. Very Hot Requirement For : ASP.NET developer with VB.NET

10. Retriving User Accounts from ADSI using ASP.net with VB.net

11. Web Dev using VB.net / ASP.NET 70-305

12. REQ :SR VB.NET/ VB 6.0 Front End Dev

13. Win32 API Functions