Make My Program "repeat" A Line Of Code?

Feb 1, 2012

This is the code i have thus far, using Visual Basic 2010 Express[code]...

View 12 Replies


ADVERTISEMENT

Make An Easy Program Which Repeat Some Things And Paste Into The Form?

Aug 23, 2009

I want to make a pretty easy program which repeat some easy things for me

STEP 1: on the first picture I want it will wrote a URL in the form + example [url].....

STEP2: thenI want then the program press on the link Get video

STEP3: and after that will the program "Right click here to download the video"and copy link location

STEP4: finally I want the program will paste paste URL into a new form? is this hard to made?

STEP5: if its possible I want also have a button example name "generate" which add a number of the URL from [url]...10000 to [url]....10001 and the repeat the things and paste into the form>is this hard to wrote a program which made this steps?

View 2 Replies

Command Line Strings - Make The Program Close If The -1 String Is Sent With The Program

Feb 25, 2010

If e.CommandLine.Count > 0 Then

Dim IncomingCommand As String = e.CommandLine.Item(0).ToString

If IncomingCommand.Substring(0, 2) = "-1" Then

form1.close()

End If

End If

I am trying to make the program close if the -1 string is sent with the program. See my installer allows for me to run certain programs before it actually installs, but it doesn't shut down copies of the program itself. So I have a next startup instance set to shut the program down if the -1 is received. But if the program is not running it starts up instead. This is not desired. form1.close doesn't work. e.cancel = true doesn't work, etc etc. What can I do to make the program not start during this instance.

View 1 Replies

Basic Mastermind Game - Don't Want Any Colors To Repeat - Values Still Repeat Sometimes

Feb 17, 2011

I'm trying to make a mastermind game program with visual basic. I started of creating the combination maker for the start of the game. Hoever, in my version i don't want any colors to repeat. I used the random function independently to get numbers from 1 to 6. Each number has a corresponding color. The problem, the values still repeat sometimes.

Here's my code for that part:

Randomize
a = Fix(Rnd * 6) + 1
txtA = a

If a = 1 Then

[CODE]...

View 2 Replies

Repeat A Block Of Code?

Feb 25, 2011

now if i've written a code, and then wrote that if a certain condition presents then repeat that code again including that if condition, so what is the code for this?

View 3 Replies

Timer To Repeat Code

Jun 5, 2012

I some code that looks to see if a certain program is running when the form is open. If the program is open it puts Running in a label, if it isn't running it says not running.What I want to do is repeat this process every 5 or 10 seconds. I have never used a Timer before so not sure where to start.

View 1 Replies

Make The Sound Repeat Itself After It Is Done Playing?

May 10, 2011

Here is the code that I have that plays a certain sound

Dim Alarm As System.Media.SoundPlayer = New System.Media.SoundPlayer(Steven_Anderson_HW5.My.Resources.Alarm)
Alarm.Play()

Well, is there a way to make the sound repeat itself after it is done playing?

View 2 Replies

Encrypt A Line Of Code In The Program

Apr 4, 2011

I'm trying to make a updater for my program at first i tried putting a password on the files folder then users can download the new zip file when its updated but when they first time install it wont have the password on it so i then decided not to use a password and am wondering how would i encrypt a line of code in the program? its the line that contains the database info so obviously i don't want my users to see that.

View 9 Replies

Resizing A GroupBox / How To Make That Line Of Code Work

Jul 1, 2012

i need to make a code that ,if a radio button is check,the size of a groupbox will change to 200,58 i have this for now: GroupBox1.Size =i only need to know how to make that line of code work

View 2 Replies

Make A Command Line Program

Sep 24, 2010

I want to make a command line program BUT I really want to have a call function. I have tried this:

[Code]....

View 2 Replies

Make A Line Chart For Program?

Jan 14, 2011

I want to make a line chart for my program.I will be sending values through serial COM and i would like to present these values to a line chart. So the chart is going to be 'live' and refreshing every few seconds.Could you provide any tutorial cause i dont know where to begin.

View 11 Replies

VS 2008 Make Sure Random Numbers Do Not Repeat?

Oct 14, 2009

I 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].....

View 4 Replies

VS 2010 Repeat Loop/Code Check For Text,URL Etc?

Feb 22, 2012

