Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 4.21 seconds.

  1. Re: [vb.net] How to use a progress bar while downloading through HttpClient

    Look at the code. It contains this call:
    Await AsyncMethod(progressIndicator, _cts.Token)
    to this method:
    Private Async Function AsyncMethod(progress As IProgress(Of Integer), ct As...
  2. VS 2019 Re: [RESOLVED] View files in folder based on button

    Firstly, you should not be doing this:
    For Each File In files
    ListBox1.Items.Add(File)
    Next
    Either call AddRange to add the lot in one go or else set the DataSource to bind.

    As for...
  3. Replies
    6
    Views
    151

    Re: [RESOLVED] Random Numbers math

    Instead of deleting the question, how about you post your solution and maybe help someone else with a similar problem?
  4. Replies
    6
    Views
    151

    Re: Random Numbers math

    Also, you really ought to be using a For Each loop here. Unless you've been specifically instructed to do otherwise, do that.
  5. Replies
    6
    Views
    151

    Re: Random Numbers math

    ANY time you are doing a programming problem, you should be working out the logic first and then writing the code to implement that logic. It is very clear that you haven't done that here:

    ...
  6. Re: Integration web application with local database

    You've still asked two unrelated questions in one thread. One thread per topic and one topic per thread.

    With regards to deleting, the answer is that you don't. Instead of physically deleting, you...
  7. Replies
    8
    Views
    351

    Re: Adding Api for my desktop application

    And then you ask two more questions, neither of which is specific to the topic of this thread. One topic per thread and one thread per topic. If you have two new topics to ask about then create two...
  8. Replies
    8
    Views
    351

    Re: Adding Api for my desktop application

    If you want to understand security in web services then you should do some reading on security in web services. It's not really for us to teach you the subject from the ground up.
  9. Replies
    14
    Views
    443

    Re: [RESOLVED] Problem with Color.FromName

    Keep in mind that the KnownColor enumeration contains values like Red, LightBlue and HighlightText. Here's a method that will match those values regardless of case while also excluding the system...
  10. Replies
    14
    Views
    443

    Re: Problem with Color.FromName

    Um, the KnownColor enumeration that I just demonstrated for you. :rolleyes: You don't have to add anything to any array. You seem to have missed the principle the example was demonstrating. The line...
  11. Replies
    11
    Views
    354

    Re: Why does my screen blank ?

    What's that got to do with it? CreateGraphics creates a Graphics object. The Paint event handler provides a Graphics object. Why can you do something with one of those but you can't do the same with...
  12. Re: rows in incorrect order when inserting into SQL database

    I'm not clear on why that's an issue. Why can't use just use a data adapter to save the entire contents of a DataTable at once, inserting, updating and deleting records as required?
  13. Re: rows in incorrect order when inserting into SQL database

    No such word. It's "regardless" or "irrespective". Thus ends the lesson. ;)
  14. Replies
    11
    Views
    354

    Re: Why does my screen blank ?

    Dim names = {"Red", "Rid"}

    For Each s In names
    If [Enum].IsDefined(GetType(KnownColor), s) Then
    Console.WriteLine($"There is a known colour named '{s}'.")
    Else
    ...
  15. Replies
    11
    Views
    354

    Re: Why does my screen blank ?

    NEVER call CreateGraphics. Draw on the Paint event of the relevant control.
  16. Replies
    33
    Views
    631

    Re: Notorius R.B.G ... RIP

    Being more concerned about your own pride in your principles than people is smug in my book. If your principles aren't serving people then they're of no value. If Trump gets his way, you go and tell...
  17. Replies
    8
    Views
    351

    Re: Adding Api for my desktop application

    What you should do is build a web service and pull all the service code out of your web application and move it into that. The web application is then just an interface, as is the desktop...
  18. Replies
    33
    Views
    631

    Re: Notorius R.B.G ... RIP

    It's that smug attitude from Democrats that has allowed things to get as bad as they are in the first place.
  19. Replies
    33
    Views
    631

    Re: Notorius R.B.G ... RIP

    It appears that Trump plans to stack the SC so that he can refuse to accept the result if he loses the election and have the SC install him as a the dictator he's always wanted to be. Still more...
  20. Replies
    27
    Views
    439

    VS 2015 Re: Calculations not calculating? VBS 2015

    Certainly not denying that it works. It just seems that there's a better option. That said, incorporating it into examples for beginners so that you don't have to rely on their setting a breakpoint...
  21. Replies
    27
    Views
    439

    VS 2015 Re: Calculations not calculating? VBS 2015

    Personally, I'm not sure why you would choose to make a change to the code itself that you then have to remove later, rather than just clicking in the margin or pressing F9. The only advantage I can...
  22. Replies
    27
    Views
    439

    VS 2015 Re: Calculations not calculating? VBS 2015

    I just go by what I see. I don't know whether you're stupid or not or whether you have used a search engine or not. What I do know is that I was able to find information explaining what an IDE is in...
  23. Replies
    27
    Views
    439

    VS 2015 Re: Calculations not calculating? VBS 2015

    It is a travesty that so many school and paid programming courses don't bother to teach basic debugging techniques but that doesn't mean that you can't think for yourself. Many people, myself...
  24. Replies
    1
    Views
    121

    VS 2017 Re: Converting List Collection & String

    This:
    My.Settings.M_IPs = M_Ips2.ToList
    should be this:
    My.Settings.M_IPs.AddRange(M_Ips2)
    You may want to call Clear on the existing collection first, if it may already contain items.
  25. Replies
    27
    Views
    439

    VS 2015 Re: Calculations not calculating? VBS 2015

    You need to debug your code. When things don't work as expected, step 1 is to read the code to see if there is anything obviously wrong with. If that doesn't work, step 2 is not to post a question...
  26. Replies
    33
    Views
    631

    Re: Notorius R.B.G ... RIP

    I agree, but the situation is what it is so maybe do what you can to avoid it becoming even worse.

    Almost nothing is not nothing. Principles are great but if you are in a fight and your opponent...
  27. Replies
    17
    Views
    326

    VS 2017 Re: Importing CSV Strings as numbers

    I can't remember exactly why - it may have been for phone numbers - but I tried that once and it didn't work. Adding a single quote within Excel does force data to be interpreted as text in XLS files...
  28. Replies
    33
    Views
    631

    Re: Notorius R.B.G ... RIP

    What I'm thinking is that Democrats should do anything and everything they can to prevent Republicans appointing any more SC justices whether you want to get your hands dirty or not. Maybe you figure...
  29. Replies
    33
    Views
    631

    Re: Notorius R.B.G ... RIP

    When someone appears so disingenuous so often, I start to wonder whether I'm giving them too much credit. Biden is a bad candidate, no doubt, but it should tell you something about the Republican...
  30. Replies
    33
    Views
    631

    Re: Notorius R.B.G ... RIP

    You sound like someone who is confident that a Supreme Court stacked by Republicans won't really affect them directly.
  31. Replies
    17
    Views
    326

    VS 2017 Re: Importing CSV Strings as numbers

    Cough, cough.
  32. Replies
    17
    Views
    326

    VS 2017 Re: Importing CSV Strings as numbers

    He's suggesting that you open the CSV file directly, but I think he missed that one of your screenshots is the file open in Excel. I'd still recommend opening it in Notepad or the like though. Excel...
  33. VS 2012 Re: How to discrete a string with "," or ";" and placing txts/vals in different contr

    I'm not saying anything. I'm asking what problem you are having that you would like help with, because you haven't told us. You've provided a very vague description of what you're trying to achieve...
  34. VS 2012 Re: How to discrete a string with "," or ";" and placing txts/vals in different contr

    Congratulations. Now, what's the actual problem that you want help with?
  35. VS 2015 Re: WebClient.DownloadString(URL) returns Error 403 - Forbidden

    I'm in Australia and if I click the link in post #1 the page displays fine for me in Edge.
  36. Replies
    8
    Views
    351

    Re: Adding Api for my desktop application

    What is the purpose of the application and what is the purpose of the API?
  37. VS 2005 Re: How to connect to SQL Server data without using SQL Server Management Studio in .

    You don't. Management Studio is completely irrelevant regardless. It's an application in itself. Applications, SSMS included, connect to a SQL Server instance. Management Studio is not the instance....
  38. VS 2019 Re: Trying to learn how to work with csv, listbox and textbox in vb.net

    Here is said example:

    Private ReadOnly table As New DataTable

    Private Sub ParentForm_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    'Add standard data columns.
    With...
  39. VS 2019 Re: Trying to learn how to work with csv, listbox and textbox in vb.net

    You are correct. I confused myself because I've often pointed out that using two BindingSources with one DataTable allows you to make separate selections in two controls, but it doesn't allow you to...
  40. VS 2019 Re: Trying to learn how to work with csv, listbox and textbox in vb.net

    Stop that for a start. A DataGridView is a control, for displaying data to the user and for interacting with the user. If you're doing neither of those things, there's no justification for using that...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width