| | |
need some res thread from u all
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
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
| Thread Tools | Search this Thread |
.net .net2008 30minutes 2005 2008 access account arithmetic array basic binary bing button buttons center check code component connectionstring crystalreport data database databasesearch datagrid datagridview date design dissertation dissertations dissertationthesis dropdownlist excel fade file-dialog filter folder ftp generatetags hardcopy image images input insert intel internet login mobile monitor ms net networking objects output panel passingparameters peertopeervideostreaming picturebox picturebox1 port position printing problem problemwithinstallation project reports" searchvb.net select serial shutdown soap string survey tcp temperature text textbox timer timespan toolbox trim update updown user usercontrol vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web winforms wpf year





