VS 2010 Using PEMDAS For Equations?
Oct 25, 2011
I'm working on a calculator. So far I've made it so you can type in an equation with as many numbers as you want like 5+6-12*3/4 and it can solve it. My main problem now though is that it's solving the problem left to right instead of using PEMDAS. For example 2+6*2 should = 14 but when I type it in it will give me 16. My calculator isn't using parenthesis or exponents so I just want to put the multiplication, division, addition and subtraction in order when solving.Could a more experienced coder give me some pseudocode to make this possible please? So far for the calc I've been using regex a lot. Is there a way to achieve this without regex?
View 9 Replies
ADVERTISEMENT
May 6, 2011
I've made a fairly good Windows form application to solve quadratic equations, but I am having a hard time understanding the publication process microsoft uses in Visual Studio. I'd like to distribute my programm as freeware on my blog.
View 5 Replies
Nov 13, 2010
I am trying to make a program to calculate the roots of a polynomial equation using the bisection method. I have designed the program so the user input a range of x values (x1 and x2) to solve for the root. When I debug the program I keep getting zero for the root. I know there must be something wrong the way I have my loop setup that keeps giving me a zero root. Here is what I have so far
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim x1 As Double
Dim x2 As Double
[code]....
View 2 Replies
Apr 21, 2012
I have to calculate values of several equations in an application. For example, one these equations could be:
d = a + b*z + c*z (this is what is being displayed to the user, assume that 'a', 'b' and 'c' are provided as textboxes, assume that z is a hardcoded value for now)
Now, the user could enter a=1.5, b= -0.5 and c = -0.6 (or even 'a' could be negative). So, I just tried a sample code for simple values but to no avail...
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
Dim val1, val2, val3_calculated, first, second As String
first = "8"
second = "3"
Dim arr(10) As String
[Code] .....
Error:
But it throws an error saying that I am not using any databind control.
Concerns:
First of all, is it necessary to use this "eval" operator in here? Is there any way to keep "-0.5" with the sign in asp.net using vb?
View 1 Replies
Apr 26, 2009
I am working on an assignment for Visual Basic, trying to write a program that will enable a user to enter a number and have it display that number and show in a listbox how it would multiply with numbers 1 through 12. An example of this is:
5 X 1 = 5
5 X 2 = 10
...
[code]......
View 5 Replies
Jun 16, 2009
Is there a way to create new mathematical equations at runtime? Obviously you can pass new variables to a given equation, but I need to make a new equation altogether (then give it variables).
[Code]...
View 7 Replies
Feb 3, 2010
Similar to using VAL(a$) to return the numerical value of a string, is there a function for returning the solution of an equation that is user-typed into a textbox? For instance, user types F$=(a+b*x)/(c*x^2-d*x^3) where the variables of the equation are either pulled from a textbox or derived within the code. I am looking for something like F=Solve(F$).
View 5 Replies
Jun 16, 2011
I found a great way to get the equations of calculations from application to Microsoft word file with MimeTex here-[URL]
But unfortunelly the code is only for Microsoft Visual Studio Solution under the Eq2ImgWinForms folder, but I use on my application Visual Basic language (Visual Basic 2008 Express Edition).
how could I use the same thing on my application with Visual Basic?
View 2 Replies
Oct 28, 2009
I need a VB.NET program to solve linear system with any number of equations
View 5 Replies
Dec 10, 2009
Due to the way I currently have it setup, the calculations are not being excecuted properly. I've been tweaking for a while and haven't gotten it yet. I think the problem is that certain equations are being done before certain terms are defined. If I click the calculate button multiple times, it works fine, but I need it to function on the first click.
Take a look:
Public Class frmford
Dim Make, Model, InitialPrice, Options, AirConditioningTax, GST, PST, Total, Subtotal, APR, Months, RoofRack, SunRoof, SideAirBags, TintedGlass, RearSpoiler, GPS, PowerLocks, FreightAndPDI, AirConditioning As Single
[CODE]...
View 17 Replies
Nov 5, 2011
At the moment I'm in the process of building a class that can handle more advanced mathematical equations and processes. Essentially my end goal is to to have my class capable of processing anything you'd learn in Elementary Algebra through College Algebra. So far I am able to multiply monomials and order polynomials.. However for the most part the equations in questioned being processed have to be in correct form. IE Point-Slope Form, Y-Intercept Form, etc etc. I'm just curious as to how I can go about "validating an equation type by it's current form".
View 5 Replies
Oct 2, 2010
When trying to import CrystalDecisions.CrystalReports.Engine, and CrystalDecisions.Shared. I'm getting a green line. What might be the problem?
View 3 Replies
Jan 8, 2012
I'm new to visual basic, used it for a few months. My friend is addicted to using a program called Wpe Pro [URL].. and he wanted me to make it more advanced and able to do more stuff.if you no anything about this program please message me
View 5 Replies
Aug 4, 2011
VB.Net 2010 program .exe on PC with Excel 2007 gives error when cannot find Excel version 14, which is Excel 2010 I have developed a program in VB.Net 2010 which reads from an Excel spreadsheet. It works fine in the IDE on my computer. I built an .msi and executed it on my computer. I get "Error: 53 - Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=14.0.0.0, Culture=neutral,PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified."
The only version of Excel on my computer is 2007, which is version 12.0.6557.5000. The version the error says it needs, version 14, is actually the version of Excel 2010.I have put in MsgBox statements to find where the error occurs.
[Code]...
View 2 Replies
Jan 5, 2011
At present I have wrote an application (in-house CRM, vb .net 2010) which allows me to send emails under the selected customer & I categorised these emails.As these are categorised I can return data to display email history in my program by using search criteria:
Dim oMail As Outlook.MAPIFolder = oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderSentMail)
Dim sSearch As String
sSearch = "[Categories] = '" + "[" + tAccount.Text.Trim + "]" + "(" + tShipTo.Text.Trim + ")'"
Dim oItems As Outlook.Items = oMail.Items.Restrict(sSearch)
However the limitation to the above is it only looks at sent items & no other folder.My ideal solution would be to display all email correspondence for a certain contact.
View 1 Replies
Jun 6, 2012
The situation: when i build my project (or publish) Visual Basic 2010 makes and exe and a couple ddl files. when i run the project with the .exe and the other files the program works perfectly.
My problem: I want to share it with friends and it is just a verry little program ( a n internet radio) so i want it to be 1 .exe with out any other instalation needed so i can easly share it to anyone who wants it. when i make an even smaller program and Debud->build it, it is only 1 exe and no instalation needed. so is there a way to make my program to 1 exe only?
View 4 Replies
May 26, 2010
Basics Details:
VS 2010
Making an Addin for Excel 2010
Win 7
Problem:I am not getting the cursor (4 arrowheads) for moving the form.I am using the Panel1_MouseHover to display the cursor. Right now if I choose any other cursor then it is working but the same cursor also displays when I hover the mouse over any other control. I want the cursor to show only in the areas of the Panel where there are no controls.How do I show Tooltips for the images? The play,stop,next, previous,playlist,Hideme(with the smiley),volume are all images and not buttons?
View 9 Replies
Jun 21, 2010
Well I used the Visual Studio 2010 installer to install my application and I want it to be able to change the version displayed in the in the Add/ Remove Programs (in the Control Panel). How can I do this without going through the install wizard again?
View 3 Replies
Aug 19, 2011
If I create a DLL using VB 2010 express can it be used by previous versions of of .Net (3.5, 2.0)? Will the DLL use .Net 4.0 components, which is what I want. I don't see a way to force that to be the case.
View 1 Replies
Mar 26, 2012
this is my very first posting and I must say I am desperate. I have a VB assignment due in 2 days and I am so lost. I have written a code to draw some graphic, just a basic house, tree, sun etc. I have also written a code to magnify said graphics which were all the specifications of my Assignment 1 part A. Now for Part B I am being asked to extend my program so that: A - My graphic can be drawn using different colour schemes designed by me but chosen by the user B - My graphic or an appropriate part of it can be animated around the picture box if the user chooses to do so. C - Error checking is included.
[Code]....
View 2 Replies
Jul 16, 2011
it's just for a program registration. i would store all of the registration codes in the access database, then export it to XML, then upload it to my web host. I would then somehow connect it to my Visual Basics login form (Which I have already made). If this can't be done, having them register through the form and having all the allowed codes on the internet (So i can easily edit them)!
View 5 Replies
Mar 7, 2012
Is it ok to install my VS 2010 Ultimate even if I already have VB 2010 Express Edition? or should I uninstall the express edition first?
View 3 Replies
Aug 11, 2011
well until a few day ago. I don't know what I have introduced to cause the problem but now, whenever I load the project, VS 2010 (SP1) crahes. If I delete the project's suo file, the project loads (really quickly) and all is well until I exitVS 2010. When I re-run it and try to load the project, it crashes again unless I delete the suo file.The program can be built for x64 and x86. Now, when I reload the project (after deleting the suo file), it comes up in Debug - Any CPU mode. I can change from Debug to Release and from Any CPU to x86 but if I try and change from x86 to x64, VS 2010 crashes.This is not always the case though. If I build the x86 version and then switch to x64, all is well and I can build the x64 version. Obviously, there's something wonky going on.
View 7 Replies
Feb 14, 2011
I need to write from VS 2010 vb.net dataset into a newly created xlsx file.
View 2 Replies
Nov 3, 2011
Here are my questions concerning VB 2010 Express:
1. I've registered my VB 2010 Express, will it still expire?
2. Will the applications I made using VB 2010 Express expire after some time?
3. Is it OK to write my code in the designer.vb file? I don't know why, but when I started writing my application it took me to the designer.vb instead of form1.vb code.
4. I've been working on an application for a week now, but suddenly I can no longer access my Design View(Shift-F7). All my codes are written on the [form name].Designer.vb. I can still view my codes but I cant access my form layout. On the solution explorer, my forms no longer have the 'form icon'. When i press Shift-F7 nothing happens. Right-clicking the form on the solution explorer doesn't show 'View Designer' option. How can I fix this?
View 5 Replies
May 16, 2012
I have a datagridview populated from a CSV file in vb.net. I have 2 datepickers, 1 button. see the attached images. Image1->before filtering
[Code]...
View 8 Replies
Nov 6, 2011
Dont be afraid to spam the thread with things you can create.The more the better!
View 2 Replies
Mar 18, 2012
I'm having a little trouble trying to read a word document in vb. how to get the text out of the word document would be great.
View 4 Replies
Apr 1, 2012
Syntax error (missing operator) in query expression '''system time'''.this is the error that appears
this is my code:
Dim sqlCmd As String
Dim x As Date
x = Format(Now(), "General Date")
[code].....
the fields in the tables are all text fields.is there any way to fix this error? perhaps it is in my query but i really cant find a solution.is there an alternative to get what i want my program to do?it is basically entering an ID number and finding the record with the same idnumber and putting the system time on the timein field for that record.
View 1 Replies
Apr 20, 2010
I have the following extension method. However, when I type "File." this method doesn't pop-up. What did I wrong?
[Code]...
View 1 Replies