Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void verifybutton_Click(object sender, EventArgs e)
- {
- string firsttext = manganamebox.Text.ToLower();
- string originalname = firsttext;
- string manganame = firsttext.Replace(" ", "-");
- Regex rgx = new Regex("[^a-zA-Z0-9 -]");
- manganame = rgx.Replace(manganame, "");
- string url = "http://s2.mangareader.net/cover/" + manganame + "/" + manganame + "-l0.jpg";
- // Download web image (cover)
- Image _Image = null;
- _Image = DownloadImage(url);
- // check for valid image
- if (_Image != null)
- {
- // show image in picturebox
- pictureBox1.Image = _Image;
- filename.Text = firsttext+".pdf";
- string filenme = firsttext.Replace(" ", "-");
- filename.Text = filenme+".pdf";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement