Click here to Skip to main content
15,902,112 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRunning executables from VB Pin
Programmer_Chris5-Dec-04 5:29
Programmer_Chris5-Dec-04 5:29 
GeneralRe: Running executables from VB Pin
jlawren75-Dec-04 6:23
jlawren75-Dec-04 6:23 
GeneralRe: Running executables from VB Pin
Member 15546336-Dec-04 13:24
Member 15546336-Dec-04 13:24 
GeneralRe: Running executables from VB Pin
Dave Kreskowiak6-Dec-04 3:56
mveDave Kreskowiak6-Dec-04 3:56 
GeneralRe: Running executables from VB Pin
Programmer_Chris6-Dec-04 6:29
Programmer_Chris6-Dec-04 6:29 
GeneralRe: Running executables from VB Pin
Dave Kreskowiak6-Dec-04 7:34
mveDave Kreskowiak6-Dec-04 7:34 
GeneralRe: Running executables from VB Pin
Programmer_Chris6-Dec-04 7:52
Programmer_Chris6-Dec-04 7:52 
General2 Questions in VB6 Code Pin
jlawren75-Dec-04 4:40
jlawren75-Dec-04 4:40 
GeneralRuntime Error 430 Pin
sathiyaram5-Dec-04 1:30
sathiyaram5-Dec-04 1:30 
GeneralRe: Runtime Error 430 Pin
Mekong River5-Dec-04 3:10
Mekong River5-Dec-04 3:10 
GeneralRe: Runtime Error 430 Pin
sathiyaram5-Dec-04 20:34
sathiyaram5-Dec-04 20:34 
Generalrunning a vb.net program on another comp Pin
mixsa4-Dec-04 22:37
sussmixsa4-Dec-04 22:37 
GeneralRe: running a vb.net program on another comp Pin
Dave Kreskowiak5-Dec-04 3:03
mveDave Kreskowiak5-Dec-04 3:03 
GeneralRe: running a vb.net program on another comp Pin
Mekong River5-Dec-04 3:13
Mekong River5-Dec-04 3:13 
Generalpocket pc problem Pin
Ali Usman4-Dec-04 15:34
Ali Usman4-Dec-04 15:34 
GeneralRe: pocket pc problem Pin
Mitch F.4-Dec-04 15:54
Mitch F.4-Dec-04 15:54 
GeneralRe: pocket pc problem Pin
Dave Kreskowiak5-Dec-04 3:02
mveDave Kreskowiak5-Dec-04 3:02 
GeneralRe: pocket pc problem Pin
Mekong River5-Dec-04 3:23
Mekong River5-Dec-04 3:23 
GeneralAllowing Certain Keys Only Pin
Mitch F.4-Dec-04 14:03
Mitch F.4-Dec-04 14:03 
GeneralPrint Preview "print button" select printer Pin
crsimmons4-Dec-04 6:23
crsimmons4-Dec-04 6:23 
I have two questions about the print preview dialog.
(1) The MSDN talks about a "zoom" property for the print preview control. I am unable to select find or select that property?
(2) I am wanting to call printer dialog box to select a printer from the print preview dialog when the print button is hit.
Any help with either of the questions above is much appreciated.
Thank you,
Chris
_______________________________

Private Sub mnuFilePrintPreview_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuFilePrintPreview.Click
'Show Print Preview
Try

' Create TextPrint object from class that is inherited from PrintDocument, passing in text
Dim MPO As New TextPrint(GetTheText())

' Set font
MPO.Font = New Font("Tahoma", 8)

With preReport 'Print Preview Dialog
.Document = MPO 'prdReport
.WindowState = FormWindowState.Maximized
.Icon = Me.Icon
.AutoScale = True
'.zoom 'I cannot select this property?
.ShowDialog()
End With

'If preReport.ShowDialog() = DialogResult.OK Then
' 'MPO.Print()
' MsgBox("print clicked")
' 'set PrintDialog.Document
' pntDialog.Document() = MPO 'pntDialog is a printer dialog
' If pntDialog.ShowDialog = DialogResult.OK Then
' MPO.Print()
' End If
'End If

Catch ex As Exception
MessageBox.Show("Printing Problem: " & ControlChars.NewLine & ControlChars.Tab & _
ex.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Information)
End Try
End Sub
GeneralRe: Print Preview "print button" select printer Pin
crsimmons5-Dec-04 2:53
crsimmons5-Dec-04 2:53 
QuestionHow can I cocnect TCP/IP to the Server? Pin
ATC4-Dec-04 4:14
ATC4-Dec-04 4:14 
Generaltroubles with MS.Access & ASP.NET. Pin
gamerPotatoe4-Dec-04 0:09
gamerPotatoe4-Dec-04 0:09 
GeneralRe: troubles with MS.Access & ASP.NET. Pin
Mekong River5-Dec-04 3:29
Mekong River5-Dec-04 3:29 
GeneralCRystal Report Pin
nitin_ion3-Dec-04 18:04
nitin_ion3-Dec-04 18:04 

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.