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

Visual Basic

 
AnswerRe: wat is subclassing and how is it used? Pin
Mike Ellison3-Mar-04 7:50
Mike Ellison3-Mar-04 7:50 
Questionwhat is hWnd and how is it used Pin
gpa20003-Mar-04 5:49
gpa20003-Mar-04 5:49 
AnswerRe: what is hWnd and how is it used Pin
Dave Kreskowiak3-Mar-04 10:10
mveDave Kreskowiak3-Mar-04 10:10 
GeneralOpening a website when button pressed Pin
GaryKoh3-Mar-04 3:26
GaryKoh3-Mar-04 3:26 
GeneralRe: Opening a website when button pressed Pin
gpa20003-Mar-04 5:45
gpa20003-Mar-04 5:45 
GeneralRe: Opening a website when button pressed Pin
GaryKoh6-Mar-04 16:18
GaryKoh6-Mar-04 16:18 
GeneralPrint at the center Pin
terence20042-Mar-04 21:46
terence20042-Mar-04 21:46 
GeneralRe: Print at the center Pin
Dave Kreskowiak3-Mar-04 2:01
mveDave Kreskowiak3-Mar-04 2:01 
Since you know the width of the printer you pad the beginning of the string with spaces. Take the length of the line you want to print away from the width of the printer, then divide that difference by 2 to get the number of spaces to add on both sides of the test you want to print, but only add it to the beginning of the text:
    Dim sText As String = "Text to print Centered"
    Dim iPad As Integer
 
    iPad = ( 40 - sText.Length ) / 2
    sText = New String( Chr(32), iPad ) & sText



RageInTheMachine9532
GeneralRe: Print at the center Pin
terence20043-Mar-04 13:53
terence20043-Mar-04 13:53 
GeneralRe: Print at the center Pin
Dave Kreskowiak3-Mar-04 18:14
mveDave Kreskowiak3-Mar-04 18:14 
GeneralSet assignment not supported Pin
Reed Eichner2-Mar-04 19:28
Reed Eichner2-Mar-04 19:28 
GeneralRe: Set assignment not supported Pin
Dave Kreskowiak3-Mar-04 1:32
mveDave Kreskowiak3-Mar-04 1:32 
GeneralCreating Access Database using Code Pin
vister722-Mar-04 10:18
vister722-Mar-04 10:18 
GeneralRe: Creating Access Database using Code Pin
Mike Ellison2-Mar-04 13:51
Mike Ellison2-Mar-04 13:51 
GeneralRe: Creating Access Database using Code Pin
vister722-Mar-04 14:01
vister722-Mar-04 14:01 
GeneralRe: Creating Access Database using Code Pin
Mike Ellison3-Mar-04 6:21
Mike Ellison3-Mar-04 6:21 
GeneralRe: Creating Access Database using Code Pin
vister723-Mar-04 7:29
vister723-Mar-04 7:29 
GeneralMFC help!!! Pin
modeonetwo2-Mar-04 8:59
modeonetwo2-Mar-04 8:59 
QuestionHow to create a wizard for my Application? Pin
Ritesh Sompura2-Mar-04 7:07
Ritesh Sompura2-Mar-04 7:07 
GeneralWriting a file to disk Pin
Pugman8122-Mar-04 6:53
Pugman8122-Mar-04 6:53 
GeneralRe: Writing a file to disk Pin
Dave Kreskowiak2-Mar-04 7:46
mveDave Kreskowiak2-Mar-04 7:46 
GeneralChanging tab focus before event fired Pin
Steven D Parker2-Mar-04 2:57
sussSteven D Parker2-Mar-04 2:57 
Generalwww.DNNCS.com for sale Pin
Anonymous2-Mar-04 0:04
Anonymous2-Mar-04 0:04 
GeneralNokia Infrared (8210 ,8310) or Siemens Pin
CamboMedia1-Mar-04 17:54
CamboMedia1-Mar-04 17:54 
General(nulls) display problem in datagrid new row Pin
Danny van der Walt1-Mar-04 9:34
Danny van der Walt1-Mar-04 9:34 

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.