Click here to Skip to main content
15,897,704 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
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 
Then you can create a seperate Interface that each of your child form types Implements. You then cast the ActiveForm to the Interface and call the Add method through that.
Public Interface ISomething
    Sub Add()
End Interface

And in your form classes:
Public Class MyChildForm
    Implements ISomething
 
    Public Sub Add() Implements ISomething.Add
        ...
    End Sub

...and in your ActiveForm code:
Dim myChildForm As ISomething = DirectCast(Form.ActiveForm, ISomething)
myChildForm.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: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 
QuestionPDF file format in vb.net Pin
Ashish Kumar Vyas17-Jul-07 0:25
Ashish Kumar Vyas17-Jul-07 0:25 
AnswerRe: PDF file format in vb.net Pin
originSH17-Jul-07 0:39
originSH17-Jul-07 0:39 

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.