Recent content by toytoy

  1. T

    VB.NET: Difference between networkstream and socket

    Does anyone know the difference between networkstream and socket.... When you know you must use which one to do a connection and the limitation between them... Can i use both together... Thanks
  2. T

    VB.NET: Why cannot copy to temporary directory

    I don't know why sometimes when you code for a long period of time, there will be a error that say you file cannot be copy to temporary file.....proj.exe error... and the whole application cannot run or compile.. the only solution is to copy to another folder and compile it again.. but the...
  3. T

    VB.NET:Extract Xml attribute related to symbol

    Say i have these Xml tag... <book title=”Harry Porter page="1_9”> <new id=”100”>China News</new> <new id=”101”>Street paper</new> <new id=”0”>none</it> ……. <new>….</new> </book> how do i exactly extract the 1 and 10 separately from "1_9" Now i am using substring to extract 1 and 9...
  4. T

    VB.NET: Checking Email Address and Handphone number

    I have 3 questions regarding checking handphone and email address 1) Say i enter helloy.yahoo.com to the textbox, how to check whether it is a valid email address when i click on a button to send... 2) Same situation as the above, how to check whether the the user key in the...
  5. T

    VB.NET: Extract day, month or year from the Listbox

    Say i have these XML tag <book published="New York"> <date day="12" month="1" year="2005" /> </book> How do i exactly format the date since i am getting three different attributes (day, month and year) from the server...... Say i want the format to be "DD/MM/YYYY"... I want the format date...
  6. T

    VB.NET: Linking Elements and Attributes

    Say i have this XML tag... <book section=”newspaper”> <new id=”100”>China News</new> <new id=”101”>Street paper</new> <new id=”0”>none</it> ……. <new>….</new> </book> I extract the element "China News" and "Street paper" and populate to the combobox.... Now if i select the "China News"...
  7. T

    VB.NET: Extract day, month or year from the Listbox

    Say i have these dates: 12-2-05......can 12-12-05....can 12-13-05....cannot 12-22-05....cannot Refer to the above dates, why the below XML tag could not work well with days above "12"... when i send to server.. I could only send 1,2,3,4,5,....up to 12 only. "<" & "Date" & " " & "day=" & """"...
  8. T

    VB.NET: Simple XML problem

    Say i have these XML tag: <Books country = "USA" date= "21/1/2005"> <Title section ="1"> <Reference web = "www.any.com" topic = "1"> </Title> <Title section ="1"> <Reference web = "www.idea.com" topic = "2"> </Title> <Title section ="2"> <Reference web =...
  9. T

    VB.NET: Problem with too large XML data

    Say when i click on "A" button, my program will receive the large XML data for "A" from the server... 1) However, i will only receive one section of data.... 2) Then when i continue to click on "B" button, it will not receive "B" data instead it will continue to receive the rest of "A"...
  10. T

    VB.NET: Another difficult XML problem

    Say i have these Xml tag <Books> <Title section ="1"> <Reference web = "www.any.com" topic = "1"> </Title> <Title section ="1"> <Reference web = "www.idea.com" topic = "2"> </Title> <Title section ="2"> <Reference web = "www.howTo.com" topic = "3"> </Title>...
  11. T

    VB.NET: Hiding ID using XML

    Say i have these Xml tag: <place eat=”food centre”> <set id=”123”> <country state=”ABC”/> <location>north</location> </set> <set> … </set> </place> Does anyone know to extract the ID attributes and use other numbers or words to represent that ID into the combobox.... and when...
  12. T

    VB.NET: Extract element and attribute using ChildNode method

    I manage to extract only the "to" and "thank" tag with the following code: to = node.Attributes.GetNamedItem("to").Value thank = node.ChildNodes.Item(1).InnerText Can anybody help me to get the suggestion and doing attributes... Thanks
  13. T

    VB.NET: Extract element and attribute using ChildNode method

    Say I have these Xml tag: <hi help=”example”> <how> <to>do</to> <or> <give suggestion=”on” doing=”it”/> </or> <thank>bye</thank> </how> <how> … </how> </hi> I want to use the childNode method to do for example: Dim xdoc As XmlDocument Dim nodelist As XmlNodeList Dim node As...
  14. T

    VB.NET: Create and Apply Basic Classes

    what about interface.....is it the same as classes? Can i inherits class and implement interface together... I have another two questions.... 1) Is there a need to create a sub New() in all the classes that i create... I ask it because i came cross a book where it will create a sub New()...
  15. T

    VB.NET: Create and Apply Basic Classes

    I got some questions about the uses of classes... 1)Is it a must to create both the property and methods in the classes....if i does not uses property often.... can i just declare it inside the form and put all methods separately to the classes... 2)Can i say that class is...
Top Bottom