Click here to Skip to main content
15,892,809 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
QuestionRemoving a reference from the project Pin
dptalt26-May-06 4:34
dptalt26-May-06 4:34 
AnswerRe: Removing a reference from the project Pin
Leeland26-May-06 9:48
Leeland26-May-06 9:48 
GeneralRe: Removing a reference from the project Pin
dptalt30-May-06 3:53
dptalt30-May-06 3:53 
QuestionPlease i want to create my own interfaces Pin
Mohammed Amine26-May-06 2:32
Mohammed Amine26-May-06 2:32 
AnswerRe: Please i want to create my own interfaces Pin
Christian Graus26-May-06 17:32
protectorChristian Graus26-May-06 17:32 
QuestionUpper case the 1st letter of a word on the TextBox key press Pin
Robo1625-May-06 23:54
Robo1625-May-06 23:54 
AnswerRe: Upper case the 1st letter of a word on the TextBox key press Pin
Mohammed Amine26-May-06 1:03
Mohammed Amine26-May-06 1:03 
GeneralRe: Upper case the 1st letter of a word on the TextBox key press Pin
Robo1626-May-06 1:52
Robo1626-May-06 1:52 
QuestionEditable Datagrid with Permissions? Pin
Fedaykinn25-May-06 22:22
Fedaykinn25-May-06 22:22 
QuestionRight Click on datagrid Pin
microuser_200025-May-06 21:33
microuser_200025-May-06 21:33 
AnswerRe: Right Click on datagrid Pin
sathish s25-May-06 23:03
sathish s25-May-06 23:03 
Questionplease help me!! how to create MS access Databse and Table through VB 6.0 Pin
himuskanhere25-May-06 19:28
himuskanhere25-May-06 19:28 
AnswerRe: please help me!! how to create MS access Databse and Table through VB 6.0 [modified] Pin
Kschuler26-May-06 4:59
Kschuler26-May-06 4:59 

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.