20,285 Topics

Member Avatar for
Member Avatar for Papa_Don

Group, I'm using `System.IO.File.Move` to move an existing file into another folder. However it the program is stopping at this point with the error message "The process cannot access this file because is being used by another process". Unfortunately I can't find "the other process". For the record, I've also …

Member Avatar for Papa_Don
0
1K
Member Avatar for Satyam_1

HI, I have a form1 with datagridview, and same datagridview in form2. both have databindingsource so when I update any data in form1 it should reflect the changes in form2, when both are open. Here is some what could i get, but its not refreshing the data. form 2 load …

Member Avatar for altjen
0
355
Member Avatar for paul1145

In the code below, I'm trying (works) to insert a mail message before the signature line. With each new email within a run, the email new window flashes on the user's desktop. I'd like to minimize to outlook window to reduce the 'flashing'. The email is sent correctly but I …

Member Avatar for paul1145
0
414
Member Avatar for Pompy

Hi im trying to do this project for class on functions. I am little confused on what i am doing wrong. Here is the assignment 1) Write a program to calculate the wind chill. The wind chill is calculated by using the ambient temperature and the wind speed. Wind chill …

Member Avatar for Santanu.Das
0
240
Member Avatar for kayecng

In my windows form, I have a combo box which is populated with (part code)values from my database and I'm finding it hard to set each equivalent (part name)value to a text box which is in the same table. I was able to populate combo box values using the code …

Member Avatar for kayecng
0
2K
Member Avatar for akuikhwan94

My tables in MS Access doesn't have any change which it did not update the record that I entered in Visual Studio.. This is my code. Private Sub btnSubmit_Click(sender As Object, e As EventArgs) Handles btnSubmit.Click On Error GoTo saveErr RequestSoftwareBindingSource.EndEdit() RequestSoftwareTableAdapter.Update(FYPDataSet.RequestSoftware) MessageBox.Show("Your request has been submitted.", "Thank you", MessageBoxButtons.OK, …

Member Avatar for djjeavons
0
494
Member Avatar for leon18107

Hi !! I would seek help to do the following: I'm working on an application for Pocket PC with visual studio 2005 in which over the contents of a txt file in a DataGrid (No DatadridView); I would like to know how the whole contents of the DataGrid to the …

0
103
Member Avatar for wilsonchama

Hi guys, I am trying to update a single column in an already existing record with a value in a textbox in Access database using VB.NET 2008 express edition. This is how it should happen, combo box is drawing product IDs from the table and two textboxes display product description …

Member Avatar for JerrimePatient
0
2K
Member Avatar for webber2015

Hello, we have to create a football scoreboard in Visual Basic. Purpose: The application calculates the points scored during a football game by one team Requirements: 1. The user clicks the enter score button in an input box object to enter a score after the football team scores 1. Each …

Member Avatar for hericles
0
489
Member Avatar for webber2015

Little League Batting Average Windows Application: Finds the avg batting average of the starting line-up of nine little league baseball players. The user enters the present batting avg of each of the nine players to compute the team batting avg. 1.The user clicks the Enter Batting Averages button to enter …

Member Avatar for Reverend Jim
0
453
Member Avatar for jez9

I tried to make a setup file wherein i want to install and unistall the application/system that i made but when i try to run the application and i tried to save, edit, order and other stuff in the application it says "Operation must use an updateable query" i use …

Member Avatar for Santanu.Das
0
256
Member Avatar for autoXP

need some assistance. I am currently learning vb.net with sql. I have two textboxes (txtValue and txtText) , a dropdownlist (ddl1) and save button (btnAdd). I insert value to txtValue and txtText (eg: txtValue: A and txtText: Apple). when i click button Add, The value will display in dropdownlist (like …

Member Avatar for autoXP
0
446
Member Avatar for rnyamonga

Hi guys, I need help with some homework... hopefully this is the right forum. So my last project assignment is making a shopping cart and having the user add, remove items therefrom. I am having a problem adjusting the totals after the items get removed from the cart: Using Lists …

Member Avatar for rnyamonga
0
728
Member Avatar for paul1145

Public Function setEmailSend(ByVal sSubject As String, ByVal sBody As String, _ ByVal sTo As String) As Boolean Dim oApp As Outlook._Application Dim oMsg As Outlook._MailItem setEmailSend = False oApp = New Outlook.Application oMsg = CType(oApp.CreateItem(Outlook.OlItemType.olMailItem), Outlook._MailItem) oMsg.BodyFormat = Outlook.OlBodyFormat.olFormatRichText oMsg.Subject = sSubject oMsg.To = sTo 'here I need the current …

Member Avatar for paul1145
0
669
Member Avatar for autoXP

I need some assistance here. I currently learning and i would like to create a simple webpage (as a hobby). I have two textboxes (textbox1 and textbox2) , a dropdownlist (ddlist) and save button (btnSave). I insert value to textbox1 and textbox2 (eg: textbox1: A and textbox2: Apple). when i …

Member Avatar for autoXP
0
238
Member Avatar for westsiderailway

hi there, Dim queryString As String = "select avg(pumpnum) from petrol_table" Using adapter As New SqlDataAdapter(queryString, connectionString) Dim table As New DataTable adapter.Fill(table) Dim row As DataRow = table.Rows(0) TextBox5.Text = row.ToString as the code stands now, all i get in the textbox is "system.data.datarow" the column called "pumpnum" is …

Member Avatar for westsiderailway
0
3K
Member Avatar for karodhill

a)I am working on a payroll program The first base class is bonus the class should contain 2 public properties salesid and sales. Include a default constructor and a parameeterized constructor in the class.Also include a a getbonus method(function) that calculates a salespersons bonus using the formula sales*0.05 b) create …

