Jump to content

Jose Marquez

Member
  • Posts

    40
  • Joined

  • Last visited

Reputation Activity

  1. Funny
    Jose Marquez got a reaction from NumLock21 in Recommendations for buying a computer and a laptop   
    I can't stop laughing omg
     
  2. Funny
    Jose Marquez got a reaction from HarryNyquist in Help with some C# coding   
    UPDATE: 11/24/16
    Happy thanksgiving  and I have no idea how to delete this so I'll just leave this here: I HAVE ACCOMPLISHED EVERYTHING I NEEDED IN MY ORIGINAL POST SO DO NOT COMMENT PLEASE
     
    UPDATE: 8/10/16
    I started school so I'm not gonna have as much time to work on this. ;-;
     
    UPDATE: 8/7/16
    I fixed the Form1_Activated loop.
     
    UPDATE: 8/5/16
     
    I will keep trying to fix the annoying loop that's caused whenever the form is activated.
    In the mean time I'll make a picture viewer similar to Windows Photo Viewer. I did this before but that was when I was using c# for the first time. Now I have a bit more knowledge and hopefully will improve it.
     
    UPDATE: 8/3/16
    Here's what I have accomplished so far:
     
    1. Downloading an image from a URL
    2. Read and be able to select certain roots of the XML file - thanks to Nuluvius
     
    Here's what's left:
     
    1. Close the XML file when a new or similar search is performed. There's no File.Close(); that I'm aware of. Also I'm using XDocument.Load(); to load the XML.
    2. Being able to relocate the controls when the window is resized
    3. Auto size the groupbox in case the the title is large and doesn't cut off(see the third picture)
     
    I will also provide the source code and .exe file's here:
    Updated: 8/7/16
    Login: http://pastebin.com/94iLbkhF
    Image_Browser: http://pastebin.com/aDsbwb97
    .exe:  https://mega.nz/#!rAUEQK5C!xg9hjpKnGwMZrlQ4XjT6dkJ9VFhyPBllcAcutrdkJek
     
    To login:
    If you HAVE an Inkbunny account:
    type in your information and login, as soon as a SID is received, the password is destroyed.
     
    If you DON'T have one and do not wish to make one:
    use "guest" for the username and leave the password blank. Note that users have the option to block submissions from guests.
     
    I really hope links are allowed...
     
    I've included pictures of the app, just thought you might want to look at it, unless you don't want too. 
     
    Here's the original post:
     
    *I'm just learning c# again as I haven't coded in a while, so don't make your answers too complicated please. Thanks.*
     
    I have 3 question for you guys:
     
    1. How would I download a picture from a website? Ex. Image
    2. How to read the values that I want from an xml output from a web server?
    3. I want to access a variable thats in Form1(Login) from Form2(Image_Browser), how would I do this?
     
    Here's my code: http://pastebin.com/94iLbkhF
    Feel free to improve it, but don't steal it and claim it as your own. .-.
     
    I want to be able to get only the name of the submission, the account title, the thumbnail of the submission, the rating of the submission such as "Mature," and the full screen URL of the image from the XML output of the server, everything else is useless for me right now. I have tried nothing yet as I'm still a newbie with c#.
     
    Thanks!
     
    Here's a sample of the XML from a web server:
     
    <submission> <submission_id>...</submission_id> <hidden>...</hidden> <username> <![CDATA[ Kinaj ]]> </username> <user_id>...</user_id> <create_datetime>...</create_datetime> <create_datetime_usertime>...</create_datetime_usertime> <last_file_update_datetime>...</last_file_update_datetime> <last_file_update_datetime_usertime>...</last_file_update_datetime_usertime> <thumbnail_url_huge_noncustom>...</thumbnail_url_huge_noncustom> <thumbnail_url_large_noncustom>...</thumbnail_url_large_noncustom> <thumbnail_url_medium_noncustom> <![CDATA[ https://inkbunny.net/thumbnails/medium/1609/1609080_Kinaj_alex_marie_schlie__die_t_r_noncustom.jpg ]]> </thumbnail_url_medium_noncustom> <thumb_medium_noncustom_x>...</thumb_medium_noncustom_x> <thumb_medium_noncustom_y>...</thumb_medium_noncustom_y> <thumb_large_noncustom_x>...</thumb_large_noncustom_x> <thumb_large_noncustom_y>...</thumb_large_noncustom_y> <thumb_huge_noncustom_x>...</thumb_huge_noncustom_x> <thumb_huge_noncustom_y>...</thumb_huge_noncustom_y> <file_name>...</file_name> <title> <![CDATA[ Close the Door ]]> </title> <deleted>...</deleted> <public>...</public> <mimetype>...</mimetype> <pagecount>...</pagecount> <rating_id>...</rating_id> <rating_name> <![CDATA[ Mature ]]> </rating_name> <file_url_full> <![CDATA[ https://inkbunny.net/files/full/1609/1609080_Kinaj_alex_marie_schlie__die_t_r.png ]]> </file_url_full> <file_url_screen>...</file_url_screen> <file_url_preview>...</file_url_preview> <submission_type_id>...</submission_type_id> <type_name>...</type_name> <digitalsales>...</digitalsales> <printsales>...</printsales> <friends_only>...</friends_only> <guest_block>...</guest_block> <scraps>...</scraps> </submission>  



  3. Informative
    Jose Marquez got a reaction from babadoctor in Free unrar program that ISNT A VIRUS?   
    I just ignore the "Your free trial has expired" message from WinRar..
  4. Agree
    Jose Marquez got a reaction from Jykos in Free unrar program that ISNT A VIRUS?   
    I just ignore the "Your free trial has expired" message from WinRar..
  5. Agree
    Jose Marquez got a reaction from iamdarkyoshi in Free unrar program that ISNT A VIRUS?   
    Yes.
×