Search:
Type: Posts; User: opus
Search:
Search took 0.32 seconds.
-
As far as I understand you different lists of images for each posible selection of combobox and listbox. Since the listbox gets only filled after the combobox selection you could select the correct...
-
This code doesn't make sense!
In words: Inside the For Next you are creating new String variable during each iteration with a name that gets the of the iteration. After that you setting the text and...
-
I didn't look at passels code, however why are you using several pictureboxes? That way the drawing might be easy(just setting the backgroundimage once) but you need a picturebox for each card,...
-
It looks to me as if you are using a similar Card example to the one I started with (the code post #4). In post #11 it looks like yopu did some adoptions.
All you have so far is a ordered list of...
-
? There is no code that does actual drawing, the Function Draw i only returning a card instanc.
-
Beside the point about adding an integer to a string, what do you expect your textbox1 to show?
1. Event Keycount=1 textbox1.text="1"
2. Event Keycount=2 textbox1.text="3"
???????????????
-
If you managed to do the painting of one card in a specific position the step to show in while moving isn't real hard, but you do need that first step.
I would use a single picturebox, replicating...
-
Did you, by any chance, use the search button of this forum?
If you have created your deck already, I suggest you search for the needed graphic routines to display the image of one of your cards....
-
I see you have manually created those pictureboxes, so you don't have them in an array.
Declare an empty array of pictureboxes, add each of pictureboxes to that array.
( Do not cŕeate new...
-
Do not declare alocal variable for the pictureboxes instead use the already created ones.
-
What do the actual Strings in the Listbox contain? Only the Filenamens, or Filenames with path?
-
Use the code posted by vbfbryce without th lines that create and add the new picturebox!
-
What doesn't make sense is the following line in your poste code
"Pic(i) = PictureBox1.ImageLocation = ListBox1.Items(i)"
What you trying to do with that line?
-
So?
What do you I'm doing? The delayed display of the updated picturebox is NOT wanted! What makes you think that I'm bulking up sub controls?
-
Thanks for that link, read it, understood. The "not Thread-Safe" was new to me, I did expect quite the opposite!
-
@ jmcilhinney
Is there a special reason for the suggestion against the Threading.Timer.
-
Actually I didn't test with only .Refresh until now.
The result of the test did surprise me.
With only .Refresh the late picture update (with the complete history) was back even in a normal load.
-
In case of the code posted above "Me.Refresh" did work.
In the case of the PictureBox (the code I didn't post), I used the .Refresh directly on the PictureBox directly after PictureBox.Invalidate()
-
I would do that step by step.
At the beginning you recieve that special string,
Take that string at parse it (i.e. get the username , lat and long) at store those
Now check if you did already...
-
Sorry for my ignorance, however I decided not to show all the code used nor discribe all to steps needed and used to make an event be handled on the GUI. I was hoping you would take the " All of that...
-
.Refresh!!!!!!!!!!!
Why didn't I think of that?
-Resolved-
-
Invoking? To my undersanding the code posted above is performed directly on the GUI thread, isn't it?
When it comes to be showing the results of those workerthreads, I'm using Events which are...
-
I use a UserControl which consists of several Buttons and 2 PictureBoxes.
If the application is in a reasonable load (recieving messages over a UDP connection) those controls a displayed as planned....
-
OK, the used name did suggest something else.
What are you doing with the files between the FileCopy and Directory.Delete? Maybe that "File-Action" isn't finished yet.
-
Check your useage of .FileCopy.
According to MSDN the second parameter takes: "The name of the destination file. This cannot be a directory."
-
I take awild guess, maybe one of the file(s) you are trying to delete is still in use, have checked that?
-
Thanks Evil_Giraffe, I was coming to nearly the same solution.
I did digg into TPL, especially Producer/Consumer Patterns
My actual approach goes like:
UDP-Listener Raises an Event MessageIn (with...
-
Thanks for the input, but you lost me somewhere in the middle.
"By passing an instance of the object of said class " Which class are you referring to? (The UDP-listener, the GUI[not...
-
TPL, to my understanding, does not solve my problem.
Presently my UDP-Listener raises an event on the GUI, the GUI holds the "Parse_Message" Sub.
That is conviniet since the GUI-Thread is "alive",...
-
I do recieve lots of messages (4K+ every 4 seconds), my software needs to parse each ofv those in order to do updates on my objects.
I want this parsing to be done in a seperate thread, however to...
-
As Shaggy stated the used listener is as lean as possible. After some more digging I found that the listener is NOT the believed bottleneck, it's the next step i.e. the parsing of the messages.
I...
-
Did you even try to look up the explanation of Option Strict and CDecl as Jmc suggested?
I'll give you start on the first one.
You are using the .text property of your textboxes to calulate with,...
-
Thanks for the feedback. I'm closing this one.
-
The BackGroundworker has two major Event-Routines, they are DoWork and RunWorkerCompleted. The first is called (started) by .RunWorkerAsync(), which will start the BackgroundWorker in its thread. The...
-
Thanks for the insigths, I'm just trying anything to get more speed. So I can drop that attempt.
As for UDP, being unreliable. Yes, to loss of messages is no problem, the problem is the huge...
-
I do use the .TextChanged for that:
Private Sub YourTextBox_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles YourTextBox.TextChanged
Dim ThisTextBox As TextBox =...
-
My Problem:
I'm using a Socket (SocketType DGram, ProtocolType UDP, Bind to a LocalIP and LocalPort) to recieve messages from a broadcast. The code used was provided by Shaggy Hiker
This is...
-
Talking about being old, yes I am. Its time to go to bed now, Portugal is done by 4:0, Ronaldo is crying, it's enough for today.
-
If you use the "Thread Tools" (just above your initial post) you could mark the thread resolved in its title!
-
The first group should be something like "UP TO 14", for those that have been born after the post race
started.
|
Click Here to Expand Forum to Full Width
|