anybody, please??
Cindy
User Profile
Collapse
-
Rounding a Timespan
Hi, I have a timespan in my vb2005 project. To visualize this timespan, I have the following code:
Code:Label1.Text = Span.TotalSeconds.ToString
Cindy -
I couldn't edit my reply anymore. I'm sorry but my project is far to big to attach(1.36 Mb Zipfile). So if you want to take a look at my project I need an e-mail adress.
BTW It's not that there are any images in the project
CindyLeave a comment:
-
Hello, thanks for the replies. I have attached my project as a whole, because I don't know which part of the code is responsible for the strange bahavior. Before you try to run the project read this:
1. The program is still in the building fase, so not everything is working yet
2. To experience the strange bahavior of the program, do the following things: A) Run the project
B) Push the 'new'-icon in the toolbar. (The...Leave a comment:
-
-
Strange VB2005 Form self minimizing "debugging or not"
Hi,
Something strange happens when I run my vb2005-project. The startup form (form1) displays normally at first instance. After that you can show a dialog(form2) with a button_click. When you close the dialog with another button_click some data (mainly labels.text) must be loaded on form1. But when that happens form1 is automatically minimized and comes back in a while when all the data is loaded. This does not happen if I have no... -
Thank you for your reply,
It does work, all the labels are blank initially. And when I put a number in the array, the corresponding label will visualize it.
Another part of the programm adds all the row ellements of the array. Because of the 'variant' type, the programm tries to add string-elements (the elements of the array that haven't been populated yet), so an error occured. I tried to convert the type of the array to single...Leave a comment:
-
Thank you, it does work fine, but I still have a problem. The labels are initially empty, but when I want to put a number in the array, that then is copied to a label, I have to go through all the 'code' that copies the array-indexes to the labels. This is because in the first instance I don't know which index must be copied to the corresponding label. So all the zero's will be visible (again). My code looks something like this:
Code:If
Leave a comment:
-
Thanks for your reply,
I only want to "hide' the zero's initially at runtime. So it must still be possible to put a zero in the array and then copy it to the corresponding label. Is that also possible with your approach?
Cindy...Leave a comment:
-
Thank you for your reply. I'm sorry, but I don't understand. I know the code you have written is specific, but I'm afraid it's not specific enough for me. I tried some things with your code, but it does not give the results I want.
For example: Is the array of type data or string?
Cindy...Leave a comment:
-
Hi,
Yes, it's very obvious in vb2005 :). Let's say I have an array with 4 by 4 elements, which gives a total of 16 elements. Now, on my design-form I put 16 labels. Each of these labels is connected to an index of the array:
Code:label1.text = Arr(0, 0) 'first colomn label2.text = Arr(1, 0) label3.text = Arr(2, 0) label4.text = Arr(3, 0) label5.text = Arr(1, 1) 'second column
Leave a comment:
-
Initially Empty Labels
Hi,
In my vb2005-project I have a x by x array as type double. To visualise what's in it, I connected each index to a label. When I run the programm, the initial array is empty, so each label contains a zero.
The problem I have is, I don't wanna see all the zero's initially (on runtime). I only want to see the labels if I put a zero (or another number) in the array. Is there an easy way to do this?
C... -
That's a good idea, using different index-arrays. I don't want to sound "hard to please", but I want a really random array. I made some examples (on paper), with different index-arrays. It's still impossible to make the array I have written above. So, do you have other suggestions for me?
BTW I looked at the thread of Sudoku.
Cindy...Leave a comment:
-
Thank you very much! My code produces now a random array by swapping rows and colums of an ordered array. It looks very nice, but as you probebly know, the array is not really random. Let's take a look at a much simpler ordered array:
1234
2341
3412
4123
Indeed, you can swap rows and colums and the requierments (:every row and column can only have each number just ones) will always fit. But with...Leave a comment:
-
Thanks for your reply, but I don't understand. The issue i'm troubled with is as follows:
I have two textboxes on form1: Textbox1 and textbox2
On form2 I have also two textboxes: Textbox1 and Textbox2.
As you can see the textboxes on both forms have the exact same name. Now, in my module I have a procedure as written above. I want to use the procedure either way: 1) the inputarray must be filled with textbox1 and textbox2 of...Leave a comment:
-
Thanks for your reply,
I'm sorry I'm still asking you about the same issue I 'm troubled with. The problem is not to make an ordered array. And even randomize the array is not the real problem. The biggest challenge for me is to make the requirements fit, and when they fit to stop the procedure. I haven't a clue how to mennage that. I also don't understand what you mean with n-times events. Because you still don't know if the requierments...Leave a comment:
-
Refer to Different Forms in same SubProcedure
Hi everybody,
In my vb2005-project I have a subprocedure (in a MODULE) like this:
Code:Public Sub MakeInputArray() Input(0) = Form2.TextBox1.Text Input(1) = Form2.TextBox2.Text End Sub
Code:Public Sub MakeInputArray()
-
Same Controls on different Tabs
Hi there,
In my vb2005-project I have a tabcontrol. On the first tab, I have different objects(like buttons, labels and textboxes). On the second tab, I want the same objects. So the names and locations of the objects must be identical with the first tab. How do I do that?
Cindy -
Hi kadghar,
My code produces now a random 9 by 9 array: Both the numbers "1" and "2" are randomized. But even with two random numbers in a 9 by 9 array there will be eventualy an invalid arrangement. So you'r right, The best way is to swap rows and columns until the requierments fit. Can you help me with that please?
Cindy...Leave a comment:
-
Thanks for your reply
I thought of that too, that there may be some inconsisticy while the array is building up.
In this case only the numbers 1 to 3 have to be at different rows and columns, so I won't encounter inconsistencies . But I want a general solution so that if I want the numbers 1 To 4 at different rows and columns, I only have to make little adjustments to the code.
I'm pretty new to vb2005,...Leave a comment:
No activity results to display
Show More
Leave a comment: