‘ Clear the textbox for entering new text Private Sub MnuClear_Click(sender As Object, e As EventArgs) Handles MnuClear.Click ‘ disables the textbox to inhibit entering text Private Sub mnuClose_Click_1(sender As Object, e As EventArgs) Handles mnuClose.Click ‘ enables the textbox for entering new text Private Sub mnuOpen_Click(sender As Object, e As EventArgs) Handles mnuOpen.Click ‘ Variables for setting the font style (Bold, Italics,Underline) mnuCut (shortcut keys Alt+T), mnuCopy(shortcut keys Alt+P), mnuPaste( shortcut keysAlt+S)Īpplication Code for Text Editor in VB.NET Public Class frmEditor.The combobox for font family cboFont is filled with font face names in the form Load event using the FontFamily.Families array.Ĭontrols used and their names in the project Control The combobox for size cboSize is filled with font size values in the items collection in the property window of the combobox. You can see them in the Component Tray at the bottom in Design View. MenuStrip and ColorDialog controls don’t have any graphic presence on a form while running. To create Text Editor using VB.NET the following controls are used. To let the students understand the concept of short cut keys we have used shortcut keys different than the default keys for these operations as follows
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |