Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 0.41 seconds.

  1. Re: "The semaphore timeout period has expired", Program Crashes

    You ought to also be handling the UnhandledException event of the application - every VB WinForms app ought to do that. If another exception is being thrown, you'll hear about it there. Given that...
  2. Re: "The semaphore timeout period has expired", Program Crashes

    So when you run it in the debugger, what happens after it goes through that Catch block?
  3. Re: "The semaphore timeout period has expired", Program Crashes

    You say that the program crashes. Do you mean that it doesn't hit your Catch block? Or that it does hit your Catch block but a further exception is thrown?
  4. Replies
    241
    Views
    3,862

    Re: Musk buys Twitter

    I might be inclined to agree if it were just the change of political alignment. It's an odd thing to announce but Musk is definitely the sort of person to make such a big deal of something like that....
  5. Replies
    241
    Views
    3,862

    Re: Musk buys Twitter

    I watched a video by a prominent leftie YouTuber a few days ago about Elon Musk publicly declaring himself a Republican. At the time, he said that it felt like a setup. Musk claimed that "they" were...
  6. Replies
    14
    Views
    285

    Re: Monkeypox Outbreak - Global Spread?

    Almost certainly. Anything else would get in the way of business.

    I saw a headline the other day that we have case in Australia now. I believe that it was a woman who travelled here from the UK.
  7. Replies
    14
    Views
    366

    VS 2022 Re: Prevent Duplicates in Array

    Or you could just do it all in one chain:

    Dim rng As New Random
    Dim selectedNumbers = Enumerable.Range(1, 58).OrderBy(Function(n) rng.NextDouble()).Take(6).ToArray()

    Note that the original...
  8. Replies
    14
    Views
    366

    VS 2022 Re: Prevent Duplicates in Array

    No point calling ToArray multiple times. Only the last one is needed.
  9. Replies
    14
    Views
    366

    VS 2022 Re: Prevent Duplicates in Array

    How about you don't allow duplicates in the first place? Then there's no need to prevent them being placed in the array. How does a real lottery draw work? It puts all the possible values into a...
  10. Replies
    13
    Views
    326

    VS 2010 Re: BBC Computers

    Then maybe take the advice you're given when you're given it instead of trying to guilt other people into writing your code for you. I wouldn't be here if I didn't want to help but I'm not here to be...
  11. Replies
    8
    Views
    257

    Re: Problem with Asc()

    At the very least, use AscW and ChrW but don't do that either. Convert.ToInt32 will convert a Char to a Unicode value and Convert.ToChar will do the opposite. That's what you should be using, not...
  12. Replies
    2
    Views
    215

    Re: i need help about moving

    There's no magic to it. You just have to do the basic arithmetic. If your adding a control in code and you want it to be centred horizontally in its container the you have to set its Left property...
  13. Re: NullException on delete in WPF textbox

    Read the error message. Does it say anything about NULLs? The issue here is your database, not your DataSet. You need to configure your database to accept the data that you want to save to it.
  14. Replies
    10
    Views
    346

    VS 2022 Re: Data binding controls disabled

    Of course it's not. There's nothing wrong with the syntax so the compiler isn't going to complain. The compiler doesn't test the logic of your code though. . That's your job. The fact that code...
  15. Re: VB.NET read text file data between two dates

    Use the debugger. The error message is telling you that the index you're using is out of range so look at the index you're using and the valid range to see why it's wrong. The index is hard-coded...
  16. Re: VB.NET read text file data between two dates

    Look at the difference between them. One is specifying a 2-digit daya and the other is specifying a 1-digit day. Is you day 2 digits? Did you read the documentation about date/time formatting? If you...
  17. Replies
    5
    Views
    218

    Re: ShowDialog with data from parent form

    You could do that but the form would be blank by default. You would need code somewhere, either in the form or elsewhere, to add whatever controls you need and to process the data in those controls....
  18. Re: NullException on delete in WPF textbox

    Exceptions get thrown. That's what they do. Exceptions being thrown is not a problem. It's exceptions being thrown and not caught that is a problem. If you're not catching the exception yourself and...
  19. Re: NullException on delete in WPF textbox

    is the application crashing? If not then what's the problem? If so then the debugger must provide you with information about the exception and that will tell you where the exception is thrown....
  20. Re: NullException on delete in WPF textbox

    Deleting data is not a problem. Saving changes is not a problem. Your code is the problem, but as you have chosen not to show us what you're doing, there's no way that we could possibly know what's...
  21. Re: How to handle events of subform cells at runtime in Access

    You can click the Report Post icon under your own post to send a message to the mods and ask for it to be moved. The question where to move it to. Is this a VB6 question or a VBA question?
  22. Replies
    241
    Views
    3,862

    Re: Musk buys Twitter

    No, you're a radical activist and just didn't know it... apparently.
  23. Replies
    241
    Views
    3,862

    Re: Musk buys Twitter

    This is really just sad self-congratulation. I bet that Biden would tell you that he's a moderate if you asked him. I wouldn't be surprised if Joe Manchin did too. Considering yourself a moderate is...
  24. Re: How to handle events of subform cells at runtime in Access

    .paul. is right to ask that question but, based on the name "dgvRecipesList", I'm going to go out on a limb and guess that what you're calling a "subform" isn't (because there's no such thing in...
  25. Replies
    241
    Views
    3,862

    Re: Musk buys Twitter

    No naked flames near all that straw.
  26. Replies
    6
    Views
    336

    Re: Adding toolbox controls

    What project template did you use to create the project you have open when tried to add these items to the Toolbox? I would expect this to work for a .NET Framework WinForms project and probably a...
  27. Replies
    5
    Views
    218

    Re: ShowDialog with data from parent form

    It's worth noting that what Shaggy has described is exactly how you get data into any other object. For example, if you want to get text into a TextBox, what do you do? You set its Text property,...
  28. Re: VB.NET read text file data between two dates

    Your attachment is invalid. That's the site's fault rather than yours - there's a bug with inline attachments - but that's irrelevant anyway. There's no need to attach anything. Post the relevant...
  29. Replies
    10
    Views
    346

    VS 2022 Re: Data binding controls disabled

    Did you actually read the information you just posted? The exception tells you exactly what the issue is:

    The obvious solution is to initialise that property. You know where your command object is...
  30. Replies
    13
    Views
    326

    VS 2010 Re: BBC Computers

    You were pointed in the right direction. I told you exactly what event and property or method to use. What you actually want is for someone to write your the code for you so you don't have to make...
  31. Replies
    241
    Views
    3,862

    Re: Musk buys Twitter

    It's a "no" from me.
  32. Replies
    13
    Views
    326

    VS 2010 Re: BBC Computers

    If a file association is created in the OS then double-clicking the data file will run the associated EXE and pass the data file path as a commandline argument. As far as the application is...
  33. Replies
    13
    Views
    326

    VS 2010 Re: BBC Computers

    When you drop a data file on an executable in Windows, it will run the executable and pass the path of the data file to it as a commandline argument. In a VB.NET Windows Forms project, you can either...
  34. Replies
    10
    Views
    346

    VS 2022 Re: Data binding controls disabled

    What error? What code? Are you being mysterious for a reason?

    Great. Now maybe you could answer the question I actually asked.
  35. Replies
    241
    Views
    3,862

    Re: Musk buys Twitter

    It is bizarre to me, the number of Americans, in particular, who seem to think that they are the "real"/"proper" left and the best way to distinguish themselves from those whom they think are not is...
  36. Replies
    6
    Views
    336

    Re: Adding toolbox controls

    Why would I download a Word document when you could just post the information directly?
  37. Replies
    10
    Views
    346

    VS 2022 Re: Data binding controls disabled

    Presumably you are talking about a BindingNavigator. In the designer, is the BindingSource property of that BindingNavigator set? If not, the BindingNavigator will be disabled.
  38. Re: Fast way to determine if an obj exists in a List(Of ExpandoObject) based on 2 pro

    The code you had originally could have worked except for a major flaw in the logic. Think about it. You are initialising returnvalue to False so what reason have you got to later set it to False?...
  39. Re: Fast way to determine if an obj exists in a List(Of ExpandoObject) based on 2 pro

    OT, do not declare that third parameter ByRef. This is not VB6. The only reason to declare a reference type (i.e. a class) parameter ByRef is if you want to assign a new object to the parameter...
  40. Re: vb net ado cannor update record in SQL database

    As for the issue, you don't have code "in a button". You've shown us the RefreshItems event handler for a BindingSource. Perhaps if you were to provide an actual explanation of what you're actually...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width