How To Make Nest Loop

Mar 11, 2011

I got my code and the number are finally right the only thing is i can not get it to loop right. It should ask the user if they would like to buy more bars and if they say yes it should continue if it says no then it should exit but everything i am trying is not working.[code]

View 3 Replies


ADVERTISEMENT

Make Loop In Program And Calculate Time Taken To Complete Loop?

Nov 23, 2011

I am constructing a program, i am new to Visual Basic, but i have past programming experience. I was wondering if anyone knew how to form a loop that could...lets say calculate the answer when two numbers are added together,and it would repeat this thousands of times, etc. And if there is a way, would it be possible to calculate the time taken to complete this loop.

View 5 Replies

Nest Forms On VB?

Jun 9, 2011

How to nest forms on visual basic?

View 3 Replies

C# - Nest Databound DataGridViews In .NET?

Mar 21, 2011

I think I already know the answer to this, but I figured it would not hurt to ask.

Is there any possible way to nest Databound DataGridViews in .NET? What I would like to have happen is for each row in the DataGridView to have a button to expand, which would then give me a DataGridView underneath that. I would like this nested DataGridView to also be able to do this, so I could go n levels deep with them.

Is this possible with the .NET Winforms standard DataGridView? (Or another standard .NET control?) I have seen people reference some third party controls, however they are really expensive, and I don't really want to go that route.

View 2 Replies

Nest Groups Within A Listview ?

Aug 7, 2009

I want to know if it is possible to nest groups within a listview. I started with a listview in my application that contains list types and this worked fine. I have now been asked to group by Product, then Week Commencing and finally by List Type; This would envolve a 3 group nest and i just cant figure out how to do it (if at all possible).

like so...

Rods
1st Jan 2009
Shakespeare
listview items 1

[CODE]...

If what I am trying to accomplish is beyond the listview control, can anyone suggest a possible avenue to explore?

View 4 Replies

Comparing Two Images / Detect Egg In A Nest

Dec 10, 2011

I have a webcam directly over a chicken nest. This camera takes images and uploads them to a folder on a server. I'd like to detect if an egg has been laid from this image.I'm thinking the best method would be to compare the contrast as the egg will be much more reflective than the straw nest. (The camera has Infrared so the image is partly grey scale)

View 1 Replies

Nest An ASP.Net User Control Inside Of Itself?

Jun 13, 2012

I think the short answer is you can't, but there has to be someway to make it happen. I want to make a list of items, that then have a list of items within them, nesting only one level.[code]...

View 2 Replies

Visual Studio :: How Does The .net Framework Nest Forms In Classes

Sep 11, 2009

If I look at some classes in the framework, using reflector, I can see that forms and user controls are made private and nested into a parent class.For instance, I have a control which makes use of pop-up form that is specific to that control.At the moment, I make the pop-up form friend accessible.If I wanted to do it the framework way, I'd make it private and nest it into the control class.If I do this, however, I can no longer use the ide to design the form and I get errors when I try to compile.

View 1 Replies

Make Loop To Make Certain Thing Happen About 10-30 Times Without Taking In Too Much Memory / CPU?

Oct 16, 2011

A few years ago I have been busy creating this application but it didn't succeed, now Im coming back to it and similar problems occur. Basically I use SetPixel on a given window to draw a line, work fine, but the line goes away as the window redraws itself.The problem: I have been putting timers and threads on it to make sure the line is being drawn. Is there any way to make a loop to make a certain thing happen about 10-30 times without taking in too much memory/CPU?

View 7 Replies

VS 2008 Make Some Kind Of Loop Inside A Timer To Make Them Change?

Dec 14, 2010

Basically I have 10 .png images.They contain a walk cycle I need to make some kind of loop inside a timer to make them change.

View 2 Replies

VS 2008 - Make A Loop From 1 To 100 And Make It Everytime It Loops Display Incrementing Numbers To The Screen?

Aug 23, 2009

How do I make a loop from 1 to 100 and make it everytime it loops display incrementing numbers to the screen?

View 1 Replies

Nest Classes But Properties "inaccessible Due To Protection Level"

Oct 7, 2011

I am trying to implement a sub-class as a property of another class. Eg:

[Code]...

View 9 Replies

How To Make A Loop

Mar 19, 2010

Heres my code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

[code].....

View 11 Replies

How To Make Loop

May 18, 2011

I managed to sort that problem out all by myself! I'm getting good at this. I just wonder if one of you could possibly tell me how to loop? I need to create a loop that counts up the a balance in a database then adds it together?

View 3 Replies

Evaluates Loop Condition In Do...Loop Statment To Determine Whether Loop Instructions Should Be Processed

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

How To Make Infinite Loop

Jul 12, 2009

