URGENT - VB.NET CODE FOR FULL SCREEN ON WINDOWS CE.NET 4.2

M

Mobile Boy 36

I had a full screen program that worked well on CE 4.0.
On CE 4.2 it doesn't work any more! The code doesn't occur exceptions but
the user is able to use the taskbar.
This was my code working well on CE 4.0.

Private Sub HideTaskBar()
hTaskBar = FindWindow("HHTaskBar", String.Empty)
Dim b As Boolean = ShowWindow(hTaskBar, SW_HIDE)
'b comes up false
Me.WindowState = FormWindowState.Maximized
End Sub

What do I have to change to get it working on a CE 4.2 device?
 
C

Chris Tacke, eMVP

First DO NOT USE ALL CAPS and don't use the word 'Urgent'. To you I'm sure
it's an urgent issue, but I'm willing to bet that just about everyone feels
that way about their own questions. As a general rule I refuse to answer
questions marked urgent becasue the author somehow feels they're more
important than the rest of posters.

Second, if it's working on 4.1 and not 4.2, then intuitively I would think
that there must be some difference between the two platforms. Since the
code is pretty basic, I would be inclined to think that FindWindow can't
find the "HHTaskBar" window. Using basic error checking would confirm that,
so there's a good first action item.

If it's not finding it, then it's likely becasue it doesn't exist. The look
and feel of the default taskbar changed from 4.1 to 4.2, so it wouldn't
surprise me if the window name also changed. Remote Spy++ will show the
window names of everything running on the device, so action item 2 would be
to use the tools available to investigate.

If after doing that due diligence it still fails, then providing us with the
error codes that the system returns on the FindWindow failure and the
ShowWindow failure would be useful.
 
C

chora

Just to extend the first paragraph Chris wrote, with which I totally
agree, there must be a code of "polite" behaviour when using user forums
so all of us spend less time and get more results.

First of all, I beleive, before posting a question please check for
similar requests. Many times I see postings that are answerd a few lines
below.

Try not to contact someone directly, not because you can annoy him, but
simply because many other people can benefit from the discussion.

Finally post a word of thanks to the person who took the time to respond
to your request, and notify the newsgroup if the solution given worked.
It is the minimum you can do. I see too many postings with several
replies and the original poster never comes back. To say at least, " OK
I figured it out myself " or "nothing worked". He doesn't even bother.
And this is annoying! (see no caps!)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top