Take The Three Amounts From Three Text Boxes Entered By The User And Return?

Jul 24, 2011

the project here is to take the three amounts from three text boxes entered by the user and return a string in a label telling the user if the triangle is either a right triangle, equilateral triangle, or neither after clicking a button. The code I have must use a new Class named Triangle. No matter what is entered in the text boxes, the label always returns "You created a right triangle!"

[Code]...

View 3 Replies


ADVERTISEMENT

Three Text Boxes For Inputting Amounts Of Money?

Jul 16, 2010

I have three text boxes for inputting amounts of money. One is for a total check amount, the other two are separate amounts that should add up to the total check amount. In each of the individual text boxes validating events, I have the following

Private Sub txtAmount1_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles txtAmount1.Validating
Try

[code].....

View 3 Replies

Restricting Symbols Being Entered Into Text Boxes?

May 5, 2011

I need to perform some validation for a computing project, How would I restrict the user from entering symbols into text boxes?

View 3 Replies

Get The TEXT Values Entered In Text Boxes Dynamically?

Feb 17, 2010

i'm having the following code to add the textboxes dynamically. now i want to get the values entered in that textboxes dynamically...

heres the code:

Code:
Public Class Form1
Public x = 17
Public y = 60

[Code]....

View 4 Replies

Clear The Form's Text Boxes So That New Input Can Be Entered?

Nov 17, 2005

I have a reset button created in my VB form, but don't know how to code it so that it will accomplish what I want. I want it to clear the form's text boxes so that new input can be entered. I could just code an end statement but this closes the form, and I want to keep it open to continue working with it.

View 6 Replies

Convert Entered Units And Display Them In The Text Boxes?

Mar 27, 2011

The program I am making requires the user to select what units he will be using. But it has to be able to convert his entered units and display them in the text boxes at all times during run-time. It works fine the first time the user switches units, but the second time the units are switched all the values in the text boxes go to 0... Ok Button

[code]...

View 5 Replies

Search For A Word Entered By The User In 40 Text Files?

Nov 2, 2011

I am building a search engine in vb.net which would have to search for a word entered by the user in 40 text files within the project directory. It should return the results as the total number of matches (text files) and the number of times this word is in each file.

View 5 Replies

VS 2008 Assign User Entered Text As The File Name?

Feb 27, 2012

I have a Form1 with TextBox1 and Button1.

Here is what I'm trying to do: When Button1 is clicked, I want an Excel file created and saved into a default folder (the user does not choose the folder...code for Button1_Click will choose the folder), and the file name will be the text that the user enters into TextBox1.

View 3 Replies

Access (read/write) The User Entered Text For A Document?

May 24, 2009

I want to access (read/write) the user entered text for a document.The document text is housed inside a CONTENTEDITABLE DIV tag within a html document.The html document is loaded into the webbrowser object (webbrowser.navigate(path and filename)).When the html document (bulletin.htm) loads,An error is popped up such as ACCESS DENIED to toolbar.htc and menu.htc And the toolbar and menubar are missing or corrupted.I have tried to generate the code for the document using the code below.

Function ScriptEditorHeader() As String
Dim sBuf As String = Nothing
sBuf = ""
sBuf = sBuf & "<html "

[code]....

View 2 Replies

.net - Setting A Textchanged Event To Only Fire When Text Is Actually Entered By User Not Program?

Mar 29, 2012

Windows forms Application. VB .NET 4.0 In my application I have a global boolean variable that keeps track of when changes are made and when they are saved called changesSaved. On closing even it checks the value of this variable before closing the window.. I am using textchanged event to automatically change the value of changesSaved to FALSE when text is changed.. Problem: The group box items are being populated dynamically so the user can edit the values or simply just view them. This dynamic population is causing the textchanged event to fire because the program is changing the text value of the box to put the values in that are stored in the database. The textchanged event should not fire unless the user him or herself enters a value or values in the text boxes..

Is there a way to specify the source i guess you could say for the text changed event or another way so that it will only fire when the user inputs information.??? Functions are as follows: The first is called by the load event to place the values in the box... The next one is the one that is being called as a result of the first one and is also the one that is causing the problems.

[Code]...

View 3 Replies

Setting A Textchanged Event To Only Fire When Text Is Actually Entered By User Not Program?

Mar 28, 2012

Setting a textchanged event to only fire when text is actually entered by user not program

View 1 Replies

Text Validation : Make Sure User Has Entered A Number(int/float/double Etc.) Not A String?

Apr 5, 2009

When I read a value from text box I want to make sure user has entered a number(int/float/double etc.) not a string. Is there any function to check it? otherwise how do i validate it.

