Hack Forums
[.NET] VB.NET HELP! Webbrowser / HTML Display an avatar image? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] VB.NET HELP! Webbrowser / HTML Display an avatar image? (/showthread.php?tid=2043697)



VB.NET HELP! Webbrowser / HTML Display an avatar image? - Stokerbandit - Dec 24, 2011

I just made a program to login to a HABBO Hotel and the html code for the AVATAR is:
PHP Code

<?php 
<div id="avatar-plate" onclick="location.href='/characters.cfm'"><img src="http://www.habbo.com/habbo-imaging/avatarimage?figure=lg-3078-106.sh-3016-110.hr-3090-39.ha-3117-106.hd-209-5.ch-215-108" alt="Stokerbandit" style="margin:0 0 0 15px;" /></div> 

How can i display their avatar Images?
I have tryed this:

Code
Imports System.Net
Imports System.Text.RegularExpressions
Imports System.Drawing.Image
Imports System.Windows.Forms.PictureBox
Public Class Form2

Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  Dim source As String
  Using wc As New WebClient
    source = wc.DownloadString("http://HABBO.com")
  End Using
  For Each M As Match In Regex.Matches(source, "<img src=""(.+)?"""" alt=""")
    PictureBox1.Load(M.Groups(1).Value)
  Next
End Sub