20,285 Topics
![]() | |
hi daniweb members I am using visual basic 2008. i have a listview and a datagridview which have both 3 columns like ProductCode,ProductName & ProductPrice. Now i want to pass listview values to datagridview in the same sequence. I want that when i double click on any row in the … | |
Can anyone help me by giving out a complete tutorial on the step by step way a connecting to a database using VB? | |
I currently have the following bits of code: [CODE=VB.NET]Public Class MainFrm Private _storage As New List(Of StopwatchStorage) Public TotalParticipants As Integer Private participantLbl As Label Public participantName As TextBox Private participantClock As Label Private participantContinuation As New Stopwatch Public ParticipantStop As Button Private participantContinue As Button Private participantTimer As Timer … | |
Hi i have the following code. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim con As New OleDbConnection Dim da As New OleDbDataAdapter Dim ds As New DataSet Dim dsnewrow As DataRow Dim cb As New OleDbCommandBuilder(da) Dim a As String con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\DB.mdb;Jet … | |
hi everybody! i already know how to save in excel using openfiledialog. but what i want to happen is that when i save another file, i want it to be saved in my existing file but in a different sheet. can you guys help me? this is my code for … | |
Hello, I'm need to create a small report to be send automaticliy from VB.NET Windows application. I have wrote below code which is workin on my private PC, and with Gmail settings, such as username + password + smtp.gmail.com, etc... But with, my work informations, like my proxy ID + … | |
Hi all, I need my form to automatically select the first entry in the datagrid view when it is loaded. I am having trouble finding the correct way to code it. [CODE] Private Sub CustomersForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim cust = From customers In … | |
Hello Once again i need help. I have a webbrowser So once webbrowser is completed then it should add the specified value in [TEX]<input type="file"> [/TEX] value in php. Eg: Webbrowser link is [url]http://tinypic.com/[/url] When webbrowser is completed then this [url]http://screensnapr.com/e/LCgzhP.png[/url] value will be our specified value. I tried using … | |
Hi, My dev computer is 64 bit Windows 7. I use the IntPtr variable in several classes throughout my application. When I compile the .msi file on my 64 bit computer, then install and then run it in a 32 bit environment I get 'System.MissingMethodException: Method not found ...get_HWND' error … | |
Doing a program that requires 2 web forms, and the program stats "We have elongated the window so you can see that the order information was passed as a set of Request parameters appended to the URL." Can anyone give me an example? I have no idea how to append … | |
hello im working with vb 2010 and ms access as data base, just newbie.im trying to save the loged out date and time to my access table by selecting from tblloghist wherein my column SystemUserID is equal to my textbox SysID(located at my form) then it will save the timelogedout … | |
Guys how do I change the size and location of the controls at runtime by dragging and dropping. I want the users to be able to modify them. Thanks | |
need some help here what i want is when the user inputs the username and password, his/her information will be showed in the textbox located at the mainform which shows the users information like where he live and his occupation. please help me on how to show users data in … | |
help pls the image of my button is not showing at runtime | |
For a school project I need to make a timer with a bell sound that sounds every 60 seconds in VB, I cannot work out how to make the bell sound on the 60th second, I am not getting any errors in the VB console, so I assume that I … | |
Unable to cast object of type 'System.Byte[]' to type 'System.Drawing.Image'. hi i got this error message [CODE] Private Sub DataGridView1_RowHeaderMouseDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellMouseEventArgs) Handles DataGridView1.RowHeaderMouseDoubleClick 'DataGridView1.DataSource = bs Dim i As Integer i = DataGridView1.CurrentRow.Index txtConID.Text = DataGridView1.Item(0, i).Value txtLname.Text = DataGridView1.Item(1, i).Value [COLOR="Red"]PictureBox1.Image = DataGridView1.Item(2, … | |
Hello everyone, Please can someone help me to debug this error? It has been giving me a huge headache since last night. Anytime I try to add new record into my database, this error message keeps coming up: "Error: INSERT INTO Customer(Cust_ID, Name, Address, Username, Password) VALUE(?,?,?,?,?,?)". I don't know … | |
Private Sub btnCheckIn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCheckIn.Click DatabaseConnection.ConnString() Try Dim litems As ListViewItem = New ListViewItem() DatabaseConnection.ConnString() DatabaseConnection.DataOpen() DatabaseConnection.Add("INSERT INTO CheckIn(CheckInDate, Deposit, Staying, CheckOutDate, Amount, Balance, Roomnum) VALUES('" & txtCheckIn.Text & "','" & txtDeposit.Text & "', '" & txtStaying.Text & "', '" & DTCheckOut.Text & … | |
now; web.Navigate("http://www.yougetsignal.com/tools/web-sites-on-web-server/php/get-web-sites-on-web-server-json-data.php?remoteAddress=" + TextBox1.Text) this my code.and web.document.complete ListBox1.Items.Add(web.DocumentText) but result [CODE]{"status":"Success", "resultsMethod":"database", "lastScrape":"2012-01-22 08:05:08", "domainCount":"46", "remoteAddress":"mikrofiltre.com", "remoteIpAddress":"188.124.8.186", "domainArray":[["afatogullari.com", ""], ["anadolukarikaturculerdernegi.com", ""], ["anadolukarikaturculerdernegi.org", ""], ["dekopol.com", ""], ["efesplaygrounds.com", ""], ["ezelhijyen.com", ""], ["gurtuna.com.tr", ""], ["krossdekorasyon.com", ""], ["kucukerler.com", ""], ["mikrofiltre.com", ""], ["mikrofiltre.com.tr", ""], ["omakbobinaj.com", ""], ["otokivanc.com", ""], ["oyunparkiicinherseyburada.com", ""], ["ozlemtokerim.com", ""], ["payeplast.com", ""], … | |
Hi I want to make a url contol program. url list in the listbox and search button if vocabulary in the url then listbox 2 add item example: url:[url]http://example.com[/url] vocabulary : "car" search: The car vocabulary in the documenttext ("source code") add listbox1 to listbox2 but I don't want slowly.I … | |
Hi friends., Actually I use datagrid to show my result from XML file.I load my data from XML file easily.But i need Sorting method for that and i don`t know how to solve it Please give me solution for that My code is [CODE] Imports System.Data Imports System.Xml Imports System.IO.StringReader … | |
Hi there, I was trying to edit a excel document and save under different name and my coding for this is as follows. [CODE]Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'Open Dim MyExcel As New Excel.Application MyExcel.Workbooks.Open("C:\Test\WalkAir.xlsx") 'Extract MyExcel.Sheets("sheet1").Activate() MyExcel.Range("A99").Activate() MyExcel.ActiveCell.Value = TextBox1.Text MyExcel.SaveAs("C:\Test\alkAir.xlsx") MyExcel.Workbooks.Close() … | |
I currently have two stopwatches ( running in a VB 2010 program. What I would like to do is combine their values together and have their results outputted in a string formatted as 0:00:00. I tried the Add method and the + method but this fails. This is in short … | |
Hi Every body by seeing this video i tried but it is not working [url]http://www.youtube.com/watch?v=kg-z8JfOIKw[/url] i used shockwaveflash to play a movie but when i execute only a blank screen will be their it is not playing the movie guide through the code really i am confused totally | |
I figured I'd ask this here before I go back to other sites. I'm trying to dynamically create a set of stopwatches and buttons. Each stopwatch will be controlled by a button which is also dynamically created. However, each time I code it, I always ended wiring both buttons to … | |
Hi, I have attached a printscreen version of my excel template here, Now I just want to know, using vb.net code, on how can I import this data from a specific cell, including the header itself so I can insert it into mysql database. Thanks | |
Hi all- I'm working on an assignment for class and I would like some help. I have to create a calculator. In order to do the calculation, when the math operator is entered, there is a space on either side, so that I can split by the white spaces. [code] … | |
I created on Employee master form. The details which i enter in this form is saving to sql table. But if i use Wild characters example in Name field if i enter "Varghese D'Costa", then the following error comes : Line 1: Incorrect syntax near 'Costa' Unclosed quotation mark before … | |
i i have a listbox and 1 button in my application thing i want is when i click on some listbox item auto press that button or when i click on some item in list box it remove selected items from list box just with mouse click | |
Hi, I am learning about the search capability in an array. I wrote a code that stores three names (first & last) and I want to: - Make the user select a number (from 1-3) by using a (combobox) - If the user select the proper number then a message … | |
which one cannot be considered as a counter variable? [CODE] counter = counter +1 counter = counter -1 counter = counter +3 counter = counter *2 [/CODE] | |
Guys, how do I retrieve my messages from my Yahoo account. Is this going to be a hard task. If there is a site where I can get more information, can anyone tell me where. Thanks | |
Hello good people, This syntax error keeps coming up whenever i click the "commit button" to add a new record to my ms access database. The error is, "Syntax error in INSERT INTO statement." I got help to write a code to accept alphanumeric (e.g SC0001, SC0002...) in my order … | |
I'm trying to set up a query to sum a value for each user by month and then calc the percentage of that user's total vs the total month's value. My query below works as long as its limited to one month. I've tried to group my subquery the same … | |
Hello everyone! I am new to VB.Net and I am actually developing a simple POS system. I am using visual studio 2010 and Access 2007. I created a form where the user can search the database and view the invoice details by entering the invoice id in a textbox. The … | |
I am using rdlc reprot in VB (Visual Studio) with MS Sql Express. I want the output as given below : [ICODE]SrNo. Amount 1 100 2 100 3 100 4 100 Group Total = 400 5 200 6 200 Page1 Total = 800 ***************************PAGE1 END HERE**************** 7. 200 8. 200 … | |
![]() | I recently added hsProgressbar.dll to my Program, it worked fine, but then I decided to remove it from my Computer and also remove it from the references...however..the Warning is still there? How can I completely remove it, so that I don't get the error anymore? Thanks in advance. ![]() |
How to make a tabbed web browser that uses Webkit.Net in WPF? And if possible, please include codes. And by the way, is it possible to embed a javascript engine in vb.net? | |
Guys anyone knows how to create tables at runtime? Or if it is a long story, kindly direct me to a site where I can learn more... Thanks | |
hi... I got project from my lecture. the project is create own document file editor like microsoft word(.doc) but my own document file save as my own type like(*.zc) using Visual basic.net desktop application *.zc just can read on my own application reader but other reader can't read my file … | |
I have read other posting about this and I can not figure it out. Application runs fine on the computer that I used to create it. The application has 3 functions: Button1...locate and preview an image file. Button2...creates an email with html link...creates an html page file...ftp's the image and … | |
Is exception handling useful in compile time errors logical errors and even runtime errors? | |
Hi All, I have a folder, here's the folder tree: [CODE]\---DC20120127-00000831 \---PABO20120127000017 \---AT | V20.txt | V23.txt | +---2012033 | 00000002_00000000.tif | 00000003_00000000.tif | 00000004_00000000.tif | 00000005_00000000.tif | \---INVALID IMAGES 00000001_.tif 00000002_00000001.tif 00000003_00000001.tif 00000004_00000001.tif 00000005_00000001.tif[/CODE] I have coded a program that will compare if the total count of tif in … | |
Hello. As the title states, i am unsure of which sort of loop to use in this case. my little program asks for the users input (into textbox's) the cost of a purchase and what they paid. the program is then intended to generate what change they would recieve be … | |
Hi All, I'm having a problem with this one. This is my directory tree: [CODE]MAIN FOLDER -Second Folder -Third Folder -2012011 (folder) -INVALID (folder)[/CODE] My input path in FolderBrowse is MAIN FOLDER. Now I used the code: [CODE]MsgBox(IO.Directory.GetDirectories(myFolder, SearchOption.AllDirectories)(0).ToString)[/CODE] It throws an error. I just want to process the 2012011 … | |
Hello This is my first post so I’m sorry if I ramble and don’t explain my issue clearly. I am binding a dataset (dsTest) with a table called “TempResult” to a datagrid (DatagridView1). The purpose of the datagrid is to display test labels (set elsewhere in the software) and to … | |
Good Day Programmers ^_^ i need a help... how do i Update the record based on the Date & Time?? here's the code: [CODE] Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick lblTimeOfDay.Text = Format(TimeOfDay, "hh:mm:ss tt") UpdateItem() End Sub Private Function UpdateItem() Dim xSQL As … | |
I want to delete selected column values only... I have this statement: [ICODE]strsql = "delete book1, author1, from book_Load where Book_ID_no = '" & bkIDnum.Text & "'" With sqlcmd .CommandText = strsql .Connection = sqlconn .ExecuteNonQuery() End With[/ICODE] the error is "Incorrect syntax near ','." please help me with this... … | |
hello guys. i have developed an application that graphs all kinds of mathematical functions. luckily, wolfram mathematica made my job easier. but, the real problem arised when I'am trying to deploy the application. it can't run on computers without mathematica installed. is there any way wherein i can deploy this … | |
Private Sub Button2_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Call ImageRetrieve() End Sub Private Sub ImageRetrieve() imgsave2.Update() Dim OleDbConnection1 As New System.Data.OleDb.OleDbConnection("PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=D:\Testing\DATABASE\TESTING.MDB;PERSIST SECURITY INFO=FALSE;") OleDbConnection1.Open() Dim OleDbSelectCommand1 As System.Data.OleDb.OleDbCommand = New System.Data.OleDb.OleDbCommand() Dim OleDbReader1 As System.Data.OleDb.OleDbDataReader 'Access (OleDb) OleDbSelectCommand1.CommandText = "Select h1_img,h2_img,h3_img,h1_sign,h2_sign,h3_sign from vLOCKER WHERE lockerno … |
The End.