| | |
need some res thread from u all
![]() |
•
•
Join Date: Mar 2008
Posts: 17
Reputation:
Solved Threads: 3
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
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
![]() |
Similar Threads
- my IE has been hijacked by res://mbnuq.dll/index.html#96676 (Viruses, Spyware and other Nasties)
- IE hijacked-> res://sp.html#96676 (Viruses, Spyware and other Nasties)
- homepage set to res://jlxzg.dll/index.html#96676 (Viruses, Spyware and other Nasties)
- Yet another about:blank thread (Viruses, Spyware and other Nasties)
- phpBB thread archive (PHP)
Other Threads in the VB.NET Forum
- Previous Thread: Vb.net webbrowser help?
- Next Thread: vb.net designing help
Views: 247 | Replies: 0
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
.net 2005 2008 access application array arrays basic browser button buttons c# center client code combobox connection control convert crystal crystalreport data database datagrid datagrid-enter datagridview date design designer dissertation dissertations dosconsolevb.net error excel file function html image images insert leave listview login mobile ms msaccess mssqlbackend mysql navigate net networking openxml page path picturebox port position print printing problem report save savedialog security serial server settings shutdown sms socket sorting sql statement studio survey syntax textbox time timer timespan upload user usercontol validation vb vb.net vb.netcode vb2008 vbnet view visual visualbasic visualbasic.net visualstudio.net visualstudio2008 web webbrowser windows wpf xml





