Click here to Skip to main content
14,664,322 members
Home » Discussions » Visual Basic
   

Visual Basic

 
AnswerRe: Need help building a TreeView Pin
ljohns1-May-07 16:47
Memberljohns1-May-07 16:47 
GeneralRe: Need help building a TreeView Pin
ChandraRam1-May-07 23:06
MemberChandraRam1-May-07 23:06 
GeneralRe: Need help building a TreeView Pin
ljohns3-May-07 4:01
Memberljohns3-May-07 4:01 
GeneralRe: Need help building a TreeView Pin
ChandraRam4-May-07 0:12
MemberChandraRam4-May-07 0:12 
QuestionHow do I pass a byte array from C++ to VB.NET? Pin
prcarp1-May-07 15:28
Memberprcarp1-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
Memberprcarp2-May-07 8:46 
QuestionCreate Object From Type [modified] Pin
Polymorpher1-May-07 14:18
MemberPolymorpher1-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
Memberkeninfo1-May-07 11:56 
AnswerRe: Updating Table of Access Database Pin
Christian Graus1-May-07 12:56
mveChristian Graus1-May-07 12:56 
GeneralRe: Updating Table of Access Database Pin
keninfo1-May-07 23:57
Memberkeninfo1-May-07 23:57 
GeneralRe: Updating Table of Access Database Pin
Christian Graus2-May-07 0:55
mveChristian Graus2-May-07 0:55 
GeneralRe: Updating Table of Access Database Pin
keninfo2-May-07 3:33
Memberkeninfo2-May-07 3:33 
QuestionGlobalization in VB .Net usig SQL server2000 Pin
joby1001-May-07 10:42
Memberjoby1001-May-07 10:42 
QuestionSet Custom PaperSize In VB.NET [modified] Pin
AmirAlilou1-May-07 8:12
MemberAmirAlilou1-May-07 8:12 
Questionusing tab control to show datagrid Pin
detective_girl1-May-07 8:12
Memberdetective_girl1-May-07 8:12 
AnswerRe: using tab control to show datagrid Pin
Christian Graus1-May-07 10:31
mveChristian Graus1-May-07 10:31 
GeneralRe: using tab control to show datagrid Pin
detective_girl1-May-07 19:35
Memberdetective_girl1-May-07 19:35 
QuestionRe: using tab control to show datagrid Pin
detective_girl1-May-07 20:15
Memberdetective_girl1-May-07 20:15 
GeneralRe: using tab control to show datagrid Pin
Christian Graus1-May-07 23:31
mveChristian Graus1-May-07 23:31 
QuestionRe: using tab control to show datagrid Pin
detective_girl2-May-07 0:32
Memberdetective_girl2-May-07 0:32 
AnswerRe: using tab control to show datagrid Pin
Christian Graus2-May-07 10:24
mveChristian Graus2-May-07 10:24 
QuestionSkin is burning!!! Ahhhhhhhhhhhhhhhhhhhhhhhhhh! Pin
NANCO1-May-07 6:07
MemberNANCO1-May-07 6:07 
AnswerRe: Skin is burning!!! Ahhhhhhhhhhhhhhhhhhhhhhhhhh! Pin
Guffa1-May-07 11:02
MemberGuffa1-May-07 11:02 
QuestionImage Size Pin
Darren lee1-May-07 3:56
MemberDarren 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.