Click here to Skip to main content
15,898,036 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: smpt Mail - Help Needed Pin
Super Lloyd27-Jun-06 3:01
Super Lloyd27-Jun-06 3:01 
AnswerRe: smpt Mail - Help Needed [modified] Pin
Dave Kreskowiak27-Jun-06 4:58
mveDave Kreskowiak27-Jun-06 4:58 
GeneralRe: smpt Mail - Help Needed Pin
Jats_4ru27-Jun-06 23:45
Jats_4ru27-Jun-06 23:45 
AnswerRe: smpt Mail - Help Needed Pin
Edbert P27-Jun-06 16:10
Edbert P27-Jun-06 16:10 
GeneralRe: smpt Mail - Help Needed Pin
Jats_4ru27-Jun-06 23:47
Jats_4ru27-Jun-06 23:47 
Questionrename treenode at runtime Pin
mini878027-Jun-06 1:20
mini878027-Jun-06 1:20 
AnswerRe: rename treenode at runtime Pin
mini878027-Jun-06 1:44
mini878027-Jun-06 1:44 
QuestionHow to raise event of ITemplate using vb.net, Pls use follwing code Pin
BalasahebK27-Jun-06 0:54
BalasahebK27-Jun-06 0:54 
Hello Everybody,

I need help from all of u, pls help me for following code.
I have given number for each line, only for ref. When u copy the code, pls remove the numbers given and do modification.

The original code is in C# that converted into VB.net using converter.This code is perfectly working in C# without any error and waring Now I'm facing problem.

Now problem is, the line number 20 need raiseEvent, I don't know how to raise event in vb.net

Pls concentrate on line 20. Pls let me know how to declare and raise event.


1 Public Class CreateItemTemplateRadioButton
2 Implements ITemplate
3 Dim strText As String
4 Dim strRadioButtonName As String
5 Dim Visibility As Boolean = True
6 Dim blChecked As Boolean = False
7 Public Sub New(ByVal RadioButtonName As String, ByVal Text As String, ByVal AutoCheck As Boolean)
8 Me.strText = Text
9 Me.strRadioButtonName = RadioButtonName
10 Me.blChecked = AutoCheck
11 End Sub
12 Public Sub New(ByVal RadioButtonName As String, ByVal Text As String, ByVal AutoCheck As Boolean, ByVal Visibility As Boolean)
13 Me.strText = Text
14 Me.strRadioButtonName = RadioButtonName
15 Me.Visibility = Visibility
16 Me.blChecked = AutoCheck
17 End Sub
18 Public Sub InstantiateIn(ByVal objcontainer As System.Web.UI.Control) Implements System.Web.UI.ITemplate.InstantiateIn
19 Dim rad As HtmlInputRadioButton = New HtmlInputRadioButton
20 rad.DataBinding += New EventHandler(rad_DataBinding)
21 objContainer.Controls.Add(rad)

22 End Sub

23 Private Sub rad_DataBinding(ByVal sender As Object, ByVal e As EventArgs)
24 Dim rad As HtmlInputRadioButton = CType(sender, HtmlInputRadioButton)
25 rad.Value = strText
26 rad.Checked = blChecked
27 rad.Visible = Visibility
28 End Sub

29 End Class


Balasaheb
Software Developer
Platform: Asp.net,vb.net
Database: SQL Server 2000
QuestionSystem Folder Pin
Anil_vvs27-Jun-06 0:33
Anil_vvs27-Jun-06 0:33 
AnswerRe: System Folder Pin
sathish s27-Jun-06 2:10
sathish s27-Jun-06 2:10 
Questioninternet explorer idownloadmanager interface Pin
Qaiser_Iftikhar26-Jun-06 23:54
Qaiser_Iftikhar26-Jun-06 23:54 
QuestionVB.NET and file on Remote IIS Pin
Peace2u26-Jun-06 21:53
Peace2u26-Jun-06 21:53 
Questiondata migration through VB.Net Pin
divyaswati26-Jun-06 19:19
divyaswati26-Jun-06 19:19 
QuestionData Compression(deflate) using VB6 Pin
ksandy4526-Jun-06 18:11
ksandy4526-Jun-06 18:11 
AnswerRe: Data Compression(deflate) using VB6 Pin
Paul Conrad26-Jun-06 18:38
professionalPaul Conrad26-Jun-06 18:38 
GeneralRe: Data Compression(deflate) using VB6 Pin
ksandy4527-Jun-06 2:22
ksandy4527-Jun-06 2:22 
GeneralRe: Data Compression(deflate) using VB6 Pin
Paul Conrad27-Jun-06 5:31
professionalPaul Conrad27-Jun-06 5:31 
GeneralRe: Data Compression(deflate) using VB6 Pin
ksandy4527-Jun-06 21:09
ksandy4527-Jun-06 21:09 
AnswerRe: Data Compression(deflate) using VB6 Pin
Dave Kreskowiak27-Jun-06 1:41
mveDave Kreskowiak27-Jun-06 1:41 
QuestionUsing Visual Basic 6.0 How to Solve the below Pin
Simple programmer26-Jun-06 18:08
Simple programmer26-Jun-06 18:08 
AnswerRe: Using Visual Basic 6.0 How to Solve the below Pin
Dave Kreskowiak27-Jun-06 1:39
mveDave Kreskowiak27-Jun-06 1:39 
GeneralRe: Using Visual Basic 6.0 How to Solve the below Pin
Simple programmer27-Jun-06 14:57
Simple programmer27-Jun-06 14:57 
QuestionHow to show flexgrid control on toolbox? Pin
rushing26-Jun-06 16:24
rushing26-Jun-06 16:24 
AnswerRe: How to show flexgrid control on toolbox? Pin
Dave Kreskowiak26-Jun-06 17:36
mveDave Kreskowiak26-Jun-06 17:36 
QuestionIntegration... Pin
d24k104d26-Jun-06 15:07
d24k104d26-Jun-06 15:07 

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.