Page 1 of 1

Little help

Posted: Wed Apr 23, 2014 2:39 am
by Bloodz_Ninja
hey guys so i founded a DJ group called ultra soundz and i want to digitally record the members

so i designed a software but i dont have much of an idea of how to exactly code it

Image


So when i register, i want it to make a file where the program is located called DJname.usp

the file is named after the dj name, and the program should only read usp files (nothing advanced)

so when i want to view them now, i would click Read Data and should look like this

Image


so the program reads the file names and sets the link labels to their name, when i click a name it should show like this

Image


thanks fr helping me in advanced

Re: Little help

Posted: Wed Apr 23, 2014 7:09 am
by Dummy1912
hello #Bloodz_Ninja,

can you explain a little more please
because we don't get it exact what you wanted to receive :)

thanks

Re: Little help

Posted: Wed Apr 23, 2014 9:24 am
by Codex
You can create a file using
Code: Select all
Dim fs As FileStream = File.Create(Application.StartupPath & "\" & ArtistName & ".usp")
and then write to it using
Code: Select all
Dim info As Byte() = New UTF8Encoding(True).GetBytes("{"DJ":{"Fullname":"Alex","Address":"XXX, Sweden","DOB":{"Day":"5","Month":"12","Year":"1990"},"Gender":"Male","DJ Name":"A1ex"}}")
The above code uses JSON data, and you can easily add/remove/replace data.

You can use XML/JSON/etc. or newline to structure the content. Personally JSON is the easiest format, especially if you have a lot of data.

Re: Little help

Posted: Wed Apr 23, 2014 10:35 am
by comathi
I don't mean to advertise, but I did write a tutorial on using JSON with VB.NET not too long ago. It might be useful :) viewtopic.php?f=38&t=11520

Re: Little help

Posted: Wed Apr 23, 2014 12:56 pm
by Bloodz_Ninja
i will give them try, thank you all :D