Set Boundry Values For A Program?

Jun 20, 2011

For a program i have created it shows who the eldest is out of 2 people by them entering their name and age and then the answer is displayed.

i need to set boundry values as i cant have people writing their age is -1 or 400 or have a letter in it like 434d or have people enter numbers in for the name

how do i write code to stop users entering incorrect data into the text boxes i have provided for their details to enter as well as display a message box.

View 3 Replies


ADVERTISEMENT

Debug The Managed / Unmanaged Boundry - VS2010 On Win7 64bit?

Jan 13, 2012

debug the managed / unmanaged boundry environment: VS2010 on Win7 64bit

View 1 Replies

Winforms MDI "Desktop" Area Boundry

Mar 2, 2009

The default MDI parent control has a large "desktop" area that can display multiple child forms. Users can drag forms to the edge of this desktop area so that most of the child form is off the screen. (A scroll bar then appears in the MDI parent) I don't like this feature. Is there a way to lock down the edge of the desktop area so that the child forms remain fully visible?

View 3 Replies

Change Values In Another Program?

Feb 8, 2011

I want to be able to change values in a program that i wrote by using another written program...

like if i want to change textbox1 to readonly during runtime... Well, If it is not worth it, it is not fun - you say programmers are boring but i say they are worth it.

View 1 Replies

Get Values From A Column And Put Them In Another Part Of Program?

Nov 15, 2009

I am working on a program where the user inputs values, then the program calculates those values and outputs the sum. When the user hits the button exit then those values entered by the user are saved. When the user starts the program again, the values are still there. I wrote the code and everything works fine. I am saving those values in notepad... and the program grabs the input in notepad and outputs those values to the program. But here comes the problem:

Lets say the user wants the information in a certain column to be added to another column somewhere in the program. Is that possible ? And if it is can it be done when I am saving those values in notepad ?

View 1 Replies

How To Set Up Array Within Program To Allow 10 Values To Be Entered

Jun 16, 2010

I just need to know how to set up this array within the program to allow 10 values to be entered then later be shown into separate labels as a largest and smallest value.Create an application that lets the user enter 10 values into an array. The application should display the largest and smallest values stored in the array. Figure 8-45 shows an example of the application's form after all 10 values have been entered, with the largest and smallest values displayed.The form basically shows a large label box where your values will show up. Then two regular labels next to the boxed label that determines the largest and smallest values. There are four buttons, a clear, exit, Display Min & Max, and Input Values.I have the actual program layout already made and the initial buttons already declared, being the exit and clear buttons. I just need to know how to setup the array's for the other two buttons.

View 5 Replies

If Statements - Program Look At 2 Different Values Then Return A Value

Feb 18, 2012

What I need to do is to have my program look at 2 different values then return a value.

Here's an example:

If my tube material = SA-214 and the tube gauge = 20 then my tube wall thickness = .032. The thing is I have 5 different types of tube material and 12 different tube gauges so based on which tube material is selected and which tube gauge is selected the tube wall thickness will vary. So if I select a TM of SA214 and a TG of 14 then my tube wall will be .076.

View 3 Replies

No Values Show Up In Labels When The Program Is Ran?

Nov 17, 2009

I have designed a program that, when the "caclulate" button (btnCalc) is pressed, it asks the user for a file name, then pulls data from that file (file is a .txt of 100 decimals, one per line) and displays the Total, Average, Highest and Lowest. To do this, I have placed all the data into an array, and then used the array to get the information I need. All the code is in place, the only issue is that when the "calculate" button is pressed and the file name is entered, nothing happens.Need to figure out why the values are not displaying in my 4 labels (lblTotal, lblAverage, lblHighest, lblLowest)!!Here is the code:

Imports
System.IO
Public

[code]....

(For the record, I know I could get the data in one pass, however, being a beginner, I like seeing each value computed separately.)

View 3 Replies

Save Values Instantly In My Program?

Jun 14, 2011

I mean, I want my program to take screenshots and i want it to count the number of pictures forever. Just like any Digital Still camera you know? Even when you format it, if you've took 2000 pics, the name of the first pic you take after formatting it "DSC2001"

View 6 Replies

Set Site Values In FTPWebRequest In Program?

Sep 2, 2009

How do you set Site values in FTPWebRequest in VB.net.[code]...

View 1 Replies

Write A Program That Takes Three Values Then Uses Them At Once?

Jan 22, 2011

How would i write a program that takes three values X Y and Symbol. the program is supposed to display a rectangle which is X

View 1 Replies

Sales Commission Program - Output Values?

Oct 21, 2009

