Click here to Skip to main content
15,899,474 members
Home / Discussions / C#
   

C#

 
GeneralRe: DateTimePicker Control Pin
Mr BallyDaHob25-Jan-03 5:39
Mr BallyDaHob25-Jan-03 5:39 
QuestionC# RegEx text parsing??? Pin
Kevin S.24-Jan-03 10:03
Kevin S.24-Jan-03 10:03 
QuestionTcpListener Hangs at 4096 bytes? Pin
Daniel Bright24-Jan-03 9:01
Daniel Bright24-Jan-03 9:01 
AnswerRe: TcpListener Hangs at 4096 bytes? Pin
Heath Stewart24-Jan-03 10:14
protectorHeath Stewart24-Jan-03 10:14 
AnswerRe: TcpListener Hangs at 4096 bytes? Pin
Stephane Rodriguez.24-Jan-03 10:18
Stephane Rodriguez.24-Jan-03 10:18 
QuestionHow do I draw on a bitmap? Pin
MikeBeard24-Jan-03 8:48
MikeBeard24-Jan-03 8:48 
AnswerRe: How do I draw on a bitmap? Pin
Heath Stewart24-Jan-03 8:55
protectorHeath Stewart24-Jan-03 8:55 
GeneralRe: How do I draw on a bitmap? Pin
MikeBeard24-Jan-03 9:01
MikeBeard24-Jan-03 9:01 
GeneralRe: How do I draw on a bitmap? Pin
Heath Stewart24-Jan-03 10:11
protectorHeath Stewart24-Jan-03 10:11 
GeneralRe: How do I draw on a bitmap? Pin
MikeBeard24-Jan-03 10:46
MikeBeard24-Jan-03 10:46 
GeneralRe: How do I draw on a bitmap? Pin
Heath Stewart24-Jan-03 11:37
protectorHeath Stewart24-Jan-03 11:37 
GeneralRe: How do I draw on a bitmap? Pin
MikeBeard25-Jan-03 11:07
MikeBeard25-Jan-03 11:07 
GeneralRe: How do I draw on a bitmap? Pin
Heath Stewart25-Jan-03 11:12
protectorHeath Stewart25-Jan-03 11:12 
GeneralRe: How do I draw on a bitmap? Pin
MikeBeard27-Jan-03 3:44
MikeBeard27-Jan-03 3:44 
AnswerRe: How do I draw on a bitmap? Pin
MikeBeard24-Jan-03 11:25
MikeBeard24-Jan-03 11:25 
Okay. Here's what I've tried. I was successful on doing the simple and easy way that Heath suggested in just having a Graphics g = Graphics.FromImage(bmp) and drawing on the bitmap when in the On_Paint() method of the class I'm working on.

To simplify things for myself, I've changed the Bitmap to an Image and loaded it in from the BMP file and had everything work correctly.

Now for the thing I'm not sure how to do: When I'm in the OnMouseDown() (which is where I would like to call a function to draw a node on the map since I have a Point to do it at), I can't seem to get a Graphics object from my Image object to do the drawing with. What should I do? It obviously can be done since I do it in the On_Paint() function.

Any pointers would be appreciated.

Thanks a bunch,
Mike
GeneralAdding File Type actions Pin
Waleed Zedan24-Jan-03 6:07
Waleed Zedan24-Jan-03 6:07 
Generalsilly gui question/request Pin
bertb24-Jan-03 3:50
bertb24-Jan-03 3:50 
QuestionWhat happens with events if computer is slow. Pin
Zinj24-Jan-03 2:24
sussZinj24-Jan-03 2:24 
AnswerRe: What happens with events if computer is slow. Pin
leppie24-Jan-03 6:16
leppie24-Jan-03 6:16 
GeneralRe: What happens with events if computer is slow. Pin
jinz25-Jan-03 11:40
jinz25-Jan-03 11:40 
GeneralRe: What happens with events if computer is slow. Pin
leppie25-Jan-03 20:30
leppie25-Jan-03 20:30 
GeneralThe mystical power C# Pin
gekoscan24-Jan-03 2:11
gekoscan24-Jan-03 2:11 
GeneralRe: The mystical power C# Pin
Mark Sanders24-Jan-03 3:38
Mark Sanders24-Jan-03 3:38 
GeneralFlicker Free is not the Key Pin
gekoscan24-Jan-03 3:58
gekoscan24-Jan-03 3:58 
GeneralRe: The mystical power C# Pin
Q&A27-Jan-03 23:16
Q&A27-Jan-03 23:16 

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.