Search:
Type: Posts; User: jmcilhinney
Search:
Search took 5.53 seconds.
-
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.
-
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...
-
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...
-
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...
-
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...
-
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,...
-
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.
-
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...
-
That said, I suggest that you follow the CodeBank link in my signature below and check out my thread on WinForms Login.
-
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.
-
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...
-
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...
-
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...
|
Click Here to Expand Forum to Full Width
|