need some res thread from u all

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Mar 2008
Posts: 17
Reputation: ravindransrm is an unknown quantity at this point 
Solved Threads: 3
ravindransrm ravindransrm is offline Offline
Newbie Poster

need some res thread from u all

 
0
  #1
May 3rd, 2009
hi
im working on windows application.vb.net
In this Application iam using two forms
one is invoice form
other one is search form
first form one find button used to i will click button search form showme,
my search form i am using datagridview datagridview some field product id,product name,price list i will double click product id select row value display first form text Box 's that is invoice form

first form invoice find button code

Dim ProductSearch As New ProductSearch
' ProductSearch.MdiParent = Me
ProductSearch.Show()

this is my coding for search form
datagridview_doubleclick write
con.Open()
Dim str As String
Dim msg As String
msg = ""
Dim pid As Integer
Dim inv As New InvoiceEntry

inv.Show()
str = "Select * From ProductClas where Product_CID=" + DataGridView1.Rows(e.RowIndex).Cells(0).Value.ToString + ""
cmd = New OleDbCommand(str, con)
dr = cmd.ExecuteReader
If Trim(msg) = "" Then
If dr.Read Then
pid = dr.Item("Product_CID")
TextBox1.Text = pid
inv.Txt_InvProductCode.Text = dr.Item("Product_CID")
inv.Txt_InvProductname.Text = dr.Item("Product_CName")
inv.Txt_InvProductPrice.Text = dr.Item("Unit_Price")
End If

End If
con.Close()

data will be retreiveing correctly. but it is opening in a new invoice form each time but already old invoice form is opened , the new invoice form should not be opened and data should be retrieved in old the invoice form which is already opened
how should i do this
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC