Search:
Type: Posts; User: jmcilhinney
Search:
Search took 0.40 seconds.
-
Using Declare is the old VB6 way of declaring an external function so it still exists in VB.NET for compatibility. The DllImportAttribute is the .NET way of declaring an external function. You don't...
-
You ought to also be handling the UnhandledException event of the application - every VB WinForms app ought to do that. If another exception is being thrown, you'll hear about it there. Given that...
-
So when you run it in the debugger, what happens after it goes through that Catch block?
-
You say that the program crashes. Do you mean that it doesn't hit your Catch block? Or that it does hit your Catch block but a further exception is thrown?
-
I might be inclined to agree if it were just the change of political alignment. It's an odd thing to announce but Musk is definitely the sort of person to make such a big deal of something like that....
-
I watched a video by a prominent leftie YouTuber a few days ago about Elon Musk publicly declaring himself a Republican. At the time, he said that it felt like a setup. Musk claimed that "they" were...
-
Almost certainly. Anything else would get in the way of business.
I saw a headline the other day that we have case in Australia now. I believe that it was a woman who travelled here from the UK.
-
Or you could just do it all in one chain:
Dim rng As New Random
Dim selectedNumbers = Enumerable.Range(1, 58).OrderBy(Function(n) rng.NextDouble()).Take(6).ToArray()
Note that the original...
-
No point calling ToArray multiple times. Only the last one is needed.
-
How about you don't allow duplicates in the first place? Then there's no need to prevent them being placed in the array. How does a real lottery draw work? It puts all the possible values into a...
-
Then maybe take the advice you're given when you're given it instead of trying to guilt other people into writing your code for you. I wouldn't be here if I didn't want to help but I'm not here to be...
-
At the very least, use AscW and ChrW but don't do that either. Convert.ToInt32 will convert a Char to a Unicode value and Convert.ToChar will do the opposite. That's what you should be using, not...
-
There's no magic to it. You just have to do the basic arithmetic. If your adding a control in code and you want it to be centred horizontally in its container the you have to set its Left property...
-
Read the error message. Does it say anything about NULLs? The issue here is your database, not your DataSet. You need to configure your database to accept the data that you want to save to it.
-
Of course it's not. There's nothing wrong with the syntax so the compiler isn't going to complain. The compiler doesn't test the logic of your code though. . That's your job. The fact that code...
-
Use the debugger. The error message is telling you that the index you're using is out of range so look at the index you're using and the valid range to see why it's wrong. The index is hard-coded...
-
Look at the difference between them. One is specifying a 2-digit daya and the other is specifying a 1-digit day. Is you day 2 digits? Did you read the documentation about date/time formatting? If you...
-
You could do that but the form would be blank by default. You would need code somewhere, either in the form or elsewhere, to add whatever controls you need and to process the data in those controls....
-
Exceptions get thrown. That's what they do. Exceptions being thrown is not a problem. It's exceptions being thrown and not caught that is a problem. If you're not catching the exception yourself and...
-
is the application crashing? If not then what's the problem? If so then the debugger must provide you with information about the exception and that will tell you where the exception is thrown....
-
Deleting data is not a problem. Saving changes is not a problem. Your code is the problem, but as you have chosen not to show us what you're doing, there's no way that we could possibly know what's...
-
You can click the Report Post icon under your own post to send a message to the mods and ask for it to be moved. The question where to move it to. Is this a VB6 question or a VBA question?
-
No, you're a radical activist and just didn't know it... apparently.
-
This is really just sad self-congratulation. I bet that Biden would tell you that he's a moderate if you asked him. I wouldn't be surprised if Joe Manchin did too. Considering yourself a moderate is...
-
.paul. is right to ask that question but, based on the name "dgvRecipesList", I'm going to go out on a limb and guess that what you're calling a "subform" isn't (because there's no such thing in...
-
No naked flames near all that straw.
-
What project template did you use to create the project you have open when tried to add these items to the Toolbox? I would expect this to work for a .NET Framework WinForms project and probably a...
-
It's worth noting that what Shaggy has described is exactly how you get data into any other object. For example, if you want to get text into a TextBox, what do you do? You set its Text property,...
-
Your attachment is invalid. That's the site's fault rather than yours - there's a bug with inline attachments - but that's irrelevant anyway. There's no need to attach anything. Post the relevant...
-
Did you actually read the information you just posted? The exception tells you exactly what the issue is:
The obvious solution is to initialise that property. You know where your command object is...
-
You were pointed in the right direction. I told you exactly what event and property or method to use. What you actually want is for someone to write your the code for you so you don't have to make...
-
-
If a file association is created in the OS then double-clicking the data file will run the associated EXE and pass the data file path as a commandline argument. As far as the application is...
-
When you drop a data file on an executable in Windows, it will run the executable and pass the path of the data file to it as a commandline argument. In a VB.NET Windows Forms project, you can either...
-
What error? What code? Are you being mysterious for a reason?
Great. Now maybe you could answer the question I actually asked.
-
It is bizarre to me, the number of Americans, in particular, who seem to think that they are the "real"/"proper" left and the best way to distinguish themselves from those whom they think are not is...
-
Why would I download a Word document when you could just post the information directly?
-
Presumably you are talking about a BindingNavigator. In the designer, is the BindingSource property of that BindingNavigator set? If not, the BindingNavigator will be disabled.
-
The code you had originally could have worked except for a major flaw in the logic. Think about it. You are initialising returnvalue to False so what reason have you got to later set it to False?...
-
OT, do not declare that third parameter ByRef. This is not VB6. The only reason to declare a reference type (i.e. a class) parameter ByRef is if you want to assign a new object to the parameter...
|
Click Here to Expand Forum to Full Width
|