Forms :: Times Table Program?
Jan 21, 2010
Create a simple Times Table program which will allow the user to enter an integer value n (between 1 and 20) into a textbox. On the click of a button output to a label the n times tables. Use a For�Next loop to perform the repetition.
View 2 Replies
ADVERTISEMENT
Jan 22, 2010
could anyone please help me with this1.Create a simple Times Table program which will allow the user to enter an integer value n (between 1 and 20) into a textbox. On the click of a button output to a label the n times tables. Use a For Next loop to perform the repetition.i can output them to a list box but only last one to a label ive been stuck for 3 days.
View 8 Replies
May 13, 2009
I have just started using vb.net and I have a checked list box with times throughout the day shown as
00:00 - 00:14
00:15 - 00:29
00:30 - 00:44
00:45 - 00:59
What I am trying to find is a way to get the current time and find which list item it fits into. What I think I need to do is to first of all get the current time and then go through the list splitting each item into 2 times and seeing if the current time fits. For example: Split the item 00:00 - 00:14 to 00:00 and 00:14 and then check if the current time is more than 00:00:00 but less than 00:14:59 and if so do certain task.how to go about taking each list item and splitting it into 2 separate times so I can check between them?
View 2 Replies
Apr 21, 2010
i have a problem with trying to get 2 forms to close at different times using a timer on each of the 2 forms.
This is my form layout:
Quote:
frmMain
Frm1
Frm2
Frm1 and Frm2 are identical to each other. FrmMain has 2 buttons on it. One button to call Frm1 and the other to call Frm2.Frm1 and Frm2 each has a timer. It counts down to 0 and then does a .close(). However, if i pause between clicking the second button they both seem to always disappears at the same time.I would do something like this...
Click on the first button (showing the Frm1 form)
wait about 10 secs...Click on the second button (showing the Frm2 form)they both are shown on screen...hen they both disappear at the same time.... which shouldn't happen since i clicked the Frm2 box 10 seconds AFTER Frm1... So Frm1 should hide before Frm2 does...but it does not.
[code]....
View 6 Replies
Apr 21, 2010
i have a problem with trying to get 2 forms to close at different times using a timer on each of the 2 forms. This is my form layout:
[Code]...
View 6 Replies
May 10, 2011
The Project: We have ten athletes and the user defines the time they did. Those times are saved in a table called times(10). Clicking a button calculates the minimum time, the maximum and the average time. Also it finds the place of (i) in the table and sends it to a TextBox. The Problem: What if we have 2 same minimum times, for example (10 sec and 10 sec) or 2 maximum timThe
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim max As Double
[code].....
View 1 Replies
Aug 24, 2011
I have a View that i am trying to use to fill a TableAdapter with. In my code i fill the table adapter properly the first time, filter my bindingsource and use datarowviews to loop through the rows of data and perform the updates needed (done by a stored procedure). Now the problem is, after these updates take place, i need to fill the tableadapter again so that it reflects these changes. Sometimes the View i am using will have no results, other times it may.[code]This is the exact Error "Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding."Okay, you'll notice that i fill my view, then filter those results on the column Number equal to 1. I loop through all those results and update the table my view is created off of. After exiting the loop i hit the second .fill which times out after about 20 seconds. After testing, this time out only seems to occur when MyView does not hold any records.
I use Visual Studio 2010 and sqlserver 2008. All work is done in VB.NET. Also, during debugging, i paused on the second fill, went to Toad for Data Analysts and ran a SELECT * FROM MyView which did not time out and returned the empty result table in about 19 seconds. I have also tried doing a dispose on the tableadapter before the second fill but it has a similar time out. Sorry if this answer seems obvious or something, i'm only an Intern and am still learning the language. That seems to have done the trick, from my understanding that lets it run until it finishes (SQLServer will shut it down if the connection stays open longer than it allows). The ta.fill runs at about the same pace as Toad coming in around 19-20 second mark and does not error after multiple tests.
View 1 Replies
Apr 19, 2012
I am designing a rdlc report in vs2008 for windows application. I want to display the purchase and sales based on department. If i select one department it works fine but have no idea about how to display each department's purchase and sales data in different tables. I have used embedded resource to the report. Report is designed based on the DataTable(on dataset - xsd file) and which contains, ITEMS,Purchase,Sales and Net as Fields. I have attached an image with describes the format that i want to display.
View 1 Replies
Dec 2, 2009
I have one form that needs to act as a template for 4 forms, each with its own set of variables.Do I need to set them up like:
Public frmSlot1, frmSlot2, frmSlot3, frmSlot4 As New frmSlotSetup
Or create an array?
Public frmSlot(3) As frmSlotSetup
View 13 Replies
Aug 15, 2011
I have a number of forms which have a common menu strip rather than copy the control onto each additional form is it possible to just call the menu from another form ?
View 3 Replies
Mar 29, 2009
I have made an app that the user has to type a number, and i want the process for the app to do this how evermany times the user wishes it to do.
for example, the app is ment to create a line in a text document, so they write in textbox1 what they want written on the line, and then in textbox2, tey say how many lines they want to create.
So,
TextBox1.Text = "BLAA"
TextBox2.Text = "782"
It will create 782 lines of BLAA. not just one...
View 2 Replies
Jan 17, 2010
I would like to know how to make a button click only so many times until it becomes disabled.
I would also like to know how to keep what is put in a RichTextBox there, without erasing the other text;
Example: Two buttons, the first puts "1" into the RTB, and the second puts "2" into the RTB. However when I press the second button, it over writes the first value.
How can I prevent this?
You Can Ignore this question below;
Old Question: I am working on a counter, and want to know how to make a button show itself if I hid it.
I have:
CODE:
And would like to know how to make one of the buttons visible again, with one big button.
I know it has something to do with an "If" statement.
Answer: Button#.Show()
View 6 Replies
Jun 10, 2011
WebBrowser1.Navigate("http://" + TextBox2.Text + "/robbery/index/humanhunt/1")
How can i make this code execute the times that TextBox1.Text indicated?It should be some kind of loop. but i want it to repeat this every 100 milliseconds?
View 3 Replies
Apr 2, 2009
I'm developing a windows application. I have a form in which there is a list box and a treeview control. My purpose is to fill treeview according to list item clicks. This is done using a pair of subroutines called ReloadPermissions and FillMenuItem:
Private Sub ReloadPermissions()
Dim p As New Permissions
Dim i As Integer
Dim it As TreeNode
Dim el As New List(Of String)
[Code]...
There are only two subroutines in which nodes are added to treeview control, and they are subroutines above. The problem is that whenever list item is clicked, node count displayed in treeview is increased!!! I checked number of nodes before and after call to tvPermissions.Nodes.Clear() using MsgBox. Results show that number of nodes isn't increased (1 before call, 0 after call, again 1 after ReloadPermissions() is called), but what is displayed doesn't show such a behavior! Refreshing window by putting it under other windows or call to tvPermissions.Refresh() has no effect.
View 1 Replies
Aug 13, 2010
VB2005 So I've created a pretty good and simple program to query a database and then export the data to a text file. i then transfer the file to a remote server via FTP. It all works really well and i have all the functionality setup with a button event. Now that its working what is the best way to have this program run automatically every day at 9AM and then shut down once its done. Im looking into a command line and also a service but wanted to see.
View 1 Replies
Nov 21, 2010
i am trying to make a coin toss program where you toss a coin a certain number of times then repeat it a certain number of times.
the problem i have is "heads(counter2)" the word "heads" has a blue error line under it how do i sort the error out and also is all the code right
Public Class Form1
Dim tosses, repeat, heads As Integer
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[code]....
View 1 Replies
Dec 28, 2010
Imagine that I have a System.Windows.Forms.Timer with 1000 ms interval. If I call Timer.Start() method and after 500 ms I call again Timer.Start() what happens? The second Start call will reset the interval or not? Are there any side effects?
View 3 Replies
Feb 21, 2009
Im kinda new to visual basic, and after a days of googling and searching, i havent got answer for this So, i wanna press and HOLD a button down, not just pressing/spamming it fast 200 times. something like sendkeys.send("{HOLD W}"), not like sendkeys.send("{W 200}")Anyone know answer for this? (Answer to unhold would be nice too :') )
View 1 Replies
Nov 5, 2010
Is there any way that I can tell if a second version of the same program is opened by the user.
View 5 Replies
Dec 15, 2010
Let's say, I have something like a table in the WebBrowser component, it's not actually a table, because the data organized in flash, but, it's organized like a table, it has like rows and columns. You can see more in the attached file. Can I transform this text organized as table into DataGridView or some another tool that serves as table. like_a_table.JPG
View 3 Replies
Mar 24, 2009
I am getting the error "system.argumentException; Column ' test_id2' does not belong to table Table. At System.Data.GetDataColumn( string columnname0 at system.data.datarow.get_item(string columnName).
This error is occuring right after I set the parametervalues in the report object of the Crystal report.(Note this a visual basic.net 2005 windows form application.)
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim cryRpt As New ReportDocument
Dim sql As String
[code]....
The value for the first parameter @Parm_1d1 value to the crystal report version 11 is correct. However, when trying to access the second @Parm_1d2 parameter ,the values past to the crystal report is not correct.
View 2 Replies
Apr 4, 2010
I want my program to: send.sendkeys(textbox1.text) as many times as someone types in so for example if someone types in 20 it will send it like this:
send.sendkeys(textbox1.text)
send.sendkeys(textbox1.text)
send.sendkeys(textbox1.text)
send.sendkeys(textbox1.text)
[CODE]...
View 3 Replies
Jan 29, 2012
shove in the right direction on this:My program is setup to instantiate/build five labels at run times, corresponding with those labels five texts boxes are built at run time. The user inputs four numbers into the first four text boxes and then when you click the total button, it totals the four boxes and outputs to the last text box
View 5 Replies
Oct 4, 2011
How to write a VB.NET metronome program that beeps X times a minute? I have tried several solutions but the down work. The sound is either delayed or doesn't occur at all.
View 3 Replies
Jan 27, 2010
I've been looking at API and cURL and I'm thinking of creating a program for delicious which adds a bookmark for me a certain times during the day. They have an API page here which I think you use a cURL command to use but I don't know what any of this means
I reckon I could figure out everything except how to actually get the program to connect to delicious and add the bookmark, there doesn't seem to be anyone else using vb.net and cURL together so maybe there is a reason.
View 5 Replies
Apr 20, 2011
Im trying to create a program that can search files and display the amount of times that it has been encountered, for example it will show the number 4 because it will run into four instances of the word. Im kinda stuck on how to do this,
View 3 Replies
Dec 12, 2011
I want to enlarge an image, possibly up to 32 times or 64 times bigger than original dimensions (so that the user can see each pixel) if possible. The following is a simple function that I have to enlarge an image.
Private Function xEnlarge(ByVal Source As Image, ByVal Rate As Double, Optional ByVal Quality As Drawing2D.InterpolationMode = Drawing2D.InterpolationMode.HighQualityBicubic) As Image
[Code].....
View 6 Replies
Aug 10, 2011
I've written a keydown event that needs to occur multiple times during the execution of a program, and it needs to play a sound each time. The first time the keydown event is triggered, the sound plays without a hitch. However, the second time (and all subsequent times) the keydown event is triggered, a system beep accompanies the sound. I'm using Studio Express '10 and I've already integrated e.SuppressKeyPress into my code:
[Code]...
View 4 Replies
Apr 4, 2010
I want my program to: send.sendkeys(textbox1.text) as many times as someone types in so for example if someone types in 20 it will send it like this:
[code]...
View 1 Replies
Mar 16, 2011
I am trying to build a program that calculates the minutes worked times pay rate equals amount of weekly pay this is what I got but it doesn't calculate
CODE:
View 3 Replies