Click here to Skip to main content
15,924,452 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Folder and File ???? Pin
Ashfield17-Jan-08 8:38
Ashfield17-Jan-08 8:38 
Questioncan anyone help me? Pin
ayie15-Jan-08 21:20
ayie15-Jan-08 21:20 
AnswerRe: can anyone help me? Pin
Vasudevan Deepak Kumar15-Jan-08 22:12
Vasudevan Deepak Kumar15-Jan-08 22:12 
AnswerRe: can anyone help me? Pin
Dave Kreskowiak16-Jan-08 2:10
mveDave Kreskowiak16-Jan-08 2:10 
GeneralCheck whether an area on panel is blank or not Pin
Scubapro15-Jan-08 21:19
Scubapro15-Jan-08 21:19 
GeneralRe: Check whether an area on panel is blank or not Pin
nishkarsh_k15-Jan-08 22:56
nishkarsh_k15-Jan-08 22:56 
GeneralRe: Check whether an area on panel is blank or not Pin
Scubapro16-Jan-08 1:20
Scubapro16-Jan-08 1:20 
GeneralRe: Check whether an area on panel is blank or not Pin
Dave Kreskowiak16-Jan-08 2:17
mveDave Kreskowiak16-Jan-08 2:17 
A faster method would be to do the math that calculates the largest area available, based on the line graph itself. Going pixel-by-pixel won't do you much good and is a very expensive operation.

Things to consider are what is the total available area in the graph? What is the biggest possible size you want the textarea to be?? Where does the graph intersect that area?

Once the graph passes to the right of the area you want the text in, you can stop looking at resizing the text area.

Basically, you'e calculating the intersection between two lines. Does the line you're drawing for a point on the graph intersect the line that is the bottom of the text area?? If so, then you either have to move the textarea or resize it to fit in the space between where your textarea starts and the intersection of those two lines.

Google for "calculate intersection of two lines" for the math to help you do this.



A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007




GeneralRe: Check whether an area on panel is blank or not Pin
Scubapro16-Jan-08 2:43
Scubapro16-Jan-08 2:43 
GeneralRe: Check whether an area on panel is blank or not Pin
Dave Kreskowiak16-Jan-08 3:38
mveDave Kreskowiak16-Jan-08 3:38 
GeneralRe: Check whether an area on panel is blank or not Pin
Scubapro16-Jan-08 19:57
Scubapro16-Jan-08 19:57 
QuestionConnection string from VB.Net to Crystal Report 10 Pin
Winarto15-Jan-08 19:29
Winarto15-Jan-08 19:29 
GeneralRe: Connection string from VB.Net to Crystal Report 10 Pin
John_Adams15-Jan-08 22:13
John_Adams15-Jan-08 22:13 
QuestionPOS Printing Pin
xbiplav15-Jan-08 10:16
xbiplav15-Jan-08 10:16 
GeneralRe: POS Printing Pin
Dave Kreskowiak15-Jan-08 10:34
mveDave Kreskowiak15-Jan-08 10:34 
GeneralTextbox Array Pin
parth.p15-Jan-08 9:55
parth.p15-Jan-08 9:55 
GeneralRe: Textbox Array Pin
Dave Kreskowiak15-Jan-08 10:30
mveDave Kreskowiak15-Jan-08 10:30 
GeneralRe: Textbox Array Pin
parth.p15-Jan-08 10:33
parth.p15-Jan-08 10:33 
GeneralRe: Textbox Array Pin
Dave Kreskowiak15-Jan-08 10:49
mveDave Kreskowiak15-Jan-08 10:49 
GeneralRe: Textbox Array Pin
parth.p15-Jan-08 22:35
parth.p15-Jan-08 22:35 
GeneralRe: Textbox Array Pin
Dave Kreskowiak16-Jan-08 2:02
mveDave Kreskowiak16-Jan-08 2:02 
GeneralBeginner - VB 6 and Multimedia, type declarations Pin
Jan3415-Jan-08 8:19
Jan3415-Jan-08 8:19 
GeneralRe: Beginner - VB 6 and Multimedia, type declarations Pin
Dave Kreskowiak15-Jan-08 9:16
mveDave Kreskowiak15-Jan-08 9:16 
GeneralRe: Beginner - VB 6 and Multimedia, type declarations Pin
MikeMarq15-Jan-08 14:53
MikeMarq15-Jan-08 14:53 
GeneralRead and compile a stored procedure Pin
HenrydeSousa15-Jan-08 6:24
HenrydeSousa15-Jan-08 6:24 

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.