Click here to Skip to main content
15,904,877 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionpassing parameters to crystal report problem Pin
microuser_200019-Feb-06 23:47
microuser_200019-Feb-06 23:47 
QuestionSystem.Xml.XmlException Pin
DJLarZ19-Feb-06 23:30
DJLarZ19-Feb-06 23:30 
AnswerRe: System.Xml.XmlException Pin
Dave Kreskowiak20-Feb-06 4:58
mveDave Kreskowiak20-Feb-06 4:58 
QuestionAccessing Mainframe from VB Pin
niraj_mall19-Feb-06 23:00
niraj_mall19-Feb-06 23:00 
AnswerRe: Accessing Mainframe from VB Pin
Dave Kreskowiak20-Feb-06 4:53
mveDave Kreskowiak20-Feb-06 4:53 
QuestionVB. Net OO? Pin
MatthysDT19-Feb-06 22:50
MatthysDT19-Feb-06 22:50 
AnswerRe: VB. Net OO? Pin
Roy Heil20-Feb-06 3:24
professionalRoy Heil20-Feb-06 3:24 
QuestionWhy no event handler for Listbox control? Pin
KaKa'19-Feb-06 22:44
KaKa'19-Feb-06 22:44 
Hi,
I am creating a web parts control containing a listbox, a button and a context menu using visual basic.net. I have created both controls and would like to add a selectionIndexChanged event handler for the listbox but the intellisense list did not display the listbox control.

Here is a code snippet:

Protected Overrides Sub CreateChildControls()

listbox1 = new listbox //adding a listbox control
listbox1.ID = "List1"
listitem1.Text = "Testing"
listbox1.Items.Add(listitem1)
Me.Controls.Add(listbox1)
//intellisense didnt display the listbox for event handling! [?]

button1 = new button //adding a button control
button1.ID = "Button1"
button1.Text = "Test"
Me.Controls.Add(button1)
AddHandler button1.Click, AddressOf button1_Click //intellisense did include the button control for event handling

End Sub

How do I allow event handling for the listbox? It seems that vb was unable to recognise the listbox for AddHandler
AnswerRe: Why no event handler for Listbox control? Pin
Dave Kreskowiak20-Feb-06 4:48
mveDave Kreskowiak20-Feb-06 4:48 
AnswerRe: Why no event handler for Listbox control? Pin
Craster20-Feb-06 4:54
Craster20-Feb-06 4:54 
GeneralRe: Why no event handler for Listbox control? Pin
KaKa'20-Feb-06 15:30
KaKa'20-Feb-06 15:30 
QuestionCompare Two Email in VB.NET Pin
cylix200019-Feb-06 21:42
cylix200019-Feb-06 21:42 
QuestionImplementing BeginUpdate in form? Pin
matsnas19-Feb-06 21:16
matsnas19-Feb-06 21:16 
AnswerRe: Implementing BeginUpdate in form? Pin
Dave Kreskowiak20-Feb-06 4:40
mveDave Kreskowiak20-Feb-06 4:40 
QuestionLoading Command prompt from vb6 Pin
miftha19-Feb-06 20:56
miftha19-Feb-06 20:56 
AnswerRe: Loading Command prompt from vb6 Pin
PremalathaP20-Feb-06 1:16
PremalathaP20-Feb-06 1:16 
AnswerRe: Loading Command prompt from vb6 Pin
Dave Kreskowiak20-Feb-06 4:30
mveDave Kreskowiak20-Feb-06 4:30 
QuestionHELP.. inheriting user controls Pin
john_eight19-Feb-06 16:41
john_eight19-Feb-06 16:41 
Question.net 2005 how to solve warning problem? Pin
ah Chung19-Feb-06 15:16
ah Chung19-Feb-06 15:16 
AnswerRe: .net 2005 how to solve warning problem? Pin
Dave Kreskowiak19-Feb-06 15:35
mveDave Kreskowiak19-Feb-06 15:35 
GeneralRe: .net 2005 how to solve warning problem? Pin
ah Chung19-Feb-06 18:11
ah Chung19-Feb-06 18:11 
QuestionWinforms DataGrid with multi-line column headers - how?! Pin
nzmike19-Feb-06 15:13
nzmike19-Feb-06 15:13 
AnswerRe: Winforms DataGrid with multi-line column headers - how?! Pin
Dave Kreskowiak19-Feb-06 16:51
mveDave Kreskowiak19-Feb-06 16:51 
GeneralRe: Winforms DataGrid with multi-line column headers - how?! Pin
nzmike21-Feb-06 10:48
nzmike21-Feb-06 10:48 
GeneralRe: Winforms DataGrid with multi-line column headers - how?! Pin
Dave Kreskowiak21-Feb-06 15:52
mveDave Kreskowiak21-Feb-06 15:52 

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.