Super newbie here and I recently signed up just to address my problem. Please help me convert or at least tell me what to do on the following code to my vb2008.I saw this listing on a website and I like its simplicity. It was written in vb6.
here's the snippet:Design the form. Create a Command Button named as Command1 and copy that and paste it 11 times. This will create a control array.Then assign the text naming it 0-9 plus (.)dot and they are under one control array. Likewise create cmdOperator control array for the operators Add, Subtract, Multiply and Divide. One button for equals and one for clear. All in all 17 buttons. 1 textbox serves as input and output.
Sorry if I'm in a rush here( I am already) but vb2008 its hard for me to learn control array. I have read a few post awhile here dealing with arrays in vb2008 but I'm overwhelmed with info and confusing for me to grasp the idea.
I am getting two errors for "expression is not an array or method, and cannot have an argument list," When debugging, the formula works quite well. However I will lose points for blue squiggly lines. I am not allowed to use any built in functions like math.
I have used VB (versions 2 - 6) through many years; however, I am crash-course training myself into the VB2008 / VB2010 world kicking a screaming. I would like suggestions as to what SQL database access method should I focus more on in my learning process without making me feel that I'm a million years behind. I know I have WinForms where I can create a datasourse and drag / drop fields or tables on a form to create a grid (not really what I'm looking for).
My trouble isn't so much designing the form but in how I access the database. Theres XML, LINQ to SQL, ADO.NET, and many other methods. Not only do I need to grasp these methods quickly but I also need to know what type of projects I should create. What I mean is...I was thinking that I would design a WinForm app; however, I see that there are WPF apps and others to chose from. This is getting deep. I know it depends on the project that I'm working on. My plans are to write an app based off of either an SQL Express 2008 or SQL Server 2008 database. This first app will be standalone for now but may later become multi-user. I know I'm far behind on my learning curve coming from VB6. I have read a bit on VB2005 / 2008 / 2010. I own both VB2008 and VB2010. I use VB2008 at work. I know ADO.NET is still alive but by what I read online, it's a dying method and is only kept for backward compatibility. XML and LINQ to SQL and other methods are all pretty new to me.
ive got to create a BMI calculator using metric units, when i enter my data, it doesnt work (i put in 1.5m and 90kg but the answer comes out at 3, and in clearly not anorexic heres what ive got at the moment
Dim BMIResults As New frmBMIResults Dim Answer As Integer Dim BMIAnswer As Integer Answer = CType(tbHeight.Text, Integer) * 2 BMIAnswer = CType(tbWeight.Text, Integer) Mod Answer 'BMIResults.Show() 'Me.Hide()
I'm taking an introductory programming course, and am completely flummoxed as to what I'm doing wrong with my program. The problem seems to be in my arithmetic, as the program runs fine; it just doesn't produce the correct result when compared to the professor's control model.
I need to create a mortgage calculator, using the following formula: monthly payment = interest rate * loan amount * ( (1+ interest rate) ^ months) / ((1+interest rate)^months)-1) )
We have to use that formula, no other one. If anyone can spot an error in my code, please let me know what I've done wrong!
I am trying to create a calculator, which can accept numeric keyboard imput, as well as button clicks, and display the number in a label.
Why does the numeric keyboard input work in this instance
Public Class Form1 Sub Form1_KeyPress(ByVal sender As Object, _ ByVal e As KeyPressEventArgs) Handles Me.KeyPress
Even if I press a keyboard number before pressing the button(so there is no need to clear the label if the button is pressed first etc), the number is not displayed in the label. And even if I completely comment out the code for the button-click, the keypress event still does not display the number in the label. It is as if just having the code for the button completely disables the keypress.
I have probleam with my code, currently i am create scientific calculator which have function sin, cos & tan. The code i create it not working because every time i convert the function it will show 0 as answer. how to correct my code here.
Public Class Form1 Dim total1, total2 As Double Dim [Operator] As String Const conversionFactor As Double = Math.PI / 180 Dim result As Double total2 = Val(answer.Text)
i want to generate day book,general ledger,individual ledger in vb2008. my report form is daybreak total,cumulative tota,ledger total likeway. i want to generate data from different tables example:-from purchase table,sales table,payment table etc... we need total of every day by day from all these files
So I was assigned to create a calculator that can calculate the sum, product, difference, & quotient using an external class. Unfortunately my teacher isn't exactly the best and I'm new to VB, I know how to create a calculator in VB .NET but when it comes to external classes,
I need to create a tiny calculator using the basic operators of Addition, Subtraction, Multiplication, and Division. My professor hasn't really covered much of this, so I'm not to sure how to create it.
I have this homework assignment where we have to create a pay calculator where you would enter the total minutes worked and the hourly pay rate. and then i have to create the code to show what the total weekly pay would be. I have to display the Hours Worked: and the Leftover minutes: I also know that the formula to calculate the weekly pay is totalMinutesWorked / 60 = hoursWorked and i have to use the Mod operator. [code]
create a chat client for vb2008.The user logs in from a form, And they are taken to the main form with all the features. From their I want them to already be logged into the chat. The chat will get the username from the config.ini file. Since multiple people will be using this, I will be hosting the server part of the chat on a windows 2008 server.
I'm trying to build a chart in a windows form using Visual Studio 2008 Express, I've found a couple of tutorials but they say to add a component I don't seem to have... is this a limitation with the express edition?
I am using vb2008 express to create an applicationI have an ACCESS 2007 table that I use to fill a form using Fillbywhich works fine however 2 of the fields in the table are YesNoand they do not show up on my form
I have been given a project to do were i have to create a credit union application in VB2008, what i need to create this application etc like how many labels textboxs etc obviously i need to create it but all am asking is if you could tell me were to start as i am lost and never really created anything in vb 2008.
Here is the spec:
The client is prompted for their name and a personal reference number. If the application is successful then this number becomes the loan agreement reference number. If the applicant has a credit rating of 14 or more points the application is rejected. If the credit rating is less than 14 points then the client is prompted for the loan period (must be equal to 12, 24 or 36 months) and the amount required.
The cost of the loan is 6% if required over 12 months and 8% if over 24 months and 12% over 36 months. This is added to the loan. The applicant's net monthly income and total monthly outgoings are taken into account. If the monthly repayment is more than 25% of disposable income (net income outgoings), then the application is rejected. If the repayment is less than or equal to 25% then the loan is granted and a form is produced and printed with the relevant information, including the loan and repayment amounts.
We would like to create a client-server architecture application that the server can control all client computers connected to it (e.g shutdown) and we would like to put a security login and a desktop lockeron the clients. The process of the system is that when the clients starts, the desktop is locked and ofcourse the user can't access the desktop unless he/she logged-in. And when the scheduled time (e.g 1 hour) is done, the client computers where automatically shutdown like the Time Logger Softwares
I am at a bit of a loss at the moment. What I am basically writing is the password elements of a membership system. What I do is generate a random salt value, take the registered password, combine the two and then pass the new string through a function which will generate a SHAManaged 512 hash.
I then convert the hash and salt string into Byte arrays and store these in my database.The problem comes when I then compare a login attempt against the original value I am being supplied with a completely different hash for the password being presented by the user, even though it should be exactly the same.
Here is my code when someone registers their new account:
I know MD5 hashes have been asked about 1000+ times, but this question is slightly different.I am looking to find the true MD5 hash of an image, but without using a string for the file's location. I am looking to be able to call on the image inside of a picturebox rather than somewhere on my computer or the internet.
For example, I want to find the MD5 hash of an image inside of my picturebox.
If this doesn't make sense, please ask any questions you may have.
I have a page with a URL that includes a hash value (www.mysite.com/#123).What I want to do is use that value to determine what is displayed on the page - much like using a querystring.I am using the hash value because the content on the page can be changed client side (I am avoiding page reloads where possible) - if the user then links to another page and uses the back button to return, I need to use the hash value to display the page as it was when they left it.So I'm looking for an if statement that will look something like this:
I would like to write a function GetHashCodeOfList() which returns a hashcode of a list of strings regardless of order. Given 2 lists with the same strings should return the same hashcode.
ArrayList list1 = new ArrayList() list1.Add("String1"); list1.Add("String2");
I can first sort the list, then combine the sorted list into 1 long string and then call GetHashCode(). However sorting is a slow operation. I can get the hash of each individual string (by calling string.GetHashCode()) in the list, then multiplying all hashes and calling Mod UInt32.MaxValue. For Example: "String1".GetHashCode() * "String2".GetHashCode * ... MOD UInt32.MaxValue. But this results in a number overflow.
I'm trying to figure out a way to compare two "salted-hash" strings. How can I do this? I know that the salt is a random generated value that's appended to the plain text, then we just compute the hash of that new string.So how can I compare these two values? O_O (The new hash that the user hash written in a textbox and the hash stored in a database)