Click here to Skip to main content
15,896,269 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHelp with StreamReader Pin
Brad^19-Mar-07 3:48
Brad^19-Mar-07 3:48 
AnswerRe: Help with StreamReader [modified] Pin
JUNEYT19-Mar-07 5:16
JUNEYT19-Mar-07 5:16 
GeneralRe: Help with StreamReader Pin
Brad^19-Mar-07 5:34
Brad^19-Mar-07 5:34 
GeneralRe: Help with StreamReader Pin
JUNEYT19-Mar-07 5:53
JUNEYT19-Mar-07 5:53 
GeneralRe: Help with StreamReader Pin
Brad^19-Mar-07 6:52
Brad^19-Mar-07 6:52 
GeneralRe: Help with StreamReader [modified] Pin
Brad^20-Mar-07 14:31
Brad^20-Mar-07 14:31 
GeneralRe: Help with StreamReader Pin
JUNEYT20-Mar-07 22:12
JUNEYT20-Mar-07 22:12 
QuestionHow to retrieve a value from application config file? [modified] Pin
JUNEYT19-Mar-07 3:17
JUNEYT19-Mar-07 3:17 
Hello!

Here is my function which opens a XML document and retrieves the value of it. But I am getting an error message because of a null value. It doesn't read the DateInstalled value from the file. What is the error? Thanks.
Private Function GetConfigParameter(ByVal MyKey As String) As String

    Dim XmlDocument As New XmlDocument
    Dim XmlNode As XmlNode = Nothing

    XmlDocument.Load(Environment.CurrentDirectory & "\app.con")

    XmlNode = XmlDocument.DocumentElement.SelectSingleNode("//configuration/AppDefaultValues/add[@key=""" & MyKey & """]")
    GetConfigParameter = XmlNode.Attributes.GetNamedItem("value").Value

    XmlDocument = Nothing

End Function



-- modified at 12:02 Monday 19th March, 2007


What a curious mind needs to discover knowledge is noting else than a pin-hole.


AnswerRe: How to retrieve a value from application config file? Pin
coolestCoder20-Mar-07 1:21
coolestCoder20-Mar-07 1:21 
GeneralRe: How to retrieve a value from application config file? Pin
JUNEYT20-Mar-07 2:10
JUNEYT20-Mar-07 2:10 
AnswerRe: How to retrieve a value from application config file? Pin
JenisysJohn11-Apr-07 8:14
JenisysJohn11-Apr-07 8:14 
GeneralRe: How to retrieve a value from application config file? Pin
JenisysJohn11-Apr-07 8:15
JenisysJohn11-Apr-07 8:15 
QuestionRetrieving information (urls, ...) about temporary internet files Pin
haleemha19-Mar-07 0:55
haleemha19-Mar-07 0:55 
QuestionChange color at run time Pin
nawalage18-Mar-07 23:07
nawalage18-Mar-07 23:07 
AnswerRe: Change color at run time Pin
Kschuler19-Mar-07 9:21
Kschuler19-Mar-07 9:21 
QuestionRe: Change color at run time Pin
nawalage19-Mar-07 21:36
nawalage19-Mar-07 21:36 
QuestionHow to convert existing C# Windows Application to C# Web Application.. Pin
MPS_DotNet18-Mar-07 21:10
MPS_DotNet18-Mar-07 21:10 
AnswerRe: How to convert existing C# Windows Application to C# Web Application.. Pin
Colin Angus Mackay19-Mar-07 0:52
Colin Angus Mackay19-Mar-07 0:52 
AnswerRe: How to convert existing C# Windows Application to C# Web Application.. Pin
Dave Kreskowiak19-Mar-07 1:40
mveDave Kreskowiak19-Mar-07 1:40 
Questionconvert to excel format Pin
Amit Sk Sharma18-Mar-07 19:09
Amit Sk Sharma18-Mar-07 19:09 
AnswerRe: convert to excel format Pin
Tirthadip18-Mar-07 19:44
Tirthadip18-Mar-07 19:44 
QuestionClose the word document by using controlbox Pin
Nanda160518-Mar-07 19:07
Nanda160518-Mar-07 19:07 
QuestionI need some advice from experts about integrating activation code implementation. Pin
JUNEYT18-Mar-07 11:19
JUNEYT18-Mar-07 11:19 
AnswerRe: I need some advice from experts about integrating activation code implementation. Pin
Christian Graus18-Mar-07 11:45
protectorChristian Graus18-Mar-07 11:45 
GeneralRe: I need some advice from experts about integrating activation code implementation. Pin
JUNEYT18-Mar-07 12:31
JUNEYT18-Mar-07 12:31 

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.