I am waiting for a confirmation email to arrive within the web browser I am using I do not need to click any buttons to open this mail I just need some help figuring out how I can check whether it has arrived or not I already have the code to find the link and navigate to it (I had to navigate rather then invoke due to it trying to open in a new window outside of web browser and out of my control)

How can I keep checking for my specified element and when found carry out the rest of my code or is there another way I should be doing this the code I am using to find the verification link and navigate to it is as follows

[Code]...

I really am desperate for help on this one I have been reading about loops but cannot seem to find any example which I can use and change to my needs I have done so well in learning up until now and I have really hit a brick wall for something which seems so simple

View 2 Replies

.net - Make Mouse Tilt Horizontal Scrolling Always Repeat?

Jun 12, 2012

I'm designing a form with a horizontal scroll bar docked at the bottom. I wanted to add support for side-scrolling using mouse tilt buttons and found this solution which, after a bit of tinkering, seemed to do the trick - that is, while the form only had GDI graphics drawn on its surface.

However, since then I've added some controls to the form and found that when the mouse is over any of them the tilt operation only fires once-at-a-time instead of repeatedly as it does when the mouse is over any other part of the form.To see what I mean (if you have a mouse with tilt buttons) dock a horizontal scrollbar onto the bottom of a form, add a few other controls and paste in this code:

Public Class Form1
Const WM_MOUSEHWHEEL As Integer = &H20E
Protected Overrides Sub WndProc(ByRef m As Message)

[code]....

You'll see that side-scrolling repeats when the mouse is over a blank part of the form, but only "one-shots" when it's over a control.I'm guessing the solution lies somewhere in the message's .Result value, but I'm at a loss as to what that should be. In fact I'm not even sure I'm returning a correct value anyway because the code in the original solution threw an exception to the DirectCast function so I swapped that for CType, which seemed to work okay. I've tried working it out using Spy++ but I can't see anything obvious.

UPDATE:I've noticed when I include 'Child' windows in Spy++ there are two (0x020E) messages and two return values, 1 then 0. I presume the message is being passed onto the control by the form. So I guess the question now is: can the message be prevented from being passed to the control? Or can the control's return value be intercepted and converted to 1?

View 1 Replies

Make Report Heading Repeat On Overflow Pages

Jun 1, 2011

I am using report.rdlc components in my application. I have one report where I have a tablix table embedded in a tablix list. The top of the list above the table contains all the group variables, eg customer name, customer address; the table contains the details, eg order details. I need to display the customer information again when there are too many order details to display on one page and I also need to display the order detail column headings again on the new page. So far I have played around with the Tablix properties and the Static row properties but no matter what I have tried I cannot get the headings to repeat.

View 1 Replies

.net - Key Repeat Delay And Key Repeat Rate?

Jan 5, 2010

How do I (programmatically) find out the key repeat delay and key repeat rate for a system?

A solution that works on any/all .Net capable platforms would be ideal, but the key target OSes would be XP, Vista, and 7.

View 1 Replies

Remove Lines That Repeat In A Text File For Program?

Jun 30, 2009

How would you program it in VB 08:

What i have here in my text file is[code]...

View 13 Replies

Checking The Code Line By Line And Found That The Code Does Not Enter The IF Block?

Jan 15, 2012

I am using the given code to copy my database files...it works like a charm in debug mode but as soon as I create a setup, it stops working. The error is

"Database Detach Failed"

I tried checking the code line by line and found that the code does not enter the IF block.I have no idea why.

Public Sub bk()
Try
Dim strDatabasePath As String = My.Computer.FileSystem.CombinePath(My.Application.Info.DirectoryPath, "LIC.mdf")[code].....

View 2 Replies

Make A Serial Code For My Program?

Jul 24, 2010

I am having my app available for 30days free trial, but after that you have to purchase a serial, how can i make my app only recognize a specific type e.g NumberLetterLetterNumberLetterLetterNumberNumber-NumberLetter-Letter:NumberNumberNumberNumber?

OR what would be the easiest way to have serials recognised?

View 8 Replies

Make A Code To Shut Down Computer In Program?

Mar 22, 2010

I need to give input to the VB code by outlook express ie the command to shut down the computer will be imported from OUTLOOK EXPRESS

View 2 Replies

Make A Program Update It's Own Source Code?

Mar 27, 2012

