20,278 Topics
![]() | |
Dim ADP As SqlDataAdapter = New SqlDataAdapter Dim CONN As SqlConnection = New SqlConnection("Data Source=|DataDirectory|\dbTesting.sdf") Dim COMM As SqlCommand = New SqlCommand("SELECT * FROM tbTesting") Dim DS As New DataSet CONN.Open() Dim DR As SqlDataReader = COMM.ExecuteReader() DR = COMM.ExecuteReader() TextBox0.Text = DR("Test").ToString This was my coding in order to … | |
Hello, Can someone help me please. Ive got a listview with the columns etc, when i save a form and it shows up in the listview with some items in the columns, how can i get a textbox to add a number each time a row is entered. example: I … | |
Hi! I have a real simple problem :) I wrote an application in VB.NET and I need to loop through multiple files. Now my code looks like this: [code] Private Files() As String = System.IO.Directory.GetFiles(My.Application.Info.DirectoryPath & "\Data", "*.spe") [/code] which allows only one file to be opened. I have 12 … | |
can anyone help me to make a program for multiple choice test using visual basic and ms access???pls .. | |
hello, what code do i use inorder to link a textbox to a list box. Example: On the log in screen theres a username textbox. On another form it has a listbox containing names that are allowed to be used. If someone enters a name that is contained within the … | |
Hi, i need help when i press the save button on a form that i have created (i have no save dialog etc yet) then it saves that form with all the information in their corresponding boxes when i open it again. Example: I fill in the form then i … | |
I keep getting a NullReferenceException. Any help would be great! Private Sub fillpub(ByVal argPubID As Integer) Dim drpub As _books_Fall2012_A2DataSet.PublishersRow drpub = _books_Fall2012_A2DataSet.Publishers.FindByPubID(argPubID) If drpub.IsNameNull Then txtPublisher.Text = "" Else txtPublisher.Text = drpub.Name End If If drpub.IsAddressNull Then txtAddress.Text = "" Else txtAddress.Text = drpub.Address End If If drpub.IsCityNull Then … | |
Hello, I wanted to know whether its possible in VB.Net to use a string as an object name. Lemme describe my problem. I have four radio buttons - p1,p2,p3,p4. Now i want to check whether these buttons are selected or not, for this thing would have to use for if … | |
how can i change the value of data in crystal report base on the selected item in listview? i am using mysql and visual studio 2012 | |
pls could anyone help me with my final project..im begging u guyz ..tnx en advan pls help me to Design a program for examination such as Prelim, Midterm, Pre-Final and Final. Requirements: 1. Main Form shall contain the following menu: Types of Exam, Examinee Registration, Exam Result, Help and Exit … | |
i have a combobox that have items form database. the problem is when i selected an item from that combobox it disappeared but still in the choices. i want the combobox.selecteditem should be appearing if i selected it. here's my code : Dim strsql = "select * from DesignationEveryDept where … | |
Hi can someone please help me how to update after inserting ? In this code I am going to insert a transaction that borrow books in library system BUT In every borrow of books I need to lessen the quantity of the book.. I have an error in this code.. … | |
I want enter the telephone no into text box like this 022-1234567 how to set the textbox commands to get like this........... | |
Hi All, Quick one, I am calling a web service that returns a dataset but the company doesn't know what structure is in the dataset anymore as the original programmer has left. The webservice code calls a stored procedure that they can't access. Is there anyway to call the webservice … | |
I got a textbox which holds a persons address For example Streetname / house number / box number They are seperated by a space I want them to go into their own textboxes TxtStreet, TxtHousNr, TxtBoxNr I am pretty sure its best done with indexof But i cannot get it … | |
Hi friends, I'm developing an application for HR. I have two tables so far.One is tblDetails and the other is Academic. I have created a relationship (ID to AcademicID), I have been able to pull data to a form by this SELECT statement: sqlSearch = "SELECT tblDetails.ID, tblDetails.FirstName, tblDetails.Surname, Academic.AcademicID, … | |
hi! can someone help me or give me a tutorial on how to send email with crystal report attachment in vb.net 2008? i tried searching for video tutorials but i could not find one... or can someone discuss and teach me how to do this? PLEASE.. I NEED YOUR HELP … | |
Hello everyone, i am developing a Library system, where user can borrow books and return them. i have a table in my DB called "borrowed books" it contains list of information about the borrowed book and the borrower, when the user returns the book the system should remove the record … | |
i have a data gridview with 4 columns namely name age address and attendance. my problem is this ,using a button how i change the attendance in all to "OUT"? help me please | |
need some help guys im trying to put a hyphen between a number for the telephone number but i want to use the keypress or textchanged i already done it using the button so im trying to use the textbox rightnow but after the hyphen is been inserted to a … | |
I know that its very simple to save an image source in a MySQL database but my problem is that how can I save an image source and add it to my project's resources so that I can call it easier even if I transfer my Application to other PC, … | |
Please help me debug about datetimepicker. I think, the code is written correctly but its not. The program kee[s prompting **ORA-01858: a non-numeric character was found where a numeric was expected** Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim cmd As New OleDb.OleDbCommand 'cnn.ConnectionString = … | |
Hello every one and thank you all for your sweet replies. I am making a project in VB.NET, after the completion of project, is it possible to install it in anyone's computer? I mean to say, the project which I have made in VB.NET 2008, can be only run through … | |
I searched and found a lot of codes and I made a code for myself for transfering file through ftp protocole but I got some errors there that I dont know:-s this is my code : Dim FTPRequest As System.Net.FtpWebRequest = DirectCast(System.Net.WebRequest.Create("ftp://ftp.microsoft.com/Softlib/" & "README.TXT"), System.Net.FtpWebRequest) FTPRequest.Credentials = New System.Net.NetworkCredential("", "") … | |
Hello everyone! Another question pertaining my homework question I have a user control called Course which contains a maskedtextbox for users to enter in grades and a listbox to show the letter grade for the numeric grade they enter. I have 6 of these in another user control, while the … | |
Help me to solve this problem Conversion from string "LastName" to type 'Double' is not valid. Private Sub ButtonAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button9.Click Try Call OpenConnection() With OleDa .UpdateCommand = New OleDb.OleDbCommand() .UpdateCommand.CommandText = "UPDATE [INVENTRY] SET [ItemCode] = @ItemCode , [ItemName] = @ItemName , … | |
Hello! I am makeing inventry program for my SHOP, When Button1 clicked, listview all items will UPDATE, listview coloum 3(QUANTITY) will SUBTRACT from ms access quantity. Please help me. Private Sub Button9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button9.Click Try Call OpenConnection() OleDa.UpdateCommand.Parameters.Add("UPDATE [Inventry] SET [QTY] = [QTY] … | |
Hello everyone! I'm working on a school project where I need to make a GPA calculator. I have a user control for classes and another for the type of program you are in. I'm having trouble getting an array of user controls to work mostly probably because I don't think … | |
Hi guys, I currently have a VB application which begins by calling an external C# application to download an eBay report. When it has downloaded the process ends, but the focus doesn't switch back to the VB program. Will I need to run the VB program at the end of … |
The End.