Click here to Skip to main content
15,890,282 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VB.net 2010 desktop app select file from drop down list box Pin
dcof4-Jun-15 11:32
dcof4-Jun-15 11:32 
GeneralRe: VB.net 2010 desktop app select file from drop down list box Pin
Eddy Vluggen4-Jun-15 22:20
professionalEddy Vluggen4-Jun-15 22:20 
QuestionOpen a form when the name is known only on runtime Pin
satc3-Jun-15 9:35
satc3-Jun-15 9:35 
AnswerRe: Open a form when the name is known only on runtime Pin
Sascha Lefèvre3-Jun-15 10:26
professionalSascha Lefèvre3-Jun-15 10:26 
GeneralRe: Open a form when the name is known only on runtime Pin
satc3-Jun-15 16:29
satc3-Jun-15 16:29 
GeneralRe: Open a form when the name is known only on runtime Pin
Sascha Lefèvre3-Jun-15 22:00
professionalSascha Lefèvre3-Jun-15 22:00 
GeneralRe: Open a form when the name is known only on runtime Pin
satc4-Jun-15 9:57
satc4-Jun-15 9:57 
GeneralRe: Open a form when the name is known only on runtime Pin
Sascha Lefèvre4-Jun-15 10:41
professionalSascha Lefèvre4-Jun-15 10:41 
Then I would pass an "enableButton"-flag as constructor argument to the forms. Activator.CreateInstance(..) has an overload where you can specify an array for the constructor arguments as second argument after the type argument:
VB
Dim enableButton As Boolean = True
Dim form As Form = DirectCast(Activator.CreateInstance(formType, New Object() {enableButton}), Form)

If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

GeneralRe: Open a form when the name is known only on runtime Pin
satc4-Jun-15 18:26
satc4-Jun-15 18:26 
GeneralRe: Open a form when the name is known only on runtime Pin
Sascha Lefèvre4-Jun-15 18:42
professionalSascha Lefèvre4-Jun-15 18:42 
GeneralRe: Open a form when the name is known only on runtime Pin
satc4-Jun-15 19:44
satc4-Jun-15 19:44 
GeneralRe: Open a form when the name is known only on runtime Pin
Sascha Lefèvre4-Jun-15 19:56
professionalSascha Lefèvre4-Jun-15 19:56 
GeneralRe: Open a form when the name is known only on runtime Pin
satc4-Jun-15 20:10
satc4-Jun-15 20:10 
GeneralRe: Open a form when the name is known only on runtime Pin
Sascha Lefèvre4-Jun-15 21:17
professionalSascha Lefèvre4-Jun-15 21:17 
Questionvb.net 2010 desktop application add listbox Pin
dcof3-Jun-15 7:16
dcof3-Jun-15 7:16 
AnswerRe: vb.net 2010 desktop application add listbox Pin
Mycroft Holmes3-Jun-15 14:06
professionalMycroft Holmes3-Jun-15 14:06 
QuestionThe shortest way to do this ? Pin
satc2-Jun-15 13:35
satc2-Jun-15 13:35 
GeneralRe: The shortest way to do this ? Pin
PIEBALDconsult2-Jun-15 14:45
mvePIEBALDconsult2-Jun-15 14:45 
GeneralRe: The shortest way to do this ? Pin
Mycroft Holmes2-Jun-15 15:36
professionalMycroft Holmes2-Jun-15 15:36 
GeneralRe: The shortest way to do this ? Pin
PIEBALDconsult2-Jun-15 15:49
mvePIEBALDconsult2-Jun-15 15:49 
GeneralRe: The shortest way to do this ? Pin
satc2-Jun-15 15:58
satc2-Jun-15 15:58 
GeneralRe: The shortest way to do this ? Pin
PIEBALDconsult2-Jun-15 16:07
mvePIEBALDconsult2-Jun-15 16:07 
GeneralRe: The shortest way to do this ? Pin
satc2-Jun-15 16:11
satc2-Jun-15 16:11 
GeneralRe: The shortest way to do this ? Pin
PIEBALDconsult2-Jun-15 18:07
mvePIEBALDconsult2-Jun-15 18:07 
GeneralRe: The shortest way to do this ? Pin
Mycroft Holmes2-Jun-15 20:38
professionalMycroft Holmes2-Jun-15 20:38 

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.