473,385 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

it used to be a simple program in VB6 :(

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..
Nov 16 '05 #1
1 1106
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]
- mv*@spam.guard.caspershouse.com

"Serdar C." <se*****@interaktif.gen.tr> wrote in message
news:%2****************@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..

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: James Gregory | last post by:
I have a C++ program. I would like it to send data to a web server. A script on said server would interpret this data and make some changes to an SQL database on the server. Googling I can...
1
by: Chris | last post by:
I want to detect the version of the JVM that is being used by the browser, for both IE & Firefox (and maybe also Opera & Safari if possilbe). I have searched around the web for such a program,...
17
by: savesdeday | last post by:
In my beginnning computer science class we were asked to translate a simple interest problem. We are expected to write an algorithm that gets values for the starting account balance B, annual...
5
by: Rob Somers | last post by:
Hey all I am writing a program to keep track of expenses and so on - it is not a school project, I am learning C as a hobby - At any rate, I am new to structs and reading and writing to files,...
2
by: Thomas G. Marshall | last post by:
Arthur J. O'Dwyer <ajo@nospam.andrew.cmu.edu> coughed up the following: > On Thu, 1 Jul 2004, Thomas G. Marshall wrote: >> >> Aside: I've looked repeatedly in google and for some reason cannot >>...
13
by: George | last post by:
Hi, I am re-writing part of my application using C#. This application starts another process which execute a "legacy" program. This legacy program writes to a log file and before it ends, it...
94
by: Samuel R. Neff | last post by:
When is it appropriate to use "volatile" keyword? The docs simply state: " The volatile modifier is usually used for a field that is accessed by multiple threads without using the lock...
59
by: raashid bhatt | last post by:
why are GOTO's not used they just a simple JMP instructions what's bad about them
5
krungkrung
by: krungkrung | last post by:
hi again to everyone! I made a simple program(for my VB.Net practice). The program loads an image file to a picturebox upon clicking a button. after loading the image file i have another button to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.