Making A Console App That Displays Places For Multiple Times?

Apr 21, 2009

I am in a programming class, and am one of the best students in it, I even went to a state programming contest. One of the problems was to enter 6 race times and have it display the times back in order of which were fastest and their place such as

imput
11
15
12

[Code].....

View 3 Replies


ADVERTISEMENT

Having A Selection Of Code Once To Use Multiple Times In Differnet Places

Jun 8, 2011

I know that title is kinda miss leading, but i couldnt figure out another way to explain it. I know theres a way, but I dont know how to do it.Ive got a Save code that I have about 5 differnet times in my application. How do I make it so that I can just type in something like Do Save, and it locates the save code and follows it through, then returns to where it was.

View 3 Replies

Sorting Places With Times For A Sport Calculator?

May 14, 2011

I am currently making a little program for a school carnival.It contains a timer linked up with a USB controller with eight buttons (physical) attached to it. I now want to be able to take the times it produces, sort them and add the place of that runner.

[Code]...

View 4 Replies

When Adding A Value To Another Value The Results Eventually Change From 2-decimal Places To Multiple Decimal Places?

Mar 13, 2009

Problem: Using the sub routing below, when adding a value to another value the results eventually change from 2-decimal places to multiple decimal places.Basically, the amount stored should always only be 2 decimal places, because the values passed in are always 2 decimal places. Output from calling the sub routine multiple times.

Running total = 329430.75
New Withheld Amount = 710.79
Running total = 330141.54

[code]....

As a workaround, I have a new routine that uses a custom round function to properly store only 2 decimal places - as the VB round function does not perform the type of rounding desired.I understand that we are removing the value from the dictionary and adding it back..

View 2 Replies

Making A Program That Displays The Balance?

Dec 29, 2009

I'm making a program that displays the balance of the three items with the input of the user input quantity.

one it cost 1.75
second cost 2.00
and 3rd cost 1.25

I need to use a sub, a function and another sub , i've tried to make a program on my own but i'm quite stuck..

[Code]...

View 12 Replies

Good Places To Look For Web Services To Incorporate Into A Program / Making A Web Service

Nov 30, 2011

I was wondering for good top 5 websites to look for web services that you guys use. Also, anyone know a goood article on creating your own SOAP service and maybe REST service if you provide a good article on it.Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. "Sherlock holmes" "speak softly and carry a big stick"

View 3 Replies

VS 2008 Prevent My Console Application Get Executed 2 Times At The Same Time?

Dec 29, 2009

I know something like this exists, I juts don't know the right word to search about it, so basically I have a cosole application and if it runs twice it crashes. I wanna dispay a message: Sorry app alerady running.I can look at processes and see if my exe is there already running but that's much harder.

View 2 Replies

Start App From Multiple Places Within The Program?

May 11, 2010

I have written a program for cleaning my pc. I want to be able to start the Form1 (which opens the entire program) from the start menu. And I would like to run Form2 (which runs just the scan) from the context menu of the recycle bin. How can I open Form1 from one shortcut and Form2 from another?

View 1 Replies

VS 2008 Making Several Digital Times In To Integers And Playing Around?

Nov 12, 2009

Ok lemme tell ya this is one toughie to explain. Basicly, I have a textbox with digital times on different lines, i.e

22:25
23:56
21:33

[code].....

View 5 Replies

Get A List (or More Generically, Just An Object) Available Multiple Places?

Aug 23, 2011

