Multiplication Table In A Label Control?
Nov 1, 2009Private Sub btnDisplay_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnDisplay.Click
Dim intCount = 1
[code].....
Private Sub btnDisplay_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnDisplay.Click
Dim intCount = 1
[code].....
I have an assignment to make a multiplication table using loops. The idea is to make this: If the user enters 3 this is the result he gets:
0 1 2 3
1 1 2 3
2 2 4 6
3 3 6 9
if the user enters 5, this is te result:
0 1 2 3 4 5
1 1 2 3 4 5
2 2 4 6 8 10
3 3 6 9 12 15
4 4 8 12 16 20
5 5 10 15 20 25
[Code]...
how to use the while loop in multiplication??
View 2 Repliesi'm trying to make a multiplication and sum table only form 1 to 12. I get all kind of error I don't know what to do
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim numMulti, numSum, tCounter, multiSum As Integer
[Code].....
Here is the problem: In this question, you create an application that displays a multiplication table similar to the following figure, where x is a number entered by the user and y is the result of multiplying x by the numbers 1 through 9. Multiplication Table
[Code]....
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 RepliesI have to create a multiplication table and it has to contain a postest loop. For example:
[Code]...
How can I program a multiplication table that will input the x and y as columns and rows.
View 4 RepliesI have a command button to display a multiplication table in list box. the multiplication is from 1 to 5. my problem is, I have to use if else or looping in coding??
View 8 RepliesMy assignment was to Write a program to display a multiplication table for the integers from 1 to 4. So i did the code And got
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim n As Integer
[Code]....
The only problem with the code is that it displays only the integers 1 , 4, 9, and 16 when ran.
I need to code a basic multiplication table in VB. I need a popup input box to ask the user to enter a number, then a label to display the multiplication table for that number from 1 to 9.
[Code]...
I have been using vb6 for a while, I am following a tutorial by MS to develop a basic application and a simple task cannot be completed for whatever reasons! The tutorial asks to drag the label object from the toolbox and drop in the tab control container. Then, go to the label size property and adjust the size to some different dimansion. Basic stuff, right? It won't let me do it! After I enter the new dimensions (which by the way are not large or very small), the label size (both width and height) resets back to its original dimensions! I have the vb.net sp1 installed.
View 2 RepliesI have a list of labels and a panel with nothing but labels and want to make list of labels and panel controls (again its just labels) equal
View 2 RepliesI am upgrading user control from vb6 to vb.net.In the vb6 application I am loading 3000 labels using a label control array.In vb.net I am doing same but it's taking too much time to load.In vb6 it's taking 1-2 seconds, but in vb.net it's taking 30-40 seconds for same work. Why does it take too much time in vb.net for same work?Code is given below, here Led is the label control array.
For l = 1 To 3000
Led.Load(ledCounter)
ColLed.Add(Led(ledCounter))
[code]....
I'm trying to make a label control transparent over a Panel control.However by setting the background colour of the label to Transparent, it actually sees right through to the form itself, not the panel as intended.
As an example we use a panel with a background as white, we make the label transparent, however it gets the form�s colour as blue.However, we are using a custom panel control and need the label to be transparent over the panel and not see the forms background.
I am using two user controls in my web application. I want to read a Label text from a user control via another user control. How can i read it?
View 3 RepliesI'm trying to make a label control transparent over a Panel control. However by setting the background colour of the label to Transparent, it actually sees right through to the form itself, not the panel as intended.
As an example we use a panel with a background as white, we make the label transparent, however it gets the forms colour as blue. However, we are using a custom panel control and need the label to be transparent over the panel and not see the forms background. Is this possible?
I'm trying to make a label control transparent over a Panel control. However by setting the background colour of the label to Transparent, it actually sees right through to the form itself, not the panel as intended.
As an example we use a panel with a background as white, we make the label transparent, however it gets the forms colour as blue. However, we are using a custom panel control and need the label to be transparent over the panel and not see the forms background.
i want to read the data from the table to textbo.below is my code
[Code]...
I would like to retrieve a value ( in this case: windspeed) from a HTML webpage the has table with the desired value contained it and put this value into a label within windows app form. Below is this HTML Data from the webpage.Ultitmately I would like to refresh the value every 30 secs
HTML
<html>
<meta http-equiv="refresh" content="30" />
<head>
[code]....
How to Inserting Label.text data into mySql table.i have no problem with textbox.text but i can't figure out how it with Label.text[code]...
View 1 RepliesAnyway, i have a list of products in a product table. Primary key 'id', and 'Price' is a float(all variables defined at the top - cut main code out)
objConnect = New OleDbConnection
objConnect.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0; Data Source=|DataDirectory|Ecommerce.accdb;"
[code].....
Dim result as single = 0
result = CType("8.01", Single) * 100 ' result=801.0 as expected
result = CType("8.02", Single) * 100 ' result=802.000061 --- not expected
Further to the above
result = 8.02 * 100 ' result = 802.0 as expected
I am very new VB .NET and just starting If statements. My problem is: Write an If statement that determines whether the variable CurrentBalance is greater then 1000.01. If it is, multiply the variable CurrentBalance by 1.005. Otherwise, multiply CurrentBalance by 1.007.So far I have
Sub Main()
Dim currentBalance As Boolean
System.Console.WriteLine("Enter Current Balance: " & currentBalance)
If CDbl(currentBalance) > 1000.01 Then
[code].....
I really don't even know if thats how I should be starting. Not sure what to put after the first Then on how to make it multiply currentBalance by 100.5.
This is part of a calculator program. I first part I sort by num and sign using a multitude of commandbuttons with no parenthesis.This program below is part of the second part. I have three more subroutines for /, +,- respectively.The + and - work correctly but * and / do not.I think it is in the line: numop(m) = g * h Is there something I am doing wrong wth the syntax in multiplication?
Public str, sign(100), numstr(100) As String
Public num1lock(100), m, n As Integer
Public ans, num(100), numop(100), g, h As Long
[code].....
How do I multiply inside loop using this code ?
Dim a As Integer
Dim b As Integer
a = inputBox("Enter first Number:")
b = inputBox("Enter second Number:")
and I want the answer to be shown in a label.
I have a lookup table that contains a label that describes the data to be written back to my database. For example:Label = Manufacturing Repair Issue (This is what the user see's in my front-end windows app)Data = Mfg_Repair (What I want to save to the database when the user choses the label)
View 13 RepliesI'm new to VB and programming in general and have not had too much trouble however i cannot figure this problem out and i've been working on it for a week. basically i have to create a program that calculates the mass of someone on another planet with the conversion numbers as constant, an input box for the user's mass, using select case format and output to a label including the name of planet ie "Your mass on &strPlantet is x" so what happens is my intWeight variable becomes zero and the lblResult is Zero. (i have not added the all the code for the label output) oh yeah i must also use a try/catch structure to prevent non numeric data from being input.[code]
View 20 RepliesThis is my assignment for tonight. If anyone can enlighten me as to why it doesn't work. I
know I haven't finished the timer, I trying to get results in the labels.[code...]
Simple Calculator multiplication and division Trying to make a simple calculator. My program inputs numbers and arithmetic operations thru commandbuttons. The numbers, num(n-+1), are odd and the operations, op(n), are even. The code is based on the even op string. Every time a op occurs it is stored in numop(n) to be accessed later. I have all the other operations in sequential order: "*"," "/, "+" and "-". The other similar For-Next loop are the same just interchange the two * for /, +and -. The "+" and "-" work fine in this configuration.
My problem is the multiplication and division does not occur. The numbers and operations line up. The numop(m)=g*h should yield numop(m)=num(1)*num(3). Is there some sort of code to be inserted to accomplish these multiplication and division operations?
[Code]...