Posted on 2006-04-09
Last Modified: 2010-04-23
What is the different bettwen implicit conversions & explicit conversions?  Also, could you give a good example on CType function?
Question by:VBdotnet2005
    LVL 48

    Expert Comment

    LVL 48

    Expert Comment

    ctype example

    Me.PictureBox.BackColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer)

    Author Comment

    great. Last thing, could you show me how to use parse? Thank you in advance
    LVL 48

    Accepted Solution

    its really Split()

    Dim delimStr As String = " ,.:"
          Dim delimiter As Char() = delimStr.ToCharArray()
          Dim words As String = "one two,three:four."
          Dim split As String() = Nothing
          Console.WriteLine("The delimiters are -{0}-", delimStr)
          Dim x As Integer
          For x = 1 To 5
             split = words.Split(delimiter, x)
             Console.WriteLine(ControlChars.Cr + "count = {0,2} ..............", x)
             Dim s As String
             For Each s In  split
                Console.WriteLine("-{0}-", s)
             Next s
          Next x

    Author Comment


    Thanks :)

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now