Make A Program That Consists Of Two List Boxes

Jun 9, 2011

I am trying to make a program that consists of two list boxes. The first list box contains the names of several employees of a given company, and the second is to display the name, department, ID number, and phone number of the person when the name is double clicked in the first list box. The file I have been given to carry this out with reads as follows. [code] I have no idea what I am doing.I know that I have to use the system imports streamwriter and streamreader, but I really am lost as to how. I don't even know where to begin really.

View 3 Replies


ADVERTISEMENT

Write A Program For VB Class That Consists Of A Resistance Checker Program?

Sep 20, 2010

i have to write a program for my VB class that consists of a resistance checker program. I've searched like a madman to help me through this and I have found nothing >. The program consists of 2 combo boxes, the first one is the nominal resistance drop down list of the numbers :100, 150, 220, 330, 470, 680, 820 and 1000. The second list is of the tolerance numbers; +/- 0.4%, +/-0.6% and +/-0.8%. Now what i want to do is select a number from the first combo box and select the tolerance level of the second combo box and i input the resistor of said value into the text box. when i click the check resistor button it should display a message saying if the resistor is in or out of tolerance. For now I have the form all laid out and the values inputted into both combo boxes and i can go to run the program i am able to select said values. Now my problem is trying to get the right code so that i can check the resistors value.

View 2 Replies

Forms :: VB - MDI - Application That Consists Of Mainly One Main Form - Ranging Form Graphs, Tables, Dropdown Boxes, Print Preview

Apr 7, 2010

I have to write an application that consists of mainly one main form, but several different things I wanna display. Pretty standard I guess. So there is a menu, some controls, and the main stuff below (ranging form graphs, tables, dropdown boxes, print preview, etc). I would like to use it like one would use frames in html, design an object that is limited to a box or panel that I define. The literature I have does not give me a clear idea of how to do this (yet). The most obvious seem to be the use of MDI, open a predefined form with no borders, maximize it before showing and remove all minimize/maximize options. But that does not work so well. The form inside the MDI parent does not fit the size that is given for it when it is loaded. e.g.

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

So my main question is: Is MDI the way to go here at all or are there better/easyer ways to achieve this? If MDI is the way to go, how do I sucessfully restrict a child form inside another object, without giving the user any opportunity to resize (i noticed that I have minnimize/maximize/close buttons, even if I disable them on the child forms themselves)

View 6 Replies

Create A Program That Uses 3 List Boxes

Jun 21, 2010

I'm just learning VB with the 2008 express edition.I'm trying to create a program that uses 3 list boxes.The first contains a list of products.After a search is preformed the second list box displays the products found.This is pretty simple, basic array stuff.My problem is moving items from the second list box into a third list box to purchase the product.I think I need to change the index numbers of the stuff I move into list box 3 because when I preform calculations with the stuff in list box 3, it seems to answer like its using the index numbers in list box1.So, how do you change the index numbers when you change list boxes?

View 3 Replies

Grade Program With List Boxes?

Jul 4, 2009

I'm trying to code a program that averages a grade from a list box, but the numbers in the second list box could change, so not sure how to code that. It should list the letter grade and the average, then if they don't enter a grade, should tell you to enter a grade first before hitting the average button.

Public Class MainForm
Dim ErrorMsg As String
Dim intNum As Object

[Code].....

View 5 Replies

VS 2010 Make An Array List Of All 30 Picture Boxes?

Jan 27, 2012

how i can make this code shorter:

Dim reminderday As Integer = 13
Select Case reminderday
Case 1

[Code]....

Maybe i should to somehow make an array list of all 30 Picture boxes?

View 3 Replies

Make VB Program That Has Two Text Boxes And One Button?

Nov 29, 2009

I want make VB program that has two text boxes and one button. Text boxes are for Proxy server IP and port. And button is just confirming it. So, user just types in Proxy server IP and port and presses button, and now, when he go to internet, he is anonymous. Now, I need code that sets proxy on after button click.

View 1 Replies

Make Urdu Text Boxes And Other Controls In Program?

Aug 4, 2010

I am going to make an urdu application in vb.net. In this application I want to make textbox, combobox, List and other controls having the capability to handle urdu language.

View 4 Replies

Selecting Values Of Combo Boxes And List Boxes In Web Browser?

May 22, 2012

I am developing a program that makes it easier for users to log on to a website and search for specific data. I have the first portion finished in which I have a form with the Ax Web Browser control.

