Search:
Type: Posts; User: jmcilhinney
Search:
Search took 5.80 seconds.
-
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...
-
You seem to have missed that part.
-
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...
-
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...
-
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.
-
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...
-
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...
-
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...
-
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?...
-
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...
-
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...
-
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)...
-
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:
...
-
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...
-
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.
-
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...
-
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.
-
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...
-
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.
-
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...
-
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...
-
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...
-
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...
-
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...
-
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.
-
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.
-
I have to agree with you here. Any solution to any problem that doesn't fix every other problem should not even be considered.
-
That Microsoft was evil for abandoning VB6, no doubt.
-
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.
...
-
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...
-
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...
-
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...
-
-
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...
-
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...
-
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...
-
You're trying to solve the wrong problem. The file path is irrelevant. Look at the error message.
-
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...
-
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.
-
It's not your responsibility to explain what the OP should already have explained.
|
Click Here to Expand Forum to Full Width
|