Search In This Website

Rabu, 13 Desember 2023

Handle Keyboard Shortcut In Microsoft Visual Basic

How to let the user press Ctrl-A to select all of the text in a TextBox in Visual Basic 6.

Method 1

Private Sub Text1_KeyPress(KeyAscii As Integer)
Const CTRL_A As Integer = 1
    If KeyAscii = CTRL_A Then SelectAllTextBox Text1
End Sub
Private Sub SelectAllTextBox(ByVal txt As TextBox)
    txt.SelStart = 0
    txt.SelLength = Len(txt.Text)
End Sub

Method 2

Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
If Shift = vbCtrlMask And KeyCode = vbKeyA Then
    Text1.SelStart = 0
    Text1.SelLength = Len(Text1)
End If
End Sub

Visual Basic Classic, Visual Basic 6, Programming Language

Bibliography:

https://www.petanikode.com/,https://www.codecademy.com

Related Post:

    Senin, 11 Desember 2023

    Preposition 1

     behind : di belakang

     between : di antara

     in : di dalam

     in front of : di depan

     next to : di sebelah

     on : di atas ( bersentuhan )

     over : di atas ( tidak bersentuhan )

     under : di bawah

    pelajaran sekolah, pelajaran bahasa inggris, ilmu sekolah, school lesson, english lesson, school course

    Related Post:

    Notepad++ Plugin List 1

    Notepad++ Plugin List With Annotation:


    AnalysePlugin Mattes H. AnalysePlugin will help you to search for more than one search pattern at a time. Great for analysing log files. Shorten your time of reading mega bytes of log files!
    BetterMultiSelection Justin Dailey Provide better cursor movements when using multiple selections.
    BigFiles - Open Very Large Files Claudio Olmi / superolmo Notepad++ Plugin for reading large files
    Bookmarks@Dook Dook Bookmarks panel
    ColumnTools Vin's World Notepad++ Highlight Current Column and Horizontal Ruler
    ComparePlus Ty Landercasper, Jean-Sebastien Leroy, ( pnedev ) Pavel Nedev Compare two files and show differences side by side Compare only parts (selections) of two files
    Compare Plugin ( jsleroy ) Jean-Sebastien Leroy Compare two files and show differences side by side
    Notepad++ Horizontal Ruler Plugin freesftys.lv9.org, jmgrossma (Jeffery Grossman) 32bit, roryap (Rory Apperson ) 64bit. to add a ruler to the top of the Notepad++ Interface.
    ElasticTabstops Marius Vasiliu, Justin Dailey, nick-gravgaard A better way to indent and align code.
    GotoLineCol Shridhar Kumar A plugin to navigate to a specified line and (byte-based or character-based) column position.
    CSV Lint Bas de Reuver Syntax highlighting and quality control for csv and fixed width data, detect column and datatypes,
    CsvQuery jokedst Enables SQL queries against CSV files
    Change Markers brotherstone / ( bruderstein ) Dave Brotherstone This plugin tracks changes made to documents, and enables navigation between changes, with a distinction being mafe between saved and unsaved changes. The change indicator is either a bar in the left margin or a specific highlighting. Or none.
    DSpellCheck Sergey Semushin Spell-checking
    Location Navigate Austin Young Navigate between your last edit/view points, it is useful for code/text edit and view, especially for many and large text files
    Npp Highlighter Michael Zhang Npp-Highlighter draw indicator on scroll bar when: - line contents changed
    Notepad++ Changed Lines vinsworldcom ( Michael J. Vincent ) Notepad++ plugin to highlight changed lines with margin indicator.
    Don Rowlett Color Picker Don Rowlett Developer tool for selecting color codes in various formats. Not a color sampling tool.
    AllOccurenceSelector-NPP-Plugin LailaHammouda performs the functionality of selecting all occurrences of the currently highlight
    FingerText Tom Lam A Snippet plugin with support for multiple hotspots.


    << back to Learn Notepad++


    Bibliography:

    https://forum.tamirov.ru/
    https://github.com/

    https://github.com/notepad-plus-plus/nppPluginList

    https://notepad-plus-plus.org/resources/

    Minggu, 26 November 2023

    Most Java Exception 1

    These following list are Java Exception Class Name:
    • ArithmeticException
    • ArrayIndexOutOfBoundsException
    • ClassNotFoundException
    • Exception
    • FileNotFoundException
    • IOException
    • IllegalArgumentException
    • InterruptedException
    • NoSuchFieldException
    • NoSuchMethodException
    • NullPointerException
    • NumberFormatException
    • RuntimeException
    • SQLException
    • StringIndexOutOfBoundsException
    java programming language, java syntax, error handling

    Bibliography:

    https://www.edureka.co/
    https://docs.oracle.com/

    Kamis, 23 November 2023

    Preamble In Latex

    All LaTeX documents start with a preamble. Most common preamble latex command consists of: 

    \documentclass{}

    The first command in any document.  Used to specify what type of document is being made.  Some common arguments are article (common for scientific journals), book, slides, beamer (for presentations), standalone.

    \usepackage{}

    This command imports a package into the LaTeX document.  This is important for including any commands that are not standard in LaTeX.

    \title{}

    The intended title of the document should be used as the argument

    \author{}

    The author of the document should be used as the argument.

    \date{}

    The argument is the date associated with the document.  Note that leaving the argument empty will create a blank date in the title, and not including the command will make the default title to the date compiled.

    Example

    Type this latex script in your latex document, before \begin{document} and after \documentclass{book} line:

    \title{your title here...}

    \author{Private Course and Tutor Course}

    \date{November 1991}

    Type this latex script after \begin{document} line:

    \maketitle


    << previous Latex Template 1





    Bibliography:

    https://www.gvsu.edu/ ( university )

    https://www.nyu.edu/ ( university )

    latex, tex, latex script, latex command, latex document, latex article, latex book preamble, latex beamer, latex standalone, latex document title, latex document author, latex document environment

    Related Post:

    Rabu, 22 November 2023

    Circle Element

    Circle=Lingkaran.     Click here to view the circle »

    Center / Centre / Midpoint=Titik pusat lingkaran

    Radius=Jari-Jari

    Diameter=Diameter      Click here to view the circle's diameter  »

    Circumference/Perimeter=Keliling

    Area=Luas

    Angle=Sudut

    Arc=Busur

    Minor Arc=Busur Kecil/Pendek

    Major Arc=Busur Besar/Panjang

    Chord=Tali Busur      Click here to view the circle's chord  »

    Slice/Sector=Juring

    Minor Slice/Sector=Juring Kecil

    Major Slice/Sector=Juring Besar

    Segment=Tembereng

    Minor Segment=Tembereng Kecil

    Major Segment=Tembereng Besar

    Apothem=Apotema

    Tangent=Garis Singgung

    Secant=Garis Potong

    Semicircle/Half Of A Circle=Setengah Lingkaran

    Quadrant/Quarter Of A Circle=Seperempat Lingkaran


    Notes:

    Close the opening window after view the Circle element.


    < previous  Two Dimensional Shape


    pelajaran sekolah, pelajaran matematika, pelajaran mtk, pelajaran bahasa inggris, ilmu mtk, ilmu sekolah, school lesson, english lesson, school course

    Bibliography

    http://septinha.blogspot.com/
    https://thirdspacelearning.com/

    Related Post:

    PHP MySql Function List

    mysql_affected_rows
    How many rows or records get updated or deleted or affected by a given query.

    mysql_auto_increment
    Adding one incremented auto number to each record once added.

    mysql_close
    Closing one open connection to MySQL database.

    mysql_connect
    Connecting string to store userid and password and database name to connect to MySQL

    mysql_create_db
    Create a database in MySQL

    mysql_db_name
    List the name of all databases in MySQL

    mysql_errno
    Associated error number of each mysql query

    mysql_error
    Error message after executing a query

    mysql_fetch_field
    we can get the type of field with all other details about the field

    mysql_fetch_lengths
    get the length of data used in all fields of a record

    mysql_fetch_row
    get the row of data from a MySQL table

    mysql_field_flags
    getting the field flags associated with the field.

    mysql_field_len
    Returns the maximum length of a field in a recordset

    mysql_field_name
    Returns the name of a field in a recordset

    mysql_field_type
    Type of field used in MySQL table.

    mysql_insert_id
    Get the auto increment id of the last inserted record

    mysql_list_dbs
    List of database in MySQL

    mysql_list_tables
    List of tables present in a database

    mysql_num_fields
    Number of fields present in a query or in a table

    mysql_num_rows
    Getting the total number of rows in a query or in a table

    mysql_query
    Function to execute any query statement in MySQL database


    << back to Study About PHP 1


    Bibliography

    https://www.plus2net.com/
    https://www.w3schools.com/

    hypertextpreprocessor, database, web programming. structured query language, web development language

    Related Post