Jump to content
Xtreme .Net Talk

mancroft

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by mancroft

  1. Checkbox event handler problem Hello I am trying to set up an event handler to detect clicks on checkboxes IN A PANEL. The watch window shows two strange outputs: 1. Addhandler ... expression expected 2. CheckBoxx(intCounter).CheckedChanged ... 'CheckedChanged' is not a member of 'CheckBox' Anyway, it isn't working. Any ideas? Thank you. Cut-down code: Private Sub refreshprices_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Click Dim numberofprices As Integer = (CurrentMarket.prices.Length) Dim CheckBoxx(numberofprices) As CheckBox Dim Panel1 As New Panel Panel1.Location = New Point(10, 30) Panel1.Size = New Size(400, 350) Me.Controls.Add(Panel1) For intCounter As Integer = 0 To CurrentMarket.prices.Length - 1 CheckBoxx(intCounter) = New CheckBox CheckBoxx(intCounter).Size = New Size(15, 15) CheckBoxx(intCounter).Location = New Point(20, spaceCounter) Panel1.Controls.Add(CheckBoxx(intCounter)) AddHandler CheckBoxx(intCounter).CheckedChanged, AddressOf bxCheckedHandler Next End Sub Private Sub bxCheckedHandler(ByVal Sender As Object, ByVal e As System.EventArgs) MessageBox.Show(Sender.Text) End Sub
  2. And how do I get""a reference to the DLL containing "com""?
  3. Namespace or type specified cannot be found. Hello I am trying to set up a web services program in Visual Basic 2005 Express Beta 2. At the top of login.vb I have: Imports com.thesite.services This corresponds to the web reference "com.thesite.services" in the Solution Explorer Web References folder. BUT I am getting the following error: Error 2 Namespace or type specified in the Imports 'com.thesite.services' cannot be found. Make sure the name space or the type is defined and it doesn't contain other aliases. Any ideas as to the cause? Thanks.
×
×
  • Create New...