Click here to Skip to main content
15,891,828 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Need help building a TreeView Pin
ljohns1-May-07 16:47
ljohns1-May-07 16:47 
GeneralRe: Need help building a TreeView Pin
ChandraRam1-May-07 23:06
ChandraRam1-May-07 23:06 
GeneralRe: Need help building a TreeView Pin
ljohns3-May-07 4:01
ljohns3-May-07 4:01 
GeneralRe: Need help building a TreeView Pin
ChandraRam4-May-07 0:12
ChandraRam4-May-07 0:12 
QuestionHow do I pass a byte array from C++ to VB.NET? Pin
prcarp1-May-07 15:28
prcarp1-May-07 15:28 
AnswerRe: How do I pass a byte array from C++ to VB.NET? Pin
Dave Kreskowiak2-May-07 3:35
mveDave Kreskowiak2-May-07 3:35 
GeneralRe: How do I pass a byte array from C++ to VB.NET? Pin
prcarp2-May-07 8:46
prcarp2-May-07 8:46 
QuestionCreate Object From Type [modified] Pin
Polymorpher1-May-07 14:18
Polymorpher1-May-07 14:18 
Does anyone know how to create a given object given nothing but the object type? I'm trying to make a quick way to iterate through my MDI children and if the given form type is not found then i create it and return it...here is what i have so far, but it doesnt seem to work...keeps returning nothing when creating a new form:

Public Shared Function FindFormOfType(ByVal inArray() As Form, ByVal theType As Type) As Form
For Each f As Form In inArray
If f.GetType.Equals(theType) Then
Return f
End If
Next f

Return CType(theType.TypeInitializer.Invoke(Reflection.BindingFlags.CreateInstance, Nothing, Nothing, Application.CurrentCulture), Form)
End Function


-- modified at 20:41 Tuesday 1st May, 2007
Never mind guys, thanks anyways, I found a solution:

Public Shared Function FindFormOfType(ByVal inArray() As Form, ByVal theType As Type) As Form
For Each f As Form In inArray
If f.GetType.Equals(theType) Then
Return f
End If
Next f

Return CType(System.Activator.CreateInstance(theType), Form)
End Function

Apparently it's not OK to start a bonfire of Microsoft products in the aisles of CompUSA even though the Linuxrulz web site says so

QuestionUpdating Table of Access Database Pin
keninfo1-May-07 11:56
keninfo1-May-07 11:56 
AnswerRe: Updating Table of Access Database Pin
Christian Graus1-May-07 12:56
protectorChristian Graus1-May-07 12:56 
GeneralRe: Updating Table of Access Database Pin
keninfo1-May-07 23:57
keninfo1-May-07 23:57 
GeneralRe: Updating Table of Access Database Pin
Christian Graus2-May-07 0:55
protectorChristian Graus2-May-07 0:55 
GeneralRe: Updating Table of Access Database Pin
keninfo2-May-07 3:33
keninfo2-May-07 3:33 
QuestionGlobalization in VB .Net usig SQL server2000 Pin
joby1001-May-07 10:42
joby1001-May-07 10:42 
QuestionSet Custom PaperSize In VB.NET [modified] Pin
AmirAlilou1-May-07 8:12
AmirAlilou1-May-07 8:12 
Questionusing tab control to show datagrid Pin
detective_girl1-May-07 8:12
detective_girl1-May-07 8:12 
AnswerRe: using tab control to show datagrid Pin
Christian Graus1-May-07 10:31
protectorChristian Graus1-May-07 10:31 
GeneralRe: using tab control to show datagrid Pin
detective_girl1-May-07 19:35
detective_girl1-May-07 19:35 
QuestionRe: using tab control to show datagrid Pin
detective_girl1-May-07 20:15
detective_girl1-May-07 20:15 
GeneralRe: using tab control to show datagrid Pin
Christian Graus1-May-07 23:31
protectorChristian Graus1-May-07 23:31 
QuestionRe: using tab control to show datagrid Pin
detective_girl2-May-07 0:32
detective_girl2-May-07 0:32 
AnswerRe: using tab control to show datagrid Pin
Christian Graus2-May-07 10:24
protectorChristian Graus2-May-07 10:24 
QuestionSkin is burning!!! Ahhhhhhhhhhhhhhhhhhhhhhhhhh! Pin
NANCO1-May-07 6:07
NANCO1-May-07 6:07 
AnswerRe: Skin is burning!!! Ahhhhhhhhhhhhhhhhhhhhhhhhhh! Pin
Guffa1-May-07 11:02
Guffa1-May-07 11:02 
QuestionImage Size Pin
Darren lee1-May-07 3:56
Darren lee1-May-07 3:56 

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.