Language : VB.NET
Version : Visual Studio 2005

View 6 Replies

C# - Library Or Code Snippet For AutoComplete In Text Control Based On The Previous User Entered Values?

Sep 19, 2010

I'm looking for a library for Autocomplete support in text controls which remembers all previous entries of the user and provide auto-complete support for it.For example for "recent files" I use [URL] and it works great. Do you know something like that for this purpose?

UPDATE : This is a .NET Winforms application and I'm using normal Text Control.

View 6 Replies

Main Form Allow User To Enter And Store Monthly Amounts In An Appropriate Data Structure

Jan 28, 2012

The company require an application that displays coffee usage information for the managers of CostaB Coffee. Sample data has been provided for last years (2011) monthly usage amounts in kilos and is as follows: 400.5, 450, 475.5, 336.5, 457, 325, 220.5, 276, 300, 320.5, 400.5 and 415.

Requirements: The main form will allow the user to enter and store monthly amounts in an appropriate data structure. It will enable the users to calculate the total usage for the 12 month period and average monthly usage. A further requirement for the application is for the users to be able to display the monthly totals in ascending (smallest to highest) and descending (highest to lowest) order of the monthly usage amounts. Utilise appropriate formatting for input/output and include appropriate error trapping and data validation in the application.

View 12 Replies

VS 2008 Return Multiple Table Rows To Multiple Text Boxes

Feb 27, 2011

visual basic 2008 express
access 2007 db

I am attempting to fill a form with multiple rows from an access table based off of a parameterized query. My query works fine but I don't want to return one row at a time, I want to return all rows that match my query in multiple text boxes. I know that I can use a datagrid view to accomplish this, but I would prefer the look of a textboxes on a form. I have read through many books and searched the internet forums but think I may just not know what to search for as nothing has worked yet. Can anyone point me in the right direction. So far I have tried setting the text box value to the row().item(), creating a different dataset for each row, and even setting variables for the results of the query to then be passed to the text boxes. Since none of this work, I don't really have any starting code to post. If I could just get a starting point I could work from there, so don't feel the need to code anything for me, just set me in the right direction.

View 3 Replies

Get The Try/catch To Work With Text Boxes And Input From The User?

Feb 4, 2010

I'm familiar with Visual C# and the try/catch for that but I cannot seem to figure out how to do the same thing in VB. Basically I can't figure out how to get the try/catch to work with text boxes and input from the user and whatnot.I've tried setting the textbox.text property = "" but that has no use, I've been trying to find something on Google about it but I cannot seem to find a single thing about textbox try/catch statements. Is it possible to do it with text boxes?

View 5 Replies

Populating Text Boxes When A User Selects A Company Name From The Cbo Box?

Apr 27, 2012

I am populating text boxes when a user selects a company name from the cbo box. When I make the first selection everything looks good, but when i make another selection the text boxes do not clear and repopulate with the new values. Here is the code in the selected index change event.

[Code]...

View 4 Replies

Send Large Amounts Of Text With TCP?

Nov 11, 2011

How to send large amounts of text with TCP.[code]...

View 6 Replies

Program That Moves A Picture To Whatever Location User Puts Into Text Boxes

Feb 18, 2011

I have a problem that I can not seem to get. I have a program that moves a picture to what ever location the user puts into the text boxes. It works as I wanted it to but my problem is when a user puts in anything but a number into the text box it gives an error, I want a message to pop up and let them know that a numbers needs to be entered not a text.

View 6 Replies

How To Display/store Large Amounts Of Text?

Nov 11, 2009

What I want to do is display large amounts of text and a few pictures, ideally with hyperlinks between the pages. A lot like wikipedia really, lots of similarly arranged pages, text in categories with in-line hyperlinks and the occasional picture to illustrate a point.But not online, integrated as part of a larger app.

How would it be best to go about doing that? The display method is sortof dictated by the storage method. My thoughts were:

Lots and lots of labels stored in an Access database

Straight HTML as if it were a webpage embedded in an iFrame or something

Labels populated from XML files?

