Click here to Skip to main content
15,898,036 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: My structure don't work!!!! Pin
BThunder17-Jul-07 4:49
BThunder17-Jul-07 4:49 
GeneralRe: My structure don't work!!!! Pin
BThunder17-Jul-07 7:35
BThunder17-Jul-07 7:35 
GeneralRe: My structure don't work!!!! Pin
Dave Kreskowiak17-Jul-07 8:30
mveDave Kreskowiak17-Jul-07 8:30 
Questionaccess function on form [modified] Pin
Tom Deketelaere17-Jul-07 4:23
professionalTom Deketelaere17-Jul-07 4:23 
AnswerRe: access function on form Pin
Dave Kreskowiak17-Jul-07 4:28
mveDave Kreskowiak17-Jul-07 4:28 
GeneralRe: access function on form Pin
Tom Deketelaere17-Jul-07 4:32
professionalTom Deketelaere17-Jul-07 4:32 
GeneralRe: access function on form Pin
Dave Kreskowiak17-Jul-07 4:33
mveDave Kreskowiak17-Jul-07 4:33 
AnswerRe: access function on form Pin
Dave Kreskowiak17-Jul-07 4:32
mveDave Kreskowiak17-Jul-07 4:32 
ActiveForm returns a Form object, not a whateverMyFormName object. So, the Form class doesn't have a method called Add. You have to cast the Form object returned by ActiveForm to the class that it really is. BTW, you don't need to iterate through the MdiChild forms. You ALREADY have the instance of the form that is active!
Dim myForm As YourFormClass = DirectCast(Form.ActiveForm, YourFormClass)
myForm.Add()



A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralRe: access function on form Pin
Tom Deketelaere17-Jul-07 4:35
professionalTom Deketelaere17-Jul-07 4:35 
GeneralRe: access function on form Pin
Dave Kreskowiak17-Jul-07 4:49
mveDave Kreskowiak17-Jul-07 4:49 
GeneralRe: access function on form Pin
Tom Deketelaere17-Jul-07 4:56
professionalTom Deketelaere17-Jul-07 4:56 
GeneralRe: access function on form Pin
Tom Deketelaere17-Jul-07 5:03
professionalTom Deketelaere17-Jul-07 5:03 
QuestionAudio File (Wave file) Splitting & Merging in Vb .Net Pin
amiashu17-Jul-07 2:55
amiashu17-Jul-07 2:55 
QuestionHow to control my Application to use not more then 10 % of CPU Pin
Rizwan Bashir17-Jul-07 2:02
Rizwan Bashir17-Jul-07 2:02 
AnswerRe: How to control my Application to use not more then 10 % of CPU Pin
Luc Pattyn17-Jul-07 3:18
sitebuilderLuc Pattyn17-Jul-07 3:18 
Questionalphabetical order Pin
VB.NET_learner17-Jul-07 1:51
VB.NET_learner17-Jul-07 1:51 
AnswerRe: alphabetical order Pin
Tom Deketelaere17-Jul-07 2:16
professionalTom Deketelaere17-Jul-07 2:16 
Questioncrystal report + vb.net Pin
Jayesh Talsaniya17-Jul-07 1:33
Jayesh Talsaniya17-Jul-07 1:33 
AnswerRe: crystal report + vb.net Pin
_Damian S_17-Jul-07 13:55
professional_Damian S_17-Jul-07 13:55 
QuestionAdding the opacity property to the Panel control Pin
Ahmad Zaidi17-Jul-07 1:13
Ahmad Zaidi17-Jul-07 1:13 
AnswerRe: Adding the opacity property to the Panel control Pin
The ANZAC17-Jul-07 1:31
The ANZAC17-Jul-07 1:31 
GeneralRe: Adding the opacity property to the Panel control Pin
Ahmad Zaidi17-Jul-07 2:35
Ahmad Zaidi17-Jul-07 2:35 
GeneralRe: Adding the opacity property to the Panel control Pin
The ANZAC17-Jul-07 11:18
The ANZAC17-Jul-07 11:18 
AnswerRe: Adding the opacity property to the Panel control Pin
Dave Kreskowiak17-Jul-07 4:04
mveDave Kreskowiak17-Jul-07 4:04 
GeneralRe: Adding the opacity property to the Panel control Pin
Ahmad Zaidi17-Jul-07 22:23
Ahmad Zaidi17-Jul-07 22:23 

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.