Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 6.66 seconds; generated 14 minute(s) ago.

  1. Replies
    3
    Views
    96

    Re: "Reset" a With/End With structure?

    OK, I'm more confused now because I changed Thing in my code to be a structure rather than a class and I now see the behaviour that you want and I originally expected. As VB6 and VBA don't have the...
  2. Replies
    3
    Views
    96

    Re: "Reset" a With/End With structure?

    That's interesting. I always thought that With was purely a design-time construct and that the actual code that was executed would be the same as using the variable specified in the With statement...
  3. VS 2012 Re: how to link datagridviews events created using multiple tabcontrol

    It's not completely clear what you're asking but, as you're talking about controls created at run time, I'm going to guess you're having the same type of problem that many other people do. Inside any...
  4. Re: Cannot overwrite Combobox Value with new text

    Why would you be unsure? Anything that compiles is allowed and anything that doesn't compile is not allowed. You don't need us to tell you whether something compiles or not. Whether or not code that...
  5. Re: Hong Kong, Portland and the Moral Low Ground

    I would say that the collective coherence of the candidates in the upcoming election may be the lowest in history. I would say that Trump is probably the slightly more coherent of the two when it...
  6. VS 2015 Re: Combobox repeats its items when cliked twice on it

    You are obviously executing the code that populates a ComboBox twice but we have no idea what that code is or what prompts it to be executed. Mind-reading is a skill that is not generally strong in...
  7. Re: Cannot overwrite Combobox Value with new text

    Try providing a FULL and CLEAR explanation of the problem. What happened that you didn't expect? What didn't happen that you did expect? If there was an error message generated, provide it, as well...
  8. VS 2019 Re: Check if the Column contains a value or not.

    I would also recommend that you use NULL to represent a test not taken in your database. That way, you can actually differentiate between a test not taken and a test taken and a zero score received....
  9. VS 2019 Re: Check if the Column contains a value or not.

    Have you done basic research on how to work with databases in VB.NET? If not, that should be your first task. You don't learn by tackling each problem as you go along. You learn the basics first and...
  10. Replies
    3
    Views
    144

    VS 2015 Re: Exit Validating if button clicked

    Note that the DateTimePicker control has a ShowCheckBox property that, when set to True, will display a check box in the control and grey the text if it is not checked. For those fields that don't...
  11. Replies
    3
    Views
    144

    Re: Make Tab Key work as Enter Key

    Why have you set TabStop to False in the first place? Are you trying to prevent people tabbing between fields, as has been possible in Windows apps for decades, or was it an effort to get this...
  12. Replies
    1
    Views
    99

    Re: [RESOLVED] match a range of points?

    What does it even mean for a Point to be greater than or less than another Point? The Point structure doesn't implement IComparable for a reason. There is no standard meaning to a Point being "within...
  13. Re: Value of type 'String' cannot be converted to 'MailMessage'.

    Couldn't agree more. If email refers to a MailMessage object then the only sensible use for emails would be for an array or collection of MailMessage objects. If that emails variable is actually a...
  14. Re: How do I create lots of controls faster in a dynamic form?

    How about creating all the controls first and then adding them all with a single call to AddRange?
  15. Re: How do I scroll over controls added to a dynamic panel?

    FlowLayoutPanel and TableLayoutPanel, to be precise.
  16. Replies
    3
    Views
    144

    VS 2015 Re: Exit Validating if button clicked

    My first question would be, if you have DateTimePicker controls elsewhere, why aren't you using DateTimePicker controls where you have those TextBox/Button pairs? That would render this a non-issue...
  17. Re: how to get webbrowser GetElementById to datagridview1

    Help to what? You know how to add a row. I told you that, if you want that row to have three values, you need to pass three values to the method that adds a the row. Have you tried that? Have you...
  18. Re: how to get webbrowser GetElementById to datagridview1

    We know what a DataGridView looks like. That doesn't change the fact that, if you want to populate multiple columns, you need to pass multiple values when calling Rows.Add.
  19. VS 2017 Re: database connection does not work, what is wrong

    Where exactly in that code are you creating a DataSet? You can't fill a DataSet that doesn't exist.

    That said, if you only want one DataTable then don't create a DataSet at all. Just create a...
  20. Re: how to get webbrowser GetElementById to datagridview1

    If you call Rows.Add and pass one value every time then obviously you will get rows with only one value in them. If you want rows with three values in them then you have to pass three values when you...
  21. Re: how to get webbrowser GetElementById to datagridview1

    Please don't post unformatted code snippets. They are too hard to read.

    Public Class Form1

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

    ...
  22. VS 2019 Re: Trying to read multiple lines comments from file

    If you can do some of it but not the rest then you're doing something wrong. We can't know what's you're doing wrong if we can't see what you're doing. ALWAYS show us the code. It's ALWAYS relevant....
  23. VS 2019 Re: Trying to read multiple lines comments from file

    The RichTextBox control has nothing at all to do with XML. It is specifically intended to render RTF data. If you wanted to display XML then you could just do so as plain text in a RichTextBox but...
  24. Replies
    6
    Views
    472

    Re: Building a simply service

    https://docs.microsoft.com/en-au/dotnet/api/microsoft.win32.systemevents.powermodechanged?view=netframework-4.8

    See the note in the Remarks section and follow the link.
  25. Re: How to delete all folders and sub-folders in a path?

    Please use the Thread Tools menu to mark your thread Resolved if you no longer need assistance.
  26. Re: Why doesn't my cursor show ?

    With regards to the use of ByVal, the point was to remove just the keyword, not the whole parameter. Your third quote even shows you that it's not required:

    The ByVal keyword does not hurt but is...
  27. VS 2017 Re: MessageBox That Doesn't Pop Up When Outside the Application

    If you display a form then that form will be displayed. If you don't want to display a form then don't. It sounds like what you need to do is to set a flag when your processing is complete and then...
  28. Re: Service runs when computer 'wakes up' from StandBy

    If you do want to create a service then you might check this out:

    https://docs.microsoft.com/en-au/dotnet/api/microsoft.win32.systemevents.powermodechanged?view=netframework-4.8

    You can test...
  29. Replies
    31
    Views
    604

    VS 2017 Re: [RESOLVED] For each Next Loop

    Actually, you don't need to make two calls to Parallel.ForEach. Because the code is the same both tables, you can combine the rows from each into a single list and process it with a single call:
    ...
  30. Replies
    31
    Views
    604

    VS 2017 Re: [RESOLVED] For each Next Loop

    I assume that that was just for testing purposes. You originally wanted to do both so I've provided an example that does two. The code only processes one table at a time though, despite processing...
  31. Replies
    31
    Views
    604

    VS 2017 Re: [RESOLVED] For each Next Loop

    There's something interesting to note about that last code snippet. I removed the If statements and added a Where call to neaten things up a bit. I then realised that that means that each row will be...
  32. Replies
    31
    Views
    604

    VS 2017 Re: [RESOLVED] For each Next Loop

    If I do this, it works as expected:

    Imports System.ComponentModel
    Imports System.Threading

    Public Class Form1

    Private ReadOnly rng As New Random
    Private table1 As DataTable
    ...
  33. Replies
    31
    Views
    604

    VS 2017 Re: [RESOLVED] For each Next Loop

    Did that work for you? I've been basing my advice on theory so far and now that I've tested something I get ArgumentOutOfRangeExceptions and I'm not sure why. From what i can see so far, it looks...
  34. Re: How to disable mouse and keyboard for 10 seconds

    Then try learning something useful instead. We all had to learn and I feel fairly safe in saying that none us did this.
  35. Re: Deploy Asp.Net webforms app.

    I haven't used Web Forms for a long time so I don't know all the ins and outs but can't you just right-click on the project and select Publish?
  36. Re: Hong Kong, Portland and the Moral Low Ground

    Let me try to make it as plain as possible. There's more to these federal agents being identified/identifiable than just wearing "Police" or "DHS" on their clothing. People have voiced a number of...
  37. Re: Hong Kong, Portland and the Moral Low Ground

    No you don't. You ask questions that have already been answered. If you disagree you disagree but if you pretend that a case hasn't already been made then you're being disingenuous, and doubly so...
  38. Re: Hong Kong, Portland and the Moral Low Ground

    It's already been explained several times. If you didn't get it then, there's no reason to think that you'll get it now. It's pretty simple stuff that others here seem to have little issue with so I...
  39. Replies
    31
    Views
    604

    VS 2017 Re: [RESOLVED] For each Next Loop

    Show us all the relevant code, i.e. the setup before calling RunWorkerAsync, the DoWork event handler and the ProgressChanged event handler. My suspicion regarding the ProgressBar is that you have...
  40. Re: Hong Kong, Portland and the Moral Low Ground

    I think I started typing my reply before you submitted post #80. Regardless, my explanation is still relevant to dilettante. He now knows that I do know what the word means and why I thought it...
Results 1 to 40 of 496
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width