Program the whole lot in Flash or something else (A language I can't speak)

This is only a mockup for demonstration purposes so the priority is user-friendlyness and ease of programming rather than storage concerns or good programming form.

View 1 Replies

VS 2008 : Submitting Large Text Amounts With .net?

Oct 11, 2010

if I want to submit a large amount of text to my asp web page, do I need to worry about the text itself such as containing "&a=" that would mean another variable is being assigned for submitting data? Any way of not worrying about this? Or do I need to replace the & symbol everywhere in the test first if used?

View 1 Replies

How To Return Last Entered Item

Jun 12, 2012

I am trying to get the last entry from my database based off the date entered. The sql is not working exactly as I want it. Here is my sql SELECT TOP 1 * FROM BILLS_HITS ORDER BY DATETIMEADD DESC.Can anyone see anything wrong with it? The sql returns a record with the date - "6/6/2012 7:10:11 AM" and not one that is for 6/10/2012.

View 1 Replies

Drawing With VB - User Must Make A Series Of Figures Such As Rectangles, Text Boxes And Lines

Oct 19, 2011

I'm doing a web application in which the user must make a series of figures such as rectangles, text boxes and lines, Is something like like google docs draw

View 2 Replies

Insert Letter "N" And Have Followed By 4 Digits Is Entered By The User In To The Text Box?

Nov 8, 2011

NOTE: I tried using concat() method, join method and even tried to insert just text(which turned out editable) but none of them worked as I wanted. I was thinking if substring method will work but I only have basic idea of how substring works. I want the letter "N" to be inserted into the text box when form loads and when the user enters 4digits(OrderNo2.text) which should be joined so that it can be saved together when I clicked on save button.

[Code]...

View 2 Replies

Return A Value That Is Set In A Radio Button And Add It To What Decimal A User Inputs Into A Text Box?

May 1, 2010

I am wondering how do i Return a value that is set in a Radio Button and Add it to what Decimal a User inputs into a Text box?

Public Class Form1
Private Sub txtbasic_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtbasic.TextChanged
End Sub

[code]....

i have 2 Error and 1 Warning Function 'OverTime Doesn't Return a value on all code paths.

1 Expression is not an array or a method, and cannot have an argument list

2 Expression is not an array or a method, and cannot have an argument list

View 4 Replies

VS 2008 Create The Form With A Button And Two Text Boxes - Move Text Between The Two Boxes

Oct 7, 2010

I am trying to follow the book 'Sams teach yourself VB 2008'. It was going well until the end of hour 4. For exercise 1 I have created the form with a button and two text boxes, but cannot work out the code I need to move text between the two boxes. The Object Browser does not seem to help - am I reading it wrong?

View 14 Replies

Instantly Render Large Amounts Of Multi-colored Text?

Dec 18, 2009

I need to constantly display large amounts of colored text in WPF or Silverlight, and I need the user to percieve it as showing up instantly.

Currently I'm doing this using a canvas and textblocks, one textblock per 80-character line, with multiple runs to a textblock to handle the different colors. There can often be 20+ runs to a line.

In a 45x80 grid of text, this gets a framerate of about 12 in Silverlight, which is sluggish. Oddly enough, it's even slower in WPF... I can only speculate that this has something to do with my dev machine's lousy video card. Maybe it's trying to hardware accelerate and actually slowing down because of it?

View 1 Replies

Getting A Binary Search To Work (warning:large Amounts Of Text/code)?

Dec 25, 2009

Couldn't think of a better title.(Background on the problem/me)Okay, so, first question/post here, so hi. Now that that's done with, the information pertinent to my problem. I'm fairly new to VB (and programming as well, aside from screwing around with C++ and learning assembler(well, attempting is the better word) god knows how many years ago), and have only seriously been programming for about under half a year, and my skill level is about at that stage. Only been using VB.Net, nothing older. Depending on the time of day and if I'm home or at school, I fluxuate between VB express and Vis Studio 08. Umm, this program I'm having trouble with was on a test that I took yesterday (took the problem home with me cause I really wanted to figure out what was wrong with it).

The stipulations of the test were:
No For->Each Loops
No using Built-In Sorting or Searching Functions

[code].....

View 4 Replies

Implement A Search For The Calendar So A Date Can Be Entered Into A Text Box Which Intern Moves The Calender To Show The Date Entered?

Oct 4, 2011

I am creating a Calender application using the monthly calender control.I am trying to implement a search for the calendar so a date can be entered into a text box which intern moves the calender to show the date entered. I have been try to figure this out with no luck, is it even possible to do?

View 2 Replies

VS 2010 Can Use Timer When User Tries To Log-in And User Entered A Wrong Password 3 Times

Jan 6, 2012

Can i use the timer when the user tries to log-in and the user entered a wrong password 3 times.i will give the user 5 mins to log-in again with the correct password and if the user enters the wrong pass. 3 times again i will give another 10mins also this is what i want when the user close the program the timer is also their and running that it will give the user the remaining tym on how much tym left 4 him to log-in again.Can i do this in vb.net??i dont know how 2 do this i dont have a clue if it is possible can someone give me a code??

View 9 Replies







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