Re: it used to be a simple program in VB6 :(
From: Nicholas Paldino [.NET/C# MVP] (mvp_at_spam.guard.caspershouse.com)
Date: 06/06/04
- Next message: Opa: "Help with custom Serialization"
- Previous message: Tank: "Call OpenFileName API From C#"
- In reply to: Serdar C.: "it used to be a simple program in VB6 :("
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 6 Jun 2004 11:25:11 -0400
Serdar,
This is simple in .NET as well, although it is different. Basically,
create a control which derives from COntrol, and then override the OnPaint
method. In it, call the DrawRectangle method on the Graphics instance
passed to the method, and that should be it.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
"Serdar C." <serdarc@interaktif.gen.tr> wrote in message
news:%23iIO7x6SEHA.2944@tk2msftngp13.phx.gbl...
> hi there im trying to write a program that looks like this:
>
> +--------------------------------------------+
> | +--------------+ |
> | | | |
> | | Pbox | |
> | | | |
> | +--------------+ |
> +--------------------------------------------+
>
> theres a picture box in the form and i'll paint somehting on it with
mouse.
> and i want to learn the color of the each pixel of the pbox.. (i.e in
> pixel(10,10) color is black)
> there used to be simple commands for that in vb6 (gset(x,y)) but theres no
> command like this i found in c# or vb.net yet.. can smoeone help me on
this
> program or show a source with an example ?
>
> thanx for spending ur time for reading and helping..
>
>
- Next message: Opa: "Help with custom Serialization"
- Previous message: Tank: "Call OpenFileName API From C#"
- In reply to: Serdar C.: "it used to be a simple program in VB6 :("
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|