Click here to Skip to main content
15,887,027 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionVB.NET CF Auto Installation Question Pin
Dominick Marciano15-Apr-08 7:34
professionalDominick Marciano15-Apr-08 7:34 
GeneralRe: VB.NET CF Auto Installation Question Pin
_Damian S_15-Apr-08 20:03
professional_Damian S_15-Apr-08 20:03 
GeneralRe: VB.NET CF Auto Installation Question Pin
Dominick Marciano21-Apr-08 8:36
professionalDominick Marciano21-Apr-08 8:36 
QuestionHow use threads? Pin
Orlando_Herrera15-Apr-08 7:22
Orlando_Herrera15-Apr-08 7:22 
AnswerRe: How use threads? Pin
Dave Kreskowiak15-Apr-08 8:13
mveDave Kreskowiak15-Apr-08 8:13 
GeneralRe: How use threads? Pin
Orlando_Herrera16-Apr-08 5:46
Orlando_Herrera16-Apr-08 5:46 
GeneralRe: How use threads? Pin
Dave Kreskowiak17-Apr-08 3:05
mveDave Kreskowiak17-Apr-08 3:05 
Questionerror when enter new sale datagridview show error [modified] Pin
Member 444291615-Apr-08 6:36
Member 444291615-Apr-08 6:36 
Dim subtotal As Integer<br />
<br />
        With Me<br />
<br />
            ' Me.Definition_dbDataSet.CUSTOMER_ORDER.fillbyreceipt(Me.txtReceiptNo.Text)<br />
            ' Me.CUSTOMER_ORDERTableAdapter.Update(Me.Definition_dbDataSet)<br />
            Try<br />
                Try<br />
                    subtotal = Decimal.Parse(Sell_unitpriceTextBox.Text) * Me.NumericUpDown1.Value<br />
                    Me.txtOrderNo.Text = Maxorder.ToString<br />
                    Me.txtReceiptNo.Text = MaxReceipt.ToString<br />
                    Me.txtTime.Text = .getdate()<br />
                    Me.txtTotal.Text = subtotal.ToString<br />
                    ControlSetting(True)<br />
                Catch ex As Exception<br />
                    MessageBox.Show("Please enter Quantity" & ex.Message, "ERROR")<br />
                End Try<br />
<br />
                Me.CUSTOMER_ORDERDataGridView.CurrentRow.Cells("Order_No").Value = Me.txtOrderNo.Text<br />
                ' Me.CUSTOMER_ORDERBindingSource.AddNew()<br />
<br />
                Me.CUSTOMER_ORDERDataGridView.CurrentRow.Cells("TimeDate").Value = Me.txtTime.Text<br />
                ' Me.CUSTOMER_ORDERBindingSource.AddNew()<br />
<br />
                Me.CUSTOMER_ORDERDataGridView.CurrentRow.Cells("Stock_Order").Value = Me.Item_NameComboBox.Text<br />
                ' Me.CUSTOMER_ORDERBindingSource.AddNew()<br />
<br />
                Me.CUSTOMER_ORDERDataGridView.CurrentRow.Cells("Stock_Qty").Value = Me.NumericUpDown1.Text<br />
                'Me.CUSTOMER_ORDERBindingSource.AddNew()<br />
<br />
                Me.CUSTOMER_ORDERDataGridView.CurrentRow.Cells("Amount_Paid").Value = Me.CUSTOMER_ORDERDataGridView.CurrentRow.Cells(3).Value * Sell_unitpriceTextBox.Text<br />
                strID = txtReceiptNo.Text<br />
                strOrder = txtOrderNo.Text<br />
                'txtTime.Text = Format(Date.Today, "dd/MM/yyyy")<br />
                Me.CUSTOMER_ORDERTableAdapter.InsertSales(strID, strOrder)<br />
                ' Me.CUSTOMER_ORDERTableAdapter.UpdateSale(strID, strOrder)<br />
                Me.CUSTOMER_ORDERDataGridView.CurrentRow.Cells("Amount_Paid").Value = Me.txtTotal.Text<br />
                Me.CUSTOMER_ORDERBindingSource.AddNew()<br />
                Me.CUSTOMER_ORDERTableAdapter.Update(Me.Definition_dbDataSet)<br />
            Catch ex As Exception<br />
                MessageBox.Show("" & ex.Message, "Error", MessageBoxButtons.RetryCancel)<br />
            End Try<br />
        End With

