Search Results - VBForums

Search:

Type: Posts; User: dbasnett

Page 1 of 13 1 2 3 4

Search: Search took 0.14 seconds.

  1. Re: Need expert help with a type initializer that is throwing an except

    To help us, determine if you have a .Load handler or .Shown handler and if so do the following:


    'if you have this handler
    Private Sub Form1_Load(sender As Object, e As EventArgs)...
  2. Replies
    5
    Views
    120

    Re: [vb2010] Text string to array

    Dim Txt() As String = TextBox1.Text.Split(","c)


    note the character designator.
  3. VS 2010 Re: Retrieving different levels of xml data

    Not that I am aware of.


    For Each el As XElement In xe...<hourly_forecast>.Elements
    Dim hr As String = el...<FCTTIME>...<hour>.Value
    Dim mtemp As String =...
  4. VS 2010 Re: Retrieving different levels of xml data

    Use the descendants path:


    'for testing
    Dim xe As XElement
    xe = <response>
    <version>0.1</version>
    <termsofService>...
  5. Replies
    7
    Views
    141

    Re: Work with unknown symbol from terminal

    If you worked in the days when ASCII CRT terminals first appeared this makes perfect sense.
  6. VS 2010 Re: A StringBuilder buffer has been overflowed by unmanaged code

    Did you try to increase the .Capacity of the StringBuilder before the call?
  7. Replies
    2
    Views
    125

    Re: Login Form System Argument

    Have you seen this:
    https://azure.microsoft.com/en-us/documentation/articles/sql-database-manage-azure-ssms/#connect-to-a-sql-database-logical-server
  8. Replies
    14
    Views
    251

    Re: Serial Port Communication

    To help with debugging this lets look at the actual bytes. When you are setting up the serial port, set the encoding to the same one as shown in the code below. Assuming that sbuffer contains your...
  9. Replies
    13
    Views
    293

    VS 2008 Re: Advice on variable naming

    I think the underscores are not a big issue with the miracle of intellisense. For example, if I Have this:

    Public Class FuelStuff
    Public fuel_Tank_External_1_Capacity As Decimal
    ...
  10. Replies
    6
    Views
    207

    Re: Getting data from xml

    Using the sample data from previous post:

    For Each bar As XElement In foo...<results>.Elements
    Dim a() As String = New String() {bar...<city>.Value, bar...<state>.Value,...
  11. Replies
    6
    Views
    207

    Re: Getting data from xml

    This looks like homework, there are some key words that usually give it away. With a few additions you should be able to create an array.
  12. Replies
    6
    Views
    207

    Re: Getting data from xml

    Here is something to get you started:


    Dim foo As XElement
    'foo = XElement.Load("pathHere")
    'for testing
    foo = <response>
    ...
  13. VS 2013 Re: Is there anywhere on the Internet a self programmed Win7 Calculator?

    Do this, 9 + 7 = / 2 * 8 = = , on the windows calculator and the answer is 512.
  14. Replies
    1
    Views
    119

    VS 2013 Re: LINQ to XML help

    Something like this:


    Dim foo As XElement = <members>
    <member name="M:aaaaaaaaaa"></member>
    <foobar...
  15. Replies
    2
    Views
    159

    Re: Could Anyone Help

    What is in ageStr when you get the error?
  16. Replies
    4
    Views
    185

    Re: Color.A to HTML/CSS Alpha

    Why not just divide the A by 256? That will give you a value between 0.0 and 1.0.
  17. Replies
    5
    Views
    190

    Re: Recursive Xml Parsing

    Not a big fan of attributes... Not sure what the XML means, but take a look at this.

    To test:

    Dim testData As XElement
    testData = <test>
    <store...
  18. VS 2010 Re: What is the difference between these to methods of getting the bytes of a string?

    If the string contains a character not represented in ASCII, bytes with values from 0 - 127, then 63(?) is substituted. It is somewhere in the documentation.
  19. Re: Confusion with proper sort method on bindingsource

    JMC gave you a great piece of advice. It led me to learn something I knew little about, and the answer to your question was right there.

    JMC is brusque, but he he is neither pompous or arrogant. ...
  20. VS 2010 Re: What is the difference between these to methods of getting the bytes of a string?

    If they are 63's then check the encoding.
  21. Re: Confusion with proper sort method on bindingsource

    I hope you let this go. Some other newbie advice:


    Write short pieces of code and test the hell out of it. Seeing 50 lines of code that has 5 errors before where the newbie thinks the error...
  22. Re: Sorting data in a combobox using the underlying data model

    Correct, none of us know it all. The MSDN documentation is an acquired taste, one you should develop. If it doesn't make sense the first time read it until it does, or read some other articles. ...
  23. VS 2010 Re: What is the difference between these to methods of getting the bytes of a string?

    Are all of the bytes wrong? Are the bytes that are wrong 63?
  24. VS 2013 Re: Call function via name contained in string

    Look at CallByName. I think the methods have to be public.
  25. Replies
    5
    Views
    176

    Re: .NET AccessRule.FileSystemRights Enum

    To add to TnTinMN's answer... Not sure what you are after but this might help


    Debug.WriteLine("")
    Debug.WriteLine("")
    For Each r As String In...
  26. VS 2012 Re: Index was outside the bounds of the array vb.net

    name2 doesn't have elements, so that is the error you should get. Try it using List(Of.


    Dim name2 As New List(Of String)
    For i As Integer = 0 To sf.Categories.Count - 1
    ...
  27. Replies
    3
    Views
    219

    VS 2013 Re: vb.net - double quote in string

    Try this:


    Dim sDelimStart1 As String = """fb_dtsg"" value="""
    Dim idxS As Integer = sSource1.IndexOf(sDelimStart1) + sDelimStart1.Length
    Dim theVal As String

    ...
  28. Replies
    3
    Views
    199

    Re: Read in directory content in name order

    It would help to see the code you have. Sorry I guessed.
  29. Replies
    3
    Views
    199

    Re: Read in directory content in name order

    Take a look at this:

    Dim pn As String = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
    Dim somelist As List(Of String) = IO.Directory.GetFiles(pn).ToList
    ...
  30. Replies
    7
    Views
    297

    Re: ASCII preferences?

    It will depend on the font, but assuming you have a font that will show the desired character, I prefer not to use chr or chrw unless I have not other choice. Take a look at this:


    Private...
  31. Replies
    5
    Views
    318

    Re: Type Characters...

    Type Characters

    Since they have been with us since the beginning of .Net and are a part of 2015RC I suspect that they will be with us for a long time. I agree that they are not often used as...
  32. VS 2013 Re: First character is corrupt when receiving SerialPort data

    If you have a half-duplex connection then there has to be some method for controlling who is transmitting. One method for doing that is to use RTS / CTS but from what I can find out about Modbus...
  33. VS 2013 Re: First character is corrupt when receiving SerialPort data

    In reading the Modbus spec it indicates that the port is:

    "
    1 start bit
    7 data bits, least significant bit sent first
    1 bit for parity completion;
    1 stop bit
    Even parity is required, other...
  34. VS 2010 Re: Connection timesout when running a stored procedure in SQL Server

    You might try catching MySqlException's to gather more information, though I agree with techgnome, fix the obvious error.
  35. VS 2013 Re: First character is corrupt when receiving SerialPort data

    Is this Modbus?
  36. VS 2013 Re: First character is corrupt when receiving SerialPort data

    I should have asked before, delay where? What end device are you talking to?
  37. VS 2013 Re: First character is corrupt when receiving SerialPort data

    Are you saying that other than the first character, the rest of the data is correct?????? Is the first character incorrect every time or just after the port is first opened?
  38. VS 2013 Re: First character is corrupt when receiving SerialPort data

    What device are you using to connect the RS485 interface (model / mfg.)? Is the terminal emulator generic or for the RS485 device?
  39. VS 2013 Re: First character is corrupt when receiving SerialPort data

    I agree, but I suspect it is a setting issue, something in the terminal emulator that is different.
  40. VS 2013 Re: First character is corrupt when receiving SerialPort data

    I have a loopback on my PC which means that what I send I receive. I tested this code and received :'s just fine. Note that I tested this at 115,200 and 9,600 bps with the same results, except that...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width