form border style question

C

Colin McGuire

Hi, is there a way to show a form without a titlebar (and therefore no
control box/minimize box/title etc) but still have it appear looking
like 3D?

The property FormBorderStyle to None - this gives no titlebar etc but
the form borders don't look 3D.

In case I haven't explained what I want well, I want a form that looks
like a button with no text (ie a form with the lovely 3D borders but
no titlebar etc).

Thank you
Colin
 
H

Herfried K. Wagner [MVP]

* (e-mail address removed) (Colin McGuire) scripsit:
Hi, is there a way to show a form without a titlebar (and therefore no
control box/minimize box/title etc) but still have it appear looking
like 3D?

The property FormBorderStyle to None - this gives no titlebar etc but
the form borders don't look 3D.

In case I haven't explained what I want well, I want a form that looks
like a button with no text (ie a form with the lovely 3D borders but
no titlebar etc).

Try to set its 'Text' property to "" and its 'ControlBox' property to 'False'.
 
C

Cor

Hi Collin,

A co production from HKW, Fergus and Cor
You have to paste this in a form, with one button on it.
\\\
Private Sub Form1_Load( _
ByVal sender As System.Object, _
ByVal e As System.EventArgs _
) Handles MyBase.Load
Dim g As New System.Drawing.Drawing2D.GraphicsPath()
g.AddString( _
"m", _
System.Drawing.FontFamily.GenericSansSerif, _
System.Drawing.FontStyle.Bold, _
100, _
New Point(0, 0), _
System.Drawing.StringFormat.GenericDefault _
)
Me.BackColor = Color.Red
Me.Region = New System.Drawing.Region(g)
g.dispose
End Sub
///
I hope this helps a little bit?
Cor
 
C

Cor

Hi Colin,

I did send a very old one, this is the coproduction HKW,Fergus,Cor.
So one form with a button on it.
\\\
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim g As New System.Drawing.Drawing2D.GraphicsPath
g.AddString( _
"Colin", _
System.Drawing.FontFamily.GenericSansSerif, _
System.Drawing.FontStyle.Bold, _
300, _
New Point(0, 0), _
System.Drawing.StringFormat.GenericDefault _
)
Me.BackColor = Color.Red
Me.Region = New System.Drawing.Region(g)
g.Dispose()
Me.AutoScaleBaseSize = New System.Drawing.Size(0, 0)
Me.ClientSize = New System.Drawing.Size(800, 800)
Button1.BackColor = System.Drawing.SystemColors.ActiveCaptionText
Button1.ForeColor = System.Drawing.Color.Red
Button1.Location = New System.Drawing.Point(70, 140)
Button1.Size = New System.Drawing.Size(20, 20)
Button1.Text = "X"
End Sub
Private Sub Button1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.Close()
End Sub
///
I hope this helps
Cor
 
F

Fergus Cooney

Hi Colin,

I know it's not what you asked, but ...

As an alternative, lookswise, trying putting a Panel on that no border
form and set its Dock to Fill and its Border to 3D. This gives you an inlaid
area which looks pretty cool.

Regards,
Fergus
 
C

Colin McGuire

So obvious. Thank you all - again!
Colin


* (e-mail address removed) (Colin McGuire) scripsit:

Try to set its 'Text' property to "" and its 'ControlBox' property to 'False'.
 
H

Herfried K. Wagner [MVP]

* "Fergus Cooney said:
As an alternative, lookswise, trying putting a Panel on that no border
form and set its Dock to Fill and its Border to 3D. This gives you an inlaid
area which looks pretty cool.

IMO this looks as ugly as your quoting...

;-)
 
C

Cor

????
IMO this looks as ugly as your quoting...

What is it with that quoting, the original thread is to long for me to
follow it?

I remember me there was something with Nick about quoting, but this is
something different and that from Nick I don't know anymore.

(I saw I almost started the longest thread in the VB German group, happenly
there was one before about "the resource pack" that was even longer.

And Armin when you see this, good that you pointed me again on my favorite
writing mistake now and know.)

Cor
 
M

Michael Kremser

*Cor* tippselte am *20.10.2003 15:01* MESZ:
(I saw I almost started the longest thread in the VB German group, happenly
there was one before about "the resource pack" that was even longer.

Of course, because 98% of the postings are off-topic.

Best regards,

Michael
 
F

Fergus Cooney

Hi Herfried,

|| IMO this looks as ugly as your quoting...
||
|| ;-)

;-)

Regards,
Fergus
 
C

Cor

Hi Michael,

Did you see Herfried has a problem with his GNU
Of course, because 98% of the postings are off-topic.

Mostly Herfried, watches all threads, but this one he could not see it seems

:))

Cor
 
M

Michael Kremser

*Cor* tippselte am *21.10.2003 12:18* MESZ:
Did you see Herfried has a problem with his GNU

What do you mean by that?
Mostly Herfried, watches all threads, but this one he could not see it seems

Why do you think that?

Best regards,

Michael
 
C

Cor

Hi Michael,

The newstreader from Herfried, that has the name something like GNU, I hope
it is wrong, because I know Herfried, can not resist answering that.

But before you understand it wrong, Herfried is very appreciated in this
newsgroup.

:)

Cor
 
F

Fergus Cooney

Hi Michael,

|| > Did you see Herfried has a problem with his GNU
||
|| What do you mean by that?
||
|| > Mostly Herfried, watches all threads, but this one he could
|| not see it seems
||
|| Why do you think that?

Cor is referring to the style of quoting that I use above - indentation
plus || plus a space. In Herfried's gnus newsreader, || apparent represents a
smiley of some sort! Herfried also doesn't care for the way that I indent the
text that I've quoted. To me it is obvious that the block above is not me
talking but is a quoted from others. Herfried disagreees. He says that
newsreaders can't 'understand' it and that I must use '>' only. I counter that
|| is more readable by people - to hell with the newsreaders. He says ....
It's been an ongoing OT debate between the two of us.

Herfried, despite saying that gnus is the Best Newsreader in the World,
sometimes fails to fetch or receive mesages.

Thanks for adding your 1% to the OT posts - life would be more productive
without them - but sooo booooring, yawn. ;-))

Regards,
Fergus
 
M

Michael Kremser

*Fergus Cooney* tippselte am *21.10.2003 16:08* MESZ:
Cor is referring to the style of quoting that I use above - indentation
plus || plus a space. In Herfried's gnus newsreader, || apparent represents a
smiley of some sort! Herfried also doesn't care for the way that I indent the
text that I've quoted. To me it is obvious that the block above is not me
talking but is a quoted from others. Herfried disagreees. He says that
newsreaders can't 'understand' it and that I must use '>' only. I counter that
|| is more readable by people - to hell with the newsreaders. He says ....
It's been an ongoing OT debate between the two of us.

Well, it's the first time that I agree with Herfried. Using ">" as the
introduction of a quoted line is a standard and every news reader and
person understands it as it. Also using two charachters, as you do with
"||" is IMHO very unlogic. It's no question of whether this looks better
or not, it's a matter of standard compliance!
Herfried, despite saying that gnus is the Best Newsreader in the World,
sometimes fails to fetch or receive mesages.

*g* For Herfried, this is an arugment. He always states, that the
software he's using is the best in the world, even if it's complete
scrap, like Outlook Express and Internet Explorer.
Thanks for adding your 1% to the OT posts - life would be more productive
without them - but sooo booooring, yawn. ;-))

As there is no group microsoft.public.software.war or something similar,
it's not so important which newsgroup is used for that.

Best regards,

Michael
 
F

Fergus Cooney

Hi Michael,

~~ using two charachters, as you do with "||" is IMHO very unlogic

There's a logic in it, Spock, but not one that you could understand.

;-))

Regards,
Bones
 

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