In a program that I'm responsible for, we want to start keeping track of milestones. These milestones are quite simple and consist of a unique identifier, the project they're assigned to, a description, and a date that they should be accomplished by (or not, if there's no concrete due date).We use a slightly modified Model-View-Presenter architecture, and currently I'm passing this list around through the presenters, but it seems fairly clunky, so I was wondering:What's the best way to make this list available to all the presenters/views that need it?We're using VB.NET 3.5, and I was toying with the idea of making this a shared property of the main presenter, but it does seem like that adds some unnecessary coupling.

View 1 Replies

Structure Values Change In Multiple Places?

Mar 21, 2009

I have created two structures, one named "Product" and the other named "Item". These structures are quite similar but are at the same time quite different from each other. The structure definitions are as follows. Ultimately, I declare arrays in my containing class which access these structures as a type. Their declaration: "Products() as Product" and "Items() as Item". All has been fine and dandy until one day, I go to change the items Enabled() values, and something happens. Not only does it change the Items(index).Enabled(index) value, it does it on the corresponding Products(index).Enabled(index) value, even though it was never specified to do so. Also, nowhere in my coding have i defined this sort of thing to occur. It is rediculous, because I watch it happen. I turn on the watch window, and debug one step at a time, and every time, I watch the Item line step, I look down at the arrays of products and items, and both values have changed. How do I get this to stop, and only change the Item.Enable value??

<Serializable()> _
Public Structure Product
Public Name As String

[code]......

View 2 Replies

Making A Console Application With A Login?

Mar 26, 2012

I'm making a console application with a login. The system I have now is extremely basic and very redundant. I would like the password to be masked as you type it in "*****" for example and If possible I would like to encrypt the password with md5. Can someone let me know how to/give me the code to do it.

This is my current login system:

Sub LogIn()
'A log in system to prevent unwanted users from acsessing the system
Console.Write("Username: ")
Dim username As String = Console.ReadLine.ToLower
If username = "sian" Then

[Code]...

View 1 Replies

C# - Command Parameter For Making Console Invisible?

Sep 1, 2010

I am firing up a cmd console from my .net app with some parameters, is there a parameter to specify that the cmd console is not visible?

-- Edit - Adding Code I know this isn't the standard way of starting a process in .Net, but it is being run from a Silverlight Client.

Dynamic cmd = AutomationFactory.CreateObject("WScript.Shell");
cmd.Run("C:WindowsSystem32cmd.exe /c *myargs*")

View 3 Replies

Making An Application That Uses Multiple WebBrowser Controls And Multiple Proxies?

Dec 17, 2009

I am making an application that uses multiple WebBrowser controls, and multiple proxies.The code for changing the proxy settings are as such:

#Region "Proxy"
Public Structure Struct_INTERNET_PROXY_INFO
Public dwAccessType As Integer
Public proxy As IntPtr

[code]....

Note: getRandomProxy gets a random proxy from a list.Problem is that whenever RefreshIESettings(getRandomProxy()) is applied, the proxy will be applied to all of the WebBrowsers, while i would need to have a unique proxy for each WebBrowser. Not having this would just error out the page in the other browsers and so on.

View 1 Replies

VS 2008 Find Places To Add And Then Drawing -1 To Right Places?

Mar 10, 2010

so i got a program that i wanna derive in. like this:you right in this x^4+x^2-4x+8 and then the program will derive it to 4x^3+2x-4..how do i do that? like this x^4+x^2-4x+8 and then doing this 4x^4-1+2x^2-1-4x-x+8-8..how do i find the places to add and then drawing -1 to the right places?

View 3 Replies

Run A Loop Multiple Times?

Sep 28, 2009

I read the lines from a textfile into a string array and then I use a foreach loop on the string array. I want to go through the same string array again after the loop reach the end of the string array

View 1 Replies

WebBrowser1_DocumentCompleted Multiple Times?

Jul 29, 2011

Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted

[Code]...

View 4 Replies

.net - Singleton Initialized Multiple Times

Jun 27, 2012

So I took this from an example. GetInstance() is called from hundred different places in my program, and when I debug, the line "Prog = New Program" keeps getting hit for each of those calls. Which I thought was exactly what should NOT happen.. Or do I have some fundamental misunderstanding?

[Code]....

It seems the "New" sub triggers a number of calls to Program.GetInstance, before the first one completes. This is due to me earlier having lots of shared public objects in this class, which are no longer shared since the class was made singleton. And these objects, when initialized, calls the Program class for reference to other of it's objects.

View 2 Replies

Add Textbox Value To Datatable Multiple Times?

Jan 23, 2011

Here is my [code]...

My textbox (txtCopies) default value is 1 so naturally, as it is coded above, the datarow is added once into the Movies Table. But what I need to know is how to code if the txtCopies field has a greater integer value.

View 6 Replies

Attribute Cannot Be Applied Multiple Times?

Mar 26, 2012

I keep on getting errors for every line in the code below that tell me that the attributes cannot be applied multiple times. What does this mean and how can I fix it without changing what the code does?

Imports System.Reflection
Imports System.Runtime.CompilerServices
<Assembly: AssemblyTitle("")>

[Code]....

View 2 Replies

Call The Second Form Multiple Times?

Feb 29, 2012

I am doing a project for my company. In that i have to enter the number of items in the first form and in the second form i am going to enter the details of each items. So i have to repeat the second form to get the details number of times depending on the value i have given for number of items in the first form.From the home page i will be entering the values for the master file. after entering the values for the master file then i have to enter the details of the individual item details in a transaction file.

View 3 Replies

How To Loop InputBox Multiple Times

Feb 24, 2012

I'm trying to loop the inputbox 5 times but I'm not sure how.
Dim payroll1 As String
payroll1 = InputBox("What is the payrolls for store1", "Inc", , , )
Lblstore1.Text = payroll1
I can get it to loop till a specific amount but not 5 times exactly.

View 9 Replies

How To Undo / Redo Multiple Times

Apr 20, 2009

i need this option for a textbox. the undo/redo in two separate buttons and it should be for multiple times not just once.[code]

View 21 Replies

Multithreading - Running One Sub Multiple Times At Once

Jul 17, 2011

I have one Private sub that runs in a loop. I want the sub to run multiple times at once. For example the program runs, you press start; you run the program again and press start, again and again... the same program doing the job at once. now i just want one program do to it alone. But i would like it to be user defined. exp. run program. type in a text box 10. press start. and it works as if 10 of them work open working on the same thing.

[Code]...

View 1 Replies

Open Program Multiple Times?

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

Reuse Code Multiple Times?

Nov 13, 2010

How can I tell something to use a code without completely adding it in that sub again? I have some code that will be used alot within my program. I could write a DLL, but I don't know how to use those!

Here is my code:

Dim str1 As String = System.IO.File.ReadAllText(Me.OpenFileDialog1.FileName)
Dim s2 As String = str1.Replace(".[1gs5]", "a")
s2 = s2.Replace(".[u775]", "b")
s2 = s2.Replace(".[fsef]", "c")

[Code]...

View 4 Replies

VS 2008 - Getting Data From DB Multiple Times

Nov 25, 2010

I have a button where I get data from a database that matches a search string I enter. Everything works fine the first time the button is clicked. However, if I click it again with a different search string, I get the same results as the original search string. I've tried to dispose, clear, and reset my dataset before I load the data each time, but it still finds the original query. This is the code I use to get and request the data:

Private Sub btnCfind_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCfind.Click
mdbFile = "TCICUST.DBF"
mdbCond = " WHERE COMPANY LIKE '" & cbCust.Text & "%' ORDER BY COMPANY "
GetDB()
[Code] .....

View 11 Replies

Display (show) The Same Form Multiple Times?

Oct 28, 2009

How can i display (show) the same form multiple times? Lets say Form2. This code only shows the form once: Form2.Show()

View 10 Replies

EditingControlShowing Events Firing Multiple Times?

Feb 24, 2009

I have a DGV in VB.Net 2008 connected to an Access DB table. The DGV is not Read Only, but is full of read-only columns except for one, which contains a combo box. The combo box allows the user to select an outcome for that particular row, and then the program copies in a pre calculated value into the "Profit" column depending upon the item selected in the combobox. Then the user hits the Save button and the DB updates (currently via SQL methods in the XSD).

Easy enough so far.

Here is the code.

Private Sub DGUserBets_EditingControlShowing(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewEditingControlShowingEventArgs) Handles DGUserBets.EditingControlShowing

[Code]....

The problem I have is that it would seem that if a user selects the desired outcome from the combobox but does NOT hit Enter, and simply mouses on to a different combobox to again select the outcome for a different row, the first eventhandler is not disconnected and thus the events fire multiple times. This then causes various default MsgBox errors and brings up problems when the user tries to commit all changes to the DB/exit program etc etc.

What do I need to do? Do I need to .EndEdit somewhere appropriate to force the row to save the changes? And where should I call this?

View 5 Replies

Events - SelectedIndexChanged Firing Multiple Times

Apr 25, 2012

I am trying to programmatically add an unspecified amount of new UserControls to a form. One will be added every time an entry is selected in a ComboBox contained within the UserControl. Problem is, the SelectedIndexChanged event fires completely erratically. Sometimes twice, sometimes 3 times, etc., but never just once. No matter how many times I set the combobox's SelectedIndex to -1, it fires at least once with a SelectedIndex of 0. Sometimes the Itemselected event fires multiple times inbetween SelectedIndexChanged events.

InvoiceEntry.vb snippet:
Public Event ItemSelected As EventHandler
Private Sub cboItem_SelectedIndexChanged(sender As System.Object, _
e As System.EventArgs) Handles cboItem.SelectedIndexChanged
RaiseEvent ItemSelected(Me, EventArgs.Empty)
End Sub
[Code] .....

View 1 Replies







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