|
Hi Guys!
Wow! I wasn't even thinking that was my problem. But I'll do anything to make it better.
So Ian, ID=17 refers to how many rows I will have. In my database, I have an ENABLED column. So if there is a TRUE value, than the button will be built. Your right about the layout, that's exactly how I will have it. But I also need to have it so if button 23, 24, 25 is not loaded, there will be a empty space there. So each button is always locked to it's location, so if I want two groups, I can have 1 to 20 and then 40 to 60. And I have a big gap between 20 to 40.
Thanks for your help!
Rudy
|
|
|
|
|
Well, if you use the VisId field as the ID in the calculation I posted, that's exactly what you'll get.
Of course, if your buttons start at 1, you might want to subtract 1 so it starts at the top-left corner. Since the formulas are based on the ID, and not just counting through as they go, any missing IDs will cause it to skip a spot.
|
|
|
|
|
Thanks Ian! I'll give it a shot. May have to bug you if I get stuck writing out the code.
Thanks again!
Rudy
|
|
|
|
|
hi
in c language we use ellipses for unlimited no of arguments in a function
similarly what we can use in vb.net
|
|
|
|
|
look up paramarray
'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous
'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous
|
|
|
|
|
|
hi expert
i want to insert in table current datetime in sql server 2005
|
|
|
|
|
|
This is a SQL question, you should ask it in the SQL forum. You should also explain what you've tried, and where you're stuck. Although it's so trivial that the only place to be stuck would be the place where you refuse to do any research of your own, and have chosen not to own any books on the subject.
getdate()
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi,
I'm trying to verify a PIN code of an EMV Card using VB.
Thanks
|
|
|
|
|
Good luck with that. What have you tried ? Did you have a question ? Are you stuck somewhere ? Where ? What code do you have so far, and what is going wrong ?
If you have no idea how to do this, you could try posting on the job boards or rentacoder to hire someone to do this for you. Be careful tho, some lazy people bid on jobs there, then post them here without doing any work themselves.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi,
I have a project contains 10 forms, and in Form3 when I give
Dim Dtb1 as New Datatable
Then it says the error cannot give the "New" instance to the object.
But When I added another few forms, and in Form10, when I give
Dim Dtb11 as New Datatable
Simply It's accepting. What does it mean Am i have any virus? Or any other problem ?
Thanks
|
|
|
|
|
Paramu1973 wrote: I have a project contains 10 forms, and in Form3 when I give
Dim Dtb1 as New Datatable
What is it with people in other countries and illegible variable names ?
Paramu1973 wrote: Then it says the error cannot give the "New" instance to the object.
What is the ACTUAL error message ?
Paramu1973 wrote: Form10, when I give
Dim Dtb11 as New Datatable
Are you TRYING to make your code hard to maintain ?
Paramu1973 wrote: Am i have any virus?
yes, you have a virus that stops datatables from being created on forms called Form3. It's quite common.
Seriously. How could this be a virus ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
You sir, have obviously not researched the (apparently) wild virus titled refuse2readAbook.win32/mac
it has something to do with spreading from machine to man. Like the swine flu.
|
|
|
|
|
Oink. I resent that. Swines aren't machines.
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
Is that related to that virus GoogleNoWorkyOnMyComputer.win32
|
|
|
|
|
|
So the googleNoWorky virus is coded in classic VB? That explains a lot.
|
|
|
|
|
I am trying to get the standard deviation of values that a user enters into a textbox and then will hit a display button, the following is what i have coded so far but For some reason i am getting the wrong answers for stdeviation and the sum of deviations PLEASE HELP
Dim iSum as integer = 0
Dim dFAvg as double = 0
Dim dDev as double = 0
dim dSqDev as double = 0
For count = 0 To strArr.Length - 1
'add user entered values to list box
lstGrades.Items.Add(strArr(count))
lblGrades.Text = lstGrades.Items.Count
iSum += Convert.ToDouble(strArr(count)) 'get sum of values entered and pass to storing variable
lblSum.Text = iSum 'display sum in label box
'***********************
dFAvg = iSum / Convert.ToDouble(lblGrades.Text) 'calculate average
'***********************
'THIS IS WHAT IS NOT CALCULATING CORRECTLY!!!!!!
dDev = ((strArr(count) - dFAvg) ^ 2)
'for each value the user enters it is supposed to be subtracted by the MEAN(dFAvg) and then raised by 2
'then i store each answer into dDev VARIABLE and then find the sum of all the values in dDev and assign it to dSqDev
'but i dont understand what i am doing wrong PLEASE HELP
dSqDev += dDev
Next 'end for
lblSumDev.Text = FormatNumber(dSqDev, 2)
|
|
|
|
|
This at least the third time I have seen you asking the same question. In all of them your code is unformatted and uncoloured. It is therefore very difficult to read, which cuts down on the number of people willing to try to plough through it in order to attempt to help you.
Edit your post (above), put a <pre> tag on the line above your code and a </pre> tag on the line after your code. Then put back the indentation so that people at least have a chance to read and understand it.
Have you tried Googling for this?
I googled on vb.net calculate standard deviation and I got loads of hits with fully working code examples. Why not try that yourself?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
thanks i got it working on my own, i saw what was wrong
and i will remember to post code correctly
next time.
thanks for your help and time
|
|
|
|
|
Good stuff!
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Henry is right, your code needs proper formatting.
Use PRE tags and you will probably be able to see what is wrong yourself.
Hint: your calculations are completely wrong.
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
Luc,
Thank you for your support. I shall wear it always!
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
You're welcome.
And don't you worry, there is a great deal of wear in it.
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|