Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
ඔයාගෙ Assignment හෝ Thesis එක හරියට හදාගමු
ErMurazor
Updated:
Saturday at 10:52 PM
Ad icon
BlackWall V2ray servers
hu KANNA
Updated:
Wednesday at 4:58 AM
Peppa Pig Family Plush Toy Set – 5 Characters
anil1961
Updated:
Sep 19, 2026
Ad icon
Express VPN PC - 1 Year Rs. 600.00
Sanathbh
Updated:
Sep 19, 2026
Ad icon
Capcut Pro 7 Days Team Plan - Rs. 3️⃣0️⃣0️⃣
Sanathbh
Updated:
Sep 19, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
VB.Net අවුලක්
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="isurutmv" data-source="post: 22377456" data-attributes="member: 470006"><p><span style="font-size: 18px">mcn vb.net walin karapu project ekak thiyenawa eke invoice eka print wena eke invoice eke items pennanna listbox ekak dala thiyenne palleha thiyenne eke code eka bn eeth invoice eke data pennanne nane bn mokakda awula</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"> [PHP]</span></p><p><span style="font-size: 18px"></span></p><p> <span style="font-size: 18px">Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click</span></p><p><span style="font-size: 18px"> Dim conp As OleDbConnection</span></p><p><span style="font-size: 18px"> Dim drp As OleDbDataReader</span></p><p><span style="font-size: 18px"> Dim comp As OleDbCommand</span></p><p><span style="font-size: 18px"> setupListView()</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"> conp = New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\ECMIS.accdb;Persist Security Info=True;Jet OLEDB:Database Password=l3nyora")</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"> conp.Open()</span></p><p><span style="font-size: 18px"> If lblQ.Text = "YES" Then</span></p><p><span style="font-size: 18px"> comp = New OleDbCommand("select ItemNumber,ItemName,ItemDescription,ItemPrice,ItemVAT,ItemDiscount,ItemQuantity,ItemTotal FROM tblQuotes WHERE QuoteNumber LIKE'%" & txtSearch.Text & "%'", conp)</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"> </span></p><p><span style="font-size: 18px"> drp = comp.ExecuteReader</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"> If drp.HasRows Then</span></p><p><span style="font-size: 18px"> While drp.Read</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"> Dim newitem As New ListViewItem</span></p><p><span style="font-size: 18px"> newitem.Text = drp.GetValue(0) '1 column</span></p><p><span style="font-size: 18px"> newitem.SubItems.Add(drp.GetValue(1)) '2 column</span></p><p><span style="font-size: 18px"> newitem.SubItems.Add(drp.GetValue(2)) '3 column</span></p><p><span style="font-size: 18px"> newitem.SubItems.Add(drp.GetValue(3)) '4 column</span></p><p><span style="font-size: 18px"> newitem.SubItems.Add(drp.GetValue(4)) '5 column</span></p><p><span style="font-size: 18px"> newitem.SubItems.Add(drp.GetValue(5)) '6 column</span></p><p><span style="font-size: 18px"> newitem.SubItems.Add(drp.GetValue(6)) '7 column</span></p><p><span style="font-size: 18px"> newitem.SubItems.Add(drp.GetValue(7)) '8 column</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"> ListView1.Items.Add(newitem)</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"> End While</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"> End If</span></p><p><span style="font-size: 18px"> Else</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"> comp = New OleDbCommand("select ItemNumber,ItemName,ItemDescription,ItemPrice,ItemVAT,ItemDiscount,ItemQuantity,ItemTotal FROM tblSales WHERE SalesNumber LIKE'%" & txtSearch.Text & "%'", conp)</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"> drp = comp.ExecuteReader</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"> If drp.HasRows Then</span></p><p><span style="font-size: 18px"> While drp.Read</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"> Dim newitem As New ListViewItem</span></p><p><span style="font-size: 18px"> newitem.Text = drp.GetValue(0) '1 column</span></p><p><span style="font-size: 18px"> newitem.SubItems.Add(drp.GetValue(1)) '2 column</span></p><p><span style="font-size: 18px"> newitem.SubItems.Add(drp.GetValue(2)) '3 column</span></p><p><span style="font-size: 18px"> newitem.SubItems.Add(drp.GetValue(3)) '4 column</span></p><p><span style="font-size: 18px"> newitem.SubItems.Add(drp.GetValue(4)) '5 column</span></p><p><span style="font-size: 18px"> newitem.SubItems.Add(drp.GetValue(5)) '6 column</span></p><p><span style="font-size: 18px"> newitem.SubItems.Add(drp.GetValue(6)) '7 column</span></p><p><span style="font-size: 18px"> newitem.SubItems.Add(drp.GetValue(7)) '8 column</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"> ListView1.Items.Add(newitem)</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"> End While</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"> End If</span></p><p><span style="font-size: 18px"> End If</span></p><p><span style="font-size: 18px"> End Sub</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"> Sub setupListView()</span></p><p><span style="font-size: 18px"> 'aad columns to listview</span></p><p><span style="font-size: 18px"> ListView1.Columns.Add("ICode", 80, HorizontalAlignment.Left)</span></p><p><span style="font-size: 18px"> ListView1.Columns.Add("Item Name", 150, HorizontalAlignment.Left)</span></p><p><span style="font-size: 18px"> ListView1.Columns.Add("Item Description", 305, HorizontalAlignment.Left)</span></p><p><span style="font-size: 18px"> ListView1.Columns.Add("Price", 100, HorizontalAlignment.Right)</span></p><p><span style="font-size: 18px"> ListView1.Columns.Add("Vat", 80, HorizontalAlignment.Right)</span></p><p><span style="font-size: 18px"> ListView1.Columns.Add("Disc", 80, HorizontalAlignment.Right)</span></p><p><span style="font-size: 18px"> ListView1.Columns.Add("Qty", 60, HorizontalAlignment.Center)</span></p><p><span style="font-size: 18px"> ListView1.Columns.Add("Total", 100, HorizontalAlignment.Right)</span></p><p><span style="font-size: 18px"> ListView1.FullRowSelect = True</span></p><p><span style="font-size: 18px"> ListView1.GridLines = True</span></p><p><span style="font-size: 18px"> 'changing column header</span></p><p><span style="font-size: 18px"> ListView1.HeaderStyle = ColumnHeaderStyle.Nonclickable</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"> </span></p><p><span style="font-size: 18px"> End Sub</span></p><p><span style="font-size: 18px"> [/PHP]</span></p></blockquote><p></p>
[QUOTE="isurutmv, post: 22377456, member: 470006"] [SIZE=5]mcn vb.net walin karapu project ekak thiyenawa eke invoice eka print wena eke invoice eke items pennanna listbox ekak dala thiyenne palleha thiyenne eke code eka bn eeth invoice eke data pennanne nane bn mokakda awula [PHP] Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Dim conp As OleDbConnection Dim drp As OleDbDataReader Dim comp As OleDbCommand setupListView() conp = New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\ECMIS.accdb;Persist Security Info=True;Jet OLEDB:Database Password=l3nyora") conp.Open() If lblQ.Text = "YES" Then comp = New OleDbCommand("select ItemNumber,ItemName,ItemDescription,ItemPrice,ItemVAT,ItemDiscount,ItemQuantity,ItemTotal FROM tblQuotes WHERE QuoteNumber LIKE'%" & txtSearch.Text & "%'", conp) drp = comp.ExecuteReader If drp.HasRows Then While drp.Read Dim newitem As New ListViewItem newitem.Text = drp.GetValue(0) '1 column newitem.SubItems.Add(drp.GetValue(1)) '2 column newitem.SubItems.Add(drp.GetValue(2)) '3 column newitem.SubItems.Add(drp.GetValue(3)) '4 column newitem.SubItems.Add(drp.GetValue(4)) '5 column newitem.SubItems.Add(drp.GetValue(5)) '6 column newitem.SubItems.Add(drp.GetValue(6)) '7 column newitem.SubItems.Add(drp.GetValue(7)) '8 column ListView1.Items.Add(newitem) End While End If Else comp = New OleDbCommand("select ItemNumber,ItemName,ItemDescription,ItemPrice,ItemVAT,ItemDiscount,ItemQuantity,ItemTotal FROM tblSales WHERE SalesNumber LIKE'%" & txtSearch.Text & "%'", conp) drp = comp.ExecuteReader If drp.HasRows Then While drp.Read Dim newitem As New ListViewItem newitem.Text = drp.GetValue(0) '1 column newitem.SubItems.Add(drp.GetValue(1)) '2 column newitem.SubItems.Add(drp.GetValue(2)) '3 column newitem.SubItems.Add(drp.GetValue(3)) '4 column newitem.SubItems.Add(drp.GetValue(4)) '5 column newitem.SubItems.Add(drp.GetValue(5)) '6 column newitem.SubItems.Add(drp.GetValue(6)) '7 column newitem.SubItems.Add(drp.GetValue(7)) '8 column ListView1.Items.Add(newitem) End While End If End If End Sub Sub setupListView() 'aad columns to listview ListView1.Columns.Add("ICode", 80, HorizontalAlignment.Left) ListView1.Columns.Add("Item Name", 150, HorizontalAlignment.Left) ListView1.Columns.Add("Item Description", 305, HorizontalAlignment.Left) ListView1.Columns.Add("Price", 100, HorizontalAlignment.Right) ListView1.Columns.Add("Vat", 80, HorizontalAlignment.Right) ListView1.Columns.Add("Disc", 80, HorizontalAlignment.Right) ListView1.Columns.Add("Qty", 60, HorizontalAlignment.Center) ListView1.Columns.Add("Total", 100, HorizontalAlignment.Right) ListView1.FullRowSelect = True ListView1.GridLines = True 'changing column header ListView1.HeaderStyle = ColumnHeaderStyle.Nonclickable End Sub [/PHP][/SIZE] [/QUOTE]
Insert quotes…
Verification
Asuwa dahayen wadi kalama keeyada?
Post reply
Top
Bottom