Click here to Skip to main content
15,888,113 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to check whether CD inesrted into CDDrive or not and how to check the CD free space and used space in VB6 Pin
sandeep sangshetty11-May-11 19:27
sandeep sangshetty11-May-11 19:27 
QuestionError while executing WMI query to check whther CD inserted or not Pin
sandeep sangshetty11-May-11 19:00
sandeep sangshetty11-May-11 19:00 
Questionscript for MS Word 2003 doesn't work for Word 2007 Pin
Member 791550011-May-11 5:05
Member 791550011-May-11 5:05 
AnswerRe: script for MS Word 2003 doesn't work for Word 2007 Pin
Dave Kreskowiak11-May-11 6:19
mveDave Kreskowiak11-May-11 6:19 
QuestionSave a PDF file into a SQL Server Pin
Central_IT10-May-11 2:36
Central_IT10-May-11 2:36 
AnswerRe: Save a PDF file into a SQL Server Pin
Shameel10-May-11 3:03
professionalShameel10-May-11 3:03 
Questionhow to create dynamic reports Pin
Preeti19799-May-11 23:24
Preeti19799-May-11 23:24 
QuestionProper way to use .contains and .find methods with List(of object) Pin
Jon_Boy6-May-11 4:35
Jon_Boy6-May-11 4:35 
Could someone explain how to properly use the .contains and .find methods on generic list? For example, I created a list(of reportparameter) below and fill it with some dummy test values. I can't get either the .contains or find methods to work.

Dim params As New List(Of Microsoft.Reporting.WinForms.ReportParameter)
params.Add(New Microsoft.Reporting.WinForms.ReportParameter("Param1", "ParamValue1", False))
params.Add(New Microsoft.Reporting.WinForms.ReportParameter("Param2", "ParamValue2", False))
params.Add(New Microsoft.Reporting.WinForms.ReportParameter("Param3", "ParamValue3", False))

'Compiles, but never returns true. Is it correct to create a new param to execute .contains?
If params.Contains(New Microsoft.Reporting.WinForms.ReportParameter("Param1")) Then
    Debug.Print("")
End If

'This doesn't compile, not sure of the correct way to perform a find
If params.Find(New Microsoft.Reporting.WinForms.ReportParameter("Param1")) Then
    Debug.Print("")
End If


Sorry if this is a dumb question - having a blonde moment today.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison

AnswerRe: Proper way to use .contains and .find methods with List(of object) Pin
Manfred Rudolf Bihy6-May-11 5:10
professionalManfred Rudolf Bihy6-May-11 5:10 
AnswerRe: Proper way to use .contains and .find methods with List(of object) [modified] Pin
AspDotNetDev6-May-11 5:16
protectorAspDotNetDev6-May-11 5:16 
GeneralRe: Proper way to use .contains and .find methods with List(of object) Pin
Jon_Boy6-May-11 6:01
Jon_Boy6-May-11 6:01 
GeneralRe: Proper way to use .contains and .find methods with List(of object) Pin
Tarun.K.S6-May-11 8:04
Tarun.K.S6-May-11 8:04 
QuestionData binding Pin
Margaret Nansubuga4-May-11 3:46
Margaret Nansubuga4-May-11 3:46 
AnswerRe: Data binding Pin
Simon_Whale4-May-11 4:04
Simon_Whale4-May-11 4:04 
QuestionHow to check CDDrvive is ready or not Pin
sandeep sangshetty3-May-11 19:21
sandeep sangshetty3-May-11 19:21 
AnswerRe: How to check CDDrvive is ready or not Pin
Dave Kreskowiak4-May-11 1:21
mveDave Kreskowiak4-May-11 1:21 
AnswerRe: How to check CDDrvive is ready or not Pin
Simon_Whale4-May-11 1:22
Simon_Whale4-May-11 1:22 
QuestionCannot close application in or outside of debugger Pin
Alan Burkhart3-May-11 16:32
Alan Burkhart3-May-11 16:32 
AnswerRe: Cannot close application in or outside of debugger Pin
Luc Pattyn3-May-11 17:34
sitebuilderLuc Pattyn3-May-11 17:34 
GeneralRe: Cannot close application in or outside of debugger Pin
Alan Burkhart3-May-11 17:45
Alan Burkhart3-May-11 17:45 
AnswerRe: Cannot close application in or outside of debugger Pin
Luc Pattyn3-May-11 18:13
sitebuilderLuc Pattyn3-May-11 18:13 
GeneralRe: Cannot close application in or outside of debugger Pin
Alan Burkhart3-May-11 18:35
Alan Burkhart3-May-11 18:35 
AnswerRe: Cannot close application in or outside of debugger Pin
Luc Pattyn3-May-11 18:47
sitebuilderLuc Pattyn3-May-11 18:47 
GeneralRe: Cannot close application in or outside of debugger Pin
Alan Burkhart3-May-11 19:04
Alan Burkhart3-May-11 19:04 
AnswerRe: Cannot close application in or outside of debugger Pin
Luc Pattyn4-May-11 1:49
sitebuilderLuc Pattyn4-May-11 1:49 

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.