i having problem that when i choose new detail from combox to datagridview.it's gv me eror.
And i have another question that how i enter new sales in same receipt_no until i end it.without duplicated data. here my query
INSERT INTO [CUSTOMER ORDER]<br />
                      (Receipt_No, Order_no)<br />
VALUES     (?, ?)

UPDATE    [CUSTOMER ORDER]<br />
SET              Stock_Order = ?, Stock_Qty = ?, TimeDate_Order = ?, Amount_Paid = ?, Item_ID = ?<br />
WHERE     ([Receipt_No] = ?) AND ([Order_no] = ?)

i set my receipt and order_no as primary key...can some 1 help me correct it....thanks thanks thanks in advanced

modified on Tuesday, April 15, 2008 8:34 PM

GeneralRe: error when enter new sale datagridview show error Pin
Dave Kreskowiak16-Apr-08 3:21
mveDave Kreskowiak16-Apr-08 3:21 
Questionsetup and deployment in vb.net 2.0 windows application Pin
vijaylumar15-Apr-08 3:23
vijaylumar15-Apr-08 3:23 
GeneralRe: setup and deployment in vb.net 2.0 windows application Pin
Dave Kreskowiak15-Apr-08 4:04
mveDave Kreskowiak15-Apr-08 4:04 
GeneralDot Net Nuke File deletion error Pin
cincy15-Apr-08 3:18
cincy15-Apr-08 3:18 
GeneralRe: Dot Net Nuke File deletion error Pin
Dave Kreskowiak15-Apr-08 3:57
mveDave Kreskowiak15-Apr-08 3:57 
GeneralRe: Dot Net Nuke File deletion error Pin
cincy15-Apr-08 20:18
cincy15-Apr-08 20:18 
GeneralRe: Dot Net Nuke File deletion error Pin
Dave Kreskowiak16-Apr-08 3:02
mveDave Kreskowiak16-Apr-08 3:02 
QuestionSerialPort throwing uncatchable error? Pin
Chinners15-Apr-08 1:18
Chinners15-Apr-08 1:18 
GeneralRe: SerialPort throwing uncatchable error? Pin
Dave Kreskowiak15-Apr-08 1:40
mveDave Kreskowiak15-Apr-08 1:40 
GeneralRe: SerialPort throwing uncatchable error? Pin
Chinners15-Apr-08 1:48
Chinners15-Apr-08 1:48 
GeneralRe: SerialPort throwing uncatchable error? Pin
Rajesh Anuhya15-Apr-08 1:43
professionalRajesh Anuhya15-Apr-08 1:43 
GeneralRe: SerialPort throwing uncatchable error? Pin
Chinners15-Apr-08 1:59
Chinners15-Apr-08 1:59 
QuestionVB6 User mode code memory limitation Pin
Hafiz Sikander Rafiq15-Apr-08 0:29
Hafiz Sikander Rafiq15-Apr-08 0:29 
GeneralRe: VB6 User mode code memory limitation Pin
Christian Graus15-Apr-08 0:59
protectorChristian Graus15-Apr-08 0:59 
GeneralRe: VB6 User mode code memory limitation Pin
Dave Kreskowiak15-Apr-08 1:38
mveDave Kreskowiak15-Apr-08 1:38 
QuestionHow to add VFP Driver Pin
en.Mahdi14-Apr-08 23:38
en.Mahdi14-Apr-08 23:38 
GeneralRe: How to add VFP Driver Pin
Christian Graus15-Apr-08 0:03
protectorChristian Graus15-Apr-08 0:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.