Click here to Skip to main content
15,899,679 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Create an exe without need of setup file and packaging and deployment advice Pin
Ageesh29-Apr-09 1:44
Ageesh29-Apr-09 1:44 
Questione-mail textbox validation in vb.net Pin
p_m_kanthi26-Apr-09 21:13
p_m_kanthi26-Apr-09 21:13 
AnswerRe: e-mail textbox validation in vb.net Pin
Christian Graus26-Apr-09 21:27
protectorChristian Graus26-Apr-09 21:27 
AnswerRe: e-mail textbox validation in vb.net Pin
Dave Kreskowiak27-Apr-09 2:08
mveDave Kreskowiak27-Apr-09 2:08 
Questionvisual basic dot net Pin
anandkumarrs626-Apr-09 21:04
anandkumarrs626-Apr-09 21:04 
AnswerRe: visual basic dot net Pin
Christian Graus26-Apr-09 21:10
protectorChristian Graus26-Apr-09 21:10 
GeneralRe: visual basic dot net Pin
Thomas Krojer30-Apr-09 1:22
Thomas Krojer30-Apr-09 1:22 
QuestionXMLDocument loop in textboxes with same Attribute name. [modified] Pin
elroy7226-Apr-09 9:37
elroy7226-Apr-09 9:37 
OK so here's the deal I'm working on loading xml from a file into certain textboxes with XMLDocument.
My first XML looked like this:
<option name="HP_LOW" value="85" />
<option name="MP_LOW_POTION" value="60" />
<option name="HP_LOW_POTION" value="60" />


The attribute called "value" was what I needed to appear in the text boxes. Those were the same so when I set a loop to load those it returned all 85's.. I fixed this by:

If m_node.Attributes.GetNamedItem("name").Value = "HP_LOW" Then
HP_LOW.Text = m_node.Attributes.GetNamedItem("value").Value
End If


and so on for the rest.

Now i have run into another problem. I have one with single attributes that are all the same.


<friend name="MyOtherCharacter1" />
<friend name="MyOtherCharacter2" />
<friend name="MyOtherCharacter3" />
<friend name="MyOtherCharacter4" />
<friend name="MyOtherCharacter5" />
<friend name="MyOtherCharacter6" />


When I run it in a loop with:

Dim friends = m_node.Attributes.GetNamedItem("name").Value
Console.Write("friends: " & friends)


I can see all of them fine in the console:
friends: MyOtherCharacter1
friends: MyOtherCharacter2
friends: MyOtherCharacter3
friends: MyOtherCharacter4
friends: MyOtherCharacter5
friends: MyOtherCharacter6


Now (finally) my question is how do i separate each line into a different text box?

modified on Sunday, April 26, 2009 4:03 PM

AnswerRe: XMLDocument loop in textboxes with same Attribute name. Pin
Christian Graus26-Apr-09 13:14
protectorChristian Graus26-Apr-09 13:14 
GeneralRe: XMLDocument loop in textboxes with same Attribute name. Pin
elroy7226-Apr-09 13:50
elroy7226-Apr-09 13:50 
GeneralRe: XMLDocument loop in textboxes with same Attribute name. Pin
Christian Graus26-Apr-09 14:06
protectorChristian Graus26-Apr-09 14:06 
Question[Message Deleted] Pin
julez12326-Apr-09 4:20
julez12326-Apr-09 4:20 
AnswerRe: HELP!!! Pin
Dave Kreskowiak26-Apr-09 10:53
mveDave Kreskowiak26-Apr-09 10:53 
AnswerRe: HELP!!! Pin
Christian Graus26-Apr-09 11:02
protectorChristian Graus26-Apr-09 11:02 
Questionneed help: working with dynamic created listbox [modified] Pin
StevenMertens25-Apr-09 23:57
StevenMertens25-Apr-09 23:57 
AnswerRe: need help: working with dynamic created listbox Pin
Luc Pattyn26-Apr-09 0:50
sitebuilderLuc Pattyn26-Apr-09 0:50 
GeneralRe: need help: working with dynamic created listbox Pin
StevenMertens26-Apr-09 0:58
StevenMertens26-Apr-09 0:58 
GeneralRe: need help: working with dynamic created listbox Pin
Luc Pattyn26-Apr-09 2:06
sitebuilderLuc Pattyn26-Apr-09 2:06 
QuestionRichTextBox and Image Alignment Pin
Alan Burkhart25-Apr-09 17:54
Alan Burkhart25-Apr-09 17:54 
QuestionProperty for user defined control Pin
jainga1021325-Apr-09 17:20
jainga1021325-Apr-09 17:20 
AnswerRe: Property for user defined control Pin
Dave Kreskowiak26-Apr-09 10:52
mveDave Kreskowiak26-Apr-09 10:52 
QuestionHow to find a file in a certain directory Pin
cjfusion25-Apr-09 9:28
cjfusion25-Apr-09 9:28 
AnswerRe: How to find a file in a certain directory Pin
Eslam Afifi25-Apr-09 12:35
Eslam Afifi25-Apr-09 12:35 
GeneralRe: How to find a file in a certain directory Pin
cjfusion25-Apr-09 13:21
cjfusion25-Apr-09 13:21 
GeneralRe: How to find a file in a certain directory Pin
Dave Kreskowiak26-Apr-09 10:51
mveDave Kreskowiak26-Apr-09 10:51 

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.