Use A Treeview To Display Information In A Separate Table On The Same Form?
Mar 10, 2010
I'm just starting out at vb.net but have done programming before. i am trying to use a treeview to display information in a seperate table on the same form dependant on which nod of the tree is clicked. Secondly is it possible to import the information from an excel spreadsheet or does the information have to come from an access table.
[Code]...
View 2 Replies
ADVERTISEMENT
Jun 4, 2009
Create a combo box that contains the values:
- Year 7
- Year 8
- Year 9
- Year 10
Thats easy enough, but i need to then need to do the following:When a option is selected, i want to display a seperate table for that year.For example, if i select "Year 7" a table specificly for "Year 7" is displayed.(Using visual studio)
View 11 Replies
Apr 30, 2010
I'll get straight to my problem - I'm currently coding in Visual Studio.I have a table (countries) with the columns ID | Name. The table is filled with around 28 records.I also have a form with 4 combo boxes (set up as 1,2,3 & 4) that I want the user to select. These combo boxes will display the names from the table countries. I then want to use the selected names in the combo boxes to Insert into their corresponding ID into another table. For example England would have the ID 1, USA the ID 2 etc.So, is it possible to have separate combo boxes that will give separate ID values but using the same table? At the moment I can't seem to find a solution.Eventually the form will have more than 4 combo boxes so I don't want to use separate bindingsources for each combo box.
View 5 Replies
Feb 23, 2012
I created a telephone number form where the user enters the telephone number in a text box as (nnn) nnn-nnnn. The first 3 digits in parenthesis are the ISD code, the next three are the area code and the last four are the local number. I need to separate out these three fields of the phone number and display in three separate text boxes labeled appropriately. Now, suppose the user enters the phone number in a text box as a continuous string of 10 digits, where the first three represent the ISD code, the next three represent the area code and the last four represent the local number. I'm lost as how to change this string into the form (nnn) nnn-nnnn. This is what I have
[code]...
View 3 Replies
Jan 15, 2011
I have this cash register program with separate forms for the items and the display form. The code works untill you press the button 2x. It says 5.5 + 5.5 = 11.5??? Can you fix this code?
CashReg.ListBox1.Items.Add("Item 1")
Dim cash As String
cash = (5.5)[code]....
View 3 Replies
Oct 27, 2011
I have a few forms that have a lot of really intensive updating along with a great deal of user interface (text boxes, button clicking etc) Is it possible to open a separate form as a separate UI thread from the start up form that called it to "show" or open or whatever the new method might be?
View 6 Replies
Jan 1, 2010
is there a tool that can display the directory tree on a form like a treeview?
View 3 Replies
Mar 12, 2010
I'd like to use a TreeView control to display database data in a windows form with VB2008. All the information what I found is related to a website design, but I'm working on a database program (sql2005), where I'd like the user to see the structure what he/she make up with a TreeView like control. Just something like that when you explore your hard disk. How can I do that?
View 3 Replies
Feb 18, 2011
I have a form in VB.NET and I would like the user to be able to click a button which will display another form (with the original form still visible).
View 1 Replies
Oct 4, 2009
Just like an array in a group box or a frame as i used in vb6.
If there are 5 customers details then when i load the form it will add (PictureBox, Label and a listbox) for each customer dynamically and display them with their information. Moreover, if i add 6th Customer information in the database then next time i load the form it should display his/her information as well. I did this in VB6 sometimes back but need a start to do in .net
Private Sub LoadCustomerInformation()
Dim Qry As String
Dim RS As New Recordset
[Code].....
View 7 Replies
Mar 2, 2010
i have a treeviev and listbox.i want to display the selected contents of treeview into the listbox.my code is working for file but not for folder. means i want, if the all contents of folder ABC(i.e all files) are selected then in listbox i want to show the only path of folder not the seperate path of each file.
View 1 Replies
Aug 12, 2010
I have a list of about 150 students that I would like to organize. I need the user to be able to select individual students, and I was hoping to use a treeview control to separate them into Sophomore, Junior, Senior(No freshmen) so that way it is easier to locate a single member.
My problem with this plan is that checkboxes are beside both the root and the child nodes and I only want the user to be able to select the individual students. So my question is is there a way to only put checkboxes beside the students or is there another control that can achieve the same effect?
View 7 Replies
Mar 31, 2011
I have to write an application that has the user input data in 3 separate text-boxes and press "OK" to save it. The user can repeat this as many times as they want.I then need the application to show the information inputted in each of the 3 separate arrays. Now I was told this can either be done by using a print page or by having another form show the information. I was told having another form would work best. I guess my question(s) are: is it possible to show the information from all 3 arrays in another form? Also, is there a link to any code that can help me out in listing information from a
View 7 Replies
Apr 3, 2012
I am linking a VB program to an Access database which contains team information and match results. I need to caluclate total points (based on queries) and display a league table in VB.
View 1 Replies
May 25, 2009
i have combobox to display name form database table..but it is not showing in ascending order..how do i do that?
View 2 Replies
Oct 1, 2009
I have developed an Access database and would like to display userid from the user table on the welcome form.
View 1 Replies
Mar 31, 2010
I need to display 3 columns and a varying amount of rows (typically around 50) in a windows form, kinda like excel. The data will likely be longer than the window, so a scroll bar will have to come into play somewhere.
View 1 Replies
Aug 30, 2011
why cant i display my 2 table records in two datagridviews in windows form? it only display the records of table 1 to the 2 datagrid views
[Code]...
View 3 Replies
Dec 14, 2009
In the following code example, I am querying WMI for Memory Modules and adding the information to a TreeView component.
VB.NET
Dim Scope As New ManagementScope("
ootCIMV2")
Scope.Connect()
Dim objectQuery As New ObjectQuery("SELECT * FROM Win32_PhysicalMemory")
Dim Searcher As New ManagementObjectSearcher(Scope, objectQuery)
[Code] .....
When I run the code, I expect to see a Parent Node named System Memory, and two Child Nodes for each memory module installed. I do get the appropriate Child Nodes, but I also get an extra Parent Node and I can't seem to figure out why:
View 2 Replies
Jun 4, 2009
I am currently updating an application I wrote to view Car Insurance Policies, using a backed SQL database and a front end vb.net GUI. I now need to make a change.
I haev added a new table which has all Active Policies, and i have the old table with every policy there has been active or not. We do an import from a separate company, and there is no Active/Not Active field.
I need a query/code that will populate an "Active/NotActive" field in the old table. For example:
CODE:
View 3 Replies
Jul 2, 2009
I have problems figuring out how to separate a single person to display on my listbox.
I am currently working on an assignment called "Douglas Resort Reservation" and we are supposed to select a query from the combo box Guest Search. For example, when I select Barb Allen, I get the info to display properly, which is good. But, I still have a problem.
When I try to click my button 'Prepare Invoice', I want Barb Allen's info to be displayed in my listbox 'Invoice'. But, now I don't have that complete. I have a whole list of items generated when I load my whole thing from my Form Load event from the textfile RESORT.TXT. I get a whole list of items instead of individualized items.
My question for you is: "How can I get just ONE name and person's information to show up?" when I press the button 'Prepare Invoice'.[code]...
View 2 Replies
Jul 2, 2009
how to seperate a single person to display on my listbox. I am currently working on an assignment called "Douglas Resort Reservation" and we are supposed to select a query from the combo box Guest Search. For example, when I select Barb Allen, I get the info to display properly, which is good. But, I still have a problem.
When I try to click my button 'Prepare Invoice', I want Barb Allen's info to be displayed in my listbox 'Invoice'. But, now I don't have that complete. I have a whole list of items generated when I load my whole thing from my Form Load event from the textfile RESORT.TXT. I get a whole list of items instead of individualized items.
"How can I get just ONE name and person's information to show up?" when I press the button 'Prepare Invoice'.and display information like this:
Barb Allen 604 777 1234
# of Adults 3
# of kids 1
Check In 2008-12-01
[code]....
View 1 Replies
May 10, 2012
I need to connect to a SQL Server from a network drive, I'm unable to due to the security settings on the network drive and I'm unable to have these changed.Is there any other ways of connecting to this SQL Server?
View 13 Replies
Oct 31, 2010
This is what I'm trying to accomplish. When the user enters 4 words into a textbox such as "hello my beautiful girl". I want it to display it into a label and I want each separate word to display into a different line.
View 6 Replies
Oct 28, 2010
I have an Array called myDat
It contains Name and date of birth;
Joe
12/15/80
Tom
7/11/65
and so on ... Keeping the same order so they match I want to put the names in one array and dob in another
View 7 Replies
Jul 2, 2009
how to seperate a single person to display on my listbox.I am currently working on a homework assignment called "Douglas Resort Reservation" and we are supposed to select a query from the combo box Guest Search. For example, when I select Barb Allen, I get the info to display properly, which is good. But, I still have a problem.
When I try to click my button 'Prepare Invoice', I want Barb Allen's info to be displayed in my listbox 'Invoice'. But, now I don't have that complete. I have a whole list of items generated when I load my whole thing from my Form Load event from the textfile RESORT.TXT. I get a whole list of items instead of individualized items.My question for you is: "How can I get just ONE name and person's information to show up?" when I press the button 'Prepare Invoice'.and display information like this:
Barb Allen 604 777 1234
# of Adults 3
# of kids 1[code]............
View 4 Replies
Aug 15, 2011
I have produced some VBA in Access that creates a spreadsheet.I have also created an SQL query that retrieves records from an Access table.I have 48 tables (each table for a specific institution centre).I have created another bit of VBA code that creates a spreadsheet and loads the records from the query in to the spreadsheet.Each centre has a unique Sequence Number (Indent Number)At the moment though, all I can do is import one table (records for one institution) in to a spreadsheet. I want to end up with calling the function and having an output of 48 spreadsheets being saved to my desktop, each spreadsheet containing records of a different center.I have thought about putting a loop in, but not sure how I would quite go about it.
Here is my code to create the spreadsheet:
Public Sub ExcelExport(lngIndentNumber As Long, strFolder As String, strCrit As String, strReport As String)
', ctlLabel As Label,
DoCmd.SetWarnings False
[code]....
View 2 Replies
May 14, 2010
I'm using VB.net 2005, .net framework 2.0
I'm currently having a form that has a button starting a long process, with feedback into another windows textbox (call frmProcessLog).
I'm using a Background worker to laucnh the process, upgrade the status of the process and display feedback on the frmProcessLog textbox, and to know when the thread process ended up, (from the cancel button, from an error or normal termination).
the main thread process has some msgbox in it, asking questions to the operator (yes/no/cancel).
I've added the msgboxstyle.systemmodal to the msgbox call which works "ok" excpet if the operator decide to ignore the showing message box and click the cancel button on the frmProcessLog form, which is still clickable even though I supplied "systemModal" to the msgbox. this makes the msgbox hidden behind the frmProcesslog form and the process can still continue.
If I close my frmProcessLog form, I will see the previously msgbox behind it and If I end up click one of the button it will end up at an application error because the thread that called it is not existing anymore.
So I would like that the msgbox to be launched from the thread making it as if it was launched from my frmProcessLog window in a modal way.
View 4 Replies
Feb 7, 2011
I want to create a game using visual basic 2010. I'm a specialist in VBA and Excel but not VB 2010.I want to display and hide a whole group of objects. In Acces I used for such cases the TabControl. For example in Tab1 the Game, in Tab2 the highscore and in Tab3 the options. Then I made it transparent, so that the Tabs (Buttons) are not visible, only the objects in Tab1 Tab2 and Tab3. With VBA I select the Tabs controlled by my own buttons (jpg). I tried the same in VB 2010. Without success.What can I do to switch between game, highscore and options without using popups. I want to display them at the same positions. So game objects and option objects should hide and highscore objects should be shown. And the other way round. Like the handling is with different layers in photoshop!
View 2 Replies
Apr 6, 2012
I'm loading a table column from a database into a treeview. The table exists of 3 rows:
[Code]....
When I load the table the descr-column is loaded into the treeview, but I also want the nodes to get a tag which is the "descr2"
[Code]....
View 1 Replies