I was wondering if it was possible to make a program edit itself and save kind of like memory however unlike memory it can add content as well as save it.

I know it seems crazy but, i was wondering

View 2 Replies

Make A Coin Toss Program Where One Toss A Coin A Certain Number Of Times Then Repeat It A Certain Number Of Times?

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

Code To Make Windows Open A Program At The Startup?

Aug 21, 2009

what is the code to make windows open a program at the startup?

View 4 Replies

VS 2008 - Code To Make My Program To Startup With Windows

Feb 15, 2010

I used this code to make my program to startup with windows it should add a registry entry:

Dim key As Microsoft.Win32.RegistryKey
key = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("SOFTWAREMicrosoftWindowsCurrentVersionRun", True)
key.SetValue("MyApp", Application.ExecutablePath)

The problem is that it underline KEY and say declaration expected but shouldn't dim do the job for the declaration.

View 4 Replies

Repeat Cards Showing Up In Game And Win Evaluating Code For Poker Game?

Jul 2, 2009

I am working on a poker game and I have the game setup the way I want it in terms of graphics and I have the code programed to deal the cards out exactly how I want them. Granted, the code is very simplistic, but functional for a new programmer like myself. I'm sure there are other more efficient ways to code my game, but I like mine so far because I can at least understand the majority of it. With that being said, here are a few problems and questions that I have.

1. How come when all 12 cards are dealt out I have some cards repeating in the game? For example, I get queen of diamonds in more than one picture box when I only want the card to be dealt once and then removed until the next game.

2. I was hoping to have a button 3 to clear all the boxes, basically resetting the game to the next game. When I hit button 3 it only clears the contents of picturebox 10 and 12.Other notes: I have the deal down the way I want it. It deals the first 10 picture boxes and a second button deals the 11 and 12 picture boxes.

3. I know this is my next step so I want to post it with the code I currently have. I want to start taking my project one step further by evalutating each of the three rows of cards (3 rows of 3 cards each - I'm not worried about the dealers hand (picture box 10, 11, 12 yet). So I want to evaluate a row of pictureboxes against a "pay scale" and display the win in a text box or label next to the 3 card hand. For example, Q of diamonds, Q of Clubs, Q of spades would win 15, etc. ( have a weird feeling I may have to change the names of the cards (I have them named card1, card2, etc. right now) to something that identifies them in order to evaluate the hands.

Here is the code that I currently have. I'm using visual basic.

Public Class Form1
Dim Rndm As New Random
Dim myPB(11) As PictureBox
Dim HiddenCards As New List(Of String)

[code]....

View 1 Replies

Make A Program That Translates Binary Code Into Numbers/letters?

Nov 11, 2009

I'm wanting to make a program that translates binary code into numbers/letters and numbers/letters into binary code. I know the general system of binary code, but I dont know how to translate anything with VB.net. Is there a general command I need to use or can someone link me to a good tutorial about translating?

View 2 Replies

Make A Simple Program To Convert Ascii In Its Code Format?

Jan 11, 2010

I am trying to make a simple program to convert ascii in its code format

Example: Chr(53) & Chr(53) & Chr(54) & Chr(100) & Chr(52)

to a readable format. I understand that this can be easily accomplished by writing in the ascii code into the code will do it but I am trying to create a more interactive method of doing it so I can copy and paste a long length of code into a textbox and have it update a label with the conversion.

View 6 Replies

Make A Program To Display A Shipping Charge Based Upon A Selected Zip Code?

Nov 15, 2011

I am trying to make a simple program to display a shipping charge based upon a selected zip code. Where can I find sample code that I can use as a guide? I can create the GUI but can't figure our the code.

View 2 Replies

Make A REAL Key Generator - Program Code To Building A Working Keygen ?

Jun 24, 2009

I've been trying to create a working keygen for three months and I havn't figured it out. I first inserted two buttons and named one "Generate" and the other "Exit" and then I put in a textbox. After that I put in the code and debugged it every time I pressed the Generate button a 0 just popped up in the textbox. my code is below.

Public Class Form1

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

[CODE].....................

View 1 Replies

Show The Line Number Of The Line Of Code That Caused An Exception Within A Try...Catch Block?

Jan 29, 2009

Is there a way to show the line number of the line of code that caused an exception within a Try...Catch block?

View 5 Replies







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