Click here to Skip to main content
15,895,799 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Image Reconstruction Using Genetic algorithm for Minimize the Number of projection and Maximize the Image Quality in C/C++/Matlab Pin
Richard MacCutchan3-Aug-11 1:24
mveRichard MacCutchan3-Aug-11 1:24 
AnswerRe: Image Reconstruction Using Genetic algorithm for Minimize the Number of projection and Maximize the Image Quality in C/C++/Matlab Pin
Dave Kreskowiak3-Aug-11 2:06
mveDave Kreskowiak3-Aug-11 2:06 
Questionresizing form with a RTB inside Pin
hang_em2-Aug-11 23:58
hang_em2-Aug-11 23:58 
AnswerRe: resizing form with a RTB inside Pin
Dave Kreskowiak3-Aug-11 2:05
mveDave Kreskowiak3-Aug-11 2:05 
GeneralRe: resizing form with a RTB inside Pin
hang_em3-Aug-11 18:01
hang_em3-Aug-11 18:01 
GeneralRe: resizing form with a RTB inside Pin
Dave Kreskowiak3-Aug-11 18:39
mveDave Kreskowiak3-Aug-11 18:39 
GeneralRe: resizing form with a RTB inside Pin
hang_em4-Aug-11 3:24
hang_em4-Aug-11 3:24 
GeneralRe: resizing form with a RTB inside Pin
Dave Kreskowiak4-Aug-11 13:55
mveDave Kreskowiak4-Aug-11 13:55 
The RTB won't do that. You'd have to write your own version of the control and it won't be easy.

The problem is that as your custom drawing your RTB, you have to measure a string in a font size and see how big the resulting bitmap image would be. If it's not big enough, or small enough, you have to create a new Font object to test and call MeasureString again, until you achieve the fit you want.

This is complicated by the fact that you still want WordWrap to work...

Oh, and the RTB doesn't consider one line of text on screen a single line. A single line of text wraps and keeps wrapping until a line break is hit. So, how many lines of text on screen are in that string?? See the problem??

QuestionCallbackOnCollectedDelegate was detected with LowLevelMouserProc Pin
Member 78319591-Aug-11 11:46
Member 78319591-Aug-11 11:46 
QuestionFont ComboBox add to Toolstrip Pin
nyt197231-Jul-11 3:13
professionalnyt197231-Jul-11 3:13 
AnswerRe: Font ComboBox add to Toolstrip Pin
Dave Kreskowiak31-Jul-11 4:24
mveDave Kreskowiak31-Jul-11 4:24 
GeneralRe: Font ComboBox add to Toolstrip Pin
nyt197231-Jul-11 18:36
professionalnyt197231-Jul-11 18:36 
GeneralRe: Font ComboBox add to Toolstrip Pin
Dave Kreskowiak1-Aug-11 3:49
mveDave Kreskowiak1-Aug-11 3:49 
GeneralRe: Font ComboBox add to Toolstrip Pin
nyt19722-Aug-11 1:42
professionalnyt19722-Aug-11 1:42 
GeneralRe: Font ComboBox add to Toolstrip Pin
Dave Kreskowiak2-Aug-11 3:47
mveDave Kreskowiak2-Aug-11 3:47 
GeneralRe: Font ComboBox add to Toolstrip Pin
nyt19722-Aug-11 21:21
professionalnyt19722-Aug-11 21:21 
QuestionConnection string in with sqlserver 2005 Pin
nazimghori31-Jul-11 0:30
nazimghori31-Jul-11 0:30 
AnswerRe: Connection string in with sqlserver 2005 Pin
Shameel31-Jul-11 0:53
professionalShameel31-Jul-11 0:53 
AnswerRe: Connection string in with sqlserver 2005 Pin
Eddy Vluggen31-Jul-11 2:56
professionalEddy Vluggen31-Jul-11 2:56 
AnswerRe: Connection string in with sqlserver 2005 Pin
Dave Kreskowiak31-Jul-11 4:18
mveDave Kreskowiak31-Jul-11 4:18 
GeneralRe: Connection string in with sqlserver 2005 [modified] Pin
nazimghori31-Jul-11 6:19
nazimghori31-Jul-11 6:19 
GeneralRe: Connection string in with sqlserver 2005 Pin
Dave Kreskowiak31-Jul-11 13:57
mveDave Kreskowiak31-Jul-11 13:57 
AnswerRe: Connection string in with sqlserver 2005 Pin
thatraja31-Jul-11 6:05
professionalthatraja31-Jul-11 6:05 
GeneralRe: Connection string in with sqlserver 2005 Pin
Shameel31-Jul-11 7:30
professionalShameel31-Jul-11 7:30 
GeneralRe: Connection string in with sqlserver 2005 Pin
thatraja31-Jul-11 15:37
professionalthatraja31-Jul-11 15:37 

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.