Click here to Skip to main content
15,902,809 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
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 
The above draws a circle from the cursor positions, both X and Y coordinates, and then moves the starting point of the circle to the top left by the -35(X) and -55(Y) I used as offsets. This does work properly. What doesn't work are some other circles which are of differing sizes, dependent on a variable.

If I want each secondary circle to be concentric with the first one, I have to manually enter in the values. An example would be: first circle is size 50, second one is 100. When I click, it places the first circle centered around the mouse, equidistant from the clicked point. It then places the second circle. If I don't enter an offset, it places the circle to the bottom right of the clicked point.

I can manually enter an offset so it puts the second circle in the right place, but I have many different sized circles. Each one requires a different offset. This is caused by it drawing the circle from the top left to the bottom right, instead of from the center. It draws it like a rectangle.

I want it to draw the circle from the center, so I don't have to figure out offsets for all of the different sized circles.
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 
QuestionWhere and Why my row is not collored Pin
DeDelva23-Sep-11 3:19
DeDelva23-Sep-11 3:19 
AnswerRe: Where and Why my row is not collored Pin
Luc Pattyn23-Sep-11 3:32
sitebuilderLuc Pattyn23-Sep-11 3:32 
GeneralRe: Where and Why my row is not collored Pin
Scubapro23-Sep-11 3:49
Scubapro23-Sep-11 3:49 
AnswerRe: Where and Why my row is not collored Pin
DeDelva23-Sep-11 5:41
DeDelva23-Sep-11 5:41 

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.