Click here to Skip to main content
16,007,610 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionWorkflow Tracking When Workflow is hosted as a Web Service Pin
Don Trainer21-Mar-07 8:16
Don Trainer21-Mar-07 8:16 
QuestionProgressbar and SOAP service Pin
Liottru21-Mar-07 7:57
Liottru21-Mar-07 7:57 
QuestionHow can I check some hardware presence in puter? Pin
JUNEYT21-Mar-07 7:33
JUNEYT21-Mar-07 7:33 
AnswerRe: How can I check some hardware presence in puter? Pin
The ANZAC21-Mar-07 11:18
The ANZAC21-Mar-07 11:18 
QuestionTyped dataset not generating update and delete statements Pin
steve_rm21-Mar-07 4:19
steve_rm21-Mar-07 4:19 
Questionto call a webservice using javascript, vb.net inline code Pin
shyamts21-Mar-07 2:40
shyamts21-Mar-07 2:40 
AnswerRe: to call a webservice using javascript, vb.net inline code Pin
Dave Kreskowiak21-Mar-07 3:23
mveDave Kreskowiak21-Mar-07 3:23 
QuestionXML is driving me insane in vb.net ! Please help Pin
JUNEYT21-Mar-07 1:39
JUNEYT21-Mar-07 1:39 
I am posting the same problem 2nd time. Sorry for that but the strange thing is happening in the function. It suppose to display a message but it is giving me "An error occurred creating the form. See Exception.InnerException for details. The error is: Object reference not set to an instance of an object." error message. It loads the file there in no problem. Either keys and values exist in the file also. The message boxes display nothing. What is causing the problem? Thank you. Cry | :(( Here is my code:

The file is under application.startuppath /bin/debug directory


Private Function GetCnfgParameter(ByVal MyKey As String) As String

   Dim DocXml As New XmlDocument
   Dim NodeXml As XmlNode = Nothing

   DocXml.Load(Path.Combine(Application.StartupPath, "app.xml"))
   NodeXml = DocXml.DocumentElement.SelectSingleNode("//configuration/AppDefaultValues/add[@key=""" & MyKey & """]")
        If TypeName(NodeXml.Attributes.GetNamedItem("value")) <> "Nothing" Then
            NodeXml = NodeXml.Attributes.GetNamedItem("value")
            MsgBox(NodeXml.Value)
        Else
            'No @ mykey attribute in attributes collection
            MsgBox("Could not find the @mykey attribute as in a <add mykey=''> element.")
        End If

        Return NodeXml.Attributes.GetNamedItem("value").Value

        NodeXml = Nothing

    End Function



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


AnswerRe: XML is driving me insane in vb.net ! Please help Pin
coolestCoder21-Mar-07 1:53
coolestCoder21-Mar-07 1:53 
GeneralRe: XML is driving me insane in vb.net ! Please help Pin
JUNEYT21-Mar-07 2:04
JUNEYT21-Mar-07 2:04 
QuestionUrgent 002 Pin
Sarfaraj Ahmed21-Mar-07 1:24
Sarfaraj Ahmed21-Mar-07 1:24 
AnswerRe: Urgent 002 Pin
Tirthadip21-Mar-07 1:59
Tirthadip21-Mar-07 1:59 
GeneralRe: Urgent 002 Pin
Sarfaraj Ahmed21-Mar-07 2:24
Sarfaraj Ahmed21-Mar-07 2:24 
AnswerRe: Urgent 002 Pin
PlayByTheRules21-Mar-07 2:23
PlayByTheRules21-Mar-07 2:23 
GeneralRe: Put data to Table(1) from Table(0) Pin
Sarfaraj Ahmed21-Mar-07 2:26
Sarfaraj Ahmed21-Mar-07 2:26 
AnswerSUBJECT LINE Pin
leckey21-Mar-07 5:36
leckey21-Mar-07 5:36 
QuestionUrgent 001 Pin
Sarfaraj Ahmed21-Mar-07 1:21
Sarfaraj Ahmed21-Mar-07 1:21 
AnswerRe: Urgent 001 Pin
Tirthadip21-Mar-07 2:03
Tirthadip21-Mar-07 2:03 
GeneralRe: Urgent 001 Pin
Sarfaraj Ahmed21-Mar-07 2:34
Sarfaraj Ahmed21-Mar-07 2:34 
AnswerRe: Urgent 001 Pin
PlayByTheRules21-Mar-07 2:22
PlayByTheRules21-Mar-07 2:22 
QuestionInterfacing with a web camera Pin
BarnfieldAdam21-Mar-07 0:45
BarnfieldAdam21-Mar-07 0:45 
AnswerRe: Interfacing with a web camera Pin
Dave Kreskowiak21-Mar-07 3:20
mveDave Kreskowiak21-Mar-07 3:20 
GeneralRe: Interfacing with a web camera Pin
BarnfieldAdam21-Mar-07 4:10
BarnfieldAdam21-Mar-07 4:10 
QuestionQuestion on substring???????? Pin
shyamts21-Mar-07 0:41
shyamts21-Mar-07 0:41 
AnswerRe: Question on substring???????? Pin
Tamimi - Code21-Mar-07 0:49
Tamimi - Code21-Mar-07 0: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.