Search:
Type: Posts; User: passel
Search:
Search took 0.13 seconds.
-
I imagine you didn't increase the size of the picture by an integral amount, i.e. 71 * 1.5 is 106.5 and a picture can't be 106.5 pixels wide. It is either 106 or 107.
The card images themselves may...
-
Yes, that is it, but its origins is much older than 2 years.
It started in 2000 and at the time that Microsoft introduced Small Basic around 2010, if you did a search on "small basic" you would get...
-
I was talking about Microsoft Small Basic isn't based on the Small BASIC language. You said yours was, and I said Microsoft's wasn't, which is part of the confusion with Microsoft calling their...
-
Seems like it might add more confusion with yet another "Small Basic" version, e.g. Microsoft Small Basic which is already a simplified, but capable, version of a Basic Interpreter. Of course, it...
-
Paul's code may work for you. (p.s. I guess not, as Paul assumed as I did that you were subtracting dates, not trying to subtract DateTimePickers).
My code would need to be updated to use the Value...
-
You have to call the code to update the textbox in the ValueChanged event handler of the NumericUpDown control.
That means the code to update the textbox should be put in its own method so that it...
-
There are a number of ways you could do this.
Perhaps try this (I didn't test it)
TotalPrice.Text = ("£" & 9 * People.Value * (DepartureDate.Subtract(ArrivalDate).Days)
-
I almost always want to bring to the front, so I usually just use Control.Zorder without a parameter since that brings it to the front by default.
But you can use the ZorderConstants Enumeration...
-
You can't change the ForeColor of a Graphical Command Button. Command buttons don't support ForeColor.
-
What is the picturebox method?
Perhaps you can put a label in the picturebox, and use it to process the inputs and handle the text wrapping.
Just a quick test, adding a few pictureboxes to the...
-
Since you're redefining a region to shape the form, perhaps you need to override the OnPaint event and handle the drawing there, so you can do the painting in one pass. If you do the painting in the...
-
VS 2019 isn't going to change the framework of a project automatically. The project would retain the framework it was configured for. That is why you can use VS2019 on a VS2010 project, and still use...
-
I assume it doesn't make sense to you because you are drawing in the picDest pictureboxes. I am not drawing in the picDest pictureboxes, so setting AutoRedraw to True is wasted for the way I do it....
-
.picDest(1-13) should never be drawn into, so AutoRedraw shouldn't be set for those, it would be a waste. (same for .picDest(0)).
If setting .picDest(0) AutoRedraw property to True fixed anything,...
-
I'm not sure what you've done at this point.
The code I gave just uses one picturebox to represent one card. AutoRedraw should be set to true on all the picCards, so the card should never erase....
-
That is assuming that all three checkboxes are checked, and I assume the sample timestamp would be added in the final loop, at line 11 of the code.
With three checkboxes selecting which data is...
-
So, you have text files with .zip extensions?
Normally a .zip file would be a compressed file, and you can't open a compressed file for Input in Visual Basic and read anything meaningful from it.
-
May as well make it depended on the length of the list, rather than a hardcoded literal 10.
Private Sub MainmenuSlideshowTimer_Tick(sender As Object, e As EventArgs) Handles...
-
A label is a lightweight control, it is not a window.
The label is drawn on its container.
If the label is on the form, it can only be drawn on the form.
If you want the label to be seen "over" a...
-
There was no sqr function because it was only checking one dimension, i.e. X. So the Distance in pixels is simply the difference between two X values.
When you go to two dimensions (X,Y) then the...
-
1. Did you reposition them in code, or are you laying them out in the IDE?
Where it is currently setting that up is in the "Initialize_Everything" Sub.
The Card array holds the position and link...
-
Yeah, well I haven't worked with .Net Core, so I don't recognize those errors.
The code I wrote and tested was for a .Net framework Console App, not .Net Core.
-
Being you have a lot of controls, then yes, I think you will need to rebuilt it by hand. In my case it wasn't a big chore because I didn't have a lot of controls in the VB6 version of the...
-
I think the points that people have made are valid and you should learn VB.Net and take advantage of it.
Redesigning your application with VB.Net in mind, and essentially writing it from scratch,...
-
I posted the Seahaven game in one of your other threads, and it allows stacking cards. Since there is code to allow dragging multiple cards, and rules to test for valid dragging situations to...
-
I'm sure that is the issue.
In .Net you can index into the string to get a character from the string.
Since the function returns a string, you are indexing into the returned string by...
-
Interesting. I typed in the phrase and the first two hits I read mentioned VS2015, so I assumed that was the answer. But that may just be a matter of timing, that VS2015 was the most common...
-
I assume you didn't enter the string "VC Runtime 140.dll" in a web search at the time you asked. That seems odd.
It has been quite a few hours at this point since you asked the question, so I have...
-
I'm not sure why you ask that.
I assume by local vars you mean variables declared in a Sub or Function.
If you tried to use "Private" in a Sub or Function when declaring a variable you should get a...
-
I guess that may be my mistake. It is doing a connect so is using TCP (which is the default for the vb6 winsock control) not UDP. I do a lot of UDP, and a few cases of TCP (since most of my network...
-
Since you mentioned a number of drawers with different IP addresses, then perhaps if a non-gui (i.e. console) application is what you want to be kicked off, then perhaps rather than create one for...
-
Yes. But how do you want it to know when to open the cash drawer?
Do you just want to execute it to open the drawer, and it just exits after sending the string?
Assuming that is true, then just...
-
I agree the example given to the OP is VB6, except as I said, I'm not aware of escaping a hex value inside a string as the example did, so I think it might the person giving the example may be using...
-
This question should probably really have been in the VB.Net forum. You would no doubt have several responses by now.
I don't have the time to get specific right now, but Assuming you just want a...
-
Only if they actually change the value.
If you set the value to the value it already is, then it doesn't generate a value changed event.
You should get two hits on a paired value change event,...
-
Not really. If you have two lousy choices, then I think it logical that the selection essentially becomes a coin toss, trying to figure out the lesser of two evils.
-
Since your code is using line controls and not drawing lines, that complicates things.
I guess the question is how you want the user interface to work, and how many lines do you want to draw.
...
-
And that is what I told you.
If you're drawing a line, you're adding a constant X and Y value to the previous point to get to another point in the line.
Since the Incident Angle and the Angle of...
-
Just invert the Y value when you hit the top or bottom, and invert the X value when you hit the left or right.
-
VB6 was developed over 20 years ago. It doesn't have anything analogous to screen.AllScreens. You have to use the Windows API to implement that functionality yourself.
Technically, the Screen class...
|
Click Here to Expand Forum to Full Width
|