Groups | Blog | Home
all groups > vb.net controls > february 2004 >

vb.net controls : Borderles Forms


Dino Buljubasic
2/13/2004 6:36:13 PM
Hi,

I am using borderless forms thrughout my project and becouse of that I
have to manage on my own moving, closing etc of each borderless form.

Since the forms don't have title bar anymore, I have to provide my own
title and also application icon which I do.

My quistion is how can I make the icon show in the status bar for my
borderless form?

hirf-spam-me-here NO[at]SPAM gmx.at
2/15/2004 10:14:21 PM
* Dino Buljubasic <dino@noplacelikehome.com> scripsit:
[quoted text, click to view]

Status bar? Are you talking about the title bar?

--
Herfried K. Wagner [MVP]
Dino Buljubasic
2/16/2004 11:36:34 PM

Sorry, I ment task bar. I'd like when I minimize my form, that its
title and the form icon be displayed in the minimized form in the task
bar like it is when the form has its border.

On 15 Feb 2004 22:14:21 +0100, hirf-spam-me-here@gmx.at (Herfried K.
[quoted text, click to view]
hirf-spam-me-here NO[at]SPAM gmx.at
2/17/2004 1:26:43 AM
* Dino Buljubasic <dino@noplacelikehome.com> scripsit:
[quoted text, click to view]

That works for me when the form's 'ShowInTaskbar' property is set to
'True'.

--
Herfried K. Wagner [MVP]
Dino Buljubasic
2/17/2004 3:54:29 PM

Is your form borderless? Do you have a title bar in your form?

For me, it works fine when I have normal form with borders and title
bar, but when I remove border (FormBorderStyle = None), then it does
not work anymore. the form title is still displayed but the icon is
not. I'd like to know how to display the icon in the minimized form
on the task bar when the form does not have borders.

Thanks


On 17 Feb 2004 01:26:43 +0100, hirf-spam-me-here@gmx.at (Herfried K.
[quoted text, click to view]
Dino Buljubasic
2/17/2004 6:15:58 PM

ok,maybe some of my form's properties are not set properly :)

here are the properties of my form

FormBorderStyle = None
Icon = (location of icon)
Maximaze Box = False
Minimize Box = False
ShowInTaskbar = True
Text = "blah-blah"
WindowsState = Normal

I don't think any other property affects the form border or style but
please suggest.

As you can see, my Icon and Text properties are set but I can see only
Text property when my form is minimized. Any ideas why?

Regards,
Dino


On 17 Feb 2004 19:03:27 +0100, hirf-spam-me-here@gmx.at (Herfried K.
[quoted text, click to view]
Dino Buljubasic
2/17/2004 6:52:25 PM

Yes, but not the icon

On 17 Feb 2004 19:29:18 +0100, hirf-spam-me-here@gmx.at (Herfried K.
[quoted text, click to view]
Dino Buljubasic
2/17/2004 7:00:20 PM
Yes, it shows only text (form's title) but not the icon even though
the icon is set

On 17 Feb 2004 19:54:28 +0100, hirf-spam-me-here@gmx.at (Herfried K.
[quoted text, click to view]
hirf-spam-me-here NO[at]SPAM gmx.at
2/17/2004 7:03:27 PM
* Dino Buljubasic <dino@noplacelikehome.com> scripsit:
[quoted text, click to view]

My form is borderless and I do not have a titlebar on the form.

[quoted text, click to view]

Mhm... I am still not able to repro that.

--
Herfried K. Wagner [MVP]
hirf-spam-me-here NO[at]SPAM gmx.at
2/17/2004 7:29:18 PM
Dino,

* Dino Buljubasic <dino@noplacelikehome.com> scripsit:
[quoted text, click to view]

;-)

[quoted text, click to view]

I have set the same property values and it still works as expected.

[quoted text, click to view]

What do you mean by "see"? The text is shown in the taskbar button even
if the form is not minimized.

--
Herfried K. Wagner [MVP]
Dino Buljubasic
2/17/2004 7:48:42 PM
Thanks anyways :)

Strange isn't it. I don't understand why is the icon not displayed.
Anyways, thanks for the effort.

Dino :)


On 17 Feb 2004 20:06:39 +0100, hirf-spam-me-here@gmx.at (Herfried K.
[quoted text, click to view]
hirf-spam-me-here NO[at]SPAM gmx.at
2/17/2004 7:54:28 PM
* Dino Buljubasic <dino@noplacelikehome.com> scripsit:
[quoted text, click to view]

My form is showing the icon (on the taskbar button). Did you test it
with a blank project?

--
Herfried K. Wagner [MVP]
hirf-spam-me-here NO[at]SPAM gmx.at
2/17/2004 8:06:39 PM
* Dino Buljubasic <dino@noplacelikehome.com> scripsit:
[quoted text, click to view]

Mhm... I feel sorry, but I don't have any idea.

--
Herfried K. Wagner [MVP]
a
2/20/2004 6:38:15 PM
I had to design a borderless AND titlebar-less form - there was no way the
form would minimize to the taskbar and not lose it's window handle without
some text showing in the titlebar. Our solution was to pop up a very small
modal window and hide the main form - maybe something along those lines
would work for you.

Arth


[quoted text, click to view]

AddThis Social Bookmark Button