Place to share anything

Free Software, Download, Tips and Tutorials, Cars, Notebook, Review

SharpDevelop Tutorial-Change String into Lower Case and Upper Case

Hi, see you again in this SharpDevelop tutorial. Now we want to learn how to change the string into Lower case and Upper case. its a very simple program that will enable you to change a text into upper and lower case using button.

You can do this by following this simple tutorial

First, create form and add control into it : Label, and 2 buttons.

 Sub MainFormLoad(sender As Object, e As EventArgs)
		Label1.Text = "Lets Learn SharpDevelop"
 End Sub

To change text or string into lower case, we use :

 Sub Button1Click(sender As Object, e As EventArgs)
		'Make all text lower case
		Dim teks As String
		teks = label1.Text
		label1.Text = teks.ToLower()
 End Sub

Next to change the text into upper case, we use:

(more…)

Incoming search terms for the article:

  • Share/Bookmark

How to Join string in Sharpdevelop

In this tutorial I will show you how to join two or more strings. This may useful for you when you need to call an array that was defined before. This tutorial also applied in Visual Basic.NET or Visual Studio.

Example:

Sub Button1Click(sender As Object, e As EventArgs)
		Dim string1() As String = {"Indonesia", "Canada", "America"}
		Dim string2 As String
		string2 = String2.Join(", ", string1)
		Msgbox(String2)
End Sub

Then you can run your application. You will see a message box came up.

Thank you.

  • Share/Bookmark

Boolean operation in sharpdevelop

In this simple tutorial I will show how to use simple boolean operation in Sharpdevelop. This tutorial is also applied to Visual Basic .NET.

To define Boolean value and use it in If statement, please copy and paste this code:

Sub Button1Click(sender As Object, e As EventArgs)
Dim blnStatus As Boolean = True
        msgbox(blnStatus)

        blnStatus = Not blnStatus
        msgbox(blnStatus)

        If blnStatus Then
            msgbox("The status is true.")
        Else
            msgbox("The status is false.")
        End If

End Sub

Then run your application. You should see the message boxes come up showing the boolean status.

Incoming search terms for the article:

  • Share/Bookmark