VS 2008 Random With Weight?
Apr 13, 2010I'd like to ask you a programming problem which is bothering me for quite some time now.Here is the problem
I'd like to pick random names from:
-peter,50
-rick,25
[code].....
I'd like to ask you a programming problem which is bothering me for quite some time now.Here is the problem
I'd like to pick random names from:
-peter,50
-rick,25
[code].....
I'd like to ask you a programming problem which is bothering me for quite some time now. Here is the problem
[Code]....
i am making a progrom to calculate delivery charges this depending on weight of the item.i enter the weight of the item in a text box i need it to calculate the shipping cost, currently i have something like this but it is wrong. [code]
View 5 RepliesHow can we calculate ideal weight for a given height in vb 2005. If weight is given in Kg and height is given in inches..
View 3 RepliesCode to make a program in visual basic that converts your weight from Earth to you weight on the Moon.
View 3 RepliesI am trying to make a program that converts the weight of objects on earth into other planets. i have trouble with naming things like weight ratio and planet because VB program doesn't accept the coding. i don't know where to put theh data in the disk so that the program can access it when it runs.
Imports System.IO
Public Class weightcalc
Private planet structure
[code]....
Does using it puts any degradation in the performance of an application like the loading of the form/usercontrol is slower since the TableLayoutPanel has to be instantiated and the controls has to be added to it? I use it extensively and from time to time I combine it with a Panel also so I would like to be enlightened if there is no cause of concern in using it.
View 3 RepliesI've found a scale, Detecto AS-350D [URL].. that hooks up to a computer. I was hoping someone could help me figure out how to get the information (weight) from it. I've looked around but can't seem to find any information on it. I've never wrote a program where I accepted data from a device likes this so kind of confused where to look.
Update: I'm coding in VB, and the device connects to the computer via serial port.
I have a Repeater... And it has a Weight field. the weight it displayed in a textbox. I have this piece of code:
lblTotalWeightCalc.Text += NewDV.Item(i)("Weight")
This will get the Weight and display it in my label. But when I select more than one item (which will have two weights) it will show: For Example:
Item #1 : Weight = 20
Item #2: Weight= 50
The total Weight= 2050 (it doesn't add them together) I need them to be added together....
I'm using Visual basic 2010.net with service pack 4.0. I'm using the built in chart control to generate a line graph. I have a series plotted on the fastline graph. Is there a way of accessing the weight/thickness/boldness of the line and changing it? I was able ton change the colour and I could even change the point size on the fastpoint graph.
Code:
Private Sub DisplayGraph_frm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[code]....
So I am trying to write a program and I don't even know where to begin. I am trying to make a program where you enter the persons weight then pick (from radio buttons) "convert Pounds to kilograms" or "convert kilograms to pounds" and then it should convert the weight when you click display weight button to display the converted weight value. Any ideas?
View 5 Replies[code] My project topic is on data conversion for length and weight. There is something wrong with the code.
View 5 RepliesI got a code online to read via rs232 using serial port ,the code uses readExisting() to get the data(im geting data form a MettlerToledo scale connected at com3,9600,8,N,1)problem now is that i change it to ReadLine() but it captures the weight once and i need the weight updated all the time!
View 1 RepliesI'm mohammed from Oman ,I'm visual studio.net programmer How I can Read the Data From Barcode Weight scales By Serial port and TcpIp port
View 7 RepliesLet's say you have a user class. When the user is logged in there are properties representing basic user info, an associated address and, say, 5 profile pictures, the last a generic lsit like this: Private _photos As List(Of Photo). However, instead of carrying the weight of the profile pictures in a session vairable, to reduce resource usage, I only want to populate them if the user needs to acces them. So, for the most part, the generic list of photo's is empty. Will it carry weight anyway? I'm trying to decide if I should just not populate ituntil needed, or if I should create an alternative "light" user class which doesn't have this property.
View 2 RepliesI've read numerous posts and threads about random number generation, but I havent' run across this.If I generate a bunch of random numbers, the results are radically different if I create a new Random generator for each number than if I use on Random generator for all the numbers. The results are much more consistent and evenly distributed if I use the same Random generator.I would have thought the opposite,because creating a new Random generator each time should reduce the number of random repetitions, if a different time slice is used to create the random number.[code]......
View 9 RepliesThe class Random is out right defective. It always produces the same random numbers in the same sequence. Things I have tried so far is every kind of seed you can think of as well as Randomize. The result is that I always get the same random numbers in exactly the same sequence.
View 4 RepliesI am practicing using the drawing commands, and have gotten a grass background and black happy face that moves around the background.It's a 10x10 grid of 50 pixels.I want (at the moment, when i press enter) it to generate a random number of trees (15 ~ 25) at random locations on the background. The program doesn't freak out about anything, and the variables seem to be right (using stop commands) but it's not drawing anything. Here is the code for the "GenerateTrees" command I have for when I press enter.
Private Sub GenerateTrees()
NumberOfTrees = Int(Rnd() * 10) + 15
For i = 0 To NumberOfTrees - 1
bmap.MakeTransparent(Color.Fuchsia)
[code].....
I would like to use integers generated by Random.org in a small desktop widow app. Im using visual basic. All My search terms bring up unrelated (to My issue) information. Currently I am using the local random statement/command.
View 4 RepliesI am trying to make a texas hold em game and it is of the utmost importance that my code generate a random number. But using a random number function that I always end up with a lot of the same numbers over and over again. Any ideas on how to make it "TRULY" random? [code]
View 3 RepliesI've made an image viewer which opens a random image from a specified folder, but the random number is not that random at all... I've already used Randomize(), but without result.
View 3 RepliesI am trying to do a turn-based battle. I want enemyhit to be a random number between enemyminhit and enemymaxhit, and I want playerhit to be a random number between playerminhit and playermaxhit. The numbers are random, but my problem is that enemyhit and playerhit always seem to be the same, or close to the same.
[Code]...
okay i want to generate random text to textbox1.text from textbox2 say textbox2 has
asdf i would want it to generate like this so it hsould look something like this
fdas and is there anyway i can have it loop a certin amount of times say i want it to loop 5 times i would want it to look like this
asdf
fdsa
adsf
fdas
sfda
I am a grade 11 student in high school and am struggling with a project in my computer programing class. in the project we are to create a mario game, where you have 2 pictureboxes (the player and the enemy) one picturebox, the player, is moved using the keypad, the goomba isn't moved at all. the object of the game is to 'kill' as many goombas as quick as possible. I need to make the game so that if the boundries of the player intersect witht he boundries of the goomba, the goomba will move to a random location.
I can't get the goomba to move to a random location, here is my code. I highlited and bolded the part of the code that I am having the prolem with.
Public Class FrmQ4
Dim intLocation As Integer
Dim intCounter As Integer
[Code].....
I have an assignment to have a coin flip program, how do I produce 3 random coin flips?
View 2 Replies1. Is it possible to have vb.net piece together a legitimate word of a specified length, or do I need to have a massive word list, and generate a random number to pick a word from this list?
2. I also need to separate each letter of the word and display an image for each letter, and each letter going to the next based on a timer, and can also repeat on a button click.
Eg: TWO would end up displaying T W O, a few seconds apart from each other.
I am having some trouble thinking of a way to do this, what i have is an .xml file loaded and data read from it and used in my application, the thing is the data varies in each .xml for example:
vb.net
Dim XMLD As New Xml.XmlDocument
'// Find and load the XML file
XMLD.Load("Debug/xForm.xml")
[code]....
The fields vary on application execution, there maybe 5 fields with data one time, then 13 the next etc, if only 5 fields have been written to the xml and i load them all like above i get an error (because that data hasn't been written)is there a way to load the data dynamically based on how many fields have been written kinda thing?
How do I generate random text? (Numbers+Letters, or just letters)
View 1 RepliesDoes anyone know how to do the following:Get a string with with random characters and numbers in it?I want the string to be 6 characters long.
Basically, when a button is clicked, i want to fetch random letters and numbers and assign them to a string.
I have a combo box with 20 items in it, i was wondering if it was possible to grab an item at random and display it, i'm not sure what code i would need
View 2 Replies