Log in

View Full Version : Bagaimana coding membuat teks ber-underline/bold/italic menggunakan CheckBox pada Vis


PHPmaster
20th November 2011, 01:25 AM
Pas Ane pake Visual Basic 6, codingnya gni:

Text1.FontUnderline = Check1



Tapi di sini Ane pengen buat di Visual Basic 2010. Ane nyoba masukkin coding di atas pada Visual Basic 2010, tapi malah error list yang nongol:

'FontUnderline' is not a member of 'Systems.Windows.Forms.Textbox'.



Trus Ane coba ganti codingnya dengan:

TextBox1.Font.Underline=CheckBox1.Checked



Error list lagi yang muncul:

Property access must assign to the property or use its value.





Sebenarnya, gemana sih coding yang benernya? Mohon pencerahannya dari agan-agan sekalian.

:loveindonesia

</div>