The web browser control navigates to a local website and automatically logs in for the end user. This is done by using code which automatically fills in the username and password and then submits the form to logon using something similar to this: WebBrowser1.Document.Forms.Item(, 0).elements("txtUsername").value = "user"

Once logged on - there is a search page which contains a combo box and list box. I am trying to set specific values for the combo box and list boxes.For example - the combo box on the website is titled: cbxDate and contains the following values: Today, Yesterday, This Week, This Month.

A list box titled: lstArea contains the following values: Zone A, Zone B, Zone C, All.I am trying to figure out if there is a way through code to select, in this example, "Yesterday" in the cbxDate and "Zone B" in the lstArea on the webpage.If anyone knows of a solution, please feel free to let me know. Be advised that I am using the Ax Web Browser Control.

View 2 Replies

Clearing List Boxes And Combo Boxes?

Mar 20, 2009

what is the syntax to clear a combo box and also a list box?

View 3 Replies

Forms :: Using Mouse Overs To View (make Visible) Text Boxes And Picture Boxes

Jul 5, 2011

Im trying to make a program that allows the user to view additional information via moving the cursor over the label to view (make visble) additional information, in the form of text boxes and/or picture boxes. How will i go about doing this?

View 6 Replies

VS 2008 Student List Views - List Boxes And Data Fro Access DB Tables

Dec 30, 2010

This is what I'm sure will be the first of many noob-ish questions from yours truly... I'm studying as a mature student for a Computing Degree (encompassing web design, hardware, programming and systems analysis). The programming seems to be my weak spot this year. I enjoyed C++ last year, doing basic console applications, but progamming visually with VB in Visual Studio 2008 I'm struggling!

[Code].....

View 12 Replies

Placing Selected/unselected Items In Checked List Box Into List Boxes?

Mar 16, 2011

This program is supposed to allow the user to check items in a checked list box. If the item is checked, it goes into the Completed List Box on the right. The program then adds the unchecked items to the Pending list box on the left. I keep getting placement values (e.g. O,1,2) instead of the strings (e.g. "Key Returned") in the list box results (see photo attached)

Public Class frmCheckOut
Dim i As Integer
Dim cleaning As String = "Cleaning Inspection"
Dim damage As String = "Damage Repaired"

[code].....

View 3 Replies

Program To Make A List Of Every Characters?

Sep 12, 2009

I have made a program that makes and saves every possibility of characters under 7 characters (so far), and it takes about 10 mins to make one million possibilities... this is about 1800 possibilities per second (differering on different CPU's and RAM's)How can i make it more efficient, because i have made some basic calculations, and if i wanted 7 digits of every possible character combination, it will take about 7 billion possibilities... If i had 10 mins per million, that is a long time..

View 8 Replies

Make A Gridview-like List View In Program?

Mar 6, 2009

What control should I use to create a grid like a ListView or Excel grid?

View 1 Replies

VS 2010 How To Make Program Can Be In Open With List

Sep 20, 2011

how i can making my app in open with list for windows like if i chose my app to open txt file my app will open the txt file like example: ex.txt ==> open with my app and my app with view the ex.txt

View 1 Replies

Make A List Of Flight Plans Loaded Into Program?

Nov 15, 2009

I'm trying to make a list of flight plans loaded into my program, with each flight plan having a list of waypoints along the route, along with a few other properties associated with the flight plan. Each waypoint has its own associated properties, i.e. waypoint ID, waypoint type, location, etc.

Here's the declarations:

Code:

Public Class WPinfo
Public WPType As String
Public WPID As String

[Code]...

How do I implement the List methods to access the list elements, and add, remove, etc? The way I'm doing it now just gets me an 'Object reference not set to an instance of an object' error during runtime.

View 3 Replies

Make A List Of Recent Files In Form In Program?

Jul 24, 2011

I am just wondering on how can i make a list of recent file opened on my program in vb.net. The recent files filenames must be in a linklabel in a form and in the menustrip.

View 5 Replies

Forms :: Make A Program That Reads Text Entered Into A Textbox And Creates A List Of Items By Separating Entries By Commas?

Aug 18, 2010

Hi, I'm working on a program that reads text entered into a textbox and creates a list of items by separating entries by commas. Everything is working fine, except, because I am using an array to store the items in the list, I have a limited number of entries. This is only a problem because, as it is written currently, each comma counts as an individual entry. Therefore, users can enter ",,," for example, and it would use up 3 places in the array.

