I have an Employee form that displays data about the employee, on that form I have a button that launches an Employee Job form that shows data about the employee job.
My question is how do I show the relevant data on the Employee Jobs form when I click the Button on the Employee form?
I just started learning VB.NET about a moth ago (I have been taking classes, so its been about 5 days worth of classes) and I decided to work on this project idea I had. Essentially, it's a database to keep track of anime and manga that I, or whoever else uses it, have watched/read.[code]...
However, now I want to make it so that when one selects a specific title in the list box, it will show the data in the tags below the <series> tag that matches the item selected in a label. One thing I just thought of is than since the list box gets populated in the order that the series are in, it could be easier to go in order from first item equaling the first <series> and so on.
I have just started with vb and would like to know if there is a way to input several boxes of data on one form and display individual pieces of that data on several other forms at timed events in the future?
i can get this program to read the file but i now want to be able to call on the file from another form and use specific pieces of data for login verification and balance handling purposes.
[code..]
above is the contents of my txtfile but how do i reference anything in it? [code...]
Spend a day trying o find the reason why data grid will not display the data in the form... Simple Data set. Just ONE table with 2 fields (ID,Name). I Drag and drop to the form from Dataset. I can see the data in the dataset but not in the form. Tried with Access and Advantage data bases.
I have been programming in VB6 for a while now and am switching over to .net. There are a few basic functions which I just can't get for some reason... I am forced at the moment to use a DAO/ADO connection, and I've been primarily using DAO in vb6, so I thought I'd carry this over to .net... atleast for the time being[code]...
I have some data stored in my database on msaccess. Now I want that upon login, all the data are loaded dynamically on my vb form. that is. the labels are created automatically and corresponding data displayed by its side.
i have this code which i am using to display data on fields on form.And if i read from the database and the reader has no rows the ballon tool tip should display from some time indication a message.The problem is anytime i select from the database and the if all reader doesn't have rows only the last message of the ballon shows.the rest doesnt.Please what have i done wrong
I wonder if it is possible to find a specific row and specific columns in data base file (Access) . You see , I am using a DataGridView control to show only SOME of the columns (fields) of a table from an Access file . For example , lets say that in the DataGridView control I only show the following fields :Field1 , Field2 and Field3 .Now , when the user selects an entry in the DataGridView control , I want to insert the text from Field4 into a text box on the form .
The problem , however , is that I don't know how to get the specific row in the data base file and also I don't know how to get the text in column (field) Field4 of that row .One thing that might be important is that the index of the row in the data base file is not necessarily the same with the index of the current row in the DataGridView control . This is because in the DataGridView control the rows are order by the contents in the ID Field .ol .
Using the following code, I can display the data from the databas in textboxes on my form.Using the binding navigator, I can move through the records.Public Class Form1
I am receiving RS-232 data from serialPort1.Readbyte and want to display the incoming data on a textbox on a form. This causes a "...cross thread..." error.
I get an exception when I launch a form in my program:An unhandled exception of type 'System.InvalidOperationException' occurred in Testing 7.exe Additional information: An error occurred creating the form. See Exception.InnerException for details. The error is: Object reference not set to an instance of an object.I know that this means that there is something wrong with my code, but I checked, and I haven't found anything that I would know is 'not set to an instance of an object.' Here is the code:
I have a MDI Application with a MDIParent form and two Child forms called form1 and form2. What I need to do is. Launch the third party software from MDIparent form and if it already open then not to open again.
programmer and anything related with IT. i'm trying to create a program for my internet cafe wherein i would need 2 forms, 1 which will contain the transactions and 1 to log in/out customers. I was able to make this using excel but am currenty having a hard time now creating the program with VB2010, because syntax/formulas seemed different from that of excel2010... i have so many questions that i would like to ask, but i'l start with loading a form(for logging in/out) by clicking the Log-in button.
what i used before when i created a userform in excel is this: Private sub LogBut_Click() logForm.show
I have VB.NET application in which one of the form has IE control in it, the application starts initially with memory size consumed around 9 MBs, but when IE form is launched, the memory consumed rises to 27 MB, and when that form is closed, the memory reduces merely by 3-4 MBs, so why memory allocated to IEFrame is not de-allocated automatically?
It's simple question. I am confused since I am new to vb.net and windows form. I would like to display combining of one column (lastname+firstname) in the list box control from the query. My code display something.
I have a program in which I want to have the user enter two percentages and display the data matching the criteria on a new form. The query would be:
Select * From Corrosion Where corrpct1 >= {column in database} OR corrpct2 >= {column in database}
The way I currently have it written is to display only one row of data. I need to display any number of rows that meet this criteria. My current code is:
Private Sub btnDetails_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDetails.Click Dim form As New frmDetails() Me.Hide()
[code]....
1. How can I do my query to incorporate the user entered criteria (in the where statement)?
2. How can I display ALL of the data instead of just one line?
I am facing a problem displaying the records of my table on the visual basic form I have created.
This is my code :
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click myconnection = New SqlConnection("server=HOME-PCSQLEXPRESS;uid=sa;pwd=123;database=college")
[Code]....
Note: my database name is "college" , table name is "demo3" . Table contains 2 columns namely name and roll no. How to display the data in those columns on the visual basic form that I have created ?
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?
I need to quickly demonstrate a project and decided to create a user control that is connected to an Access database through pure simple data connections (create the dataset and drag it on the control.)When I build the project and add the usercontrol to panel control on the main form, no data is shown in the datagrid.When I add the data components directly on the main form, the data is displayed properly. why I can't get my databound user control to display the data on my main form?
This is what I'm trying to accomplish: I have a Point of Sale application that integrates with a credit card processesor. I wan't to remove any user interfacing logic in regards to the credit card processor in the point of sale and add it to a application that sits in the background or system tray. I want to be able to send a command to the background app to popup a form for user input.
For example: User in the Point of Sale clicks a button "Credit Card" at this point it will send a command to the background app say "ProcessCC" which will pass a transactionid and an amount , this will open a form for the user to enter in the credit card information and submit the payment to the credit card proccessor.
Reason: I need to get a padss certification and don't want to submit the point of sale to do it. Rather send the simple background app that will control any credit card processing functionality such as encryption , storing etc. I know it can be done using sockets but was hopping for an alternative solution.
I am working on a project. Part of my project requires me to capture data, for example, email address, from certain rows/columns of a datagridview(form2.vb) and displays them in a textbox on another windows form(form1.vb) with a click of a button(Add Contact button). The problem is the datagridview on my form must be able to display databases by making a connection to Microsoft SQL Server 2005 but so far, i have not been able to do that. I have seen many codes with regards to my problem but i do not know how to implement it.
Below are my codes that i have written so far. My program's limitations are not being able to display databases from Microsoft SQL Server 2005 so i created the statement below to add columns and test my codes.
When I double click on a row on a datagrid, a form will appear like the above screenshot.
When I double click on the row which consist of Brian/Kendall, a form will appear and should show Brian in the First Name text box and Kendall should appear in the Last Name textbox.
For Each book In books result.Add(File.ReadAllText(book).Substring(0, 500)) Next Return result
to display the first 500 characters of an rtf file I'm drawing from in earlier code, but I'm now wanting to specify line - for example lines 4 - 20.I can't find any way to get this to work as when I change the above code to:
For Each book In books result.Add(File.ReadLines(book).Substring(4, 24)) Next Return result
I get massive issues stating "Substring is not a member of 'System.Collections.Generic.IEnumberable(Of String)" I feel like I'm literally 1 line of code away from this being fixed but cannot get my head around it.