How can I hide the windows's title bar?

F

flik

my problem is hiding the window title.

i've tried everything (setting the properties within the IDE and within
the code), but each time i open a form in the code (form_name.show) the
window title flicker for a second.
after that it is gone and you do not see it - but it is annoying.

so how can i hide the window's titlebar, so that it doesn't "pop up"
when opening the form...

(i am using .net cf 2.0 and vb 2005.
the application runs on windows mobile 5)


thanks

flik
 
L

Lonifasiko

Hi,
I understand your forms are in Maximized mode, with ControlBox property
set to false.

If so, I'm suffering same problems as yours, specially when closing
more than one opened form. Here I go:
My user usually opens 4/5 forms with ShowDialog(), and in the final
form, when user hits "Save", I must close all previous forms except the
first one. I use DialogResult in order to close previous forms.

Anyway, this multiple forms closing is not very inmediate and I'm able
to see Windows title bar flickering for a while. As you say, it's
really annoying to see that hellish blue bar in the screen for a
second.

Could be because of insufficient memory?

I would really appreciate any help on this.

Thanks very much.
 
B

Brian Nantz

I don't think you can do this in the CF. You have to drop to the C++
Unmanaged SDK for this. You may be able to P/Invoke that SDK though??
 
L

Lonifasiko

Hi,
From your words, I understand we're talking about quite a common
problem in CF applications. And nobody says nothing? It's horrible for
the end user!

Then P/invoking would make Windows Title bar not to flicker any more?
What functions should I P/invoke then? Could you explain yourself a
little deeper please?

Thanks very much.
 
F

flik

thanks for your reply.

but i have already found a solution i have worked out.
that's why i tried to remove the thread from the ng..



Public Shared Sub HideTaskBar()
Dim taskWindow As IntPtr = FindWindow("HHTaskBar", Nothing)
If Not taskWindow = IntPtr.Zero Then

'SWP_NOZORDER = &H4
SetWindowPos(taskWindow, IntPtr.Zero, 0, 0, 0, 0, &H4)
End If

End Sub
 

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