Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 4.04 seconds.

  1. VS 2012 Re: Want to hijack a SqlDataReader class so it can be sourced from multiple places

    It could be worthwhile checking out the source for the DataTableReader class to see how it uses a local data source. Reading from an array would be quite similar.
    ...
  2. VS 2012 Re: Want to hijack a SqlDataReader class so it can be sourced from multiple places

    I just took a closer look at the documentation and it seems that many (most? all?) of the members are declared abstract. That means that you would still have to provide your own implementation when...
  3. VS 2012 Re: What to hijack a SqlDataReader class so it can be sourced from multiple places

    You don't need to implement IDataReader yourself. It's already implemented in the DbDataReader class, which is the base class for SqlDataReader and pretty much every other ADO.NET data reader. You...
  4. Re: Application.StartupPath is not working vb.net

    System.Windows.Forms is imported at the project level. File-level imports take precedence over project-level imports. If you import Microsoft.Office.Interop.Excel at the file level then Application...
  5. Re: Application.StartupPath is not working vb.net

    Then you did it wrong.
  6. Re: Application.StartupPath is not working vb.net

    It means what I said it means at SO and copied above: you have a name clash. Application is presumably being interpreted as an Excel type. If you qualify the type to disambiguate the name then it...
  7. Re: Application.StartupPath is not working vb.net

    For good measure, here's some OT advice:

    Don't use string concatenation to build file and folder paths from parts.
    Dim filePath = Path.Combine(Application.StartupPath, "Main_Master_VB.xls")
    That...
  8. Re: Application.StartupPath is not working vb.net

    I'm going to copy/paste my responses from SO:

    Application is the System.Windows.Forms.Application class, so it is obviously specific to Windows Forms. If you're not in a Windows Forms project then...
  9. Re: Application.StartupPath is not working vb.net

    You're trying to solve the wrong problem. The file path is irrelevant. Look at the error message.
  10. Re: DataTable Select | Grouping Data | Is there a Generic Method?

    I was going to post that you could write a generic method but then realised that you're generating an anonymous type. If you were to define your own generic type to return instead of an anonymous...
  11. Re: How to convert VBA to VB.NET? Catia macro?

    Because it encourages people to fail to provide the information they should the next time they post as well, thus wasting our time and theirs again.
  12. Re: How to convert VBA to VB.NET? Catia macro?

    It's not your responsibility to explain what the OP should already have explained.
  13. Re: Can I run a previous version of a click-once app?

    I would assume that if you have enabled automatic updates and there's a newer version available then it will automatically upgrade to that version. I would think that you'd have to have specified...
  14. Re: How to convert VBA to VB.NET? Catia macro?

    1. Understand the functionality implemented by the VBA code.
    2. Learn how to implement the same functionality in VB.NET.
    3. Implement the same functionality in VB.NET.
    4. Post a question here if...
  15. Replies
    16
    Views
    350

    Re: Automation???

    I'm still not really clear on what you're actually trying to achieve here. You got some useless comments in your code but none that actually explain why the code does what it does, which is what...
  16. Replies
    16
    Views
    350

    Re: Automation???

    There's no such thing as a List Array. An array is an array, which is a fundamental data structure in .NET. A List(Of T) is a specific class that provides similar functionality to an array can also...
  17. Replies
    16
    Views
    350

    Re: Automation???

    Perhaps you could elaborate instead of expecting us to work out stuff that you already know. What exactly do you expect to happen and what actually does happen? When debugged the code properly,...
  18. Replies
    7
    Views
    252

    Re: vb6 add table rows webbrowser

    Please be careful and post in the correct forum. CodeBank forums are for sharing working code snippets, not for asking questions. I have asked the mods to move this thread.
  19. Replies
    16
    Views
    350

    Re: Automation???

    Clearly you don't understand if you think that will work. If you pass in a String then you have no access to the RadioButton, so how are you going to do anything to it. tg specifically said that...
  20. Replies
    3
    Views
    149

    Re: Database login in vb

    That said, I suggest that you follow the CodeBank link in my signature below and check out my thread on WinForms Login.
  21. Replies
    3
    Views
    149

    Re: Database login in vb

    You have posted in the wrong forum. I have asked the mods to move this thread. Please don't post a duplicate in the mean time.
  22. Replies
    16
    Views
    350

    Re: Automation???

    Why are you declaring that parameter as type Object in the first place? If you know that it has a Text property then you must know that it is a type that has a Text property, so why aren't you...
  23. Replies
    16
    Views
    350

    Re: Automation???

    This is just a general programming principle. You write a single method that contains all the common functionality and then you add a parameter for all the values that may vary. For instance, if you...
  24. Replies
    3
    Views
    151

    Re: vb.net MEMORY problems

    The question is irrelevant to a VB.NET programmer. You should use the option that is more appropriate to the specific scenario. That may be the array in some cases and the discrete variables in...
  25. Thread: Lupin ?

    by jmcilhinney
    Replies
    14
    Views
    273

    Re: Lupin ?

    Saw it advertised and was considering watching it. I definitely will now that I have a positive recommendation.
  26. VS 2019 Re: Text.Encoding.Getbytes Works in WPF not Forms

    A Windows Form has a Text property so Text would be interpreted as that. It is type String so there is no such member as Encoding. This is a simple case of a name clash so you need to disambiguate...
  27. Replies
    3
    Views
    374

    Re: Convert Website into App

    If you're still not sure how to proceed, you might consider creating a PWA.
  28. Re: How to fill a chart with a Datagridview from another form

    You need to show us the VB code, show us your attempt at the C# code and explain exactly how and where the C# code is not meeting your expectations. If I had to guess (which I do, because you haven't...
  29. Replies
    4
    Views
    256

    VS 2017 Re: Beginner Need a Guide

    Please provide a FULL and CLEAR explanation of the problem.
  30. Replies
    31
    Views
    761

    Re: Getting a new machine

    https://www.onmsft.com/how-to/how-to-buy-the-surface-pro-7-directly-from-microsoft
  31. Replies
    5
    Views
    267

    VS 2017 Re: Beginner Please Need Help

    There's no point checking two conditions anyway because to get to this line:
    ElseIf Grade >= 50 < 60 Then
    you must have already gone past this line:
    If Grade < 50 Then
    so you already know for a...
  32. Replies
    31
    Views
    761

    Re: Getting a new machine

    https://www.windowscentral.com/best-microsoft-surface-deals
  33. Replies
    31
    Views
    761

    Re: Getting a new machine

    https://www.windowscentral.com/surface-pro-7plus-review
  34. Replies
    31
    Views
    761

    Re: Getting a new machine

    The SP6 was the last one with Mini DisplayPort and the SP7 has USB-C, so that was probably the most obvious change. The processor jumped from 8th gen Intel to 10th gen and both WiFi and Bluetooth got...
  35. VS 2019 Re: Edit TextBox of an UserControl from another CLass

    How do you know he's being mean if you don't understand what he posted? Maybe you should not assume that criticism is being mean and consider that perhaps it's warranted and you could do better in...
  36. Re: I need help with an error I keep getting

    Don't write two separate If statements. There's no point checking that the CheckBox is not checked if you've already checked that it is. This is what If...Else statements are for:


    If...
  37. Replies
    495
    Views
    15,168

    Re: The US fragile democracy Exposed

    The fact is that you have no evidence of that whatsoever. You may as well be an out and proud Trump supporter. Trump made claims and numerous courts shot them down but you still believe the claims....
  38. Replies
    31
    Views
    761

    Re: Getting a new machine

    My Surface Go is connected to my TV from the USB-C port via HDMI and you could do the same with a monitor and any recent Surface. I got the dock because I wanted two external monitors. There is a...
  39. Re: I need help with an error I keep getting

    For future reference, please provide all the relevant information up front. Then we won't waste time on invalid assumptions.

    If the data is on lines in the TextBox then it's even easier, because...
  40. Re: I need help with an error I keep getting

    That code doesn't make sense for a start. It's the same for all six blocks but, using the first as an example, this line does nothing:


    If checkbox.Checked = True Then
    ...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width