Search:
Type: Posts; User: passel
Search:
Search took 0.04 seconds.
-
If you're updating the whole picturebox 30 times per second, then perhaps it would be better to bypass the standard way of updating the area of the picturebox, i.e. update the area yourself using a...
-
Hopefully you're disposing your objects properly. It sounds like it might be memory getting filled up and then a lot of garbage collecting that may be delaying your processing.
-
Since Pictureboxes are always double buffered by default, you shouldn't get flickering even when doing a full repaint, as long as you do repaint everything.
-
Just updating the text when you change it should work.
Public Class frmMyTime
Dim gTime As String
Dim lblTime As Label
Private Sub frmMyTime_Load(sender As Object, e As...
-
You can put the labels in a borderless frame, and then set the frame to not be visible which will hide all the controls parented in the frame.
-
Even with those changes, it seems to me you may still drop data.
Your baud rate is only 57600 and you generally divide baud rate by 10 to get the approximate number of bytes of bandwidth you have...
-
If you're implementing something yourself, with TLS as the transport protocol, and you don't want to add an additional header, then I've seem implementations where a short packet indicated the end of...
-
I've asked the moderators to move this to the VB forum. The codebank forum is for posting working code, not for asking questions.
I assume you're asking how to add a button to enable repeating the...
-
I didn't try your code from post #1 yet, but I suspect you forgot that a triangle is reducing its width by 2 for each line, i.e. you are reducing both the left and right sides, so dividing your step...
-
The name of the method has no bearing on whether it will be called or not for an Event, it depends on the Handles Clause, and from what I can see, the Handles clause is referencing the Form (i.e....
-
You're hitting your own tail all the time because you're checking the color after you've drawn the color in that position.
You need to check the color of the position before you draw in it.
If it...
-
I think it may also come down to the fact that you have a validate event that has to occur before the value is changed, so to support that, the change can't officially take place, i.e. be a permanent...
-
Sorry to come in like this.
I knew the emergency room and the exams made beautiful pictures of a cancer of a hoop (I think I have a small chance to get out, at least).
In a few days. I wished ......
-
You wrote the Sub to accept the return value, so you have to call the Sub with that return value passed in.
CalcRatio(Destination(d).Activity(a).Total,...
-
I don't understand the requirements for your version of the game.
Do you want to display a random pair from your list of 57 images?
Then after user interaction, pick another random pair from your...
-
You shouldn't have Randomize in the loop.
Randomize should be only used once at the start of the program and never called again.
Since Randomize will seed the rnd function using the current clock...
-
So you're saying that that will work for you.
Basically, if you have the loop in the timer, then that makes the loop atomic, i.e. the loop will run in the timer event, and other events will be...
-
Your screenshot shows you are on the "For Each" Line.
There is probably nothing worth looking at there, the FD value hasn't been set yet.
If you take a step and are on the If Condition line, you...
-
So, when you stepped through the code, how did it not work? Which line(s) had values that you didn't expect? If you're not matching the tag, then do you have any tags that match. You could add an...
-
Did you put a breakpoint on the line "Dim Kafa As PictureBox = DirectCast(c, PictureBox)", and then step through the code to watch what it does and what values you are dealing with.
If you get...
-
You should probably just make the thing event driven and use a state machine to keep track of what you're doing.
I would set up a timer with an Interval of 1, so it will tick as fast as possible,...
-
The previous question did ask how to create three patterns.
This is only asking for the one. A slight difference, but.... I thought of reporting it to a moderator as a duplicate, but it is a...
-
Even processing, such as a button click or timer ticks, can't be processed while your code is running. They occur after you leave a sub. If you need to process events while looping in your code, you...
-
Well, then it will make it harder to choose one of the three points. You will have to convert the random number into selecting one of your set of variables, so you will either need to have a series...
-
https://www.freetutes.com/learn-vb6/lesson6.html
p.s. There could be better or simpler tutorials, this is just the first one I came across when I searched for "vb6 array tutorial". You could do a...
-
Sounds like an assignment, so you'll need to do the work.
But if I was doing this, I would make use of arrays, since you have to pick things randomly and use a specific color that is associated with...
-
Pretty much the bottom line is you would draw the image where you want it to create such games.
I would use a single picturebox as your drawing surface, and then use DrawImage for every object...
-
Windows 3.1 wasn't preemptive multi-tasking. It was a DOS program that you ran that provided a graphical environment and allowed cooperative multi-tasking between applications written to voluntarily...
-
I did fix that in my test code, but had already posted this and forgot to update the post.
But even if you fix the variable misspelling, it will then get the memory error when it executes.
If you...
-
I wouldn't say that it gave nothing. It was just a paradigm of the way to control the scale, i.e. coordinates for drawing. I used it all the time for drawing graphs and maps, e.g. If I had a list of...
-
I'm not a database person, so don't know the nifty way of slicing or dicing data, but based on the code you have, I would think you would just do something similar to what you have in the...
-
I would use a Sub instead of a function.
I don't think you have enough stack space to hold the string to be returned by the function.
If you use a Sub, you just pass the string to the sub and read...
-
Perhaps follow the Excel paradigm, where along with which columns to import and which to skip they can indicate whether the file has a header row at the top or not.
-
In the past you were saying you need an index for controls, which was related to porting the concept of Control arrays to vb.net. But since VB6 Forms don't have an Index property, you can't be trying...
-
I've only had a very poor education in French in High School, but looking at your Google Translation, I made my way through part of the list and think the following may be better interpretations of...
-
VB.Net only uses pixel location for control placement and pixels for the size as well, so there is no scalemode for the container any longer.
-
He showed the content of the file in post #9.
It seems he didn't understand jmc's post #11, and is still using an index parameter so is now reading the first character of each line, rather than the...
-
Basically Windows 1 and 2 were fairly unusable so not widely adopted.
It was the Apple approved version of a GUI for Microsoft's DOS Operating System.
If you don't remember Windows 1, then...
-
Probably wanted to write something in the registry, but couldn't. Once run as administrator, whatever needed to be in the registry was written, and when you rerun whatever needed to be in the...
-
When you step through the code with the debugger, at what point does it not do what you expect it to do?
For instance
stringReader = fileReader.ReadLine(0)
...
|
Click Here to Expand Forum to Full Width
|