vb to C#


hello! can tell me how convert line written in vb5 c#:

pic.line (x + px, y + py)-(x + px + 1, y + py + 1), rgb(p, p, p), bf;

because can't(((

from following link.  there samples in vb6 translated vb2008.

http://msdn.microsoft.com/en-us/library/9dtfzwyx(v=vs.90).aspx

line method

in visual basic 6.0, line method used draw rectangle specifying top left , lower coordinates, along optional argument b. fillcolor property used fill rectangle solid color, , fillstyle property fills rectangle crosshatch pattern.

in visual basic 2008, drawrectangles method used draw border of rectangle, , fillrectangle method used fill it. fillrectangle takes brush object parameter. solidbrush replaces fillcolor property , members of hatchbrush class replace fillstyle property.

 

rudy   =8^d


mark best replies answers. "fooling computers since 1971."

http://thesharpercoder.blogspot.com/




Visual Studio Languages  ,  .NET Framework  >  Visual C#



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'