Click here to Skip to main content
16,006,382 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionKey event handlers Pin
neosri25-Sep-06 7:15
neosri25-Sep-06 7:15 
AnswerRe: Key event handlers Pin
Dave Kreskowiak25-Sep-06 9:51
mveDave Kreskowiak25-Sep-06 9:51 
GeneralRe: Key event handlers Pin
neosri26-Sep-06 3:39
neosri26-Sep-06 3:39 
GeneralRe: Key event handlers Pin
Dave Kreskowiak26-Sep-06 5:09
mveDave Kreskowiak26-Sep-06 5:09 
Questiondatabase problem Pin
amaneet25-Sep-06 6:40
amaneet25-Sep-06 6:40 
AnswerRe: database problem Pin
Dave Kreskowiak25-Sep-06 6:53
mveDave Kreskowiak25-Sep-06 6:53 
QuestionPrint Document from vb Pin
Tomic25-Sep-06 5:54
Tomic25-Sep-06 5:54 
AnswerRe: Print Document from vb Pin
Dave Kreskowiak25-Sep-06 7:11
mveDave Kreskowiak25-Sep-06 7:11 
The code should work just fine. It doesn't matter which event handler you put it in.

To change the paper size, all you have to do is set the Height and Width propeties of the Printer object:
Printer.Height = paper height in twips
Printer.Width = paper width in twips

where 1" = 1440 twips.

Printer and Printers documentation[^].






Dave Kreskowiak
Microsoft MVP - Visual Basic


QuestionClass terminates immediately VB6 Pin
Dustin_B25-Sep-06 4:17
Dustin_B25-Sep-06 4:17 
AnswerRe: Class terminates immediately VB6 Pin
Dave Kreskowiak25-Sep-06 6:55
mveDave Kreskowiak25-Sep-06 6:55 
GeneralRe: Class terminates immediately VB6 Pin
Dustin_B25-Sep-06 10:39
Dustin_B25-Sep-06 10:39 
GeneralRe: Class terminates immediately VB6 Pin
Dave Kreskowiak25-Sep-06 13:37
mveDave Kreskowiak25-Sep-06 13:37 
GeneralRe: Class terminates immediately VB6 Pin
Dustin_B26-Sep-06 3:37
Dustin_B26-Sep-06 3:37 
GeneralRe: Class terminates immediately VB6 Pin
Dave Kreskowiak26-Sep-06 5:04
mveDave Kreskowiak26-Sep-06 5:04 
QuestionOpen File Pin
samira forooghi25-Sep-06 2:42
samira forooghi25-Sep-06 2:42 
GeneralRe: Open File Pin
amaneet25-Sep-06 6:44
amaneet25-Sep-06 6:44 
AnswerRe: Open File Pin
Dave Kreskowiak25-Sep-06 6:59
mveDave Kreskowiak25-Sep-06 6:59 
QuestionI need Vb.net code to search from database, its for a Procurement company project Pin
lynnmagunje25-Sep-06 0:50
lynnmagunje25-Sep-06 0:50 
AnswerRe: I need Vb.net code to search from database, its for a Procurement company project Pin
User 171649225-Sep-06 1:58
professionalUser 171649225-Sep-06 1:58 
QuestionI need Vb.net code to search from database, its for a Procurement company project Pin
lynnmagunje25-Sep-06 0:48
lynnmagunje25-Sep-06 0:48 
QuestionVB.net File Find and Replace Memory intensive! Pin
MichaelWithersone25-Sep-06 0:07
MichaelWithersone25-Sep-06 0:07 
AnswerRe: VB.net File Find and Replace Memory intensive! Pin
Christian Graus25-Sep-06 0:22
protectorChristian Graus25-Sep-06 0:22 
GeneralRe: VB.net File Find and Replace Memory intensive! Pin
MichaelWithersone25-Sep-06 0:56
MichaelWithersone25-Sep-06 0:56 
AnswerRe: VB.net File Find and Replace Memory intensive! Pin
Guffa25-Sep-06 2:38
Guffa25-Sep-06 2:38 
GeneralRe: VB.net File Find and Replace Memory intensive! Pin
MichaelWithersone25-Sep-06 4:12
MichaelWithersone25-Sep-06 4:12 

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.