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

Visual Basic

 
AnswerRe: Attach scrollbar to listview Pin
Luc Pattyn24-Jan-10 9:59
sitebuilderLuc Pattyn24-Jan-10 9:59 
GeneralRe: Attach scrollbar to listview Pin
Eli Nurman24-Jan-10 10:25
Eli Nurman24-Jan-10 10:25 
QuestionHow to Work On MAC Application Pin
Anubhava Dimri22-Jan-10 22:32
Anubhava Dimri22-Jan-10 22:32 
AnswerRe: How to Work On MAC Application Pin
DaveAuld23-Jan-10 5:30
professionalDaveAuld23-Jan-10 5:30 
AnswerRe: How to Work On MAC Application Pin
Eddy Vluggen23-Jan-10 5:44
professionalEddy Vluggen23-Jan-10 5:44 
GeneralRe: How to Work On MAC Application Pin
Anubhava Dimri24-Jan-10 18:41
Anubhava Dimri24-Jan-10 18:41 
GeneralRe: How to Work On MAC Application Pin
Eddy Vluggen24-Jan-10 21:32
professionalEddy Vluggen24-Jan-10 21:32 
QuestionRemove Javascript controls from export to excel - VB.Net Pin
technette22-Jan-10 14:00
technette22-Jan-10 14:00 
Unsure | :~ I'm modifying code that was written 9 years ago in VB.Net and JavaScript.

I revised the code to successfully write to Excel but the javascript controls are now in the Excel file.

I'm receiving error: Value of typ 'system.Reflection.PropertyInfo' cannot be converted to 'Boolean'.


Private Sub ClearControls(ByVal control As Control)
For i As Integer = control.Controls.Count - 1 To 0 Step -1
ClearControls(control.Controls(i))
Next
If Not (TypeOf control Is TableCell) Then
If control.[GetType]().GetProperty("SelectedItem") IsNot Nothing Then
Dim literal As New LiteralControl()
control.Parent.Controls.Add(literal)
Try
literal.Text = DirectCast(control.[GetType]().GetProperty("SelectedItem").GetValue(control, Nothing), String)
Catch
End Try
control.Parent.Controls.Remove(control)
ElseIf control.[GetType]().GetProperty("Text") IsNot Nothing Then
Dim literal As New LiteralControl()
control.Parent.Controls.Add(literal)
literal.Text = DirectCast(control.[GetType]().GetProperty("Text").GetValue(control, Nothing), String)
control.Parent.Controls.Remove(control)
End If
End If
Exit Sub
End Sub
AnswerRe: Remove Javascript controls from export to excel - VB.Net Pin
Mycroft Holmes24-Jan-10 10:49
professionalMycroft Holmes24-Jan-10 10:49 
GeneralRe: Remove Javascript controls from export to excel - VB.Net Pin
technette25-Jan-10 8:22
technette25-Jan-10 8:22 
GeneralRe: Remove Javascript controls from export to excel - VB.Net Pin
Mycroft Holmes25-Jan-10 10:30
professionalMycroft Holmes25-Jan-10 10:30 
GeneralRe: Remove Javascript controls from export to excel - VB.Net Pin
technette25-Jan-10 11:07
technette25-Jan-10 11:07 
GeneralRe: Remove Javascript controls from export to excel - VB.Net Pin
Mycroft Holmes25-Jan-10 12:00
professionalMycroft Holmes25-Jan-10 12:00 
GeneralRe: Remove Javascript controls from export to excel - VB.Net Pin
technette25-Jan-10 12:32
technette25-Jan-10 12:32 
QuestionI don't know why I have this error Pin
Curious 200922-Jan-10 5:51
Curious 200922-Jan-10 5:51 
AnswerRe: I don't know why I have this error Pin
DJ Matthews22-Jan-10 6:01
DJ Matthews22-Jan-10 6:01 
GeneralRe: I don't know why I have this error Pin
Curious 200922-Jan-10 6:33
Curious 200922-Jan-10 6:33 
AnswerRe: I don't know why I have this error Pin
loyal ginger22-Jan-10 6:31
loyal ginger22-Jan-10 6:31 
GeneralRe: I don't know why I have this error Pin
Curious 200922-Jan-10 6:39
Curious 200922-Jan-10 6:39 
GeneralRe: I don't know why I have this error Pin
loyal ginger22-Jan-10 7:10
loyal ginger22-Jan-10 7:10 
GeneralRe: I don't know why I have this error Pin
Curious 200922-Jan-10 7:35
Curious 200922-Jan-10 7:35 
GeneralRe: I don't know why I have this error Pin
loyal ginger22-Jan-10 7:44
loyal ginger22-Jan-10 7:44 
GeneralRe: I don't know why I have this error Pin
Curious 200922-Jan-10 8:49
Curious 200922-Jan-10 8:49 
QuestionDatabase record to textboxes Pin
offroaderdan22-Jan-10 5:06
offroaderdan22-Jan-10 5:06 
AnswerRe: Database record to textboxes Pin
Eddy Vluggen23-Jan-10 5:48
professionalEddy Vluggen23-Jan-10 5:48 

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.