Click here to Skip to main content
16,007,163 members
Home / Discussions / C#
   

C#

 
AnswerRe: Passing a collection object to a method as a ref parameter... or not? Pin
Guffa15-Dec-06 18:27
Guffa15-Dec-06 18:27 
GeneralRe: Passing a collection object to a method as a ref parameter... or not? Pin
lvanerstrom15-Dec-06 18:34
lvanerstrom15-Dec-06 18:34 
QuestionAnybody know how to upload video using ASP.NET? Pin
mujin0315-Dec-06 17:12
mujin0315-Dec-06 17:12 
AnswerRe: Anybody know how to upload video using ASP.NET? Pin
Alper Camel17-Dec-06 9:04
Alper Camel17-Dec-06 9:04 
QuestionGetting dynamic Datagrid Pin
narendrakumarp15-Dec-06 16:39
narendrakumarp15-Dec-06 16:39 
QuestionNewbie problems Pin
new to this15-Dec-06 15:10
new to this15-Dec-06 15:10 
AnswerRe: Newbie problems Pin
Guffa15-Dec-06 17:08
Guffa15-Dec-06 17:08 
QuestionCreating an own Rectangle class Pin
babbelfisken15-Dec-06 13:30
babbelfisken15-Dec-06 13:30 
Hi,

For my programming purposes i've decided to implement a class called MyRectangle.
It has the x,y,width,height variables and some other important objects that i want contained into this MyRectangle object ... (I know of the system.Drawing.Rectangle, but that's not the point. I simply want to learn how to create own objects that can be drawn into a Windows Form)

I have now a Windows Form with a single button with the Click event; when button
clicked i want to draw my own object of MyRectangle. Simple enough just to test it.

Let's say i have a method drawMyRectangle() that perhaps uses the System.Drawing.Rectangle itself.

I've been reading about the Paint()-method, PaintEventArgs e and so on.. But i just can't connect it all..

Is there someone out there who can shine some ligth ?

Thanks from Daniel



AnswerRe: Creating an own Rectangle class Pin
Guffa15-Dec-06 15:58
Guffa15-Dec-06 15:58 
AnswerRe: Creating an own Rectangle class Pin
CPallini15-Dec-06 22:29
mveCPallini15-Dec-06 22:29 
Questionpersistant variable? Pin
amatbrewer15-Dec-06 13:12
amatbrewer15-Dec-06 13:12 
AnswerRe: persistant variable? Pin
Guffa15-Dec-06 17:20
Guffa15-Dec-06 17:20 
JokeRe: persistant variable? Pin
amatbrewer18-Dec-06 5:24
amatbrewer18-Dec-06 5:24 
AnswerRe: persistant variable? Pin
Luc Pattyn15-Dec-06 18:47
sitebuilderLuc Pattyn15-Dec-06 18:47 
GeneralRe: persistant variable? Pin
Guffa15-Dec-06 19:20
Guffa15-Dec-06 19:20 
GeneralRe: persistant variable? Pin
Luc Pattyn16-Dec-06 4:35
sitebuilderLuc Pattyn16-Dec-06 4:35 
GeneralRe: persistant variable? Pin
Guffa16-Dec-06 16:04
Guffa16-Dec-06 16:04 
QuestionRegex Help Pin
Expert Coming15-Dec-06 11:52
Expert Coming15-Dec-06 11:52 
AnswerRe: Regex Help Pin
Ravi Bhavnani15-Dec-06 11:58
professionalRavi Bhavnani15-Dec-06 11:58 
AnswerRe: Regex Help Pin
User 665815-Dec-06 11:59
User 665815-Dec-06 11:59 
GeneralRe: Regex Help Pin
Expert Coming15-Dec-06 12:03
Expert Coming15-Dec-06 12:03 
QuestionArrayList??????????? Pin
sajid.salim.khan15-Dec-06 10:20
sajid.salim.khan15-Dec-06 10:20 
AnswerRe: ArrayList??????????? Pin
User 665815-Dec-06 10:38
User 665815-Dec-06 10:38 
QuestionConfused about sockets... Pin
Lord Kixdemp15-Dec-06 10:14
Lord Kixdemp15-Dec-06 10:14 
AnswerRe: Confused about sockets... Pin
Ravi Bhavnani15-Dec-06 11:57
professionalRavi Bhavnani15-Dec-06 11:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.