See I got a box and in the box is it a textbox and 2 buttons, one of the button is named open (open a txt file) and the second button is add ( add the names in a rich text box) So my idea is, when i got a txt file with full of names like:
Bob
James
Blabla
Duck etc etc
and want to upload by my upload button and when i have done that... so will one of the 4 names i have added appear in the textbox. After... if i click on the add button the name will appear in the richtextbox, and then will textbox refreash and take a new name of the 4 names.
I would like to be able to either: (1) Pick a date from the Monthcalendar box and have it insert that day into a textbox showing in a format of Day of week, Month/Day/Year or Day of week, mm dd yyyy. or in option #2 be able to enter in the date by mmddyyyy and get Day of week, mm dd yyyy showing in the textbox.
Im just wondering how i can achieve the following, this is for my own learning. Im going to be passing an XML file to VB.net and im hoping to pick out keywords from within the XML file is that possible?
So say the XML file had words such as "hello" "Today" "Next Week"
how can i possibly pick these out and store them in a varible?
I can do the first bit i.e passing the XML file in reading it etc, but im curious on the second part?
Can any one help me or if any one knows any good tutorials and locations please do let me know.
My head is fuzzled with this. I have an xml doc which has the layout for a grid stored in it. If you notice the columns are stored as "Items" in the XML. I am trying to retrieve each "Item" out of the XML using LINQ but no matter what I do I keep taking on straggler properties that I don't need.
Lets say i'm making a new dialog. I don't want to expose the properties of the form to code elsewhere, only specific ones I define. I tried making the form Protected (including the Designer generated code) and putting it in another class, but then I can't figure out how to access the form from my code. Am I going about this completely the wrong way, or what?
how to pick a random file out of a folder and open it, lets say we have text files. And i want to click a button and a random .txt file opens in my programs textbox.
I have a file that has names of competitors. I want to write a VB code that selects a random name from the file.What I need is show the names moving quickly once I press enter it will select the name.
I have an array of integers like these; dim x as integer()={10,9,4,7,6,8,3}.Now I want to pick a random number from it,how can I do this in visual basic?
I have quick questions for you guys how do I pick a random string from a listbox ? and also second question how do I randomize which line to pick out of a string array? lets say I have 5 strings
How can I pick out files using todays date? I have files that have dates and times in a folder, 08-25-2010-123803654.xml, 08-25-2010-123804441.xml, 08-24-2010-123851240.xml, etc. I want to pull out just todays entrys and when i put in my code it gives me an error.
I'm doing a project at the moment for school,I need to randomly pick a number from an array,which I can do but I can only use that number three times,I dont want an answer
I want to be able to use like a dropper to select a color that would display a html code output of the specified color picked. It would show the preview of the colors your scrolling through in the oval and a preview of what the color would look on text on a black background in the html section as html code. Unfortunantly I have no idea what the hell I'm doing, lol. I have been able to program simple programs that insert text in a text box pretty well including multiple colors of the text. But this is what I'm working with
Basically this is the whole form, theres obviously going to be a lot more which I'll try and figure out on my own. But this is basically whats going on with it. the color chooser button with have the dropper icon on it when I get the chance to add it.
I need pick some part of the picture (or can said crop some part picture) but I want to pick it through my mouse.. so I selected that picture coordinate..
I was under the impression that a node can be anything at all, be it element, attribute, etc etc.I was looking at trying to iterate through a node list, eg ....
Dim xmlDoc As New Xml.XmlDocument xmlDoc.LoadXml(" < main1 test1 = 'any' test2 = 'any2' >
[code]....
Why does the following return only the elements, and not the attributes:
For Each objnode As Xml.XmlNode In xmlDoc.DocumentElement.ChildNodes Console.WriteLine(objnode.Name) Next
How can I iterate through all nodes, regardless of type, using xpath?
I am creating an application that can import list of URL in the ListBox then it will automatically cut the first URL on the listbox then load to the webbrowser then it will repeat the process.
So what I'm trying to do is not so much generate a random word but pick one from a collection. I was thinking on generating a random number since that is very easy, then picking a word acording to the number generated. Is there a more efficient way of doing this?