20,284 Topics

Member Avatar for
Member Avatar for silaj

Hi, i connect database with vb.net and also i receive a single value from my receiver through serial port. now i want to match this single data with one field of database. how can i do it. plz help me. i have attached my code. Public Class Form1 Private Sub …

Member Avatar for bluehangook629
0
87
Member Avatar for bluehangook629

Below is my code for one of form load. I have multiple databind controls so I have multiple lines of code that fills my datagrids and databind combobox. The problem is when I debug step by step, my application performs 3 lines of codes but rest of them are skipped. …

0
83
Member Avatar for Naveen2961

Hi There, I am trying to get the Sum values of a Column and want to check if entered value in Textbox is valid. Here is my code below [CODE]mystr = ("Provider=Microsoft.JET.OLEDB.4.0;" & _ "Data Source=K:\Amrut Diary\Amrut_Diary\ADDB.mdb") con = New OleDb.OleDbConnection(mystr) con.Open() strsql = "SELECT SUM(Available_Stock) As Avstk FROM STOCKDB …

Member Avatar for hericles
0
978
Member Avatar for Cally_Law

Hi,I'm currently using vb8. i need help in coding. How can I increment a number in a textbox everytime when the form is loaded? I want that first time when the form gets loaded Company_id should appear in the textbox as NEW010101. Second time it should appear as NEW010102. Third …

Member Avatar for debasisdas
0
867
Member Avatar for Derren

hiya, What i am trying to do is save text from a number of text boxes to a user named file then subsequently be able to reload the data back into the same text boxes at a later date. so far i have this which was provided for elsewhere on …

Member Avatar for codeorder
0
257
Member Avatar for Derren

hi, So heres the deal i am still learning VB (bet you guessed that), now what i am tryiing to do is create a form with a number of text boxes (say 25) where a user can enter their own data. Which they can then save as a file and …

Member Avatar for Netcode
0
85
Member Avatar for bluehangook629

Hey guys, Im trying to include an item called "Please select ..." in a combobox which is populated using a dataadapter. As you can see below, combobox items are inserted into the item list using a tableadapter. It is followed by a set of codes that inserts "Please select ..." …

Member Avatar for bluehangook629
0
149
Member Avatar for ninelg

I have a csv file that needs to be imported into sql server using vb.net. I got it working with the following code with one exception: [code] Private Function ImportLeadFile(ByVal projectfile As String, ByVal sLeadFile As String, ByVal DATABASE As String) As Boolean Dim objConn As nsSqlClient.SqlConnection Dim ds As …

Member Avatar for t_karthik
-1
5K
Member Avatar for SammiSmi

Does anyone know some general tips for the exception ConfigurationErrorsException: Unable to open configSourceFile AppSettings.config ? Everytime the code tries to run through a line which contains My.Settings.Environment for example, it throws this error. The red code is where the exception points to. Help Please! My app.config: [CODE] <?xml version="1.0" …

0
86
Member Avatar for Jake.20

Need help in increasing the size of my array. i have this code but i don't know which of these code does not increase the size of my array even though i increment it. This is the declarations: [CODE] Dim movieArray(0) As String Dim ratingArray(0) As String Dim i As …

Member Avatar for G_Waddell
0
861
Member Avatar for lcfjoertoft

I am having difficulty with a SQL query in my project. I have 3 tables. T1: - Date - ID - Location_ID T2: - Location - Location_ID T3: - ID - Result From this I need the T1.Date and T3.Result based on Location in T2. So my I need a …

Member Avatar for Netcode
0
232
Member Avatar for khentz

Hi, currently I am creating a seat plan system. On my seat plan system, there are many workstations(around 150+ per floor). each workstation is define by a linklabel. when a user click on a particular workstation, a new form will appear. And that form will pop up to show who …

Member Avatar for G_Waddell
0
343
Member Avatar for Derren

Hiya, As the title suggest is there a way to clear multiple text boxes with a single command as opposed to : [code] textbox1.clear() textbox2.clear() . .. ... textbox3500.clear() [/code] hmm something like allthetextboxesonthisform.clear() lol if only it was that easy ;) thanks in advance

Member Avatar for Netcode
0
105
Member Avatar for Oneryavuz

i have some usercontrols in a dll and i need to use them on my other project i try to add reference method but its useless... icant see my controls on toolbox what should i do ?

Member Avatar for Oneryavuz
0
89
Member Avatar for TeresaTa

