Show An Explanation And For The Addition And Subtraction - Show It On A Number Line
Mar 7, 2010
I'm writing a program for my algebra students to practice integers.Stuff like....
3-6
-4 + (-5)
3(-4)
-15 � 3
etc.
I want to show an explanation and for the addition and subtraction, I want to show it on a number line. For example, if the problem is 3 - 7, the number line should show and arrow to that goes right to 3, and then left 7 units (starting from 3). Then the student can see that the answer is -4.I could probably do this with some string manipulation, but what would be the easiest way to do it in a picture format? Maybe a bitmap.
View 1 Replies
ADVERTISEMENT
Jan 29, 2009
Is there a way to show the line number of the line of code that caused an exception within a Try...Catch block?
View 5 Replies
Jun 24, 2010
How can I get VB.NET to show the number of each code line, so that I can more easily keep track of where things are in a lengthy program?
View 6 Replies
Mar 27, 2012
i am currently making a maths game but i have run in to trouble trying to do the addition and subtraction side of the game. This is my current class file for my multiplication
Public Class Class2
Private Property question_gameplay_label As String
Private Property correctAnswer As Integer
[code]....
View 11 Replies
Oct 14, 2011
I got a problem with my calculation .The problem is after addition and subtraction calculation I only get result or answer 0, .There are not a correct answer. I try to change the datatype of the variable to decimal and double but answer is still 0.
Here is my coding.
Private Sub btnadditionprice_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnadditionprice.Click
Dim sum6, sum9 As Decimal
sum6 = Val(Me.ItemPriceTextBox.Text) + Val(Me.txtadditionprice.Text)
[Code] .....
Answer which got is 0.000
View 2 Replies
Aug 12, 2011
I have made my calculator and it has 2 textboxes where the 2 numbers (or values go for addition and subtraction) are input and a label where the answer appears. There is other things on the page such as quit, clear etc thats all done but i have one query. I noticed while testing a problem occurs when only one number or value is put into a textbox and a command is hit. For example. one textbox (txtnumber1) has one number in it then i hit multiply and it says the error of course because its not programmed to deal with this (or divide by 0 of course) so i was wondering how i could make so when this happens a MsgBox appears saying a value must be in both boxes or when divded by zero is says something similar.
The line of code:
Private Sub blah blah blah...
If txtnumber1.Text = False Then MsgBox("Please Input Valid Value")
End Sub
I however have not been able to make it work.
View 3 Replies
Oct 31, 2011
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
Feb 20, 2011
I have a textbox1 and button1 and panel1 (which is used as a popup control)i want if textbox1.text="show" then modalpopup control whose id is panel1 will be visible on buttonclick event other wise .... modal popup control panel1 will not be shown ...how to do this ? using vb.net ?
View 2 Replies
Jul 2, 2011
I have (label1.text), a combobox(items = + , -), (label2.text) = answer1.text
What I want to do is randomize if its an addition exercise or a subtraction exercise.
View 11 Replies
Jun 6, 2011
SQL statements:
SQL = "SHOW TABLES;"
Try
conn.Open()
The remarked area works fine when I'm accessing a specific table. I've successfully inserted the products_model field into the combobox too. The datagridview does show the table names in the db using the SHOW TABLES sql statment, but I'm not understanding how to get this info into the combobox instead.
View 1 Replies
Nov 2, 2011
In VB if you prompt the user for a number between 1-20, then a word, how do you get a text box to show the word the same number of time as the number selected using loops?... Ex: please select a number: 4 / select a word: cat....the text box should display ::: catcatcatcat ........
I am doing this for a class and my brain has locked up. Prob. just over thinking it though. Thanks in advance for any help!
View 6 Replies
Oct 26, 2009
Where do I put the line SplashScreen.Show? Before of after InitializeComponent()?
View 1 Replies
Mar 21, 2011
with the code
Marshal.GetLastWin32Error
I obtain a number.... but WHERE can I find an exhaustive textual explanation relative to the number?
View 1 Replies
Oct 29, 2010
All I try to do is to display 10 as 10.00
Dim amount As Double = 10
lblAmount.Text = Format(amount, "##,##0.00")
And what I am getting is this
&10=##,##0.00
View 2 Replies
Sep 28, 2010
i want a automatic packet number in text box if there is no data in database...if there is a data i want to add 1 in packet number to next packet in text box'packet no= JA0001
q = "select max(mid(pack_no,3,4))as max_pck_no from mef_info where mid(pack_no,1,2)='"JA "'"
cn = New OleDbConnection("provider=microsoft.jet.oledb.4.0;data source=Database Path ;Jet OLEDB:Database Password=*********;")
[Code]...
View 1 Replies
Mar 4, 2010
(Just to give some backstory) I'm making a program to easly create ReadMe's for Fallout 3 mods, and you can check some boxes to show what offical extension you need in order to run that mod. How can I only show parts of a text line? The line will be like: Requirements: (First Extension), (second extension), (third extension).
[Code]...
View 7 Replies
Jun 10, 2009
how can i show the line shape in toolbox i want to draw a line
View 11 Replies
Aug 14, 2009
Can anyone help me to make a program which include a Button shows the current Month and the year and when clicking the button it shows a DialogBox ith a MonthCalender (this one I have done - the Monthcalender shown on a Dialogbox).Further I want to change the month shown as a Text of the Button when I click other Buttons to make the calender to go backwards or forwards,
Another thing I want to know is how to make the TreeView which expand / reveal another line or something on clicking the "Plus".I am learning only VB 2005 / VB 2008, please give the codes etc for VB 2005 only.
BTW, Can you tell me how to paste a picture in this writing place? I tried to paste the picture to shoow what exactly I want to do, but I couldn't do it.
View 9 Replies
Jun 8, 2011
how do you show information from a datagrid cell to show up in a text box in another form, this is for a college project.
View 1 Replies
Feb 5, 2009
I have form 1 (User Details) and form 2 (Transport Usage). Now in form 1 there is a textbox which shows the user's ID and when i click a button that links form 1 (user details) to form 2 (transport usage) i want another textbox in form 2 to have the same user ID as in form 1. (the user ID always changes)
View 9 Replies
Mar 11, 2010
i have a division of 2 integer that give me a result as2,3944534 ...how i can give e result as
View 3 Replies
Jul 31, 2009
is there a way to show my running number in a text box. the logic is like this, i have 1 button once i click on that button,the textbox start running a random number start from 1-47. when i click again the running textbox stop.here is my code.
If lb_count.Text = "0" Then
Dim RandomNumber As Integer
RandomNumber = RandomClass.Next(1, 47)
[code].....
View 14 Replies
Apr 5, 2012
is it possible to make something that can show the number of active applications? For example some code that say: Label1.Text = Number of running applications
View 15 Replies
Feb 15, 2011
I have a form (FRMQUESTIONNAIRE). It contains, a listview table, a panel and picturebox, 2 combobox, 10 questions with 5 radio buttons each question ( A survey),A log number id (I just used Label in here) and 2 buttons ( save and skip).
Problem: When I click one item in listview table, the picture captured realted to the item click in listview table will be shown in panel beside it. However, the problem start to happen when the log ID is not appear accordingly based on user selection on listview table.
What I reckon start of the problem: - Previously The listview table(listview1) in frmquestionnaire was in frmqlist(another form). But to suit user requirement, it has to combined with frmquestionnaire. In frmqlist, I use a label Image. This form contains the similar details in frmquestionanire except there are no 2 combobox, 10 questions with 5 radio buttons each question ( A survey),A log number id (I just used Label in here) and 2 buttons ( save and skip) But it have a button(Proceed to survey). Having said that, when user click an item in listview(Frmqlist), the picture will be shown beside it. User will click button proceed to survey and frmquestionnaire will pop up. Here, It shows the correct Log ID based on user selection in frmqlist.
But now....
I have combine everything in frmquestionnaire. I am facing as the LOG ID is not showing according to the selection. As a result, I can't save the questionnaire answer as well as this log will be used to save in database.
[Code]....
View 2 Replies
Feb 12, 2011
I mean, a big number like million in this way: 1,000,000? I know i have to parse the number somehow and add the commas there and stuff, but how?
View 2 Replies
Oct 3, 2010
how to get the product using "+"(addition) and division using "-"(subtraction) and get it's remainder without using modulo division.
dim ctr as integer
for ctr=a to b
ctr=a+a
next ctr
View 2 Replies
May 18, 2009
how could I replace the line - 'SingleLineTransfer.Show()'. Doing this while the form is opened would cause it to duplicate, but I also don't want to close it. I tried bringtofront and focus the form but then the sql code doesn't work.
Dim cmd As SqlCommand = New SqlCommand("select owner, notes from orders where orderref = '" + txtReference.Text + "'", nwindconn)
Dim myQry(1) As String
[Code]....
View 10 Replies
Nov 7, 2010
How do you refresh a datagridview in code to show to show new data in the DB?
View 3 Replies
Sep 3, 2009
Does anyone have a 1 to n thread example in which n threads are created dynamically? There are a number of examples that show a definite number of threads, and some that imply n threads by using a tcp ip listener or a file system listener. However, I'm looking for a 1 to n created in response to a dynamic requirements, provided purely by and for my program.Essentially, my requirement is to be scalable. 1 to n threads based on application throughput should make this pretty easy to satisfy.
View 9 Replies
Apr 7, 2010
how i can format a number to only show decimal places if needed?For instance...
string.format("{0:SomeFormat}", 26.9) = "26.9"
and...
string.format("{0:SomeFormat}", 26.0) = "26" 'Drop decimal for whole numbers
View 3 Replies