Click here to Skip to main content
16,004,924 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalmatching code Pin
Member 19982501-Jun-05 3:37
Member 19982501-Jun-05 3:37 
GeneralRe: matching code Pin
Rizwan Bashir1-Jun-05 4:29
Rizwan Bashir1-Jun-05 4:29 
Generalconversion from excel to pdf Pin
Member 19982501-Jun-05 1:54
Member 19982501-Jun-05 1:54 
GeneralRe: conversion from excel to pdf Pin
Christian Graus1-Jun-05 12:04
protectorChristian Graus1-Jun-05 12:04 
GeneralRe: conversion from excel to pdf Pin
Member 19982501-Jun-05 22:29
Member 19982501-Jun-05 22:29 
GeneralRe: conversion from excel to pdf Pin
Dave Kreskowiak2-Jun-05 6:11
mveDave Kreskowiak2-Jun-05 6:11 
Generaladding dynamic Controls in Panel Pin
Rizwan Bashir1-Jun-05 1:36
Rizwan Bashir1-Jun-05 1:36 
GeneralRe: adding dynamic Controls in Panel Pin
Mandar Patankar1-Jun-05 7:06
Mandar Patankar1-Jun-05 7:06 
HI Rizwan

From what i have understood you are adding controls to panel on a table select.If you are selecting this table from the dropdownlist.So you need to remove all previously added controls from the panel in the selectedindex event of the combobox

the code can be as follows

'where pnOutputs is the panel control
Dim NoControls As Integer = pnOutputs.Controls.Count

For i = 0 To NoControls - 1
pnOutputs.Controls.RemoveAt(0)
Next

once all the controls from the panel are removed u can add the new controls to the same panel control. I hope this is useful



Mandar Patankar
Microsoft Certified professional
GeneralRe: adding dynamic Controls in Panel Pin
Rizwan Bashir1-Jun-05 22:35
Rizwan Bashir1-Jun-05 22:35 
GeneralGot the reason Pin
Rizwan Bashir1-Jun-05 23:22
Rizwan Bashir1-Jun-05 23:22 
GeneralChange color of message box Pin
Rizwan Bashir31-May-05 23:10
Rizwan Bashir31-May-05 23:10 
GeneralRe: Change color of message box Pin
toxcct1-Jun-05 0:35
toxcct1-Jun-05 0:35 
GeneralRe: Change color of message box Pin
Robert Rohde1-Jun-05 11:07
Robert Rohde1-Jun-05 11:07 
Questioncurrent row edit ? Pin
Makniteasy31-May-05 22:20
Makniteasy31-May-05 22:20 
AnswerRe: current row edit ? Pin
Christian Graus31-May-05 22:25
protectorChristian Graus31-May-05 22:25 
GeneralAttaching Database Pin
nitin_ion31-May-05 19:04
nitin_ion31-May-05 19:04 
GeneralRe: Attaching Database Pin
Yulianto.31-May-05 21:15
Yulianto.31-May-05 21:15 
GeneralRe: Attaching Database Pin
Colin Angus Mackay31-May-05 21:56
Colin Angus Mackay31-May-05 21:56 
GeneralRe: Attaching Database Pin
nitin_ion31-May-05 22:22
nitin_ion31-May-05 22:22 
GeneralRe: Attaching Database Pin
Christian Graus31-May-05 22:24
protectorChristian Graus31-May-05 22:24 
GeneralRe: Attaching Database Pin
Colin Angus Mackay31-May-05 22:26
Colin Angus Mackay31-May-05 22:26 
GeneralRe: Attaching Database Pin
nitin_ion31-May-05 22:28
nitin_ion31-May-05 22:28 
GeneralRe: Attaching Database Pin
nitin_ion31-May-05 22:31
nitin_ion31-May-05 22:31 
GeneralRe: Attaching Database Pin
Colin Angus Mackay31-May-05 22:43
Colin Angus Mackay31-May-05 22:43 
GeneralRe: Attaching Database Pin
nitin_ion31-May-05 22:45
nitin_ion31-May-05 22:45 

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.