Search results for query: *

  1. V

    divide message length

    thanks B2Ben for ur code, anyway this problem occur when i try to run the code: Index was out of range.Must be non-negative and less than the size of the collection. Parameter name:index (when i m not insert any character in the message) Index and length must refer to location within the...
  2. V

    divide message length

    thanks john h , it works great, anyway how to i get the content of the message? example: when i key in 101 character in the textbox, i want the 100 character display on the my other multiline textbox which is textbox2 and the next remain 1 character will display after the first 100 character...
  3. V

    divide message length

    can anybody help me on this problem, actually i want to use this function to count how many message does user type, if user type 100 character ,it consider 1 message, and 101 is consider 2 messae and so on, so no matter how many character usr has type, the function will still count the total...
  4. V

    format phone number

    Aiya i have little problem here...when the string contain alphanumeric string example: "12345,,,,abikl:8900,,^&8999,,675,,12345" ,how can i split and remove duplicate number and show the final result as "12345,675"?
  5. V

    format phone number

    I have solve the probelm here is the final code, thanks alot for ur help! Dim myString AsString = "10,234,345,,,567,34,10,10" Dim delimStr AsString = "," Dim delimiter AsChar() = delimStr.ToCharArray() Dim str AsString() = Split(myString, delimiter) Dim aStr AsString...
  6. V

    format phone number

    i have include your function in the code : Dim myString AsString = "10,234,345,,,567,34" Dim delimStr AsString = "," Dim delimiter AsChar() = delimStr.ToCharArray() Dim str AsString() = Split(myString, delimiter) Dim aStr AsString ForEach aStr In str If aStr.Trim <> String.Empty Then...
  7. V

    format phone number

    i have include your function in the code : Dim myString AsString = "10,234,345,,,567,34" Dim delimStr AsString = "," Dim delimiter AsChar() = delimStr.ToCharArray() Dim str AsString() = Split(myString, delimiter) Dim aStr AsString ForEach aStr In str If aStr.Trim <> String.Empty Then...
  8. V

    format phone number

    thanks a lot for your help, anyway how can i include the remove duplicate number function in your code, example: the string which contain:"10,,11,34,56,,78,99,11,35,11" will display as: 10 11 34 56 78 99 35 which has remove two duplicate number 11. Can it be done?
  9. V

    format phone number

    Thanks for your help again,lingsn somehow when i compile the code, the message below show: An unhandled exception of type 'System.ArgumentException' occurred in microsoft.visualbasic.dll Additional information: Argument 'Prompt' cannot be converted to type 'String'. Any Suggestion?
  10. V

    format phone number

    I have use this code to get my phone number: Dim myString As String = "10,234,345,,,567,34" Dim delimStr As String = "," Dim delimiter As Char() = delimStr.ToCharArray() Dim str As String() = Split(myString, delimiter) Dim i As Integer For i =...
  11. V

    Proxy Authentication Required

    I using this code for passing my two parameter that is the 'username' and 'passsword' using the HTTP POST method to the URL i created. Dim lcUrl As String = "http://abc.com/Web/login.jsp" Dim loHttp As HttpWebRequest=CType(WebRequest.Create(lcUrl),HttpWebRequest) Dim lcPostData As String =...
  12. V

    format phone number

    thanks, anyway how to use the method indexof, can u show me how?
  13. V

    format phone number

    thanks a lot lingsn, anyway can u solved my third question that is counting how many numbers that user has key in? i m also want to know how do i count the total recipient when a list of phone number show in multiline textbox which display as (12345678, 45678666,23457890) and count as 3...
  14. V

    divide message length

    Hello, i m still begineer in vb.NET. recently i have develop a program that will count how many message in a textbox , if the character is over amount of 100 characters, it will be consider as 1 message, if 200 character it will be 2 message and other characters will count as the same method...
  15. V

    format phone number

    Greeting everyone, i have develop a program that will allow user key in the phone number according to these format: ########## where first two digit represent country code and the remain are the mobile number or phone number. Q1: can i make the program automactically change the format phone...
Back
Top