Click here to Skip to main content
15,919,613 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: access not installed Pin
Charles Wolfe6-Sep-06 2:39
Charles Wolfe6-Sep-06 2:39 
Questionexplorer drop handler! (fast answer please) Pin
dotnetmate22-Aug-06 10:28
dotnetmate22-Aug-06 10:28 
QuestionBest way to show an editable one to many relationship Pin
Chris Turnbough22-Aug-06 10:01
Chris Turnbough22-Aug-06 10:01 
Questiondatagrid Pin
md_refay22-Aug-06 9:53
md_refay22-Aug-06 9:53 
Questionparse string with VBScript Pin
kani9822-Aug-06 6:59
kani9822-Aug-06 6:59 
AnswerRe: parse string with VBScript Pin
quacks_a_lot22-Aug-06 10:51
quacks_a_lot22-Aug-06 10:51 
AnswerRe: parse string with VBScript Pin
Dave Kreskowiak23-Aug-06 6:40
mveDave Kreskowiak23-Aug-06 6:40 
QuestionDynamic CheckBoxList Creation Pin
GaryT8022-Aug-06 6:12
GaryT8022-Aug-06 6:12 
I am trying to get the Page_load event to dynamically update my checkboxlist values to correspond with the columns in my grid view. the code I have is as follows:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Dim listItemCount As Integer = -1
Dim totalColNum As Integer = GridView1.Columns.Count
If Page.IsPostBack Then
''Do Something
Else
While listItemCount <= totalColNum
listItemCount += 1
CheckBoxList2.Items.Add(GridView1.Columns(listItemCount).ToString)
End While
End If
End Sub

But I am getting this error:

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Any ideas??


AnswerRe: Dynamic CheckBoxList Creation Pin
quacks_a_lot22-Aug-06 10:55
quacks_a_lot22-Aug-06 10:55 
AnswerRe: Dynamic CheckBoxList Creation Pin
GaryT8022-Aug-06 11:58
GaryT8022-Aug-06 11:58 
Questionvb.net Pin
vidhu raj22-Aug-06 5:59
vidhu raj22-Aug-06 5:59 
AnswerRe: vb.net Pin
quacks_a_lot22-Aug-06 11:01
quacks_a_lot22-Aug-06 11:01 
GeneralRe: vb.net Pin
vidhu raj22-Aug-06 11:06
vidhu raj22-Aug-06 11:06 
GeneralRe: vb.net Pin
quacks_a_lot22-Aug-06 11:12
quacks_a_lot22-Aug-06 11:12 
Questionassembly of various project into single project Pin
omi9822-Aug-06 5:46
omi9822-Aug-06 5:46 
AnswerRe: assembly of various project into single project Pin
Christian Graus22-Aug-06 11:41
protectorChristian Graus22-Aug-06 11:41 
QuestionReport Text spilling into text below Pin
dptalt22-Aug-06 5:37
dptalt22-Aug-06 5:37 
Questionwwwroot Pin
ciscokid5522-Aug-06 5:08
ciscokid5522-Aug-06 5:08 
AnswerRe: wwwroot Pin
Dustin Metzgar22-Aug-06 5:24
Dustin Metzgar22-Aug-06 5:24 
GeneralRe: wwwroot Pin
ciscokid5522-Aug-06 5:28
ciscokid5522-Aug-06 5:28 
QuestionHow to hide VScrollBar or HScrollBar? Pin
jgyie222-Aug-06 5:02
jgyie222-Aug-06 5:02 
Questiontoolbar over inherited form. Pin
popalzai22-Aug-06 4:57
popalzai22-Aug-06 4:57 
QuestionDelete old file [modified] Pin
VK-Cadec22-Aug-06 4:31
VK-Cadec22-Aug-06 4:31 
AnswerRe: Delete old file Pin
Ray Cassick22-Aug-06 16:20
Ray Cassick22-Aug-06 16:20 
Questionambiguous namespace Pin
BlueKooZZZZZZZZ22-Aug-06 4:11
BlueKooZZZZZZZZ22-Aug-06 4:11 

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.