Click here to Skip to main content
15,897,371 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: real time graphics in VB.net from serial port Pin
Johan Hakkesteegt1-Feb-07 2:47
Johan Hakkesteegt1-Feb-07 2:47 
QuestionHow to enable users to draw line on windows form vb.net? Pin
.NetRams31-Jan-07 0:11
.NetRams31-Jan-07 0:11 
AnswerRe: How to enable users to draw line on windows form vb.net? Pin
Christian Graus31-Jan-07 0:23
protectorChristian Graus31-Jan-07 0:23 
Question.Net Framework Pin
Manas'30-Jan-07 23:51
Manas'30-Jan-07 23:51 
AnswerRe: .Net Framework Pin
Meg W31-Jan-07 2:09
Meg W31-Jan-07 2:09 
Question[Message Deleted] Pin
TheApocalypse30-Jan-07 23:25
TheApocalypse30-Jan-07 23:25 
AnswerRe: Urgent ! Free Hand Drawing Pin
TwoFaced30-Jan-07 23:41
TwoFaced30-Jan-07 23:41 
AnswerRe: Urgent ! Free Hand Drawing Pin
Christian Graus31-Jan-07 0:04
protectorChristian Graus31-Jan-07 0:04 
The example you've been given won't work properly.  Once you have drawn your image, if you move another window over it, it will disappear.  This is why you shouldn't use CreateGraphics for anything except very temporary drawing.

A picturebox is a picturebox, a tool for quickly throwing a bitmap onto a form.  It's not a paint program, it's not Powerpoint.  If you want to draw on an image, you should draw the image yourself, in your paint handler.  You should track mouse movement and mouse events, and use the Invalidate() function to force paint events, your paint event will draw your bitmap, which gets drawn to as you move the mouse.



Christian Graus - C++ MVP

'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

GeneralRe: Urgent ! Free Hand Drawing Pin
.NetRams31-Jan-07 1:40
.NetRams31-Jan-07 1:40 
GeneralRe: Urgent ! Free Hand Drawing Pin
Christian Graus31-Jan-07 8:47
protectorChristian Graus31-Jan-07 8:47 
QuestionMDI Form Pin
skandaapriya30-Jan-07 23:18
skandaapriya30-Jan-07 23:18 
QuestionHow i can export data from grid to excel Pin
saravanaks30-Jan-07 23:07
saravanaks30-Jan-07 23:07 
AnswerRe: How i can export data from grid to excel Pin
Hari Om Prakash Sharma31-Jan-07 0:55
Hari Om Prakash Sharma31-Jan-07 0:55 
QuestionMDI forms Pin
skandaapriya30-Jan-07 23:06
skandaapriya30-Jan-07 23:06 
Questioni want to create my own button in vb.net Pin
anujose30-Jan-07 22:29
anujose30-Jan-07 22:29 
AnswerRe: i want to create my own button in vb.net Pin
haneef130-Jan-07 22:53
haneef130-Jan-07 22:53 
GeneralRe: i want to create my own button in vb.net Pin
Guffa30-Jan-07 22:56
Guffa30-Jan-07 22:56 
AnswerRe: i want to create my own button in vb.net Pin
Guffa30-Jan-07 22:55
Guffa30-Jan-07 22:55 
GeneralRe: i want to create my own button in vb.net Pin
anujose30-Jan-07 23:09
anujose30-Jan-07 23:09 
GeneralRe: i want to create my own button in vb.net Pin
anujose30-Jan-07 23:30
anujose30-Jan-07 23:30 
AnswerRe: i want to create my own button in vb.net Pin
Guffa31-Jan-07 4:23
Guffa31-Jan-07 4:23 
QuestionClosing form before Continue Pin
Dave McCool30-Jan-07 22:27
Dave McCool30-Jan-07 22:27 
AnswerRe: Closing form before Continue Pin
Johan Hakkesteegt30-Jan-07 23:14
Johan Hakkesteegt30-Jan-07 23:14 
QuestionChange cell value of datagrid at run time Pin
vietht30-Jan-07 20:58
vietht30-Jan-07 20:58 
QuestionImage in MDI Form Pin
Vikash Yadav30-Jan-07 20:03
Vikash Yadav30-Jan-07 20:03 

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.