1) Diff b/w nothing & string in terms of variable declaration.

2)Erase keyword.I have never heard of such keyword in mine whole 1 + yrs of exp.

3) Diff b/w functions & properties? I say,Functions return a value,But propertiesare used to set or get the values. He say properties also return a value.

4)How can we use a class as a datasource?

5)Partial Class? hey frnds above question is for C++ na.Or there is also such class in VB.Net.

6)When the error stack overflow comes?

7) How we can we make indefinite loop , without uusing any variable declaration.

View 4 Replies

How To Make It Work Without The While Loop

Jan 1, 2011

VB.NET While 1 = 1
Dim localRecv As New StreamReader(localClient.GetStream)
Dim aString As String = localRecv.ReadLine
localRecv.Peek()
MsgBox(aString)
End While

Basically "aString" will keep updating if new data arrives to the server. This way does work, and keeps MsgBoxing every time I get new data, but I don't wanna use While, I need something else, because It won't run any other code, just keeps looping that. :/

View 9 Replies

How To Make Loop And Count

Dec 22, 2010

I have this code.I need to loop through it, until button 2 is pressed.I also want to count how many times its looped and show how many times in a label.

Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

[code].....

View 3 Replies

How To Make Use Of Two Loop Statements For One Do

Jan 5, 2010

I need an additional loop argument within an If statement that resides in a very large do...loop block. It will speed the application considerably if I can have the do...loop block loop prematurely. I already have the remaining code after the additional loop argument in a large if...elseif block to achieve the result, but making it simply loop instead of going through this would speed the application.

View 8 Replies

Make A Loop That Is Going Through Listviewbox?

Jun 25, 2011

I am trying to make a loop that is going through my listviewbox.

Dim InterestPaid As Double
Dim month As Integer
Dim Principal As Double
Dim Balance As Double

[code]...

View 7 Replies

Make An Average For A Loop

May 7, 2010

I am fairly new to VB (or any programming, for that matter) and assignment for my class. I am supposed to write an application that asks the user to enter test scores, and when they are done inputting test scores it displays the average. here is what i have so far...

[Code]...

View 5 Replies

Loop Through Textbox And Make Insert

May 29, 2011

I need to loop through textbox1 and every four "." make a insert "<br>" how would I go about doing this?

View 4 Replies

Make A Loop In A Table Using Dates?

Mar 14, 2010

I try to make a loop in a table using dates i have this in a asp kode but can't make it work in vb

For i = CDate(strfradato) To CDate(str2tildato)Error1'For' loop control variable cannot be of type 'Date' because the type does not support the required operators.

View 6 Replies

Make A Loop Of Generating Codes?

Mar 18, 2010

I wanted to know how to make a loop of generating codes, that I create (from the push of button1) Like this:

Dim MsgBox As String
MsgBox = ("My code here, not a random one")
TextBox1.Text = MsgBox

[code].....

View 3 Replies

Make Compound Interest Loop?

Dec 5, 2011

I have to create a Compound Interest Loop where I input a Mortgage amount and Mortgage Term (ie how many years the mortgage will span into another.) into two textboxes.

View 14 Replies

Kind Of Make This Loop Work Faster?

Dec 10, 2009

Basically what i need is for something to look at the items in a list box then compare it to the contents that is in the database. The issue is that the listbox can have more than one of the same item. For instance, LstBox_Order.items(0) could be the same at any position in the listbox. This code works, but it is slow if there is like 10 or more items added.

[Code]...

View 7 Replies

Loop To Make Default Name For File Before Saving?

Nov 29, 2011

I am creating a button to save text files (Visual Basic 2005 and Windows XP). I made the following loop to give a default name for the file before saving:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

'This loop is supposed to name the file "file10.txt", and if such a file exists it is
supposed to name it "file20.txt" then "file30.txt" etc.

Dim myFileName As String
Dim i As Integer = 10
myFileName = "D:filesfile" & i & ".txt"[code].....

However, the app gets unresponsive only after one round in the loop (when the file name is "file20"). The loop gets stuck at the following line:

If IO.File.Exists(myFileName) = True Then

This line works only once and after that it becomes unresponsive.

View 2 Replies

Make A Loop Wait Until A Button Is Click?

Mar 15, 2012

How to make a loop wait until a button is click?

View 19 Replies

Make Blinking Shape In Different Colors Using For Loop?

Jul 22, 2011

make blinking shape in different colors using for loop?

View 2 Replies

Make Loop Stop If Button3 Is Pressed?

Jun 18, 2009

I want to make a loop that only loops if the serial link is open and Button3 (which writes a stop signal to the program) is not pressed. I've gotten as far as this: Do While Serial.IsOpen = True & Button3. but do not know how to tell the while loop to stop when Button3 is pressed.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved