Re: it used to be a simple program in VB6 :(

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Nicholas Paldino [.NET/C# MVP] (mvp_at_spam.guard.caspershouse.com)
Date: 06/06/04


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..
>
>


Relevant Pages

  • Re: Suggestions for X10/Automation Widgets
    ... >X-Lock" by Jeff Mazur that was along the lines of what The Alien is ... It listened to the powerline and, when it heard an alien X-10 ... >Insteon only responds to commands sent from devices that have been ... You need physical control of a device to enroll ...
    (comp.home.automation)
  • Re: RS232 Datalogging and Control
    ... digital voltmeter, both RS232 enabled, so as to control the oven from a ... computer (automatically send commands) and log data from the ... to control the oven and log data from the DVM without ...
    (sci.electronics.design)
  • Re: Temporal Learning
    ... It's all C++ real time control code sends a constant stream of ... commands to the joints as well as receive real time updates from the ... I never saw a clear description of what the lowest level commands you could ...
    (comp.ai.philosophy)
  • Re: z series channel commands
    ... From the subject of your post, "z series channel commands,", the literal ... You need to determine the control unit model number that supports whatever ...
    (bit.listserv.ibm-main)
  • flather dynamo
    ... decided to sell me his large dynamo and control board. ... to believe is original to the dynamo, but unfortunatly theres a bit of ... The voltage guage has been replaced ...
    (uk.rec.engines.stationary)