Click here to Skip to main content
15,914,795 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionMulti line text box Pin
yorickthefirst26-May-06 20:36
yorickthefirst26-May-06 20:36 
AnswerRe: Multi line text box Pin
arcticbrew28-May-06 9:32
arcticbrew28-May-06 9:32 
GeneralRe: Multi line text box Pin
yorickthefirst28-May-06 17:08
yorickthefirst28-May-06 17:08 
Questionsystem.InvalidOperationException Pin
furjaw26-May-06 19:27
furjaw26-May-06 19:27 
QuestionOnly one instance of tabbed page? Pin
UBigDummie26-May-06 18:32
UBigDummie26-May-06 18:32 
Questionhow to generate report using microsoft reporting service? Pin
lin_xen_mung26-May-06 17:36
lin_xen_mung26-May-06 17:36 
AnswerRe: how to generate report using microsoft reporting service? Pin
Kevin McFarlane27-May-06 2:18
Kevin McFarlane27-May-06 2:18 
QuestionConverting from Integer to System.IntPtr in VB.Net Pin
Brad Mathews26-May-06 14:58
Brad Mathews26-May-06 14:58 
AnswerRe: Converting from Integer to System.IntPtr in VB.Net Pin
progload26-May-06 18:06
progload26-May-06 18:06 
GeneralRe: Converting from Integer to System.IntPtr in VB.Net Pin
Brad Mathews27-May-06 7:31
Brad Mathews27-May-06 7:31 
Questiondatetime problem Pin
Mohammed Amine26-May-06 14:57
Mohammed Amine26-May-06 14:57 
AnswerRe: datetime problem Pin
Rizwan Bashir26-May-06 22:30
Rizwan Bashir26-May-06 22:30 
AnswerRe: datetime problem Pin
Guffa26-May-06 22:44
Guffa26-May-06 22:44 
Questionhow to add a record asp.net Pin
ADY00726-May-06 13:19
ADY00726-May-06 13:19 
Questioncan anyone help me with a text box problem? Pin
GCartwright9026-May-06 13:06
GCartwright9026-May-06 13:06 
AnswerRe: can anyone help me with a text box problem? Pin
Rizwan Bashir26-May-06 22:33
Rizwan Bashir26-May-06 22:33 
Questionplease please help me if you are a prof. please log on Pin
Mohammed Amine26-May-06 12:01
Mohammed Amine26-May-06 12:01 
Questionhow to use for each ? Pin
Mohammed Amine26-May-06 11:55
Mohammed Amine26-May-06 11:55 
AnswerRe: how to use for each ? Pin
mr_1234526-May-06 12:10
mr_1234526-May-06 12:10 
GeneralRe: how to use for each ? Pin
Mohammed Amine26-May-06 14:53
Mohammed Amine26-May-06 14:53 
Questionneed urgent help with bubbling events [modified] Pin
dove1126-May-06 6:17
dove1126-May-06 6:17 
I am having trouble with the EventHandler definition and the parameters to the routines. I have a datagrid with a template column. On that template column is a linkbutton. I want to simulate the click event of the linkbutton by bubbling events. It doesn't work. It goes through the code but the DataGrid onitemcommand event doesn't fire. Here's a code snippet. The DataGrid name is grdReceivingData, onitemcommand="ViewRecipientSubDetails", LinkButton commandname="view".
At class level:
Public Event Command As CommandEventHandler

Sub, function, eventhandler definitions:
For i As Integer = 0 To (grdReceivingData.Items.Count - 1)
If grdReceivingData.Items(i).Cells(0).Text = DBASUB.ToString Then
OnCommand(grdReceivingData.Items(i).Cells(4).Controls(1), New CommandEventArgs("view", String.Empty))
Exit For
Else
Exit Sub
End If
Next

Protected Overridable Sub OnCommand(ByVal e As CommandEventArgs)
Dim handler As CommandEventHandler = CType(MyBase.Events.Item("ViewRecipientSubDetails"), CommandEventHandler)
If (Not handler Is Nothing) Then
handler.Invoke(grdReceivingData.Items(0).Cells(4).Controls(1), e)
End If
MyBase.RaiseBubbleEvent(grdReceivingData.Items(0).Cells(4).Controls(1), e)
End Sub

Protected Overrides Function OnBubbleEvent(ByVal source As Object, _
ByVal e As EventArgs) As Boolean
If TypeOf e Is CommandEventArgs Then
Dim args As New DataGridCommandEventArgs(grdReceivingData.Items(0), _
grdReceivingData.Items(0).Cells(4).Controls(1), CType(e, CommandEventArgs))
MyBase.RaiseBubbleEvent(grdReceivingData, args)
Return True
End If
Return False

End Function


Public Delegate Sub CommandEventHandler(ByVal sender As Object, ByVal e As DataGridCommandEventArgs)

-- modified at 11:42 Tuesday 30th May, 2006
QuestionParsing HTML and Login Pin
J Liang26-May-06 5:02
J Liang26-May-06 5:02 
AnswerRe: Parsing HTML and Login Pin
Rizwan Bashir26-May-06 22:38
Rizwan Bashir26-May-06 22:38 
GeneralRe: Parsing HTML and Login Pin
J Liang27-May-06 1:42
J Liang27-May-06 1:42 
QuestionTwo packets send to Web Service Pin
riwanlky26-May-06 4:39
riwanlky26-May-06 4: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.