Stopping The Loop Stuff?
Jul 23, 2011
I used a combination of If and doWhile loop codes. Is it possible that the loop will stop at 2nd loop if it will perform a 3 loops?I'm creating an app that if the problem is got the match at 2nd out of 3rd loop, the loop will stop.
View 1 Replies
ADVERTISEMENT
Nov 12, 2010
What i have to do is write a program to display multiplication table when a number is put into the textbox and it prints out multiples of 1-12
ex.
user puts in 5, listbox should say
5 x 1 = 5
[code].....
View 1 Replies
Jun 19, 2012
I was wondering if there was any way to stop a for loop untill i have user input, once the input is correct continue the for loop, is that possible at all
View 3 Replies
Feb 10, 2011
I was wondering how someone could stop a For loop in the middle of it, according to parameters. I have tried but cannot find a solution that works, I suppose an example of this would be if a loop were increasing a label by 1 from 0 to 100 and the user sets it to end at 57 or any number in between and when the loop reached the number to stop.
View 8 Replies
Mar 9, 2011
How would a person stop a try loop once it has started a button click on the same "Form1'? Let's say in this example p = 100. If I wanted to stop it using a button how would I, I have searched Internet and found nothing that is working.
[Code]...
View 9 Replies
Mar 1, 2010
i have a for each loop i.e
[Code]...
if want that the loop stops while the player play a file until finished playback
View 1 Replies
Aug 21, 2009
I have a loop that says this...
Do
If e.KeyCode = Keys.F4 Then
Exit Sub
Else
[code]....
My problem here is that what the loop does is click on another program, thus taking the focus off of mine, how would i be able to make my app see if I press the key even if the form isn't in focus?
View 3 Replies
Mar 14, 2011
Makes the following statement about the code below:
**"The computer evaluates the loop condition in the Do...Loop statment to determine whether the loop instructions should be processed. In this case, the inputsales <> String.Empty condition compares the contenst of the input sales variable to the String.Empty value. As you know the String.Empty value represents a zero length, or empty, string if the inputsales variable is empty, the loop condition evaluates to True and the computer process the loop instructions. *If on the other hand the inputsales variable is not empty, the loop condition evaluates to false and the computer skips over the loop instructions.
Based on the code I think it is the opposite: ...that while the inputsales value is not empty it should evaluate to true and process the loop and if it is empty it should evaluate to false and skip the loop?
See below.
Option Explicit On
Option Strict On
Imports System.Globalization
[CODE]...
View 2 Replies
Dec 4, 2011
Is there anything like STL in Visual Basic , e.g a binary tree , quick sort Do I have to implement those algorithms myself , does Microsoft provide any useful interface ?
View 1 Replies
Sep 23, 2008
i am making a program and the program runs too slow, so i would like to declare my functions at once.. not like this :
[Code]...
View 6 Replies
Jan 17, 2010
I've been looking for some programming languages, and I've read about the basics of Python and C++, but I'm more interested in Visual Basic But! Everywhere I look, I only find tutorials about how to use MS's Visual Basic Express and stuff, not how to code, not tutorials about the code syntax, how to declare variables and these essential things.Does anyone here has a good tip about learning the basics of VB? And not how to use VB Express/Full edition I can insert a new button but I have no idea on how to make it work, what's the point of it?
EDIT: Oh and another thing.I was playing around VB, creating a simple user interface with buttons, and I've noticed that the code doesn't change when I update the button's or other objects' Name property in the Designer window... shouldn't the code update itself with the new objects names?
View 6 Replies
Jul 25, 2009
i have a hashtables working with a simple dictionary, my problem is i put the stuff into the hashtables but i cant extract the key... i need the key so i can remove stuff from it using the code..
View 11 Replies
May 22, 2010
Is there a way to stop other subs from running while in a separate sub.
for instance say your in the sub
CreateNumber()
and the subs are setup like
CreateNumber()
AddNumber()
DeleteNumber()
Is there a way to be in CreateNumber() and call a function to stop AddNumber from running after creaetNumber() is finished? i just want my program to sit there to wait for an event to happen.
View 1 Replies
May 11, 2011
i am working on a project! the problem i am having is that i have two combo box first combo box takes stuff form the file and then add it to listfile it also removes that selected file from the combo box.suppose i have four carid in my combo box...when i select one car and then send it to dispatch it removes form tht combo box and add it to the lst file... this much i can do. is i need that carid that removes from the combo box should add in another combo box ... but i cant able to do it
Public Class MainForm
Private strCarID() As String
Private strTime As DateTime
Private strDate As DateTime
[code]....
View 27 Replies
Sep 10, 2009
I am making kind of like a login form, except a little more complicated. Right now I have an SQL Database that stores the login information. My question is, how do I add stuff to the existing tables? Like How would I have it so an admin can type in a new login and a new password, and have it so the form stores it in one of my tables in the database?
View 11 Replies
Feb 1, 2012
I can't get anything to display on the list box that I created named "depreciationListBox" I have been working on this project for a while and I am quite stumped.
Private Sub displayButton_Click(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles displayButton.Click
Dim cost As Double
Dim life As Double = CDbl(lifeListBox.SelectedItem)
Dim period As Double
[Code] .....
[URL]
View 2 Replies
May 8, 2011
Dim ThisModule As IntPtr
Dim Proc As Process() = Process.GetProcessesByName("Sol")
For i = 0 To Proc(0).Modules.Count - 1
[code]....
I have made this code, and works perfectly, but now... i want to make it in Delphi, the problem is... i have not the enough knowledge for make it, and... in google, i haven't found the information i need.
View 2 Replies
Jun 30, 2010
Adding it there but if i load i it loads it all
View 8 Replies
Apr 13, 2010
I am trying to polish up a program a program that I have converted from a Windows Form in to an ASP.NET Web Application. I have several questions:
1.) I have a drop down box where users can select their variables, but users can also enter their variables manually into various text fields. What I want is for the drop down box to show a string like "Choose Variables" when ever the user enters their variables manually. I want this to happen without having to reload the page.
2.) In the Windows Form version of this application I had a RichTextBox that populated with data (line by line) after a calculation was made. I used "AppendText" in my Windows Form, but that is not available in ASP.NET, and neither is the RichTextBox. I tried to use just a text box but that isn't working right.
[Code]...
View 3 Replies
Nov 6, 2010
I am almost done cleaning the code. It is a huge project and I only have 35 errors left. I have opened a new thread as this is no longer only about IsNumeric. All errors relate to the following Microsoft.VisualBasic keywords:
InStrRev
InStr
Mid
DateDiff <=== solved date.Subtract(otherDate)
[code]....
View 7 Replies
Feb 11, 2009
I saw this thread and think that this is something I could use [URL]. I'd like to be able to pass stuff to and from a PHP file.
View 1 Replies
Nov 29, 2007
I'm currently programming a music software which plays notes which are listed. as timer ticks, the notes change and so it plays a different *.wav file. The problem now is that the previous sounds stops when a new sound starts. i want them to overlap each other until each one has finished. Code: my.computer.audio.play("file.wav")
View 30 Replies
Feb 6, 2012
I've been trying to create a timer that waits for another timer to finish with its coding and, when it's finished, executes a series of code before stopping itself.
This isn't the code for the actual program I wanted to implement this self-stopping timer in, but it's simple and has the exact same problem:
Public Class Form1
Private Synchro As New Timer()
Private Sub MeLoad() Handles Me.Load
[Code].....
The idea here is that it's suppose to (using a timer) show the messagebox ONCE and ONLY once per button click. However, what seems to happen (despite the fact that I have 4 ways of trying to tell it to stop) is that the program creates multiple messageboxes until there are a total of about 49 messageboxes on the screen at the same time. I don't know if I'm using the wrong event (unlikely as Tick seems to be the only timer event) or there's a way of stopping the timer that I don't know.
View 7 Replies
Aug 25, 2010
I created a service in VB.NET and it runs fine on Vista, I can log off and switch users and the service auto starts and continues to run every time without fail.If I install and run the service on Windows 7, it will not start after a logg off/on or after I switch users.
View 3 Replies
Oct 8, 2009
I have a WCF service, which I can open and close by doing:[code]The problem with this is I have "downtime" of the service in between myService. Close() and newService.Open(). if anyone tries to connect while this is happening it fails. how can I make the "downtime" as small as possibel?
View 12 Replies
Oct 14, 2010
I'm trying to figure out the code for the timer that would allow me to stop the timer after X number of runs through the code. Here's what I have so far:
im tmr_cnt As Integer
tmr_cnt = tmr_cnt + 1
If CInt(boxAns.Text) = CInt(lblnum1.Text) / CInt(lblnum2.Text) Then
[Code].....
View 3 Replies
Mar 4, 2011
I'm developing an interface for users that will allow them to enter data into a database without having to know SQL. Problem is, some one out there probably does.
How can I stop them from deleting/screwing with my data when they're typing entries within my text boxes?
For example, I don't want anyone to be able to type in DELETE * or any other kind of SQL statements in a text box to ruin the DBA's day.-Nothing to see. Move along.
View 3 Replies
May 18, 2010
I have a vb.net application which does some processing. This processing can take a while. The application doesn't respond until the processing has ended and then it handle all events (such as click on buttons) that the user has done during the processing. I'd like to add a "Stop" button so that the user can stop the processing at some point. How can I do that? Could threading the processing (which is done in a function of the application) be a possible solution?
I tried to add a button which change a boolean value and putting the code of the processing function inside a while statement based on that boolean value. However it doesn't work because the click event on the button is processed only after the end of the processing.
View 2 Replies
Aug 5, 2009
Ok, so the PDF problem was traced back to when I would close the test build. When I would close my app via Me.Close the Adobe.exe was still an active process.
I have several forms that include multiple PDFs. I need to ensure that the Adobe.exe process is terminated during the exiting of my applications.
How is this accomplished or is there another way?
View 2 Replies
Jun 23, 2009
I have this code within a button: If TextBox1.TextLength = 3 Then MsgBox("Please enter 3 numbers followed by a letter. For Example 001A")TextBox1.Text = "" Me.Refresh() End If Although if the user enters 3 numbers only, I want the rest of the code in the button to be ignored so that it doesn't proceed.
[Code]...
View 3 Replies