Click here to Skip to main content
15,895,656 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to insert an ID number to another table column Pin
Wayne Gaylard31-Aug-12 0:19
professionalWayne Gaylard31-Aug-12 0:19 
GeneralRe: How to insert an ID number to another table column Pin
garyu871-Sep-12 20:22
garyu871-Sep-12 20:22 
QuestionRemove controls from a form using For Each Pin
Steven St. John30-Aug-12 5:30
Steven St. John30-Aug-12 5:30 
AnswerRe: Remove controls from a form using For Each Pin
ChandraRam30-Aug-12 8:03
ChandraRam30-Aug-12 8:03 
GeneralRe: Remove controls from a form using For Each Pin
Steven St. John30-Aug-12 12:23
Steven St. John30-Aug-12 12:23 
AnswerRe: Remove controls from a form using For Each Pin
kureigu maikeru31-Aug-12 2:33
kureigu maikeru31-Aug-12 2:33 
GeneralRe: Remove controls from a form using For Each Pin
Steven St. John31-Aug-12 4:15
Steven St. John31-Aug-12 4:15 
GeneralRe: Remove controls from a form using For Each Pin
Simon_Whale31-Aug-12 4:43
Simon_Whale31-Aug-12 4:43 
depends on how you attempt to remove the control.

if you use

VB
For Each ctrl as Control in Me.Controls
Next


it complains at runtime that the collection has changed. but as someone else pointed out using a pointer variable and moving from the end of the list to the start i.e.

VB
dim NumberOfControl as Integer = Me.Controls.Count

for Counter as integer = 0 to NumberOfControls step -1
 if typeof ctrl is picturebox then
  'do stuff
 end if
Next


it doesn't give you any hassle like the for each approach
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch

GeneralRe: Remove controls from a form using For Each Pin
ChandraRam31-Aug-12 8:18
ChandraRam31-Aug-12 8:18 
GeneralRe: Remove controls from a form using For Each Pin
Simon_Whale31-Aug-12 9:04
Simon_Whale31-Aug-12 9:04 
GeneralRe: Remove controls from a form using For Each Pin
Steven St. John1-Sep-12 3:52
Steven St. John1-Sep-12 3:52 
QuestionWPF: delete item per Drag&Drop Pin
Christopher James Kleinheinz29-Aug-12 21:07
Christopher James Kleinheinz29-Aug-12 21:07 
AnswerRe: WPF: delete item per Drag&Drop Pin
Eddy Vluggen30-Aug-12 3:25
professionalEddy Vluggen30-Aug-12 3:25 
AnswerRe: WPF: delete item per Drag&Drop Pin
Bert Mitton31-Aug-12 6:33
professionalBert Mitton31-Aug-12 6:33 
QuestionVB.NET: How to merge multiple file into one CSV file? Pin
stevelk29-Aug-12 21:04
stevelk29-Aug-12 21:04 
AnswerRe: VB.NET: How to merge multiple file into one CSV file? Pin
Wayne Gaylard29-Aug-12 21:28
professionalWayne Gaylard29-Aug-12 21:28 
GeneralRe: VB.NET: How to merge multiple file into one CSV file? Pin
stevelk2-Sep-12 21:08
stevelk2-Sep-12 21:08 
AnswerRe: VB.NET: How to merge multiple file into one CSV file? Pin
Christopher James Kleinheinz29-Aug-12 21:34
Christopher James Kleinheinz29-Aug-12 21:34 
GeneralExcellent code sample Pin
David Mujica30-Aug-12 2:25
David Mujica30-Aug-12 2:25 
GeneralRe: VB.NET: How to merge multiple file into one CSV file? Pin
stevelk2-Sep-12 21:07
stevelk2-Sep-12 21:07 
QuestionVB.Net Populate SQL Data to textbox upon Form Load Pin
jon237128-Aug-12 16:44
jon237128-Aug-12 16:44 
AnswerRe: VB.Net Populate SQL Data to textbox upon Form Load Pin
Wes Aday28-Aug-12 17:05
professionalWes Aday28-Aug-12 17:05 
AnswerRe: VB.Net Populate SQL Data to textbox upon Form Load Pin
Richard MacCutchan28-Aug-12 21:51
mveRichard MacCutchan28-Aug-12 21:51 
Questionprogramming G510 Pin
JR21227-Aug-12 20:38
JR21227-Aug-12 20:38 
AnswerRe: programming G510 Pin
Eddy Vluggen27-Aug-12 23:08
professionalEddy Vluggen27-Aug-12 23:08 

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.