Hello anybody I am trying to update table to access database in vb.net after changing password. But I have a problem in update error as following [CODE] Dim dbCommmand As New System.Data.OleDb.OleDbCommand Dim DBConnection As New System.Data.OleDb.OleDbConnection DBConnection.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\thaeaye\Documents\Testing.mdb" dbCommmand.CommandType = CommandType.Text dbCommmand.Connection = DBConnection DBConnection.Open() dbCommmand.CommandText = …

Member Avatar for GeekByChoiCe
0
93
Member Avatar for swathys

hi, I have problem with my sql query. when i used direct insert statement in 2 different table and sort out using select statement by combining these 2 table's it perfecly give's the output that i wanted but when i apply the same method to the real application its working …

Member Avatar for swathys
0
115
Member Avatar for GibsonGuitarGuy

How do I go about writing facial recognition code for a program I'm designing? I'm using Visual Basic 2008 Express Edition and I need to implement facial recognition into my software.

Member Avatar for emond
0
1K
Member Avatar for ryan311

can anyone help me on how to done w/ this for example i choose 9/1/2011 i want to get the previous date 8/31/2011. help me please.

Member Avatar for ryan311
0
113
Member Avatar for iamjess147

What I need: I have a WPF/Vb.net application and need to delay a section of code from running, otherwise is keeps running.. I'd like to delay this section of code for 3 seconds. Problem: I am working with a scale and printer and when a weight item is placed on …

Member Avatar for codeorder
0
209
Member Avatar for RenanLazarotto

Yay guys, it's me again. I am using the code from here: [url]http://www.daniweb.com/software-development/vbnet/code/370426[/url] to sort my listview items. But I want something more 'dynamic': when I click on a header column, I want that it changes the sorting based on the column that has been clicked. here is my code: …

Member Avatar for codeorder
0
1K
Member Avatar for secretply

This is part of the last coding that codeorder helped me with. I didn't include this in the last post because I thought this was something that I was going to be able to do. Unfortunately, it is not working properly. In addition to the controls being removed, the control …

Member Avatar for secretply
0
146
Member Avatar for garrettb

Is there a way to work the web browser control for viewing off-line (Cached web pages) only? Is it possible to view cached web pages from IE9 on a web browser control off-line? The reason i am asking this question is because IE9 automatically switches from off-line mode to on-line …

0
64
Member Avatar for RenanLazarotto

Hello guys. I have an integer that is storing the result of a division between two numbers. I usually recieve an result that looks like [ICODE]5,2496874654[/ICODE]. How can I limit the variable length so it looks more 'approximated', like [ICODE]5,25[/ICODE]? Thanks in advance!

Member Avatar for RenanLazarotto
0
149
Member Avatar for VIPER5646

Hi all I'm using a dialog form with two bottons and two Radio buttons. I'm oppening this Dialog when a button is clicked on the parent form. My situattion is when the Dialog opens the code in the button event continues to execute, but I only want it to continue …

Member Avatar for VIPER5646
0
165
Member Avatar for aditya_amb

Here is my code. I get error: [B]No value given for one or more required parameters.[/B] Dim DBAdd As New OleDbCommand DBAdd.Connection = objConnection DBAdd.Connection.Open() DBAdd.CommandText = "INSERT INTO Table1 (RecordsID,Material,Component,VID,PID,DownloadPriority)VALUES(11,'Materialtexttext','ComponentTexttext','vidint','pidint',prtyint)" DBAdd.ExecuteNonQuery() I tried using update command of OLEDB Data adapters also by adding new row. But still I could …

Member Avatar for Ezzaral
0
112
Member Avatar for thamim.it
Member Avatar for Netcode
-1
2K
Member Avatar for secretply

So I have 2 picture boxes, a textbox, and a button. One of the picture boxes adds another row with the same controls but moved down when clicked and the other picture box (should) remove the same row that it was clicked on. I have PictureBoxAdd1, PictureBoxRemove1, TextBox1, and Button1 …

Member Avatar for codeorder
0
167
Member Avatar for kvandenbosch

I have a datagridview with two columns: species and variety, where the dropdown list in variety depends on the species chosen in column 1. I have no problem setting the dropdown list for a new, blank record; the problem comes when I am populating the grid with existing records. I …

0
78
Member Avatar for shers
Member Avatar for shers
0
58
Member Avatar for ginnipig

Hello all, I have a DataGridView that is being populated via SQL with one table and is being filtered by Stock Code. I need to sort the view of one Stock Code by Nutrient names, but the sequence number is in anther SQL table. it would be easy if i …

Member Avatar for ginnipig
0
130

The End.