Friday, March 20, 2020

George Orwell and Arthur Miller essays

George Orwell and Arthur Miller essays Arthur Miller and George Orwells writings are perceptive of Biblical views concerning social flaws and political corruption. The Crucible, by Arthur Miller, is based on the McCarthy trials, which caused the errors of the society to be revealed. These trials were a difficult time in America. Many innocent people were persecuted because they did not conform to the harshness of society. In Animal Farm, George Orwell figuratively uses symbolism to display the dominating politics in Russia at that time. Animal Farm is filled with examples of political corruption. One example is when the animals over throw the owner of the farm so they can set up their own government. They wish to set up a communist government. Napoleon and Snowball, the competing leaders of Animal Farm, both fight for the controlling position, but Snowball proves to be less powerful and falls under the rule of Napoleon. Within this government are many flaws. A communist government is one that has only one absolute ruler. A problem naturally occurs in society when one person is allowed too much power. In Animal Farm, Napoleon makes himself the sole ruler. Orwell displays Napoleon so well that the reader understands his character on a literal level (Meyers 131). The satiric allegory Orwell uses to subtlely describe communist Russia is evident in every detail (Meyers 133). At the beginning of the book, Major gives a speech expository of orthodox Marxism. Napoleon represents Stalin and Snowball symbolizes Trotsky, beca use of their opposite personalities and beliefs (Meyers 136). The major events in Russias history described in Animal Farm are Stalins forced collectivization, the Great Purge Trials, and the diplomacy with Germany that ended with Hitlers invasion in 1941 (Meyers 139). Napoleon is deceived when Frederick gives him forged bank notes, which represent the Hitler-Stalin non-aggression pact of August 1939 (Meyers 141). The conf ...

Wednesday, March 4, 2020

VB.NET LinkLabel Component Tutorial

VB.NET LinkLabel Component Tutorial LinkLabel, new in Visual Basic .NET, is a standard control that lets you embed web-style links in a form. Like a lot of VB.NET controls, this one doesnt do anything that you couldnt do before ... but with more code and more trouble. For example, VB 6 had the Navigate (and Navigate2 when the first one proved inadequate) methods that you could use with a URL text string to call a web page. LinkLabel is much more convenient and trouble free than older techniques. But, in sync with .NET architecture, LinkLabel is designed to be used with other objects to do the whole job. You still need to use a separate command to start an email or browser for example. Example code is included below. The basic idea is to put the email address or web URL into the Text property of a LinkLabel component, then when the label is clicked, the LinkClicked event is triggered. There are well over a hundred methods and objects available for the LinkLabel object including properties to handle everything you might want to do with a link like changing the color, text, position, how it behaves when you click it ... whatever! You can even check mouse buttons and positions and test whether the Alt, Shift, or Ctrl keys are pressed when the link is clicked. A list is shown in the illustration below: Click Here to display the illustrationClick the Back button on your browser to return An object with a really long name is also passed to this event: LinkLabelLinkClickedEventArgs. Fortunately, this object is instantiated with the nice short name used for all event arguments, e. The Link object has more methods and properties. The illustration below shows the event code and the Link object. Click Here to display the illustrationClick the Back button on your browser to return You will normally use the Text property of the Link object to get a URL or email address and then pass this value to System.Diagnostics.Process.Start. To bring up a web page ... System.Diagnostics.Process.Start(http://visualbasic.about.com) To start an email using the default email program ... System.Diagnostics.Process.Start(mailto: visualbasicaboutguide.com) But youre really limited only by your imagination in using the five overloads of the Start method. You could, for example, start the Solitaire game: System.Diagnostics.Process.Start(sol.exe) If you put a file in the string field, then the default processing program for that file type in Windows will kick in and process the file. This statement will display MyPicture.jpg (if its in the root of drive C:). System.Diagnostics.Process.Start(C:MyPicture.jpg) You can use the LinkLabel almost like a button by simply putting any code you like in the LinkClicked event instead of the Start method. The investigation of the hundred or so other possibilities is wa-a-a-y beyond the scope of this article, but here are a few examples to get you started. One new concept used in LinkLabel is the idea that there can be multiple links in a LinkLabel and theyre all stored in a LinkCollection type. The first element, Links(0), in the collection is created automatically although you can control what it is using the LinkArea property of LinkLabel. In the example below, the Text property of LinkLabel1 is set to FirstLink SecondLink ThirdLink but only the first 9 characters are specified as a link. The Links collection has a Count of 1 because this link was added automatically. To add more elements to the Links collection, just use the Add method. The example also shows how ThirdLink can be added as an active part of the link. Click Here to display the illustrationClick the Back button on your browser to return Its easy to associate different targets with the different parts of the Link Text. Just set the LinkData property. To make FirstLink target the About Visual Basic web page and ThirdLink target the main About.Com web page, simply add this code to the initialization (the first two statements are repeated from the illustration above for clarity): LinkLabel1.LinkArea New LinkArea(0, 9)LinkLabel1.Links.Add(21, 9)LinkLabel1.Links(0).LinkData http://visualbasic.about.comLinkLabel1.Links(1).LinkData about.com You might want to do something like this to customize links for different users. You could use code to make one group of users go to a different target than another group. Microsoft saw the light about hyperlinks with VB.NET and included everything you might want to do with them.