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
Power Lifting Lever Belt
SkullVamp
Updated:
Yesterday at 10:32 PM
Ad icon
port.lk Domain for sale
Lankan-Tech
Updated:
Yesterday at 3:55 PM
Colombo
Kaduwela - Two Storey House for Sale
dilrasan
Updated:
Thursday at 2:23 PM
Ad icon
Wechat qr verification
Pawan2005
Updated:
Thursday at 1:28 AM
🚀 GOOGLE AI PRO 18 MONTHS ACTIVATION 🚀
sayuru bandara
Updated:
Wednesday at 5:34 PM
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
Education
vb.net + ms access
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="Pathumpiyasa" data-source="post: 17182105" data-attributes="member: 487538"><p><strong>if you need more help contact me</strong></p><p></p><p>Public Class MyListItem</p><p> Private mText As String</p><p> Private mValue As String</p><p></p><p> Public Sub New(ByVal pText As String, ByVal pValue As String)</p><p> mText = pText</p><p> mValue = pValue</p><p> End Sub</p><p></p><p> Public ReadOnly Property Text() As String</p><p> Get</p><p> Return mText</p><p> End Get</p><p> End Property</p><p></p><p> Public ReadOnly Property Value() As String</p><p> Get</p><p> Return mValue</p><p> End Get</p><p> End Property</p><p></p><p> Public Overrides Function ToString() As String</p><p> Return mText</p><p> End Function</p><p>End Class</p><p></p><p>---------SET VALUE-------------------------------------------------------</p><p></p><p>DadaReader = SqlSelect("select * from Paymentrule")</p><p> If DadaReader.HasRows Then</p><p> Do While DadaReader.Read</p><p> cmboPaymentrule.DisplayMember = DadaReader("name")</p><p> cmboPaymentrule.ValueMember = DadaReader("PaymentruleID")</p><p> cmboPaymentrule.Items.Add(New MyListItem(DadaReader("name"), DadaReader("PaymentruleID")))</p><p> Loop</p><p> End If</p><p></p><p>-----GET Value------------------------------------------------------------------------</p><p> Dim Paymentruleid As MyListItem = CType(cmboPaymentrule.SelectedItem, MyListItem)</p><p></p><p>aa =Paymentruleid.Value</p></blockquote><p></p>
[QUOTE="Pathumpiyasa, post: 17182105, member: 487538"] [b]if you need more help contact me[/b] Public Class MyListItem Private mText As String Private mValue As String Public Sub New(ByVal pText As String, ByVal pValue As String) mText = pText mValue = pValue End Sub Public ReadOnly Property Text() As String Get Return mText End Get End Property Public ReadOnly Property Value() As String Get Return mValue End Get End Property Public Overrides Function ToString() As String Return mText End Function End Class ---------SET VALUE------------------------------------------------------- DadaReader = SqlSelect("select * from Paymentrule") If DadaReader.HasRows Then Do While DadaReader.Read cmboPaymentrule.DisplayMember = DadaReader("name") cmboPaymentrule.ValueMember = DadaReader("PaymentruleID") cmboPaymentrule.Items.Add(New MyListItem(DadaReader("name"), DadaReader("PaymentruleID"))) Loop End If -----GET Value------------------------------------------------------------------------ Dim Paymentruleid As MyListItem = CType(cmboPaymentrule.SelectedItem, MyListItem) aa =Paymentruleid.Value [/QUOTE]
Insert quotes…
Verification
Nawa warak dahaya keeyada? (Namaya wadi kireema dahaya)
Post reply
Top
Bottom