Click here to Skip to main content
15,916,463 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Windows Popup Watcher Pin
jeipiyaku13-Jul-09 23:26
jeipiyaku13-Jul-09 23:26 
QuestionDatabase deployment. using VB .net Pin
Cory Kimble13-Jul-09 8:25
Cory Kimble13-Jul-09 8:25 
AnswerRe: Database deployment. using VB .net Pin
David Mujica13-Jul-09 8:53
David Mujica13-Jul-09 8:53 
GeneralRe: Database deployment. using VB .net Pin
Cory Kimble13-Jul-09 8:58
Cory Kimble13-Jul-09 8:58 
GeneralNo scripts Pin
David Mujica13-Jul-09 9:17
David Mujica13-Jul-09 9:17 
GeneralRe: No scripts Pin
Cory Kimble13-Jul-09 10:40
Cory Kimble13-Jul-09 10:40 
GeneralRe: No experience with SQL Express Pin
David Mujica13-Jul-09 10:44
David Mujica13-Jul-09 10:44 
GeneralRe: No experience with SQL Express Pin
Christian Graus13-Jul-09 10:59
protectorChristian Graus13-Jul-09 10:59 
GeneralRe: No scripts Pin
Henry Minute13-Jul-09 11:34
Henry Minute13-Jul-09 11:34 
Questionhow to convert any VB.NET code into C++.net Pin
samvaidy13-Jul-09 7:41
samvaidy13-Jul-09 7:41 
AnswerRe: how to convert any VB.NET code into C++.net Pin
Christian Graus13-Jul-09 7:43
protectorChristian Graus13-Jul-09 7:43 
GeneralRe: how to convert any VB.NET code into C++.net Pin
samvaidy13-Jul-09 10:00
samvaidy13-Jul-09 10:00 
AnswerRe: how to convert any VB.NET code into C++.net Pin
Luc Pattyn13-Jul-09 8:10
sitebuilderLuc Pattyn13-Jul-09 8:10 
GeneralRe: how to convert any VB.NET code into C++.net Pin
0x3c013-Jul-09 9:13
0x3c013-Jul-09 9:13 
GeneralRe: how to convert any VB.NET code into C++.net Pin
samvaidy13-Jul-09 9:59
samvaidy13-Jul-09 9:59 
AnswerRe: how to convert any VB.NET code into C++.net Pin
Dave Doknjas13-Jul-09 14:13
Dave Doknjas13-Jul-09 14:13 
QuestionHow to use special symbols in VBA? Pin
Ton C13-Jul-09 6:10
Ton C13-Jul-09 6:10 
AnswerRe: How to use special symbols in VBA? Pin
helelark12313-Jul-09 18:50
helelark12313-Jul-09 18:50 
GeneralRe: How to use special symbols in VBA? Pin
Ton C14-Jul-09 22:58
Ton C14-Jul-09 22:58 
QuestionPrint Dialog Pin
No-e13-Jul-09 5:08
No-e13-Jul-09 5:08 
I must be missing something.

I tested this in a small stand alone application and it works fine (sample project I downloaded)

Protected Sub PrintFile_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles PrintFile.Click
    printDialog1.Document = ThePrintDocument 'ThePrintDocument is dfined as System.Drawing.Printing.PrintDocument
    If printDialog1.ShowDialog() = DialogResult.OK Then
        Me.ThePrintDocument.Print()
    End If
End Sub 'PrintFile_Click


I have a sub routine that does the printing as follows:

Protected Sub ThePrintDocument_PrintPage(ByVal sender As Object, ByVal ev As System.Drawing.Printing.PrintPageEventArgs) Handles ThePrintDocument.PrintPage
...
... 
...
End Sub 'ThePrintDocument_PrintPage


In my small test app this works perfectly, print dialog shows up, select destination and it calls the print page routine. I then incorporated this into the application I am upgrading and I get the print dialog but when I click OK on the dialog it does not return to call the print event. Any idea what I may have missed?

I did notice that if I search the sample project for ThePrintDocument in the sample project I see definitions in a resx file, but I do not understand the resx file or how to use it.

I defined by simply entering the definition, should I have dragged something from the toolbox perhaps?

Friend WithEvents ThePrintDocument As System.Drawing.Printing.PrintDocument

Thanks in advance

No-e
AnswerRe: Print Dialog Pin
Henry Minute13-Jul-09 5:18
Henry Minute13-Jul-09 5:18 
GeneralRe: Print Dialog Pin
No-e13-Jul-09 5:33
No-e13-Jul-09 5:33 
GeneralRe: Print Dialog Pin
Henry Minute13-Jul-09 5:54
Henry Minute13-Jul-09 5:54 
AnswerRe: Print Dialog Pin
Luc Pattyn13-Jul-09 6:14
sitebuilderLuc Pattyn13-Jul-09 6:14 
GeneralRe: Print Dialog Pin
No-e13-Jul-09 11:57
No-e13-Jul-09 11:57 

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.