dbasnett's Profile User Rating: -----

Reputation: 114 Stalwart
Active Posts:
627 (0.24 per day)
01-October 08
Profile Views:
Last Active:
User is offline Sep 27 2015 03:03 AM

Previous Fields

Who Cares
OS Preference:
Who Cares
Favorite Browser:
Who Cares
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:

Latest Visitors

Icon   dbasnett has not set their status

Posts I've Made

  1. In Topic: How to convert string to byte ASCII ?

    Posted 8 Sep 2015

    Searching MSDN I found three codepages with Thai in the name. I tried number 874 and it seems to convert.

            Dim thai As String = "ลงชื่อ"
            Dim b() As Byte = System.Text.Encoding.GetEncoding(874).GetBytes(thai)
  2. In Topic: Inserting data into XML - alphabetized?

    Posted 16 Aug 2015

    The attribute was to illustrate when attributes should be used. I think the quote about the usage of elements v. attributes is one of the best I have seen. If there are specific problems you have using properly structured XML you should ask.

    Whether or not you use a centralized DB or distribute an XML file is up to you. If you have the resources to centralize the information is key; do you have a public presence on the web. How often is the data changed? How big is a "really large xml file"?

    I have a database that has a table that has a column that is XML.
  3. In Topic: Inserting data into XML - alphabetized?

    Posted 16 Aug 2015

    Before going much further it would be a good idea to consider a different XML design. In this, Principles of XML design: When to use elements versus attributes, you will find this, "If you consider the information in question to be part of the essential material that is being expressed or communicated in the XML, put it in an element." Given those guidelines maybe something like this would be better:

        <mfgname>Mfg. One</mfgname>
            <weight unit="lbs.">1.00</weight>
            <weight unit="ozs.">1.00</weight>

    In the long run you might be happier with this structure. Note how I used an attribute for weight.
  4. In Topic: Please help me with Nested Classes

    Posted 16 Jun 2015

    View PostTheZamundaPrince, on 15 June 2015 - 11:16 PM, said:

    View Postmaj3091, on 14 June 2015 - 10:16 PM, said:

    You should really be in the VB.Net forum with this, as it's not VB6.

    Maybe you could tell us the exact error message and the line it occurs on...the more information you give, the easier it will be to provide an answer.

    The error comes when I click the button once and the text boxes are cleared.

    myBox.mline1 = New Line() generates an error message "Object reference not set to an instance of an object."

    I'm thinking there's a problem with the way I've called the nested classes after declaring them.

    You need to start with creating an instance of myBox.
  5. In Topic: put ip address in textBox what to add more?

    Posted 15 Jun 2015

    Here is an example using one textbox and one label. The user must enter an IP address that is in the 192.168.42.x network. To test create a form with one textbox and one label with the default names.

    Public Class Form1
        Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged
            Dim someIP As Net.IPAddress
            'did user enter an ip address
            If Net.IPAddress.TryParse(TextBox1.Text, someIP) Then
                'looks like an address
                'is it in 192.168.42
                Dim b() As Byte = someIP.GetAddressBytes
                If b(0) = 192 AndAlso b(1) = 168 AndAlso b(2) = 42 Then
                    Label1.Text = "valid IP Address"
                    Label1.Text = "invalid IP Address"
                End If
                Label1.Text = "Not an IP Address"
            End If
        End Sub
        Private Sub Form1_Shown(sender As Object, e As EventArgs) Handles Me.Shown
            Label1.Text = "Enter IP Address"
        End Sub
    End Class

My Information

Member Title:
D.I.C Addict
Age Unknown
July 29
Years Programming:

Contact Information

Website URL:
Website URL  http://



dbasnett has no profile comments yet. Why not say hello?