VS 2008 - Make A Loop From 1 To 100 And Make It Everytime It Loops Display Incrementing Numbers To The Screen?
Aug 23, 2009How do I make a loop from 1 to 100 and make it everytime it loops display incrementing numbers to the screen?
View 1 RepliesHow do I make a loop from 1 to 100 and make it everytime it loops display incrementing numbers to the screen?
View 1 RepliesI am making the tough transition from VBA to VB and would be pleased to hear from a VB expert. I am trying to make a program to grab numbers from the screen so that I can log them to a text file. The numbers are part of a flash animation which is regularly updating the number I want to capture and as there is no API i am grabbing the region where the number is displayed into a bitmap and then want to recognise the number with OCR. The code below grabs the screen region ok.
[Code]...
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 RepliesCan i make from this image to make it Loading Screen I mean i put this in Form1 [URL] And i want when the program start the progressbar (the white line to load)
View 1 Replieshow to I use loops to display this?
[Code]...
i have a array set up, and i need the array to be global, but i can only get vb to accept it in a button, in addition, after the loop is completed, i am trying to pull a value from the array and display it but am getting an error.the code is as follows:
Public Class Form1
Friend staten As String
Friend statea As String[code].....
Im trying to make a form popup on the bottom right hand corner of my screen to display a message when the application opens.I know i can set the location in the properties but that may vary depending on the monitor the application is displayed on, how can i code it so that it can detect were the bottom right hand corner of any screen is ?
View 3 RepliesHow can I make a form with a new webbrowser control on it everytime?
View 2 RepliesI made a program that makes backups of a database when the user runs the application, etc. I never created something like this. I got all the code to make the backup, now the problem is to create it as a service.This is my form to the person choose the days and the hour to the process runs and install it as a service, and when it runs to be minimizated on the windows icons near clock and date and another option.
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
AddToStartup()
End Sub
Public Sub AddToStartup()
Dim Reg As Object
[code]....
I got this code to creates a short cut on the startup path to my project run Every time windows start's and do his job and close, but now I got a problem, how It should be to VB2010 ? And how it would make a run on the specific days / hour that persons choose ?
Can I make a certian function that will fade out [make a black screen that fades out for 2 seconds], then come back? Is that possible? ON A FORM.
View 3 RepliesA 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 Repliesmake the screen fade.By fade i mean you know when you goto Start>Turn Of My Computer in Xp and the screen turns black and white.
View 7 RepliesI have done this code but what is a smart way to get rid of repeats?
card1 = random.Next(0, 52)
card2 = random.Next(0, 52)
card3 = random.Next(0, 52)
[Code].....
I'm trying to make a screen recorder using Visual Basic 2008 Express, and everything seems to be smoothlike... until I actually try to record with it. The actual error I am receiving is as follows.A first chance exception of type 'System.Runtime.InteropServices.ExternalException' occurred in System.Drawing.dll The particular line of code that it seems to be having problems with is the following.
BMP.Save(FileDIR0 + Frame + IMG)And now I will post the rest of the code in case it helps.
Public Class Form1 Private Sub RECScreen_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RECScreen.Tick
[Code]...
i request assistance for my web browser. I did everything how i normally do it, but i would like to know how to make it autofit to the screen. Like i maximize it on my screen, but the browser part is still small like the regular size. Is there any way to make it maximize with Form1?
View 1 RepliesI am trying to make a VB project for use on a touch screen so I require buttons that when pressed load a different image (the selected version of the image) ie. I know how to do this in HTML and CSS for use in web pages but am struggling to find out how to do it in VB.I have an image (looks like a button) that I want displayed in my form window and then when the image is clicked I want the image to swap for another image so to the user it looks like they are pressing a button.Now the standard windows button in VB (ie when you drag a "button" from the tool box) does this but I can not replicate this using my own images.
View 7 RepliesHow do you find out what the screen resolution is and then make a comparison. ie if the resolution is 1024 x 768 do one thing else do another.
View 2 RepliesVS 2008 make text apper on the screen When the progress bar is full?
View 3 RepliesI 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
I want the textbox's code to change into another code, that i want, from the push of button1?
I have this text in textbox
1. Kerumia - Prelila su se sum
8. Kadir Nukic - Gdje je moja srodna dusa
90. Crvena Jabuka - Jazz.ba
100. Man - Who leave
I want to
Kerumia - Prelila su se sum
Kadir Nukic - Gdje je moja srodna dusa
Crvena Jabuka - Jazz.ba
Man - Who leave
I have a program that Outputs a measurement after in putting an angle and a width... solves the triangle.
[code]...
Make question is if there is any way to make the program print to the screen a picture of the triangle with the correct angles and measurements?
I am trying to stop the following piece of code from taking up too much processing power of the PC by using threads. But I keep getting errors when I use threads:
[Code]...
I'm redoing a program I made up a while back and need some help changing a loop. The original program had all the text boxes on same form, the redesigned program still has them all on the same form but I have them spread across multiple tabs and the background of the form.
The code below loops through each possible text box and if it exists sets the value in an array. This only works for text boxes not on tabs. I found I could change the Me.Controls to TabPage1.Controls and that would get the text boxes on tabpage1. I would like to have a single loop that can find them on any tab and off the tabs, so I don't need three separate loops.
For num = 1 To 61
For Each controlctl In Me.Controls
If controlctl.Name = "TextBox" & CStr(num) Then
[Code].....
I added the WMP control to my project, but I can't figure out how to make the music I play through it loop!
View 1 RepliesWhat is the += used in this code doing? Is that incrementing the loop?
Public Class Form1
02
Public Structure Family
[CODE]..........................
i don't if i can make an output that is too long for the MessageBox to [roll] across the screen rather than have [newline] in vb.net
View 8 RepliesI have code that increments an array of numbers. However, due to performance issues, I need to optimize it.
Here is the code:
Public Sub increment(ByRef Index() As UInt16)
Dim N As Integer = Index.Length - 1
If (Index(0) = 65535) Then
Index(0) = 0
[Code] .....
I'm trying to make a program that will calculate the sum of consecutive numbers between two given numbers. [code]
View 13 RepliesI wanted to make a screen recorder (not screen capture) program, but I am not entirely sure how to get it started. I have seen many videos and things on how to make one, but all of these just take multiple pictures and then don't compile them into a movie file, and I don't want to take many pictures (unless that is the only way possible.) I am using Visual Basic 2010 Express and I have looked at the Windows Media Encoder, but I can't seem to figure out how to use/implement it (yes, I have downloaded and installed it.) Maybe I can use some kind of ActiveX control?
View 3 RepliesI 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