Visual Studio 2019 (VB.Net & C# Source Code) : How to Create Your First Program (Super Hello World! Console App)


Visual Studio 2019 (VB.Net & C#) : How to Create Your First Program (The Super Hello World! Console Application).

🎓 Master Visual Basic .NET and Access Database By Building the Point Of Sale System (POS).
📲 Enroll Now: https://bit.ly/2WcbRhX

Visual Basic .NET : Free Source Code & Tutorials

🎓 IN THIS VIDEO TUTORIAL YOU WILL LEARN 🎓
🎗 - How to Create Hello World! Program in Visual Studio 2019
🎗 - How to use StrDup function in vb.net (String duplicates, Repeat character x number of times).
🎗 - How to convert ascii value to character in vb.net
🎗 - How to use Chr function in vb.net (Convert ASCII Code, ASCII Value to Character).
🎗 - How to use String.ToUpper Method (Convert a String to Uppercase).
🎗 - How to use vb.net arrays (String Arrays : Populating an array with array literals).
🎗 - How to loop through an Array using For Each...Next Statement (Iterating through an array).

🙏 If you found this video useful, please like, share and subscribe to my channel: http://bit.ly/2zAg8Ag

👨‍💻 Here is my online course: Visual Basic .NET (VB.NET), Access Database and Crystal Reports Course.
🎯 Enroll now (Full lifetime access): http://bit.ly/2YRy99d

💯 THANK YOU SO MUCH 💯

[Screenshot]


[YouTube]
[Source Code]

Option Explicit On
Option Strict On

Module HelloWorld_VS2019

    Sub Main()

        Dim doubleForwardSlash As String = StrDup(2, Chr(47)) & Space(1) & Chr(126) ' ASCII Code 47 = Forward slash: /
        Dim doubleBackslash As String = Chr(126) & Space(1) & StrDup(2, Chr(92))  ' ASCII CODE 92 = Backslash: \
        Dim vs_2019 As String = doubleForwardSlash & " Visual Studio 2019 (Preview) " & doubleBackslash
        Dim hello As String = "VB.Net Hello World Happy New Year 2019"

        ' Declaring and initializing a string array.
        Dim pages = New String() {"Code A Minute", "iBasskung Tutorial",
                                  "Code with iBasskung", "iBasskung Programming Tutor"}

        Dim result As String = """Like"" us on Facebook" & Environment.NewLine

        ' Convert a string to uppercase using ToUpper() method.
        ' You can also use the UCase Or StrConv function.
        Console.Write(vs_2019.ToUpper() & Environment.NewLine)
        Console.WriteLine(hello & vbNewLine)

        ' Loop through an array of strings.
        For Each page As String In pages
            result &= Chr(96) & page & Chr(96) & Environment.NewLine
        Next

        ' Print the result to the screen.
        Console.Write(result)
        Console.WriteLine() ' Empty line.

        Console.WriteLine("Please like, share and subscribe if you enjoyed")
        Console.WriteLine("and / or found this video helpful. Thanks. :D")
        Console.WriteLine() ' Empty line.

        Console.WriteLine("Demo by iBasskung (Wed., Jan. 2, 2019)")
        Console.WriteLine() ' Empty line.

        Console.WriteLine("Press any key to continue...")
        Console.ReadKey()

    End Sub

End Module

=========

 Visual C# .Net : Free Source Code & Tutorials

🎓 IN THIS VIDEO TUTORIAL YOU WILL LEARN 🎓
🎗 - How to Create Hello World! Program in Visual Studio 2019
🎗 - How To Duplicate A String in C# (String duplicates, Repeat character x number of times).
🎗 - How to convert ascii value to character in c#
🎗 - How to Convert from ascii to string in c# (Convert ASCII Code, ASCII Value to Character).
🎗 - How to use String.ToUpper() Method (Convert a String to Uppercase).
🎗 - How to use c# arrays (String Arrays : Populating an array with array literals).
🎗 - How to loop through an Array using the foreach Statement (Iterating through an array, Using foreach with arrays).

[Screenshot]


[YouTube]
[Source Code]

using System;

namespace HelloWorldConsoleAppVS2019
{
    class Program
    {
        static void Main(string[] args)
        {
            string doubleForwardSlash = new string((char)47, 2); // ASCII CODE 47 = Forward slash: /
            string doubleBackslash = new string((char)92, 2); // ASCII CODE 92 = Backslash: \
            string vs_2019 = doubleForwardSlash + " Visual Studio 2019 (Preview) " + doubleBackslash;
            string hello = "C# Hello World! Happy New Year 2019";

            // Declaring and initializing a string array.
            string[] pages = new string[] {"Code A Minute", "iBasskung Tutorial",
                                           "Code with iBasskung", "iBasskung Programming Tutor"};

            // Escaping double quotes in string using 'Escape Characters Or Escape Sequences' : \", \', \\, \n etc.
            string result = "// \"Like\" us on Facebook \\\\\n";

            // Convert a string to uppercase using ToUpper() method.
            // You can also use the UCase Or StrConv function.
            Console.Write(vs_2019.ToUpper() + Environment.NewLine);
            Console.WriteLine("{0} {1}", hello, "\n"); //-- \n = New line

            // Loop through an array of strings.
            // Note: ASCII CODE 96 = Grave accent, Back quote :)
            foreach (string page in pages)
            {
                result += (char)96 + page + (char)96 + Environment.NewLine;
            }

            // Print the result to the screen.
            Console.Write(result);
            Console.WriteLine(); // Empty line.

            Console.WriteLine("If you found this video useful, please like,");
            Console.WriteLine("share and subscribe to my channel. Thanks. :D");
            Console.WriteLine(); // Empty line.

            Console.WriteLine("Demo by iBasskung (Thursday, January 3, 2019)");
            Console.WriteLine(); // Empty line.

            Console.WriteLine("Press \'Enter\' to continue...");
            Console.Read();

        }
    }
}

#END

Tags: visual studio 2019, visual basic 2019, vb.net, vb.net tutorial for beginners visual studio 2019, visual basic, vb, visual studio 2019 visual basic tutorial, visual studio 2019 tutorial, how to use visual studio 2019, visual basic tutorial 2019, access, visual studio

Comments