Make Listbox To Be Used In Multiple Forms?
Apr 3, 2010
I am designing a degree audit program for school, and have a listbox where all the classes needed are contained. I have a separate form for each year (Freshman, sophomore, etc.), which also contain listboxes which are empty. The idea is to add the selected class from the first listbox into the empty listbox in the appropriate year form. However, to do this I would like to have the same listbox (the first one with all the classes) appear on each form, but still reflect changes made to it from other listboxes (classes transferred out of it).
To do this, would I need to create a listbox with global properties? Or would it be better to create a global function containing all the classes and have its contents called to the appropriate listbox?
View 12 Replies
ADVERTISEMENT
Jun 16, 2010
I have a question here.. pls kindly advise.I need to design a simple form that allow user to choose the value from Listbox A to Listbox B. For example, in Listbox A, have value A, value B and value C, then user can choose (or highlight value B and value C) and copy into the listbox B.
May i know how can i do this in vb.net? Any reference link?
View 2 Replies
Feb 17, 2011
I am making a virtual crafting application (similar to that done in Minecraft)
currently I have made a test "crafting recipe" which checks if the listbox (mixbox) has 1 window, 1 door and 1 wheel. the code looks like this:
If mixbox.Items.Contains("window") Then
If mixbox.Items.Contains("door") Then
If mixbox.Items.Contains("wheel") Then
[Code]....
View 3 Replies
Mar 10, 2011
I've looked everywhere on the internet for multiple items drag&drop between listboxes and found only examples showing single item drag. I know how to make a single item dragdrop operation between two listboxes using MouseDown, DoDragDrop, DragEnter, DragDrop Now what I'm looking forward to learn is the ability of dragging more than one item from one listbox and dropping them in another listbox
View 2 Replies
Mar 4, 2009
How would I display list items from multiple selection listbox in order they are clicked?
View 4 Replies
Oct 19, 2011
how to make a listbox have multiple columns and for certain columns to be editable.
I thought about using a DataGridView, but I am not linking this to any kind of database.
View 4 Replies
Jun 25, 2011
I have been working for a while on this. I am trying to figure out how to make multiple forms .Such as a login form that leads to a second form. [code]
View 13 Replies
Apr 5, 2009
I need to make the text value of a checkbox appear on a listbox when I check it and when make it disappear when I uncheck it. However, I need to do this with 100 checkboxes, and doing it per checkbox, I need a code that for any checkbox checked and unchecked, the text value will be listed or cleared on a listbox.
View 4 Replies
Apr 24, 2011
How do i make a ListBox with the addition of each item, the item be removed after 4 seconds? Added time and number of items is unknown. Other parts of the job application should not be hampered. I know that thread should I use, but I do not know.
View 2 Replies
Feb 19, 2010
Basically on form2 i have a listbox. And on form3 i have 6 listboxes. I want listbox 2 to equal listbox (a listbox on form3) my current code does not work Private Sub formAustralia_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[Code]....
View 3 Replies
Apr 3, 2011
I have a problem with my program. I wanted to know how i can make a global variable like an integer be recognised in any form so in essence linking to two forms together. Also how do I store an integer that has been typed by the user into the textbox? This integer will then be stored in the global variable. I have got two forms, one is for the user to interact with and the other is going to be used for displaying the global variable.
View 1 Replies
Jan 30, 2009
Is there any way to make tabbed window forms instead of using multiple ones
View 1 Replies
Jan 4, 2011
I need to make a program (or if someone wants to make it for me, feel free to do so) that has a starter form with a combobox where you can select different sizes, like 2x2, 4x4, 6x6 and so on. When i then press the button to choose size, a new form would pop up , with 4 different grids of checkboxes, (white, red, green, blue).Do i have to make each form (frm2x2, frm4x4) and make each individual checkbox, or is there some other much greater solution?Because, in the end, i don't feel like naming 576 different checkboxes for just 1 form.
After all that has been made, it would be saved to a text file, with 0 being anything thats unchecked, 1 is white, 2 is red and so on. And it would look something similar to this:
[Code]...
View 3 Replies
Nov 4, 2010
I have used CSV files before for a simple database of about 12,000 items - this was a simple one page form... Now I want to have the same database but with the data available to multiple forms at the same time.. eg.. Form 1 displaying persons 1,2,3,5,7 name, addy, phone etc and form 2 pulling info for persons 2,3,4,8... Is this possible with CSV files?? or even XML?... The only other thing is that I do it all in .NET 2.0....
View 3 Replies
Aug 21, 2011
how to have all forms have the same on closing event with the exception of one form (Form1). I want the forms to show Form1 when one of the other forms is closed. I know there is a way to do it, I just can't work out how.
My code at the moment assumes that each form will have a boolean declared on it as false that will only turn true if you use a legitimate way off of the page (i.e. a regular button on the form). If you instead click the exit button on the title panel it will find the boolean is false and show Form1.
So the only problem I really have is getting the code to apply to all forms without writing it for all of them.
View 3 Replies
Nov 19, 2009
If I set a ListBox.Height = ListBox.PreferredHeight when the control is hidden and IntegralHeight = True, then set it visible:
a) Actual Height reduces by typically 3-5 pixels after redraw (but not 1 pixel per item).
b) PreferredHeight does not not appear to give the correct integral of item heights.
Is there a way to make ListBox calculate the correct integral Height before the ListBox is made visible, so it can be correctly pre-positioned from bottom edge?
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
ListBox1.Visible = False
ListBox1.IntegralHeight = True
[CODE]...
View 4 Replies
Apr 9, 2010
I have the requirement to create an application that has multiple front ends developed using Windows Forms, WPF, ASP and Compact Framework Mobile Forms.I would like to be able to create a series of obejct representing the business logic and have this logic accessible from the various front ends available. My first thought was to use remoting as I'd like to be able to pass the business objects back and forth between client and server but the compact framework doesn't support remoting and also transferring a full framework business object to a compact framework business object doesn't seem possible.My next thought was to use web services but again the passing of business objects seems to be very hard to accomplish. Without doing this I would have to create individual web methods for each business operation.
Finally my next option is to use sockets and write the whole client/server logic within some classes and expose them to the UI/Business layer. My only problem with this is it is not scaleable should the number of clients increase dramatically whereas using remoting or web services I can host the solution via ASP.Net.Does anybody have an ideas on the best way forward for this or even have any input on how they would write an application that required a windows form, wpf, asp website and mobile device GUI all of which want to use the same business logic?
View 3 Replies
May 25, 2010
I have googled high and low to find an answer to this but I must be searching wrong.I have an application which has a listview displaying some items that are stored in a SQL Compact database. I am using a second form to add new items to this list directly into the database.When the second form closes I want to call the sub in my first form to refresh the list from the database.
How can I get it to fire the form1 sub routine on the close event of form2
View 3 Replies
Nov 3, 2009
i was doing a fair amount of programming many years ago, like 10 it feels like, so I'm sorely not up to date on how my newly downloaded Visual Basic Express expects me to communicate with it.I am writing a program that pulls a cell from a database after the user has gone through several forms to determine which cells they want. When I write it like that, it doesn't sound very efficient, but I've designed it this way for usability.Here's where I have a problem: Should I store the path the user takes in a string, an array, what?
Here's an example:Someone wants baseball stats and trivia. They run my program, main form pops up, they select National League button, the NL Form pops up. Now the way my program is set up right now, is there are two ListBoxes on the form, one is populated, and as the user selects a Team from ListBox1, it jumps to ListBox2. Once they've selected all the teams they want info for, they click a button Next.
What I now need the program to do is show the next form "Team: name" once for each team, and insert the name of the team on the form in the appropriate label which I'll have blank. This form will also do the Listbox thing except the first listbox will populated with Topics like HR Stats, Pitching Stats, Coach History, etc.
View 1 Replies
Jul 26, 2010
Launch a dialogue window from the main form, and then another dialogue window from that dialogue window. If you close the second dialogue window and call dispose the main form vanishes under any other open windows. This doesn't happen by closing a dialogue window normally, but I am attempting (rightly or wrongly) to stop memory useage creeping up by disposing of it.
So, the question is - what method can be employed to maintain the position of the windows?
View 4 Replies
Apr 16, 2009
I have two forms frmMain and frmNew, and one module modMain. In modMain I hold public variables which are needed for application. My question is how to open and close those two forms when needed? I ask this because if i set frmMain as startup form, then when closed, application will end, and one of those two forms will always be displayed. Also if I set frmNew as startup form, then when I close this form, application will also end. Is there a way to do this from module or something so my application won't end after closing and opening any of those two forms?
View 2 Replies
Sep 8, 2010
VB.NET newbie here... I have an vb.net windows application set up. It has multiple forms, about 6 in all. There's a main menu form, and then 5 other forms to collect data. The user will collect data on each form and bounce back and forth between forms. How do I get the forms to retain the data that has been entered into the text boxes and/or other controls on the forms? For example, they might fill out a few textboxes on a form, but then need to go to a different form and fill something out... and then back to the previous form. Right now, when they come back to the form, all the data previously entered in to the text boxes is gone.
View 1 Replies
Apr 17, 2009
I am trying to write code with multiple forms. The first screen is splash screen then is supposed to close and have a calculations screen. In the timer of the splash screen I wrote the following code
Option Explicit On
Option Strict On
Public Class uiHinsbrookSplashScreen
[code]....
This opens the second screen, but when I Hit Exit on the Second Screen The first screen is still open. What do I need to do next?
View 2 Replies
May 13, 2010
I'm still learning vb.net, so I'm not terribly familiar with all the terminology, otherwise I would have searched a little harder before posting. I'm working on a program where the user can add various forms to a MDI parent.I would like each of the child forms to be part of the same array, all of the child forms will be of various types.Some forms may display a textbox, some forms may contain a graph, some forms may contain an image, etc.[code]
View 7 Replies
Dec 15, 2009
i've been working with multiple forms. here's the situation.. i have 2 forms form1 and form2 every time i show the form2 from the cmd Bttn in form1 then i close and reopen it again it always prompts me with disposal error.
View 3 Replies
Dec 29, 2010
If I have a large number of classes, each similar to the other in certain aspects (they all share a common base class, but each does things differently), and I need to create Windows forms for each to allow easy changing of their values through a GUI? Create one matching form for each object in VS' forms designer, Or Use code to create the forms dynamically at runtime.
#2 makes the most sense to me, because a lot of these objects will share very common features of the form, notably "Ok" and "Cancel" buttons. But one object might need to draw a textbox on the form while another might need to draw a combobox. Not to mention, if I want to put icons on the "Ok" and "Cancel" buttons, I'd have to do this for each copy of the form in designer, and that sounds like it could get out of hand quickly.But is drawing forms through code sane? VS' forms designer is pretty sophisticated and designed to make life easier. Am I wise to consider ignoring its functionality and diving into the trench warfare of forms design through code? Or are there examples of automating form creation based on an existing object's properties?
View 1 Replies
Dec 30, 2010
what im trying to do= make a program that will make multiple accounts
[code]...
ok what i type in textbox(es) "1" i want it typed on a "3"{a website=www.justin.tv/signup} when i hit the "2"[button1]i really dont have any idea what im doing i know ill need to have a webrowser to load the justin.tv/signup but i have no clue what the name of the boxes are called on the webpage
View 4 Replies
Apr 2, 2009
I am creating an application and I am running 1280, 1024 Res and I want my application to be able to support any computer res. How can I do this if it is at all possible?
View 2 Replies
Jun 9, 2011
I am using asp.net with vb.net. I have created 2 listboxes; lstselect and lstroles. List boxes lstselect contains all of the available roles that can be added into lstroles. How do I take the roles that have been added into lstroles and make them into a parameter to pulled into my database when the stored procedure runs?
Here is the code for how my list boxes share the roles:
Protected Sub btnRight_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnRight.Click
If lstselect.SelectedIndex <> -1 Then
[Code]....
View 1 Replies
Sep 18, 2011
I have 2 listboxes, listbox1 holds File names, listbox2 holds fullpath of the files(listbox2 is hidden just to keep things looking tidy).
What i want to do is (using multiselection) is select files in listbox1 and have listbox2 have the same files(indexes) selected as well.
i am rather new to this but i have tried several ways but listbox2 only selects the first selected file from listbox1.I am using vs2010 visual basic & wpf?
View 9 Replies