Member Avatar for karodhill
0
251
Member Avatar for PM312

I am trying to update pdf file to sql but getting error (line 17) as **operator '&' is not defined for types 'string' and '1-dimensional array of byte'** on beow line cmd.CommandText = "UPDATE PDC_CHQ_IN_HAND set PDC_CHQ_IN_HAND.PDF='" & data & "'WHERE PDC_CHQ_IN_HAND.RefNo='" & TxtRefNo.Text & "'" * my code is* …

Member Avatar for PM312
0
3K
Member Avatar for westsiderailway

Hello everyone, Dim SI As String = "" SI = CheckedListBox1.SelectedItem Dim TextcommandSQL As String = "" Dim myCOLUMN As String = "" myCOLUMN = ComboBox1.SelectedItem TextcommandSQL = "SELECT * FROM test_table where " & myCOLUMN & " = " & SI MsgBox(TextcommandSQL) Dim con As New SqlConnection con.ConnectionString = …

Member Avatar for westsiderailway
0
372
Member Avatar for imti321

I am getting this error while trying to login to my school managment software.It gives error message when i dont write anything in username and password but when i type correct login details it gives this error An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll Additional information: A connection …

Member Avatar for imti321
0
231
Member Avatar for Yuki_1

Hi,I would like to do a sorting when i had add new record,the new record must shown on the top of datagridview.It will always show latest record on top of the others old records.I had try several method that found from website but still cannot work!!! **code for load database …

Member Avatar for djjeavons
0
302
Member Avatar for Eugyn

In my database there are two tables: the *CustOrder* table and the *Product* table. In my CustOrder winform I have a Product combobox, bound in this way : cbxProductCode.DataBindings.Add(New Binding("SelectedValue", ds1, "CustOrder.ProductCode")) and the combobox items comes with the following code: With cbxProductCode .DataSource = ds1.Tables("Product") .ValueMember = "ProductCode" .DisplayMember …

0
73
Member Avatar for Quazy

Hello I am creating a little application, using VB.net, and Access database. I want to count the number of records whitch have more than 6 hours difference between records. Is it possible to have a query to count the number of recordset where the "Time End" and "Time Start" of …

Member Avatar for Quazy
0
226
Member Avatar for Satyam_1

HI I have vb.net with ms access database application. I want to create log in form Here is my code but when enter the details and hit Login button it says"datatype mismatch error" Dim con As New OleDbConnection Dim cmd As New OleDbCommand Dim rd As OleDbDataReader con.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data …

Member Avatar for altjen
0
253
Member Avatar for chotep

Hi.. I have this problem in vb 2008 with this MDI parent form.. I know that you can't put any imageBackground for this, so I've just put a pictureBox the size of the MDIparent form to make it look like its background. But when I'm opening another form(it is just …

Member Avatar for melvinbelo
0
2K
Member Avatar for jez9

ive got a table: code, stocksretail, stocksws and numexpected for example code: 0001, stocksretail : 24, stocksws: 1, numexpected :24 (numexpected = 1wholesale that contains 24pcs in retail) code: 0002, stocksretail : 24, stocksws: 1, numexpected :24 my problem is when i buy the two items above, the stocksretail should …

Member Avatar for jez9
0
510
Member Avatar for jatin24

I'm facing this strange problem while working with DataGridView. In my application that i'm building, there is a form with some tabs, and im using the dataGridView Controls in some of the tabs. These dataGridView controls have already been configured, with a number of columns already added, and has been …

Member Avatar for sebbu
0
2K
Member Avatar for fugio

hi all, I tried to extract the files and corrupted file, the special characters you can see. (Rar! ϐs tÀ/ õ 3 ZÌtòf‰”F3 app.config ð{‰sͼ”¸§Þp o߁Á›å 8Þcm8rAêOu±§Ñº“a¡‹SMk$I±4¤kó{ø) how to files may display the correct content thanks

Member Avatar for rubberman
0
73
Member Avatar for Yuki_1

Hi, in my project i need to update the attn_dateTimeOut in database.After i updated it will automatic delete the specific row record that had been updated. I had two question: 1) in my database there are a few table is assign not null."attn_dateTimeOut" is a table that haven insert any …

0
106
Member Avatar for naz1234

Hi, how to dock this label to bottom ? ![Chart.PNG](/attachments/large/3/ca00538d0c8223d401e1e81bfdf00d7d.PNG "align-center") and how to remove all this line in chart ? ![21.PNG](/attachments/large/3/64a2fe2fca2f21051e29c0f69d4889da.PNG "align-center") Code : Chart1.ChartAreas(0).AxisX.Interval = 1 Chart1.ChartAreas(0).AxisX.IntervalOffset = 1

0
93

The End.