Search Results - VBForums

Search:

Type: Posts; User: dbasnett

Page 1 of 13 1 2 3 4

Search: Search took 0.24 seconds.

  1. Replies
    13
    Views
    228

    Re: Access Denied

    Never mind. Operator malfunction! When trying to read the lines from the file I inadvertently used the path name, not the file name. DOH!!! I'll post the code when I am done testing. Thanks!
  2. Replies
    13
    Views
    228

    Re: Access Denied

    Yes. The manual process works in both locales.

    edit: I just double checked the manual process and it does work as I said.
  3. Replies
    13
    Views
    228

    Re: Access Denied

    I am the developer and I am one of the admins. What I am trying to avoid is doing this manually, which is what I do now. The manual process is:

    Run NotePad as Administrator
    Open the...
  4. Replies
    13
    Views
    228

    [RESOLVED] Access Denied

    When first using DBFactories with IBM's DB2 the

    <system.data>
    <DbProviderFactories>

    section of the machine.config file is written incorrectly(you have an extra closing tag). This...
  5. Replies
    6
    Views
    276

    VS 2013 Re: A from to read data from an ECU

    There is a link in my signature that might provide you some insight.
  6. Replies
    6
    Views
    206

    VS 2010 Re: Questions on TreeView.

    Here is a test that has some basic ideas. You'll need to modify it for error handling. BTW - when posting code use code tags please.



    Private Sub Button3_Click(sender As Object, e As...
  7. VS 2010 Re: setting a chart datasource where the datatable is defined out of scope

    Here are two versions to find controls. The first will find all control in a TabControl, the second in a TabPage.


    'all controls in a TabControl
    Dim allControls As New List(Of...
  8. VS 2010 Re: [RESOLVED] Start a timer from another thread and use timer.tick

    There is no guarantee of when the CPU will come back around to any of your threads. In this particular case, because of the time between invocations (500 ms.), a Timer may have been a better...
  9. VS 2010 Re: need connection string to connect to remote router

    Normally routers are accessed via Telent, SSH, or a web page. All of those protocols sit on top of TCP(UDP)/IP. To the best of my knowledge Microsoft does not supply those clients. Cursory check of...
  10. Replies
    11
    Views
    613

    Re: SQL search and count help

    In your example the ID's are not unique. Is that by design? How many records in the database?
  11. VS 2010 Re: Start a timer from another thread and use timer.tick

    You could just use the thread


    Public Class Form1

    Dim thrd As Threading.Thread

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    thrd = New...
  12. Replies
    5
    Views
    471

    Re: Help pulling data from XML to listbox

    Another way


    Dim foo As XElement = <apidetails version="2">
    <currentTime>2014-07-06 20:48:30</currentTime>
    <result>
    ...
  13. Replies
    15
    Views
    530

    VS 2010 Re: Proper ordering

    Maybe you know what the names are so your last for next loop works to get the proper order. But since you have switched to list take a look at post #5. It shows how to sort the list.
  14. Replies
    15
    Views
    530

    VS 2010 Re: Proper ordering

    Gets the names of all labels even if they are in containers, i.e. GroupBox.


    Dim ClipBoardText1 As New List(Of String)
    Dim ctrl As Control = Me.GetNextControl(Me, True)
    ...
  15. VS 2010 Re: If closed from Taskbar when minimized, opens as minimized and stuck

    The location when minimized is -32000, -32000. Also take a look at Edge's suggestion.
  16. VS 2010 Re: If closed from Taskbar when minimized, opens as minimized and stuck

    Must be a MO thing;) because I just had a similar problem. Before saving the location of the app make sure the form is not minimized.
  17. VS 2008 Re: Datetimepicker.value = First Day of First Month of my.Year. or Last Day of Last M

    Here is a big hint


    Dim someYear As Integer = 2013
    Dim someDT As DateTime = New DateTime(someYear, 1, 1)
    DateTimePicker1.Value=????
  18. Replies
    6
    Views
    233

    VS 2012 Re: [RESOLVED] XML data extraction

    I saw that, but I left it because the example may have not been complete.
  19. VS 2008 Re: [VB.net]Get Files Based On Creation Date(Most recent created files)

    This test gets the 5 most newly created files from the desktop.


    Dim path As String = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
    Dim di As IO.DirectoryInfo =...
  20. Replies
    6
    Views
    233

    VS 2012 Re: XML data extraction

    Dim foo As XElement = <coreProperties xmlns="http://www.myserver.com">
    <coreProperty name="Common.ApplicationHome" value="1"/>
    ...
  21. Replies
    63
    Views
    1,334

    VS 2010 Re: String Optimization

    I must have done something wrong. It appears that Stringbuilder is much faster.


    Public Class Form1

    Dim ipsumA() As String = New String() {"Lorem", "ipsum", "dolor", "sit", _
    ...
  22. Re: Read data Serial Port from Total Station Topcon.

    So you have set the device using the settings on page 9-16 of the manual. What settings did you choose?
    Protocol?
    BaudRate?
    Char./Parity?

    The manual skipped over some of them in the example.
    ...
  23. Re: Read data Serial Port from Total Station Topcon.

    All true points but see posts #12 & #15.

    @felix - server not found when trying to access the manual.
  24. Replies
    3
    Views
    238

    VS 2012 Re: Create a "Poker Hand Determinator"

    Two dictionaries would be helpful. As John pointed out one for rank is needed, and one for suits for the other. I don't know that checking in a strictly best-to-worst order is the best strategy. ...
  25. Re: Read data Serial Port from Total Station Topcon.

    Obviously something isn't correct. Is there a reason you can't show us the manual?

    In my signature there is a link for Serial Port. Use that code after you have made the changes to reflect your...
  26. Re: Read data Serial Port from Total Station Topcon.

    It would be real helpful to be able to see the manual for the device. Could you upload it to the cloud somewhere? The only thing you know from this test is that you have a serial port on "COM6",...
  27. Replies
    26
    Views
    672

    Re: RS232 Serial COmmunication

    If this is a VB6 question now then ask the question in the VB6 forum.
  28. Re: Read data Serial Port from Total Station Topcon.

    One of the properties of Dim com1 As IO.Ports.SerialPort is PortName. It needs to be set to "COM6" or whatever the real port is. You can't just change the name in the declaration, i.e. Dim com6 As...
  29. Re: how to round up values to nearest 50s in vb.net

    If that is the use then you are correct. Only the OP knows.
  30. Re: how to round up values to nearest 50s in vb.net

    How do they compare if the number being rounded is negative? Do they all produce the correct results?
  31. Re: how to round up values to nearest 50s in vb.net

    How about:


    Function RoundUpToNearest(Value As Integer, nearest As Integer) As Integer
    Return CInt(Math.Ceiling(Value / nearest) * nearest)
    End Function
  32. Re: how to round up values to nearest 50s in vb.net

    Why would 1071 round to 1100? What would 1 round to?
  33. VS 2012 Re: Cannot see anything in my Form1 but can see the code

    Have you tried changing the theme to something else to see if it makes a difference?
  34. Replies
    6
    Views
    258

    VS 2013 Re: best way to read/write. xml

    XML is stored as a text file, and what you see when you open it with NotePad is all there is. The interpretation of the text by XML methods gives it meaning. Same is true for CSV files.

    Here is...
  35. Thread: Slow response

    by dbasnett
    Replies
    6
    Views
    312

    Re: Slow response

    Latest version of IE at work, and latest version of Firefox at home.
  36. Thread: Slow response

    by dbasnett
    Replies
    6
    Views
    312

    Slow response

    Both at home and at work I notice that loading forums is slow. It appears to be related to one (or more) of the ad trackers. Loading individual threads doesn't seem to be as slow.
  37. Replies
    2
    Views
    194

    VS 02/03 Re: How to add Parent node in existing XML

    That doesn't appear to be legal xml. How about this instead:


    <Results>
    <Result>
    <ID>1</ID>
    ...
  38. Re: WithEvents variable not recognizing CheckChanged?

    I created a form with 2 radio buttons and have this code to test what you are saying.



    Private Sub rbs_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton1.CheckedChanged,...
  39. Re: [RESOLVED] Which RichTextBox was Clicked Contextmenu

    Try something like this


    Private Sub ContextMenuStrip1_Click(sender As Object, e As EventArgs) Handles ContextMenuStrip1.Click
    Dim rtb As RichTextBox =...
  40. VS 2010 Re: Adding labels programmatically but they don't show

    It won't be visible because there is nothing visible in .Text.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.