Click here to Skip to main content
15,885,244 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Projects and solutions Pin
Fade (Amit BS)18-Apr-04 7:38
Fade (Amit BS)18-Apr-04 7:38 
GeneralAdvanced BitBlt problem... Pin
Fade (Amit BS)18-Apr-04 2:05
Fade (Amit BS)18-Apr-04 2:05 
GeneralCreating Application for Website Pin
fargate18-Apr-04 1:17
fargate18-Apr-04 1:17 
GeneralRe: Creating Application for Website Pin
Fade (Amit BS)18-Apr-04 2:12
Fade (Amit BS)18-Apr-04 2:12 
GeneralRe: Creating Application for Website Pin
fargate20-Apr-04 1:17
fargate20-Apr-04 1:17 
GeneralRe: Advanced BitBlt problem... Pin
PaleyX17-Apr-04 15:58
PaleyX17-Apr-04 15:58 
GeneralRe: Advanced BitBlt problem... Pin
PaleyX17-Apr-04 16:02
PaleyX17-Apr-04 16:02 
GeneralCenter text on an a form using DrawString Pin
PaleyX17-Apr-04 3:47
PaleyX17-Apr-04 3:47 
How can I center text on a form using the Graphics.DrawString method?

Using C++ I would write:

pdc -> DrawText(cs,cr,DT_CENTER | DT_VCENTER | DT_SINGLELINE);<br />


where cs is the string to write and cr the bounds rectangle. Is there a similar method in .NET?

Ican write in the form easily enough but I want to center the text in the middle of the form, also how doI stop it flickering when it repaints it?

Thanks in anticipation.

Rugby League: The Greatest Game Of All.
GeneralRe: Center text on an a form using DrawString Pin
Dave Kreskowiak17-Apr-04 4:37
mveDave Kreskowiak17-Apr-04 4:37 
GeneralRe: Center text on an a form using DrawString Pin
PaleyX17-Apr-04 6:08
PaleyX17-Apr-04 6:08 
GeneralRe: Center text on an a form using DrawString Pin
Fade (Amit BS)18-Apr-04 2:17
Fade (Amit BS)18-Apr-04 2:17 
GeneralRe: Center text on an a form using DrawString Pin
PaleyX18-Apr-04 14:52
PaleyX18-Apr-04 14:52 
Generalget DB schema Pin
Silly Boy17-Apr-04 3:37
Silly Boy17-Apr-04 3:37 
GeneralRe: get DB schema Pin
-Dr_X-18-Apr-04 18:21
-Dr_X-18-Apr-04 18:21 
QuestionDraw on a Picture Box? Pin
Toola17-Apr-04 1:50
Toola17-Apr-04 1:50 
AnswerRe: Draw on a Picture Box? Pin
Fade (Amit BS)17-Apr-04 14:21
Fade (Amit BS)17-Apr-04 14:21 
GeneralVB 6.0 Pin
Anonymous16-Apr-04 22:03
Anonymous16-Apr-04 22:03 
GeneralUnable to start debugger Pin
Qaiser_Awan16-Apr-04 19:44
Qaiser_Awan16-Apr-04 19:44 
GeneralRe: Unable to start debugger Pin
Sarvesvara (BVKS) Dasa18-Apr-04 8:30
Sarvesvara (BVKS) Dasa18-Apr-04 8:30 
Generalshow data using textbox Pin
GaryKoh16-Apr-04 17:49
GaryKoh16-Apr-04 17:49 
GeneralWindows Service Pin
Hemant Mane16-Apr-04 8:38
Hemant Mane16-Apr-04 8:38 
GeneralRe: Windows Service Pin
Dave Kreskowiak16-Apr-04 9:37
mveDave Kreskowiak16-Apr-04 9:37 
QuestionHow to hook events in add-in project Pin
skoizumi2911016-Apr-04 7:02
sussskoizumi2911016-Apr-04 7:02 
Generalhtml string writing to the file Pin
pnpfriend16-Apr-04 4:37
pnpfriend16-Apr-04 4:37 
GeneralCustom Collection, Datagrid and New Row Pin
kubikubi15-Apr-04 20:46
kubikubi15-Apr-04 20:46 

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.