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

UserControl - textbox

P: n/a
I design myown Textbox - usercontrol and want to set the default font is
"couriernew" and size 8
However, for some special textbox, I want to set different fonts.
after I set it in design mode, 1st time to run it (it runs fine)
BUT , in 2nd time, it changed back into "courier new"

I think i set it in my usercontrol wrongly ~~

Protected Overrides Sub InitLayout()
Me.Font = New System.Drawing.Font("Courier New", 8)
' Me.CharacterCasing = CharacterCasing.Upper
Me.Text = ""
End Sub
Nov 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.