50% OFF!!!

Thursday, December 22, 2016

c# | WebBrowser control - programmatically select item on html `select`

Hi There,

As many times, we need to interact with the C# (.Net) Webbrowser Control, 
it is useful to be able to interact and programmatically change the selected item 
on an HTML select control.

I don't know, why it is hard to find this easy solution, but the code is as follow:

HtmlElementCollection col = webBrowser1.Document.GetElementsByTagName("select") 
foreach (HtmlElement heItem in col) 
  if (heItem.GetAttribute("className").Contains("exampleClassName") == true) 
    heItem.SetAttribute("selectedIndex", "3"); // select value at #3
    break; // incase of needed... 

And finally, just easy as u code...

If you need change by value and not by index,
I assume you can check the values of the select control (sometimes called: dropdown),
and once you find the correct index of the desired value,
use the code above.


Monday, October 31, 2016

List of country flags (png) by ISO3

As I needed a list of country flag images named with ISO3, and couldn't find,
I uploaded my version free (see license on bottom).

Above there are two ZIP containing country flags images (PNG format)
sizes of 64x64  and  128x128 
of the ~250 countries
as the file name is ISO3 standard
and not two letter (ISO 3166-2) or full name as most flags out there...

Download flags_iso3_128x128.rar
Download flags_iso3_64x64.rar

license and images are all taken from:

Saturday, February 13, 2016

Free Javascript Obfuscator Online

Protects JavaScript code from stealing/reading and shrinks its size.
Free Javascript Obfuscator is a professional tool for obfuscation of javascript. It Converts JavaScript source code into scrambled and completely unreadable form, preventing it from analyzing and theft.
Visit: http://freejsobfuscator.com/

u can choose if to process by your will: parameters / functions / strings / new lines / indentations and it is 100% free!