By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,569 Members | 1,022 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,569 IT Pros & Developers. It's quick & easy.

simple vb to dotnet question

P: n/a
Hi
I want to use a fixed width font on a command button set at runtime
in vb6 command1.font="courier new"

In VB dotnet comman1.font=new font(?????????, ??????)

thanks

Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies

P: n/a
"Adrian" <Ad****@nospamhotmail.com.uk> schrieb:
I want to use a fixed width font on a command button set at runtime
in vb6 command1.font="courier new"

In VB dotnet comman1.font=new font(?????????, ??????)


\\\
Me.Button1.Font = _
New Font("Trebuchet Ms", Me.Font.Size, Me.Font.Style)
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #2

P: n/a
Adrian,

Button1.Font = New Font("Courier New", 8)

Kerry Moorman
"Adrian" wrote:
Hi
I want to use a fixed width font on a command button set at runtime
in vb6 command1.font="courier new"

In VB dotnet comman1.font=new font(?????????, ??????)

thanks

Nov 21 '05 #3

P: n/a
Thanks I was so close but then a miss is a miss

Thanks again

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uR**************@TK2MSFTNGP15.phx.gbl...
"Adrian" <Ad****@nospamhotmail.com.uk> schrieb:
I want to use a fixed width font on a command button set at runtime
in vb6 command1.font="courier new"

In VB dotnet comman1.font=new font(?????????, ??????)


\\\
Me.Button1.Font = _
New Font("Trebuchet Ms", Me.Font.Size, Me.Font.Style)
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.