Showing posts from June, 2012

Marvel’s The Avengers 2012

A very interesting movies. Heroes gather together.
DVDRIP R6, subtitle used in Mkv file is Russian.
Download Link (Mediafire).

Link1 (4 parts):

Link2 (3 parts):

If you wanna see, be hurry, links would be deleted soon :)
Enjoy the movies

One small thing about printers and Windows

Last night I coded a project in C#. Its function is to list all printers that connect to a PC and make the default printer print. Print documents are images.
I 've never worked in that kind of work so I did googling and got some tuts.
The tuts said: "Honey, just create a PrintDocument object, the fresh-created one contains a list and first element is the default printer."
I believe them, I did as they told without testing and delivered to my customer.
Bullsh!t, it is ENTIRELY not true.
I had to be back to traditional way, access the system and read some info blah blah. You should know that I wrote a small e-book about WMI, surely I used this tool.
The WMI code to get the name of default printer in Windows OS is here :

        public string GetDefaultPrinterName()
            var query = new ObjectQuery("SELECT * FROM Win32_Printer");
            var searcher = new ManagementObjectSearcher(query);

            foreach (ManagementObject mo in searcher.Ge…

The legend of Forever Alone guy who wrote himself a wrapper for C# to use as ActiveX.

Woa, me and my classmates are planning to go to the cinema to enjoy "Madagascar 3" next week. It's fantastic because the girl I like love this movie so much. I invited her to join us but she couldn't, that's so sad. It's not the worst thing when I realized that all my guys would go with their girlfriends and I would go alone. In my band of 6 or 7, I am the only one who is single. Ridiculous.
Really I am a bad mood, and I can't work for final exam until I make something crazy. I decide to call some C# code in a VBScript @@ Thanks stackoverflow stuff for helping.

Target Wrap a .NET user control in an ActiveX class

Solution 1/ Create the Class Library in VS 2010: Open your Visual Studio in Administrator mode please (some system access will be made). Create a new, empty Class Library project and add into it a Windows Form.
Drag to the from 1 button named btnDo and 1 label named lblResult. Then bind the button clicking event with these code: