Click here to Skip to main content
15,896,063 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to update form control from an embedded form Pin
sohaib_a6-Jan-09 9:45
sohaib_a6-Jan-09 9:45 
GeneralRe: How to update form control from an embedded form Pin
EliottA6-Jan-09 9:48
EliottA6-Jan-09 9:48 
GeneralRe: How to update form control from an embedded form Pin
Dave Kreskowiak6-Jan-09 10:02
mveDave Kreskowiak6-Jan-09 10:02 
GeneralRe: How to update form control from an embedded form Pin
EliottA6-Jan-09 10:33
EliottA6-Jan-09 10:33 
GeneralRe: How to update form control from an embedded form Pin
sohaib_a6-Jan-09 11:01
sohaib_a6-Jan-09 11:01 
GeneralRe: How to update form control from an embedded form Pin
Dave Kreskowiak6-Jan-09 11:09
mveDave Kreskowiak6-Jan-09 11:09 
GeneralRe: How to update form control from an embedded form Pin
EliottA6-Jan-09 11:11
EliottA6-Jan-09 11:11 
GeneralRe: How to update form control from an embedded form Pin
sohaib_a6-Jan-09 11:38
sohaib_a6-Jan-09 11:38 
Thanks for description dave..
ok..so should it be something like this..i am sorry I havent tried it yet because visual studio is on my other laptop that I dont have with me right now..so just doing some research on it..I'll try it as soon as i get have it.





In child form...

Public Class1

Public Event addtolist (Byval s as string) '' s is what is to printed in the listbox in parent class
'
Private sub()
' some code
'
'
RaiseEvent addtolist(s) 'where i want to add to the listbox in parent form
'
'
End Sub

End Class1





In parent form.....

public class2


public obj as new class1

addhandler obj.addtolist,addressof addtolistbox

public sub addtolistbox(ByVal sender As Object, _
ByVal e As System.EventArgs)

listbox1.items.add(e.argument)

end sub

end class2


Just one thing i didn't get..sorry to bother you..

"it can only do this if the parent form has a method that matches the header exposed by the event",I don't know what you meant by this.
Do you mean the method in the parent form that handles the event should have the same name as the event ie; 'addtolist'?
GeneralRe: How to update form control from an embedded form Pin
Dave Kreskowiak6-Jan-09 12:09
mveDave Kreskowiak6-Jan-09 12:09 
GeneralRe: How to update form control from an embedded form Pin
sohaib_a6-Jan-09 22:48
sohaib_a6-Jan-09 22:48 
GeneralRe: How to update form control from an embedded form Pin
Dave Kreskowiak7-Jan-09 2:10
mveDave Kreskowiak7-Jan-09 2:10 
GeneralRe: How to update form control from an embedded form Pin
sohaib_a7-Jan-09 4:36
sohaib_a7-Jan-09 4:36 
GeneralRe: How to update form control from an embedded form Pin
Dave Kreskowiak7-Jan-09 9:56
mveDave Kreskowiak7-Jan-09 9:56 
GeneralRe: How to update form control from an embedded form Pin
sohaib_a10-Jan-09 23:06
sohaib_a10-Jan-09 23:06 
Questionhow can made login form in vb6 and vb.net?please send me coding Pin
mohammedali20066-Jan-09 6:39
mohammedali20066-Jan-09 6:39 
AnswerCP IGNORE Pin
leckey6-Jan-09 6:52
leckey6-Jan-09 6:52 
AnswerRe: how can made login form in vb6 and vb.net?please send me coding Pin
EliottA6-Jan-09 6:58
EliottA6-Jan-09 6:58 
AnswerRe: how can made login form in vb6 and vb.net?please send me coding Pin
Jon_Boy6-Jan-09 7:28
Jon_Boy6-Jan-09 7:28 
GeneralRe: how can made login form in vb6 and vb.net?please send me coding Pin
EliottA6-Jan-09 7:52
EliottA6-Jan-09 7:52 
GeneralRe: how can made login form in vb6 and vb.net?please send me coding Pin
Jon_Boy6-Jan-09 8:14
Jon_Boy6-Jan-09 8:14 
GeneralRe: how can made login form in vb6 and vb.net?please send me coding Pin
EliottA6-Jan-09 8:17
EliottA6-Jan-09 8:17 
GeneralRe: how can made login form in vb6 and vb.net?please send me coding Pin
leckey6-Jan-09 8:34
leckey6-Jan-09 8:34 
AnswerRe: how can made login form in vb6 and vb.net?please send me coding Pin
Dave Kreskowiak6-Jan-09 10:04
mveDave Kreskowiak6-Jan-09 10:04 
JokeRe: how can made login form in vb6 and vb.net?please send me coding Pin
0x3c06-Jan-09 20:30
0x3c06-Jan-09 20:30 
QuestionDataRow Pin
RELGERT6-Jan-09 4:23
RELGERT6-Jan-09 4: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.