I'm looking for a way to check to make sure there is text after the comma before adding an entry. I've attempted to use the .substring command to check the character after, which works until it gets to the last character. Because there is no character after that, it will give an error.

Here is my code for extra clarity:

Public Class frmMain
Dim intCounter As Integer 'Stores the # of commas in the string
Dim Messages(49) As MessageProperties

[code]...

View 4 Replies

Add Check Boxes Into A List Box?

Nov 28, 2009

Add Check Boxes Into A List Box?[code]...

View 2 Replies

Add Choices To The First Two List Boxes?

Dec 14, 2009

I'm new to visual basic and I've put all forths of effort towards this program and I can't get it to work. I know one reason is I don't know how to add my choices to the first two list boxes.

Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim RegistrationFee As Integer
Dim LodgingFee As Integer
Dim Days As Integer

[Code]...

View 27 Replies

Combo Box To List Boxes In VB?

Nov 30, 2009

I am trying to create a WPF browser application that allows you to search and display recipes. The combo box presents choices, the Ingredients display in one list box and the "cooking" instructions appear in the other list box. What's happening is the first time you make a selection from the combobox nothing displays, and this could be happening because the first line of code under Selectionchanged clears the List Boxes however, it should be populating those list boxes with content, shouldn't it? Anyway, as you make other selections List boxes 1 & 2 get populated but they do not match what displays in the Combo box, i.e. if you select "Easy Taco Dip" any random recipe might appear in List Boxes 1 & 2.

Option Explicit On
Class Page1
'User Makes a selection from the ComboBox which populates List Boxes 1 & 2

[Code].....

View 3 Replies

List Boxes And For Each Next Loops?

Feb 7, 2009

I have a listbox on my form which will contain say ten file paths. (10 items in the listbox's item collection)now i want to use the For Each next loop as below

Quote:
For Each Item in mylistbox.Items
performactionon(item.tostring)

[code]......

View 3 Replies

Multiplying Two List Boxes

Jan 7, 2011

I have two list boxes created. One is Quantity and other is Price. When i enter price and quantity i want it to multiply and add one by one and give me the total in a label below...The problem is when I have two or more items in each list box I'm unable to come up with the total. I figured out that it will need a loop. So my question is that how should i use the loop. I haven't learn't how to make loops..

View 6 Replies

Vaildate Sub And List Boxes

Apr 29, 2011

can i use the private sub validate with list boxes to ensure selection and how? Sometimes the answer is so blindingly obvious i fail to see it.

View 2 Replies

Add Code To List Boxes Items?

Jan 31, 2012

I am surely a new self-learner programmer using VB 2010 Express edition and I have a problem on writing my first code. I have designed my form and I only want to add code as events. The IDE already adds the methods when I double-clicked the button which I want to add the code on.

This question may be good on the IDE forum, but I just thought to ask it here because there may be more experts here on VB language functions. I have added the MenuSctripItems such as File, Edit and so on. How do I write the code for New, Open, Save, etc under file menu? It may sound boring or even silly, but I am here to learn and your contribution is both for me, you and the MSDN.

View 2 Replies

Adding Items To List Boxes?

Oct 19, 2010

I'm using the free version on Visual Basic 2008 (through school).The assignment is to populate a list box from user input text. The textbook only talks about populating a list of known items.ex animalListBox.Items.Add("dog") Which works just fine, however, we don't know what the user will input.

So, how should I be thinking about this?

View 2 Replies

Adding Variables To List Boxes?

Mar 21, 2012

If I'm trying to output to a listbox, what is the easiest way I can enter a string and then a variable on the same line? I'm trying to use listbox1.Items.Add(...). Obviously outputting a string is no problem and outputting a variable is no problem, but I want to add a string and then a variable after the string. For instance:

name = "Joe Smith"
listbox1.Items.Add("Name: ", name) [or something like this]
[Output] Name: Joe Smith

View 4 Replies

Checked List Boxes Converting To Value?

May 2, 2011

I have a checked list box with lots of values and i need it so that when one of the items is ticked that a different box will display a value ie 50 so for instance i think it would be along the lines of

View 5 Replies

Copying List Boxes In VB 2008

Mar 2, 2010

I need to copy the contents of one list box to a list box on another form. I've tried a number of ways of tackling this, including copying to the clip board and then to another form.....but with no success.

View 8 Replies







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