I wrote this code and everything works as planned:
Module SalesCommissionProgram
Sub Main()
Dim name As String = 0
Dim code As String = 0
Dim monthlySales, commissionDollars As Double
' Prompt user to input value for name
[Code] .....

For the finished project I am supposed to have it output the total sales and commissions for that were calculated before the sentinel value (Eugene) was entered. Here is what I tried and here is where I am lost.
Module SalesCommissionProgram
Sub Main()
Dim name As String = 0
Dim code As String = 0
Dim monthlySales, commissionDollars As Double
[Code] .....

View 10 Replies

SQL Server Values Are Changed Only While Program Is Running?

Jun 18, 2012

im currently working with an SQL Server 2008 database and im trying to change values in the database usign visual basic.The following code runs correctly and I have tested changing passwords and have been able to logoff and then back on again using the new password. The problem i am facing is that as soon as the application exits the database returns to its origional values so the next time i run the program the passwords are back to the old values.

[Code]...

View 13 Replies

Write Textbox Values To Txt File With Program?

Feb 15, 2011

I am new to VB.net

I have a simple form with two textboxes, I want Textbox1 to write to a file named C:VALUE1.txt and

Textbox2 to write its value to a file named C:VALUE2.txt

Any text that is already in the text file MUST be over written.

View 3 Replies

Access Html Elements Having Same Names And Values By Program?

Jun 14, 2012

There are some html buttons which dont have id . i want to access these html buttons which have the same type name and values . But i cant able to access then due to their same names and values [code]...

View 1 Replies

Find Outermost Threshold Values Of Array In Program?

Jun 22, 2012

