Create A Hash Calculator Using Vb2008?Nov 30, 2010
i had to create a hash calculator using vb2008?
i had to create a hash calculator using vb2008?
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 trying to write a code for a exponentiation calculator in VB2008?View 2 Replies View Related
i'm looking for a function which can create a MD5 hash from a string. Not much luck searching the interwebs, so i thought maybe any of you guys has a solution.View 5 Replies View Related
i need to create a hash table using a multiplication method and i need to create an array of linked listso how i can to create array of linkedlist in vb or c# ?View 1 Replies View Related
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.
im supposed to create a mortage calculator but my teacher gave us no hints as to what we had to do so could someone explain wat its supposed to do in a nut shellView 3 Replies View Related
how to create calculator in vb.prashantView 3 Replies View Related
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
I want to create a simple calculator using only 1 textbox , 1 button and 1 label, but I don't know how to create the code.
for example if i write : 53+35-33=
and if i press the button it will calculate and the answer the label will show the answer (55).
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!
The code I've written is as follows:
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 am trying to figure out how to properly code to create a Commission Calculator. Is anyone able to provide assistance? I will provide the code here:
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 just switched to VS 2010 for Windows phone 7 developement... I am trying to create a basic BMI calculator app...This is what I have now...
However I have these errors which are as below
Did I forget to declare something? This does not happens when I am using the divide and multiply in VS 2008.
Error Screenshot as attached below...
i am trying to create a kind of calculator for fuel usage with menus lemme show ya the code:
Public Class frmFuelCalc
Private Sub AboutFuelCalcToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AboutFuelCalcToolStripMenuItem.Click
MsgBox("Guru Software" & vbCrLf & "Fuel Calculator Version 220.127.116.11" & vbCrLf & " Copyright 2011 © " & vbCrLf & " Guru Software Design â„¢ All Right Reserved", MsgBoxStyle.Information, "Fuel Calculator")
how to write a console application by using nested For.. Next loops to generate the star design as per below picture.star design.JPGView 6 Replies View Related
I have a VB2008 Windows form App connect to SQL server database via ODBC. What I want to accomplish is whenever vb2008 app install it also crteate ODBC automatically,View 4 Replies View Related
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,View 3 Replies View Related
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.View 6 Replies View Related
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]View 2 Replies View Related
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.View 2 Replies View Related
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?View 6 Replies View Related
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 formView 6 Replies View Related
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.
How to create windows Usercontrol in VB2008 to host in webpage.View 9 Replies View Related
what the results I need in a Windows Form Application.
(1) I need to create class objects with all various methods and properties, etc.
(2) I will create only one instance of the each class
(3) I need to be able to call the methods and properties of the created class objects (1) from any form I create.
(4) I use the class objects to store data so that separate threads can access them..
Question: how I would code this into a WFA? (I have console application code that works but need to convert it into a GUI).
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 SoftwaresView 2 Replies View Related
i have problem on how to insert the data into the oracle database 10g using visual basic 2008
My coding is like at below:Dim cmd211 As OleDbCommand
cmd211 = New OleDbCommand("INSERT INTO STUDENT_DETAIL(STUD_ID,STUD_NAME) VALUES(@STUD_ID,@STUD_NAME)", con)
.Add("@STUD_ID", OleDbType.VarChar).Value = txt_studId.Text
I am working on a VB2008 Express application that makes used of the office interop access. The exact code is:
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:
The garbage collector in .NET moves objects, so the object's address is not stable. How is Object's GetHashCode() method implemented?
I have an openfiledialog, I show the dialog and the user selects there file. How could I calculate the MD5 hash of the OFD.filename/file opened? Or calculate the SHA1, what ever is easiest.
PS: This is in Visual basic 2010 Express.
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.
im creating a simple login / registrate form in visual studio 2008 anplant Hash and salt to my login and registrate forms, im using mysql to connect to a online mysql serverthis is my codes i ahve now
Form 1 - Login
DB_Connect = New MySqlConnection()
i really need this working, all works but nothing is encrypted
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()
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)View 9 Replies View Related
I have a function in VB.net that returns a password hash. I need to make a web interface to the same database and I'm not sure how to return the same hash in PHP. Does anyone know both languages enough to convert this to PHP?
Public Function GenerateHash(ByVal SourceText As String) As String
'Create an encoding object to ensure the encoding standard for the source text
Dim Ue As New UnicodeEncoding()
I am using the following piece of code (where sId is a Unique Id in our system) to generate Unique Hash value of 16 characters Max in length
Dim oMD5Hash As System.Security.Cryptography.SHA1 = System.Security.Cryptography.SHA1.Create()
Dim sHash As String =
I am having issues to hash with sha 1 salted in vb. I have an SMF forum and it uses SHA 1 salted to encrypt its passwords. I want to make a program which is only available to users who have registered in my forum so I have to create a login system in my program. The problem is that how do I hash to SHA 1 salted in vb?I have explained what I want to do a bit more in details below:User opens program >They login using their forum account details >Program hashes the PASSWORD the user has entered to SHA 1 salted >The program then connects with the forum's database and compares the password value > (The Username is checked first tho)View 4 Replies View Related
The code below allows a user to enter user name and password to log in to enter marks of students. SQL data reader verifies the user credentials from the database before authentication takes place. modify the code by salting and hashing the password.
Dim frm As New MarksEntryFrm
Dim flag As Boolean
flag = False
I am porting over some code from .net (vb) to php and I came across some md5 hashing that I can't reproduce in php. In the .net one there are two functions one uses UTF-8 encoding and the other uses Unicode encoding. The output is a different hash when passed in a string
// First function (returns GUID)
Dim oHasher As Cryptography.MD5 = Cryptography.MD5.Create()
Dim oEncoder As New System.Text.UTF8Encoding()
Dim csData() As Byte
but they both produce the same result. Is it possible to produce the same results in php with md5 hashing?