Click here to Skip to main content
15,917,538 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Copying one array element to another array Pin
Luc Pattyn24-Sep-11 5:06
sitebuilderLuc Pattyn24-Sep-11 5:06 
AnswerRe: Copying one array element to another array Pin
DaveAuld24-Sep-11 22:30
professionalDaveAuld24-Sep-11 22:30 
QuestionWhy a sub is not loaded in form load but in a button it is? Pin
DeDelva24-Sep-11 3:13
DeDelva24-Sep-11 3:13 
AnswerRe: Why a sub is not loaded in form load but in a button it is? Pin
Luc Pattyn24-Sep-11 3:33
sitebuilderLuc Pattyn24-Sep-11 3:33 
AnswerRe: Why a sub is not loaded in form load but in a button it is? Pin
DaveAuld24-Sep-11 3:54
professionalDaveAuld24-Sep-11 3:54 
GeneralRe: Why a sub is not loaded in form load but in a button it is? Pin
Luc Pattyn24-Sep-11 4:04
sitebuilderLuc Pattyn24-Sep-11 4:04 
GeneralRe: Why a sub is not loaded in form load but in a button it is? Pin
DaveAuld24-Sep-11 5:37
professionalDaveAuld24-Sep-11 5:37 
QuestionDrawEllipse center on current cursor position? Pin
ChrisDScott9323-Sep-11 16:08
ChrisDScott9323-Sep-11 16:08 
Hello all!

I am trying to draw two ellipses, both centered on the mouse cursor during a click event.

Currently, I have to offset the X and Y coordinates to do this. This is fine for my first circle, which is of a static size. However, my second circle is variable in size and will always be larger than the first circle.

I am having trouble with this, as I am unable to determine what sort of equation I could use to account for all of the different sizes. Is there a way to have it draw the circle with the cursor position as the center of the circle. Is this at all possible with VB.NET, or am I going to need to start learning C++?

If any code is needed, please let me know and I will provide it.

Thanks in advance!
AnswerRe: DrawEllipse center on current cursor position? Pin
Richard MacCutchan24-Sep-11 0:12
mveRichard MacCutchan24-Sep-11 0:12 
GeneralRe: DrawEllipse center on current cursor position? Pin
ChrisDScott9324-Sep-11 6:36
ChrisDScott9324-Sep-11 6:36 
GeneralRe: DrawEllipse center on current cursor position? Pin
Richard MacCutchan24-Sep-11 6:47
mveRichard MacCutchan24-Sep-11 6:47 
GeneralRe: DrawEllipse center on current cursor position? Pin
ChrisDScott9324-Sep-11 9:20
ChrisDScott9324-Sep-11 9:20 
GeneralRe: DrawEllipse center on current cursor position? Pin
Richard MacCutchan24-Sep-11 21:34
mveRichard MacCutchan24-Sep-11 21:34 
AnswerRe: DrawEllipse center on current cursor position? Pin
Luc Pattyn24-Sep-11 4:26
sitebuilderLuc Pattyn24-Sep-11 4:26 
GeneralRe: DrawEllipse center on current cursor position? Pin
ChrisDScott9324-Sep-11 6:38
ChrisDScott9324-Sep-11 6:38 
GeneralRe: DrawEllipse center on current cursor position? Pin
Richard MacCutchan24-Sep-11 6:45
mveRichard MacCutchan24-Sep-11 6:45 
QuestionRe: DrawEllipse center on current cursor position? Pin
Luc Pattyn24-Sep-11 7:04
sitebuilderLuc Pattyn24-Sep-11 7:04 
AnswerRe: DrawEllipse center on current cursor position? Pin
ChrisDScott9324-Sep-11 9:09
ChrisDScott9324-Sep-11 9:09 
AnswerRe: DrawEllipse center on current cursor position? Pin
Richard MacCutchan24-Sep-11 21:36
mveRichard MacCutchan24-Sep-11 21:36 
AnswerRe: DrawEllipse center on current cursor position? Pin
Luc Pattyn24-Sep-11 7:02
sitebuilderLuc Pattyn24-Sep-11 7:02 
GeneralRe: DrawEllipse center on current cursor position? Pin
ChrisDScott9324-Sep-11 9:21
ChrisDScott9324-Sep-11 9:21 
AnswerRe: DrawEllipse center on current cursor position? Pin
Luc Pattyn24-Sep-11 9:26
sitebuilderLuc Pattyn24-Sep-11 9:26 
GeneralRe: DrawEllipse center on current cursor position? Pin
ChrisDScott9324-Sep-11 23:13
ChrisDScott9324-Sep-11 23:13 
QuestionListview problem Pin
erickoronoh10kip23-Sep-11 7:30
erickoronoh10kip23-Sep-11 7:30 
AnswerRe: Listview problem Pin
Bert Mitton23-Sep-11 7:38
professionalBert Mitton23-Sep-11 7:38 

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.