Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 2.90 seconds; generated 46 minute(s) ago.

  1. Replies
    7
    Views
    151

    VS 2017 Re: Sorting Numbers in Textbox

    So your issue is actually nothing to do with sorting and actually just displaying text in a TextBox on multiple lines. Just put your values into a collection and then use String.Join to combine it...
  2. Replies
    7
    Views
    151

    VS 2017 Re: Sorting Numbers in Textbox

    You seem to have missed that part.
  3. Replies
    7
    Views
    151

    VS 2017 Re: Sorting Numbers in Textbox

    There's a lot wrong there. NEVER post JUST a screenshot. Code is text so you should post it as text, formatted as code. That way, we can read it without a magnifying glass and, most importantly, we...
  4. Replies
    7
    Views
    442

    Re: How do I create a database?

    Then stop being arrogant. It's against the rules of this site to ask the same question in multiple threads because it's a great way to waste the time of people who are volunteering their time to help...
  5. Re: Create a Database Programmatically and

    The database is master, which is also the default if a database isn't specified. You generally wouldn't connect to an existing database to create a new database.
  6. Re: Create a Database Programmatically and

    For future reference, please don't post only pictures of error messages. You can provide a picture as well, if it adds some value, but you should ALWAYS provide the error message as text. If we want...
  7. VS 2012 Re: [RESOLVED] Want to hijack a SqlDataReader class so it can be sourced from multipl

    I just checked the documentation and, in fact, the declaration was changed in .NET Framework 4.6. It was introduced to .NET Core in version 2.0 and it was virtual there, so maybe they decided to fix...
  8. VS 2012 Re: [RESOLVED] Want to hijack a SqlDataReader class so it can be sourced from multipl

    Hmmm... something funny going on there. That error message suggests that the DbDataReader.Close method is declared abstract (the C# equivalent of MustInherit) but, as you can see from the code in...
  9. VS 2012 Re: [RESOLVED] Want to hijack a SqlDataReader class so it can be sourced from multipl

    That's not true. The code in post #24 was copied directly from the source code for the DbDataReader class. How could you override a method in the first place if it didn't exist in the base class?...
  10. VS 2012 Re: [RESOLVED] Want to hijack a SqlDataReader class so it can be sourced from multipl

    Your Close method should not be calling the base Dispose method. It should be calling the base Close method. Generally speaking, you can override a method to replace it or extend it. In the former...
  11. VS 2012 Re: [RESOLVED] Want to hijack a SqlDataReader class so it can be sourced from multipl

    That would be the wrong thing to do. If you do that then calling Close will not actually do anything useful. As we have already established, calling Dispose invokes the Close method but not vice...
  12. VS 2012 Re: [RESOLVED] Want to hijack a SqlDataReader class so it can be sourced from multipl

    That's correct. The work gets done in the Close method. If the code calls Close then that's it. If the code calls Dispose, as would be done with a Using block, then Dispose will call Dispose(Boolean)...
  13. VS 2012 Re: [RESOLVED] Want to hijack a SqlDataReader class so it can be sourced from multipl

    Actually, my previous post is true in general but not quite in this case. Here's the IDisposable implementation from the DbDataReader class, taken from the source code I linked to earlier:


    ...
  14. VS 2012 Re: [RESOLVED] Want to hijack a SqlDataReader class so it can be sourced from multipl

    You don't overload the Dispose method. You override the Dispose(Boolean) method. Here's a basic disposable class:

    Public Class Class1
    Implements IDisposable

    Private disposedValue As...
  15. Re: How can I create an executable app within an app

    Start here:

    https://www.bing.com/search?q=.net+codedom

    A lot of relevant information will likely relate to C# but everything will be the same or similar for VB.
  16. Replies
    4
    Views
    167

    VS 2015 Re: [RESOLVED] Dock panel above menustrip

    The order in which controls dock to edges is determined by the z-order. That is the same order that determines which control appears in front and which behind when they overlap. Controls that would...
  17. Re: Visual Studio 2017 How to create a individual setup grouping 3 applications .net

    By the way, this is a deployment issue, not a VB issue, so I have asked the mods to move this thread to Application Deployment. Please post in the most appropriate forum for the subject of the thread.
  18. Re: Visual Studio 2017 How to create a individual setup grouping 3 applications .net

    ClickOnce is the only deployment technology built into VS by default these days. You used to be able create a Windows Installer Setup project but that was removed some time ago, in favour of a...
  19. Re: How can vb6 program be opened in browser

    You might start by posting in the correct forum. CodeBank forums are not for asking questions. I have asked the mods to move this thread. Please do not create a duplicate in the mean time.
  20. VS 2010 Re: [RESOLVED] Incremental generation is slow even for small values

    No need to even use a StringBuilder. Just do something like this:

    Dim numbers = Enumerable.Range(1, 10).Select(Function(n) n * 10 + 1)

    TextBox4.Text = String.Join(" ", numbers)

    The range can...
  21. Replies
    530
    Views
    16,513

    Re: The US fragile democracy Exposed

    I agree, and many Republicans in particular make that argument. It's a dishonest argument in their case because they don't want the states to set a minimum wage either. It would be better if the...
  22. VS 2010 Re: Insert same repeated characters among words

    So something other than what you actually asked for in the first post then? Perhaps you should provide all the relevant information up front. That way, we won't be forced to guess or assume and then...
  23. Re: Fetch time from database and schedule task in Azure at that perticular time

    We use Azure Functions for scheduled tasks in the Azure environment. We specify the schedule in the project though. I'm not sure how to specify the schedule dynamically but it may be possible. Are...
  24. VS 2019 Re: Where can I initialize an array that can be accessed from the whole form?

    Just like any other variable, if you want to access your array variable in multiple methods then you need to declare outside all methods, i.e. you need to declare a member variable rather than a...
  25. Replies
    21
    Views
    558

    VS 2013 Re: Error

    Text is a member of the Control class so there's no need to cast a Control reference as any other type in order to set the Text property.
  26. Re: vb.net combine multiple text files

    If your issue is resolved, please use the Thread Tools menu to mark the thread Resolved so that we don't have to open it and read the whole thing to find out that you no longer need help.
  27. Replies
    530
    Views
    16,513

    Re: The US fragile democracy Exposed

    I have to agree with you here. Any solution to any problem that doesn't fix every other problem should not even be considered.
  28. Replies
    530
    Views
    16,513

    Re: The US fragile democracy Exposed

    That Microsoft was evil for abandoning VB6, no doubt.
  29. 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.
    ...
  30. 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...
  31. 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...
  32. 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...
  33. Re: Application.StartupPath is not working vb.net

    Then you did it wrong.
  34. 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...
  35. 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...
  36. 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...
  37. 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.
  38. 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...
  39. 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.
  40. Re: How to convert VBA to VB.NET? Catia macro?

    It's not your responsibility to explain what the OP should already have explained.
Results 1 to 40 of 483
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width