Geeks With Blogs
Shape Without Form He who has a why to live for can bear almost any how C# Information on C#
Auto Generate a class from a Web Service or an XML file.
Lets Say ... you are working on a COM component in C# that will wrap a Web Service. Callers of your object \ class want to use a particular web service but can not access it directly. So instead they are going to user your COM object as a proxy. One of the things your COM object must do is mirror a class in the Web Service. There is a method call to GetSomeStuff() that returns a Stuff object. public Stuff GetSomeStuff(){.... The client consuming your object has no reference to SomeWebService.NamePace.Stuff ......

Posted On Tuesday, March 11, 2008 11:36 AM

GDI+ Example
st1\:*{behavior:url(#ieooui) } GDI+ Drawing outside the lines GDI+ Drawing out side the lines I would like to present two simple concepts: How to create a Graphics object without using an OnPaint Event and its PaintEventArgs. How to get the coordinates for an existing control and draw on it. It is possible to override OnPaint events.Overriding the Form's OnPaint: protected override void OnPaint(PaintEventArgs pe)? { } Then you will have to get a reference to the graphics object: Graphics g = pe.Graphics; ......

Posted On Thursday, March 9, 2006 6:27 PM

Ayman's VB .Net.Mail to C#
Thought Ayman's snip was pretty cool with Gmail account I hadn't looked at this part of the namespace. Here it is with squigles, pretty much the same. I have been unable to connect the gmail smtp server though and will show my error first... The Error I get: Failure sending mail.System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketEx... An established connection was aborted by the software in your host machine at System.Net.Sockets.Socket.D... ......

Posted On Thursday, March 9, 2006 2:28 PM

Copyright © [C.B.W] | Powered by: