Click here to Skip to main content
16,011,538 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: VB6 Lost Code - DLL Help Pin
Scott Dorman8-Oct-08 7:44
professionalScott Dorman8-Oct-08 7:44 
AnswerRe: VB6 Lost Code - DLL Help Pin
Jon_Boy8-Oct-08 13:19
Jon_Boy8-Oct-08 13:19 
AnswerRe: VB6 Lost Code - DLL Help Pin
Tim Carmichael9-Oct-08 3:51
Tim Carmichael9-Oct-08 3:51 
QuestionTimer problem with windows service Pin
Ma tju7-Oct-08 21:29
Ma tju7-Oct-08 21:29 
AnswerRe: Timer problem with windows service Pin
HemJoshi8-Oct-08 0:04
HemJoshi8-Oct-08 0:04 
AnswerRe: Timer problem with windows service Pin
Dave Kreskowiak8-Oct-08 2:09
mveDave Kreskowiak8-Oct-08 2:09 
GeneralRe: Timer problem with windows service Pin
Ma tju8-Oct-08 18:48
Ma tju8-Oct-08 18:48 
QuestionHow to get the value of dropdown list Pin
meki_21187-Oct-08 20:26
meki_21187-Oct-08 20:26 
hi, this is kinda simple in vb6 but in vb.net its a different story. I'm trying to get the
value of the select item in my dropdown list box and try to display the selected item in a label or textbox but I can't find a way to do it. Can anyone help me with this problem?

Here is the sample code I've made to do the thing.


Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim DbOraConnection As New DBConnection


drpHOList.DataSource = DbOraConnection.stnOraConnect
drpHOList.DataValueField = ("PURCEN_NAME")
drpHOList.DataBind()

End Sub


Protected Sub drpHOList_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles drpHOList.SelectedIndexChanged

'lblname.Text = drpHOList.SelectedValue
If Not Page.IsPostBack Then
lblname.Text = drpHOList.SelectedItem.Value
End If

End Sub

Hope that you can help me.

Thank you in advance. Smile | :)
AnswerRe: How to get the value of dropdown list Pin
nishkarsh_k8-Oct-08 0:19
nishkarsh_k8-Oct-08 0:19 
GeneralRe: How to get the value of dropdown list Pin
meki_21188-Oct-08 15:29
meki_21188-Oct-08 15:29 
GeneralRe: How to get the value of dropdown list Pin
nishkarsh_k10-Oct-08 22:11
nishkarsh_k10-Oct-08 22:11 
QuestionHow to use Timer control Pin
Johndas7-Oct-08 19:46
Johndas7-Oct-08 19:46 
AnswerRe: How to use Timer control Pin
Rupesh Kumar Swami7-Oct-08 20:05
Rupesh Kumar Swami7-Oct-08 20:05 
GeneralRe: How to use Timer control Pin
Johndas7-Oct-08 20:31
Johndas7-Oct-08 20:31 
Questioni need to make a sha512 Pin
moonshaddow7-Oct-08 18:26
moonshaddow7-Oct-08 18:26 
AnswerRe: i need to make a sha512 Pin
Dave Kreskowiak7-Oct-08 18:44
mveDave Kreskowiak7-Oct-08 18:44 
QuestionRe: i need to make a sha512 Pin
moonshaddow7-Oct-08 19:27
moonshaddow7-Oct-08 19:27 
AnswerRe: i need to make a sha512 Pin
Ashfield7-Oct-08 21:51
Ashfield7-Oct-08 21:51 
AnswerRe: i need to make a sha512 Pin
Dave Kreskowiak8-Oct-08 2:06
mveDave Kreskowiak8-Oct-08 2:06 
AnswerRe: i need to make a sha512 Pin
Mark Churchill8-Oct-08 17:04
Mark Churchill8-Oct-08 17:04 
AnswerRe: i need to make a sha512 Pin
Colin Angus Mackay8-Oct-08 2:12
Colin Angus Mackay8-Oct-08 2:12 
AnswerRe: i need to make a sha512 Pin
jzonthemtn8-Oct-08 3:09
jzonthemtn8-Oct-08 3:09 
AnswerRe: i need to make a sha512 Pin
moonshaddow8-Oct-08 12:52
moonshaddow8-Oct-08 12:52 
Question[Message Deleted] Pin
vTeng Lee7-Oct-08 16:56
vTeng Lee7-Oct-08 16:56 
AnswerRe: Where Can I Download A Visual Basic.NET(VB.NET) Multilayer Feedforward Neural Network With Backpropagation Algorithm PinPopular
Dave Kreskowiak7-Oct-08 18:47
mveDave Kreskowiak7-Oct-08 18:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.