Basically, I have an array of data with about 1000-2000 data points that form a rough Poisson distribution. What I need to do is take the maximum value of the distribution (which I know), and find the leftmost and rightmost values that are, say, 70% of the maximum. (I don't really care what the value of these numbers are. I want to know what index position they are in.) I then want to find the centerpoint between these two indices, rounding if necessary, and return all three values (left, right, and center).

View 2 Replies

Improve Speed Of Program - User Inputs Min And Max Values

May 3, 2012

I'm currently trying to improve the speed of my program. Basically the user inputs min and max values for a, b, c, and d and a constant n, and then it tries to find the curve/line in the form a (x/b + c) ^ n + d. However for large ranges (1-100 for a,b,c, and d; total of 100 million values to try), it would take around 100 minutes at the current rate (approx 800k values/minute). I'm wondering whether I can further improve the speed. [Code]

View 6 Replies

Loop Through Listbox In Program / C# And Set Values To Label Text?

Jun 16, 2009

I have items in a listbox control that I would like to repeatedly (when it gets to the last one, repeat) loop through and set the text to a label.

View 2 Replies

Save Multiple Checkbox Values In One While Or For Loop In Program?

Jan 28, 2010

I have 50 checkboxes for 50 american states. The user can choose all 50 or only 1( so basically any number he wants). Based on his choice, I want to insert or update the table in sql server 2008. e.g-

Color = blue and chk1=check, chk2= check and chk3 = check (chk = checkbox). now the user wants to ad 10 more states to this or remove these 3 and add 5 more. so u basically get the idea. the table in database looks like this - ID Color State_id there is a table called states, so stateid shall come from there. so how do i do a loop insert or update in vb.net?

View 3 Replies

Add Values Inside Textboxes That Are Located In Tables In Program 2008?

Nov 11, 2009

Can you add values inside textboxes that are located in tables in Visual Basic 2008?

I put a TableLayoutPanel on a form and inside the Table I put textboxes. Outside the table there is a button. The whole point of the program is so that the user inputs numerical values inside the textboxes and then hits the button and the answer comes out in another textbox. But its not working. It worked when I didn't put my textboxes inside the TableLayoutPanel.[code]...

View 7 Replies

Fill Values Programmatically To Added Buttons - Efficient Way To Program?

Aug 15, 2009

want to make a custom calendar. For that I made a table of 7 cols and 6 rows and added 42 buttons in it. I added an event handler. I used this file in other form and when I click at the button the event is fired in form2. I understand this is not hte efficient way to add so many buttons. As it is a calendar, so I got to add dates to buttons based on month selected.I am finding that part difficult. For this feature, I think I should add buttons dynamically. But I can't make out how to add buttons to each cell of the table. Later on each buttons text will also change. I have added the code written so far :

Public Partial Class CalendarControl
Inherits System.Web.UI.UserControl
Public mnthNo As Integer

[code].....

View 6 Replies

Set Default Values For Data Bound Controls For Addition In Program?

Jun 18, 2012

I have a vb.net 2010 form with 22 data bound controls from two tables held in a dataset which is navigated by a bindingnavigator. This successfully adds deletes and updates. However what I need is when adding a new record I need some of the fields to be pre filled out. More specifically I have points balance fields etc which could be any value but will normally be 0 on a new customer so I want to initialize them to 0 when adding new records.

View 1 Replies

VB 2008 - Creating A Program That Can Store Numerical Values In Variables

Apr 15, 2010

I'm creating a calculator in visual basic 2008, and with this calculator I want to implement a feature that can store numerical values in a variable for instance x. Similar to the feature used in most graphing calculator that have the button showing: "STO->". I was thinking on using the My.Settings. But I'm having trouble on it.

View 2 Replies

Store Multiple Selected Values In Single Field From Listbox In Program?

Jul 6, 2010

This is my code which i used to try this but it inserts only the last value in the listbox but i need all the selected values seperated by comma [code]...

View 2 Replies

Coding For A Program - Enter Certain Values/text And Organises Into A Word Document Automatically

Oct 23, 2011

I am currently working on a program, that you enter certain values/text in and it organises it into a word document automatically,

I found a code online, which has worked a treat, However I'm wondering what lines of code I would need to:

1. Add Bullets or Numbers

2. Add a new line of text (I can add a new paragraph but I don't want a huge space between the two lines)

3. I have around 20 check box's is there a quicker way to check which are selected then write the text in word or do I have to write alot of If Checkbox1.Checked = True then, etc)

View 10 Replies

Speed Up Algorithm - Sieve Of Eratosthenes - Program Hangs On Really Large Values Of N (try 10 Million)

Aug 17, 2009

I've written an algorithm that I believe to be correct for computing prime numbers up to n with the Sieve of Eratosthenes. Unfortunately, this program hangs on really large values of n (try 10 million). Here is what I've written...

Protected Function Eratosthenes(ByVal n As Integer) As String
Dim maxValue As Integer = Math.Sqrt(n)
Dim values As Generic.List(Of Integer) = New Generic.List(Of Integer)

[code]...

How might I speed this algorithm up? Where are my bottlenecks?

View 12 Replies

PhpMyAdmin MySql Database - Program Hangs In The For Loop Before The Variables Are Assigned Values From The Data Table

Jan 5, 2012

I am using vb.net with phpMyAdmin MySql database. While running the piece of code below, the program hangs in the for loop before the variables are assigned values from the data table(dt)...

'Check for appraisal period-----------------------------------------------------------------------
Dim sqlCheckDate As String = "SELECT * FROM tblappraisalsetting where appSetID=(select max(appSetID) from tblappraisalsetting);"

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

View 1 Replies

Program 2010 Not Getting "created" Values From Stored Procedure With Dataset

Aug 11, 2011

I am using VB.Net 2010 and calling a stored procedure with a dataset to get values in a table plus "created" values.

The values for the "created" values do not come across from the stored procedure. They all show as zero in the IDE and False for the variables. I know I am getting the record because the first five values come across from the stored procedure into the variables correctly.

When I step through a VB6 program using ADO the values are pulled across from the stored procedure.

The problem seems to be in the interface between a dataset and "created" fields in a stored procedure.[code]...

View 3 Replies

Instruct VB To Save These Values In The Text Property Of The Labels So That The Next Time The Program Is Loaded The Labels?

Oct 21, 2008

I created a program that has serval labels on a form and a listview object. It has a button that when clicked reads a textfile and loads up values in the listview object. I then can click and drag text from the listview box to any label on the form and then the program removes the value from the listview box. Now, my question is how can I instruct VB to save these values in the text property of the labels so that the next time the program is loaded the labels will contain the values loaded during the last run time session?

View 1 Replies

Read The Latitude And Longitude Byte Values From The DEM File (retrieving Binary Values)?

Mar 23, 2009

I have a DEM file(Digital Elevattion Model File) and I am trying to open the file,where we have Latitude and Longitude values inside the DEM file.And, Now I have opened the file using Filestream and Read the file using BinaryReader.But, I am having a trobule in getting the values of Latitude and Longitude.I am getting Byte values randomly as 1,202,31,271 etc.But, we dont have latitude and longitude values more than 180,and also I am not getting 16 bit UInt values.For example, the values should be like Latitude 20.00416666666667 and Longitude 39.99583333333333.So,read the correct Byte values of the DEM file.The code I have used till now is:

Dim fs As FileStream = New FileStream("C:UsersadminDesktopHeader and DEM fileE020N40.DEM", FileMode.Open, FileAccess.Read)
Dim rd As New BinaryReader(fs)
Dim convertDB As UInt16
For i = 0 To rd.BaseStream.Length

[code]....

View 14 Replies







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