Search Results - VBForums

Search:

Type: Posts; User: dbasnett

Page 1 of 13 1 2 3 4

Search: Search took 0.14 seconds.

  1. Replies
    3
    Views
    168

    VS 2008 Re: Hypotenuse Trouble

    We must have a different definition of hypotenuse. To calculate the hypotenuse you must have valid sides.

    Basic calculation is

    Dim sideA As Double = 3
    Dim sideB As Double = 4...
  2. Replies
    3
    Views
    143

    VS 2015 Re: xml edit/replace node

    If you intended to create XProcessingInstruction elements then the code presented below could be modified to change / delete certain of those elements. I think the only cases I have seen...
  3. Replies
    3
    Views
    143

    VS 2015 Re: xml edit/replace node

    How was this XML created? The elements with this format <?targetApp data?> are XProcessingInstruction's and have special meaning. What are you trying to change the instruction to?

    Take a look at...
  4. Replies
    3
    Views
    125

    VS 2010 Re: index of in lists

    Here are some ideas using LINQ and your list.


    Dim alist As List(Of KeyValuePair(Of String, Integer))
    alist = New List(Of KeyValuePair(Of String, Integer))

    ...
  5. Replies
    1
    Views
    103

    VS 2013 Re: Load an XML file

    And.... You get an error? or Something else? My internet telepathy is down again.
  6. VS 2005 Re: System,Runtime.InterloopServices.COMException when writing to excel

    When you deploy this I assume you remove the messagebox.shows. Instead of replacing them change them to

    Threading.Thread.Sleep(20)

    I had weird, only on a handful of PC's, issues when...
  7. Re: Meaning of errors logged by FileSystemWatcher.Error

    Can you show the code that manipulates the files when there are changes / deletions please.

    FWIW - your filter rewritten

    Dim filter As IO.NotifyFilters
    filter =...
  8. Replies
    62
    Views
    802

    Re: Set Window Position not working

    Been down this rabbit hole, no fun at all. I had code that restored the users last form location in all of my apps and one day this bit me. The fix for me was to add a button to a splash screen...
  9. Re: How to tell what program has a file locked

    One of these is sure to answer your question. ...
  10. Re: How to tell what program has a file locked

    Show the code that is doing the download please.
  11. VS 2005 Re: System,Runtime.InterloopServices.COMException when writing to excel

    Take a look at this, it might help...
  12. VS 2015 Re: Question about the Random Class in Background Worker.

    That looks like what you are doing and I guess you do not like the results. Why not give passel's advice a go?
  13. Re: Meaning of errors logged by FileSystemWatcher.Error

    Without more details about what you are watching, which filters, which events, etc. this will be hard to answer.
  14. Replies
    5
    Views
    164

    Re: Enum with space

    What a shame that VBForums is not included as a part of the MSDN Search. Don't remember where I found the code I use but it was through a MSDN search. As usual great job JMC.
  15. Replies
    5
    Views
    164

    Re: Enum with space

    Something like this might be helpful.


    Imports System.ComponentModel
    Imports System.Runtime.CompilerServices

    Public Class Form1

    Enum SomeEnum
    <Description("Description blue...
  16. VS 2015 Re: DateDiff() result differs on 1st run and succeeding runs?

    When in doubt there is always Me.ValidateChildren() I guess.
  17. VS 2015 Re: DateDiff() result differs on 1st run and succeeding runs?

    The example given here might help prove your theory of when the value is actually updated.
  18. Replies
    10
    Views
    271

    Re: how to use CreateParams

    OT - glad to see you survived the DB forum. At the rate you are going you will catch me in number of posts before the end of the year. ;)
  19. VS 2015 Re: DateDiff() result differs on 1st run and succeeding runs?

    Put a breakpoint on the line and see what is in each value. My guess would be that dtpBirthdate.Value.Date doesn't contain what you think.
  20. Re: Lagging animation (using Timer Component) when holding a Key. Please help.

    For this example, similar to the last, I put two PictureBoxes and a Label on a form. This code uses a queue to control the UI. There are no forms timers used. The label shows the time of day and...
  21. Re: Lagging animation (using Timer Component) when holding a Key. Please help.

    I created this little test to see how a keypress will affect redraw of a control. I put two pictureboxes on a form and ran this code.


    Public Class Form1

    Private isRunning As New...
  22. Replies
    7
    Views
    381

    Re: Remove node from xml file

    This example will remove all elements that have an attribute 'name' that startwith "alex"


    Dim myXElement As XElement

    'to load from file
    ' myXElement =...
  23. Re: Lagging animation (using Timer Component) when holding a Key. Please help.

    The issue might be what you are doing in whatever is handling the ' long press the Left Key'. Is that code running on the UI?

    Is this like the arcade game Asteroids?
  24. Re: Lagging animation (using Timer Component) when holding a Key. Please help.

    Since the windows forms timer runs on the UI you are correct that it is being impacted by other UI events. Here is your base code using a simple thread as a replacement for the timer. Give it a try...
  25. Replies
    7
    Views
    381

    Re: Remove node from xml file

    The only way we can help you is if you are very specific and show the actual XML. The XML above is not valid, attribute values must be enclosed in quotes. Wherever you are getting the XML from...
  26. VS 2015 Re: How to get the IP address and MAC address of a specific computer on network

    This concerns me a little, especially the part about MAC addresses. I can think of several bad reasons for wanting the MAC address, but no good reason.
  27. Replies
    4
    Views
    232

    VS 2015 Re: [RESOLVED] Write XML

    You might create a string to look like what you want, but it is not valid XML. See. https://www.w3.org/TR/REC-xml/#NT-NameStartChar
  28. Replies
    2
    Views
    247

    VS 2015 Re: Read xml files

    Do you mean that is what the listview looks like?
  29. VS 2013 Re: VB Threading between classes update textbox

    Your class is not referencing the instance of Form1 that is running. In order to make your class work I added a constructor that has an argument that is an instance of Form1.


    Public Class...
  30. Replies
    7
    Views
    387

    Re: Can't get RSS Feed (XML)

    Slightly modified version of Inferrd's code.


    Dim url As String = "https://kat.cr/usearch/the%20flash%20category%3Atv%20user%3Aettv%20verified%3A1/?rss=1"
    Dim rssXE As XElement
    ...
  31. VS 2013 Re: Does this avoid conflict caused by multiple simultaneous calls?

    At the end of the day all you need is this,


    Public Sub MyLabelUpdate(Text As String)
    If Me.myLabel.InvokeRequired Then
    Me.myLabel.BeginInvoke(Sub()
    ...
  32. VS 2013 Re: Does this avoid conflict caused by multiple simultaneous calls?

    So the reason I don't see this in the testing is because I can't get my four cores to start threads close to instantaneously. Makes sense.
  33. VS 2013 Re: Does this avoid conflict caused by multiple simultaneous calls?

    First - I don't need your attitude.
    Second - The point of this was because of you, "I say it more out of superstition than anything. If you think about it, there could be a leak involved.". The...
  34. VS 2013 Re: Does this avoid conflict caused by multiple simultaneous calls?

    You and passel have said the same thing, though I think if the two of you tried it or studied it, you wouldn't think that. When testing with displaying file names(one of the tests I used the windows...
  35. VS 2015 Re: Binding DGV to datatable problem ? Or ??

    Somewhere you should create a specific instance of the child and then assign the datatable to that DGV.


    Dim child As New Form1 'new instance

    child.DataGridView1.DataSource =...
  36. VS 2015 Re: Binding DGV to datatable problem ? Or ??

    If you have a DGV named dataGridView1 on the child form then GetSitesDB should reference that. dataGridView1 as you have coded it is local to GetSitesDB.

    In the future please put code inside of...
  37. Replies
    7
    Views
    387

    Re: Can't get RSS Feed (XML)

    It looks like it is encrypted. When I browse to the link and look at the source it looks like XML.

    paul - Tried your code and it did not work for me.
  38. VS 2013 Re: Does this avoid conflict caused by multiple simultaneous calls?

    That is what it is doing and setting the value to Nothing elsewhere defeats the purpose.



    The shared variable is only being used by one invocation at a time and can be tested with multiple...
  39. Re: Is there a literal for unsigned types?

    Peruse this whole page https://msdn.microsoft.com/en-us/library/s9cz43ek.aspx
  40. VS 2013 Re: Does this avoid conflict caused by multiple simultaneous calls?

    Didn't think you were, and I agree about it being anti-pattern.
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.