Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 1.86 seconds; generated 13 minute(s) ago.

  1. Replies
    2
    Views
    65

    Re: Loop not working

    You've posted this in the VB.NET forum but that's obviously wrong. It appears to be Excel VBA so i have asked the mods to move this thread to the Office Development forum. Please know what language...
  2. Re: Avoiding Cross Thread warnings during SerialPort.ReceivedData events

    That code is weird. What is that m_FormDefInstance field for? Why does that form need a reference to another form of the same type? How is that field populated? How is the DefInstance variable...
  3. Re: How to take basic calculations in a text box as an input

    The TextBox doesn't do anything. It accepts the user input and you get that input as a String from the Text property. What you do with that String is up to you and nothing to do with the TextBox. I...
  4. Re: Avoiding Cross Thread warnings during SerialPort.ReceivedData events

    The DataReceived event is raised on a secondary thread so that means that you cannot access UI elements directly. You need to marshal a method call to the UI thread in order to access your controls...
  5. Re: How to convert total minutes to time format?

    This has got nothing to do with the topic of this thread. One thread per topic and one topic per thread. The question you asked about here has been answered so use the Thread Tools menu to mark this...
  6. VS 2017 Re: Value of type string cannot be converted and property is readonly

    It's also worth noting that a lot of examples available online, particularly for advanced topics, are likely to be available in C# only. You can generally translate them into VB if required but it's...
  7. VS 2017 Re: Value of type string cannot be converted and property is readonly

    If you're targeting the .NET Framework and particularly Windows apps, VB can do all you need. It is still quite popular, particularly with hobbyists. That said, C# has been the preferred language for...
  8. VS 2017 Re: Value of type string cannot be converted and property is readonly

    The public key is not an arbitrary string. It is binary data that is generated cryptographically. There is a constructor that accepts a Byte array from which the public key can be generated but it's...
  9. Re: How to convert total minutes to time format?

    That's basically correct but there are some issues there.

    Firstly, I would suggest that you probably shouldn't be using a TextBox at all but, rather, a NumericUpDown, especially if you only want...
  10. Re: How to generate an alphanumeric tree changes with criteria?

    I've asked the mods to move this thread to the appropriate forum. Please don't create a duplicate thread in the mean time.
  11. Re: visual studio 2017 query dosnt show result although there is a null value why?

    Your English seems pretty god but apparently you have no idea what the word "full" means. What database are you using? Have you executed that query in the appropriate management tool? What happened...
  12. Re: visual studio 2017 query dosnt show result although there is a null value why?

    A FULL and CLEAR explanation of the problem. Why do we still need to drag the relevant information out of you after all this time?
  13. VS 2012 Re: how to link datagridviews events created using multiple tabcontrol

    You might also want to consider creating your own custom tab pages with the grid built in. For an example of that type of thing, follow the Codebank link in my signature and check out my Tabbed Web...
  14. Replies
    2
    Views
    5,950

    Re: JQuery > button > click created link

    If the OP is still waiting for a solution to this issue after nearly four years, I'd be gravely concerned. That's not to say that you should not provide advice, because it may help others who find...
  15. Re: Hong Kong, Portland and the Moral Low Ground

    Establishment Democrats and Republicans do seem to agree on more than they disagree on, but there are a few key sticking points that prevent them admitting it. They can also con people into thinking...
  16. Thread: Kill task

    by jmcilhinney
    Replies
    2
    Views
    119

    VS 2012 Re: Kill task

    Actually, you probably ought to be using a combination of the two. Calling CloseMainWindow is like clicking the Close button on the title bar of the app's main window while Kill is like using End...
  17. Re: Can't Enable A Timer In Another Thread

    This is from the Remarks section of the documentation for the WinForms Timer class:

    You basically have to treat it like a control in that you only interact with it on the UI thread. That would...
  18. Re: [RESOLVED] "Reset" a With/End With structure?

    If your workaround does the job then fine, but there's also the option of not using With at all. If you were using any language other than a flavour of VB then that's what you'd have to do anyway.
  19. Re: Hong Kong, Portland and the Moral Low Ground

    As a number of genuine left-wing pundits have expressed lately, laying low is Biden's best option at the moment. Trump is doing his job for him right now. There are those committed Trump supporters...
  20. 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...
  21. 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...
  22. 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...
  23. 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...
  24. 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...
  25. 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...
  26. 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...
  27. 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....
  28. 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...
  29. Replies
    3
    Views
    172

    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...
  30. Replies
    3
    Views
    188

    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...
  31. Replies
    1
    Views
    126

    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...
  32. 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...
  33. 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?
  34. Re: How do I scroll over controls added to a dynamic panel?

    FlowLayoutPanel and TableLayoutPanel, to be precise.
  35. Replies
    3
    Views
    172

    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...
  36. 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...
  37. 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.
  38. 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...
  39. 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...
  40. 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

    ...
Results 1 to 40 of 492
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width