Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 4.81 seconds; generated 3 minute(s) ago.

  1. Replies
    4
    Views
    113

    VS 2010 Re: Deadlock in Background Worker

    The ConcurrentQueue class has no Clear method but, if you want to clear it, you can just dequeue in a loop as I demonstrated. Here's an extension method that will allow you to call Clear like you...
  2. Replies
    1
    Views
    85

    Re: Oldest Date

    This is really a SQL question. You can use SELECT TOP 1 to get the first record in a result set so you simply need to query your table and sort by the date column in ascending order to make the...
  3. Re: How to create a leadger system in c#

    We're not here to teach you how to program from scratch. What have you done and where are you stuck? If you want to create such a system then presumably you know how it works so put something into...
  4. Replies
    4
    Views
    113

    VS 2010 Re: Deadlock in Background Worker

    Do it like this:

    Private actionList As New ConcurrentQueue(Of String)

    Private Sub AddAction(action As String)
    actionList.Enqueue(action)
    End Sub

    Private Sub Button1_Click(sender As...
  5. Replies
    10
    Views
    216

    VS 2019 Re: System.NullReferenceException Error

    Indexing the Controls collection returns a Control reference, so you can only access members of the Control class via that reference. As is always the case, if the actual object referred to is a more...
  6. Replies
    8
    Views
    172

    Re: Adding a label to specific Images

    It's a different solution but it's not inherently "cleaner". What if you don't want the image obscured by the text?

    Also, this is the VB.NET forum and you have provided C# code. Not a criminal...
  7. Replies
    8
    Views
    172

    Re: Adding a label to specific Images

    You do what I said. You define a type that had those properties and then you create an array of that type. Creating an array is the same regardless of the type and you obviously already know how to...
  8. Replies
    8
    Views
    172

    Re: Adding a label to specific Images

    Use a single Label, set AutoSize to False, change the Size so it is the full width of the available area and set TextAlign to MiddleCenter or, if some of the descriptions may be multi-line, TopCenter.
  9. Replies
    8
    Views
    172

    Re: Adding a label to specific Images

    Instead of using a Bitmap array, you should define a type that has a Bitmap property and a String property and then create an array of that type. You can then create instances of that type and put...
  10. VS 2010 Re: Another window doesnt popup though it should

    Yes you did, but I didn't ask you "what". I asked you "why". You don't have to answer my question if you don't want to but I'm not interested in helping people to do the wrong thing so if you can't...
  11. Replies
    420
    Views
    9,190

    Re: The US fragile democracy Exposed

    I doubt it. My impression, based largely on the fact that he seems to want to criticise Biden for every little thing even before this while pretty much giving Trump a pass, is that he is someone who...
  12. VS 2010 Re: Another window doesnt popup though it should

    Why? Is this a "because I can" sort of thing or are you actually trying to achieve something useful? If the latter, you should explain what that is because it's hard to imagine that there isn't a...
  13. VS 2017 Re: Toggle between two images based on filename

    The point of an example is to demonstrate a principle and you then implement the principle in your own scenario. An "example" of what I described would be the whole thing, so it wouldn't be an...
  14. Replies
    420
    Views
    9,190

    Re: The US fragile democracy Exposed

    There have been calls on the left to start a People's Party behind the likes of Bernie Sanders. I think that that would be a good thing in principle but the reality is that, if that happened, the...
  15. Replies
    420
    Views
    9,190

    Re: The US fragile democracy Exposed

    Indeed. I don't know whether they were just parroting Trump himself but I've heard plenty of his supporters claim that the fact that his rallies were so well and enthusiastically populated is...
  16. Replies
    10
    Views
    216

    VS 2019 Re: System.NullReferenceException Error

    If the TabPage was added to the TabControl in the designer then there will be a field for it, just like other controls. In that case, you would generally refer to the TabPage by that field, e.g.
    ...
  17. Replies
    10
    Views
    216

    VS 2019 Re: System.NullReferenceException Error

    Indexing the Controls collection with a name that doesn't exist will return Nothing, and you can't get a property of Nothing. Why do you think that ComboBoxes will just appear out of thin air? If you...
  18. Replies
    420
    Views
    9,190

    Re: The US fragile democracy Exposed

    I agree but I will say that an ad hominem attack and an ad hominem fallacy are two different things. I'm not above calling people stupid if I think they're stupid, as evidenced above, but I generally...
  19. VS 2017 Re: Toggle between two images based on filename

    I would not be loading the file every time unless you're confident that you'll only toggle a small number of times. Otherwise, you'll be creating a large number of Image objects from the same. In...
  20. Re: Error on filling ComboBox from Excel named range.

    When any exception that you're not sure about is thrown on a compound statement, the very first thing to do is to break up the statement into parts and see exactly where the exception is thrown. That...
  21. Re: Error on filling ComboBox from Excel named range.

    Error messages are text and should be posted as text. We shouldn't have to resize an image and try to read the blurry screenshot when, if I'm not mistaken, the Exception Assistant window even has a...
  22. Replies
    420
    Views
    9,190

    Re: The US fragile democracy Exposed

    Do you even know what communism is? I don't think you do. I think that those who bleat about communism are actually talking about dictatorships, which is rather rich when Trump is the closest thing...
  23. Replies
    420
    Views
    9,190

    Re: The US fragile democracy Exposed

    I find it hard to imagine that anyone is stupid enough to actually believe that, so I can only assume that you are intensely dishonest. It's funny how you come from the "pull yourself up by your...
  24. Re: Help adding a password to my IRC chat

    You should do some research on user management, implement what you can and then ask us specific questions about the parts you can't. Like in previous threads, you appear to be asking us to teach you...
  25. Replies
    420
    Views
    9,190

    Re: The US fragile democracy Exposed

    Previous posts would suggest hyperbolic rather than sarcastic. It certainly seems to me that he thinks it's Biden's fault rather than Trump's.
  26. Replies
    420
    Views
    9,190

    Re: The US fragile democracy Exposed

    I guess he should have just followed his predecessors lead and assumed the best and then lied about it when it didn't happen. The previous administration has been bookended with such fictions. You...
  27. Replies
    7
    Views
    226

    VS 2019 Re: Update of SQL Database for Data Table

    The point of a BindingSource is to provide one point of contact for the bound data. It aggregates functionality that was spread across a number of places previously, primarily in the DefaultView of...
  28. Replies
    11
    Views
    238

    Re: Need help converting a c# to VB.NET

    Why post an enormous wad of code and direct us to the middle or end without actually highlighting the line when you could just post a small snippet of relevant code. Also, please put some thought...
  29. Replies
    420
    Views
    9,190

    Re: The US fragile democracy Exposed

    I honestly don't think that you're stupid enough to believe what you're saying so I can only conclude that you're deliberately being a douche. I've said before that I don't think that Biden is a good...
  30. Replies
    420
    Views
    9,190

    Re: The US fragile democracy Exposed

    Republicans appeal to the emotions of people who can't or won't make the effort to think. That's why religious nuts vote Republican. They are used to being (and are the type of people who want to be)...
  31. Replies
    420
    Views
    9,190

    Re: The US fragile democracy Exposed

    Trump is an epically bad person. He's not going to murder people with his own hands or the like, but he is clearly a malignant narcissist and they are pretty much the worst people you can possibly...
  32. Replies
    11
    Views
    238

    Re: Need help converting a c# to VB.NET

    In your previous thread you were recommended to use a code converter and even directed to one specifically and yet you have apparently made no effort to do that, instead asking someone else to do it...
  33. Replies
    6
    Views
    176

    Re: Voice Chat over ip help!

    If Google is not working where you are then try Bing. It is my experience that Bing is better than Google for .NET-related searches so I'd suggest Bing as a first choice anyway.
  34. Replies
    6
    Views
    176

    Re: Voice Chat over ip help!

    There are online converters of various quality but I strongly advise downloading and installing Instant VB from Tangible Software Solutions. The free version has limitations on how much code it can...
  35. Replies
    4
    Views
    170

    Re: Need help with my first application

    For future reference, please provide a title that actually summarises the issue you're having. Your title tells us nothing of use. We should be able to tell whether the thread is relevant to us from...
  36. Replies
    4
    Views
    170

    Re: Need help with my first application

    So you're saying that you want something to happen only IF a specific condition is satisfied? I wonder whether VB has a code construct that can do that.

    Also, if you are only resizing in one...
  37. Re: Publishing a Visual Basic Net application

    You should not be using ClickOnce for a start. ClickOnce apps are installed in the ClickOnce cache. If you don't want to run an application in the ClickOnce cache then don't install it there. If you...
  38. VS 2017 Re: Using .NET 5 Rich Text Box with .NET 4 Windows Forms application

    It's not something I've tried to do but it is possible to install .NET Core once on a system and for applications to share libraries, just like with .NET Framework.
    ...
  39. VS 2017 Re: Using .NET 5 Rich Text Box with .NET 4 Windows Forms application

    They work fairly differently. The .NET Framework is installed on the user's system and that contains all the standard types that your app uses. With .NET Core, the standard types are deployed with...
  40. VS 2010 Re: Draw On Camera Preview screen in VB2010

    I don't know, but it has a better chance of working than what you're doing now.
Results 1 to 40 of 492
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width