Re: hide taskbar

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Chris Tacke, eMVP (ctacke[at]OpenNETCF_dot_org)
Date: 08/11/04


Date: Wed, 11 Aug 2004 08:22:31 -0400

It's becasue your ShowIndow is using 64-bit Longs. Use 32-bit Integers or
System.Int32 for clarity

-Chris

"Brian H" <BrianH@discussions.microsoft.com> wrote in message
news:EE2F82D5-B8F4-4E36-8947-4C89563B300F@microsoft.com...
> Here is my code now:
>
> Private Declare Function FindWindow Lib "coredll" Alias "FindWindowW"
> (ByVal lpClassName As String, ByVal lpWindowName As String) As IntPtr
> Private Declare Function ShowWindow Lib "coredll" (ByVal hWnd As
IntPtr,
> ByVal nCmdShow As Long) As Long
>
> In the form load event I have:
>
> OurParent = FindWindow("HHTaskbar", String.Empty)
> ShowWindow(OurParent, 0)
>
> But now I get an error of NotSupportedException. Any idea what I am doing
> wrong?
> "Brian H" wrote:
>
> > I will adjust my code and give it a try. I will let you know what
happens.
> > If I have another error, I will redisplay my code.
> >
> > Thanks,
> > Brian
> >
> > "Peter Foot [MVP]" wrote:
> >
> > > Since Windows CE.NET is a fully Unicode OS you should use alias
FindWindowW
> > > for the P/Invoke declaration.
> > >
> > > Peter
> > >
> > > --
> > > Peter Foot
> > > Windows Embedded MVP
> > > www.inthehand.com
> > >
> > > Do have an opinion on the effectiveness of Microsoft Windows Mobile
and
> > > Embedded newsgroups? Let us know!
> > > https://www.windowsembeddedeval.com/community/newsgroups
> > >
> > > "Brian H" <Brian H@discussions.microsoft.com> wrote in message
> > > news:8B97B9EC-A9C3-49F1-9FAB-7842DFC80B4C@microsoft.com...
> > > >I am developing an application with VB .Net on a Win CE 4.1 Symbol
device.
> > > >I
> > > > am continuing to have a problem with some code. Here is what I am
using:
> > > >
> > > > Private Declare Function FindWindow Lib "coredll" Alias
"FindWindowA"
> > > > (ByVal lpClassName As String, ByVal lpWindowName As String) As
IntPtr
> > > > Private Declare Function ShowWindow Lib "coredll" (ByVal hWnd As
> > > > IntPtr,
> > > > ByVal nCmdShow As Long) As Long
> > > >
> > > > In the form load event...:
> > > >
> > > > dim OurParent as IntPtr
> > > >
> > > > OurParent = FindWindow("HHTaskbar", String.Empty)
> > > > ShowWindow(OurParent, 5)
> > > >
> > > > I am getting an error of MISSING METHOD EXCEPTION when findwindow is
> > > > called.
> > > > What am I doing wrong and what do I need to change?
> > > >
> > > > Thanks,
> > > > Brian
> > >
> > >
> > >



Relevant Pages

  • Re: Can this be "refactored"? A simple wrapper function to display MySQL data sets in tabular form
    ... to generate a string that is N times some component string, e.g., "-". ... Clarity of intention -- How easy is it to see what is being done? ... functional programming paradigm). ... FORMAT and LOOP have their places. ...
    (comp.lang.lisp)
  • Re: Append Query help
    ... Exagerated for clarity, that's ... the single quotes to the string. ... How do I add the single quotes to the VBA ... of textboxes, check boxes, and combo boxes as input. ...
    (microsoft.public.access.formscoding)
  • Re: Length of a string?
    ... separate statement, for clarity ... I guess there are languages where strings are structures, ... and % is used for structure member selection. ... They could have use .LENGTH.s for string length. ...
    (comp.lang.c)
  • Re: How to exclude a string using regexp pattern?
    ... data, if you are typing these in as Java source String literals, then you'll ... expressed in your XML ends up being implemented by the standard Java regexp ... if not then most/all regexp engines have some similar feature which you ... The regexp itself is also oversimplified (just for clarity -- or what passes ...
    (comp.lang.java.programmer)
  • Re: How to Detect when third part application releases my WorkBook
    ... Private Declare Function FindWindow _ ... (ByVal lpClassName As String, _ ... ByVal lpWindowName As String) As Long ... Sub Test() ...
    (microsoft.public.excel.programming)