Click here to Skip to main content
15,919,931 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: datagridview in vb.net 2008 Pin
Jay Royall7-Jan-09 1:35
Jay Royall7-Jan-09 1:35 
GeneralRe: datagridview in vb.net 2008 Pin
jigneshDPatel7-Jan-09 1:50
jigneshDPatel7-Jan-09 1:50 
GeneralRe: datagridview in vb.net 2008 Pin
Dave Kreskowiak7-Jan-09 2:25
mveDave Kreskowiak7-Jan-09 2:25 
QuestionDatagridview add new rows -- Error Pin
Chrispie1236-Jan-09 18:36
Chrispie1236-Jan-09 18:36 
AnswerRe: Datagridview add new rows -- Error Pin
Mycroft Holmes6-Jan-09 20:25
professionalMycroft Holmes6-Jan-09 20:25 
AnswerRe: Datagridview add new rows -- Error Pin
Dave Kreskowiak7-Jan-09 6:31
mveDave Kreskowiak7-Jan-09 6:31 
GeneralRe: Datagridview add new rows -- Error Pin
Chrispie1237-Jan-09 17:05
Chrispie1237-Jan-09 17:05 
QuestionTrying to use XPath on HTML document using XPathNavigator, help on parsing invalid HTML? Pin
ultrafez006-Jan-09 12:19
ultrafez006-Jan-09 12:19 
AnswerRe: Trying to use XPath on HTML document using XPathNavigator, help on parsing invalid HTML? Pin
Dave Kreskowiak7-Jan-09 6:27
mveDave Kreskowiak7-Jan-09 6:27 
GeneralRe: Trying to use XPath on HTML document using XPathNavigator, help on parsing invalid HTML? Pin
ultrafez007-Jan-09 14:09
ultrafez007-Jan-09 14:09 
QuestionSave function for VB.Net Pin
rafaelz696-Jan-09 10:33
rafaelz696-Jan-09 10:33 
AnswerRe: Save function for VB.Net Pin
EliottA6-Jan-09 10:36
EliottA6-Jan-09 10:36 
QuestionHow to update form control from an embedded form Pin
sohaib_a6-Jan-09 7:00
sohaib_a6-Jan-09 7:00 
AnswerRe: How to update form control from an embedded form Pin
EliottA6-Jan-09 7:16
EliottA6-Jan-09 7:16 
GeneralRe: How to update form control from an embedded form Pin
sohaib_a6-Jan-09 8:51
sohaib_a6-Jan-09 8:51 
GeneralRe: How to update form control from an embedded form Pin
EliottA6-Jan-09 8:53
EliottA6-Jan-09 8:53 
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 

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.