Click here to Skip to main content
15,796,299 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: how to convert any VB.NET code into C++.net Pin
Luc Pattyn13-Jul-09 9:10
sitebuilderLuc Pattyn13-Jul-09 9:10 
GeneralRe: how to convert any VB.NET code into C++.net Pin
0x3c013-Jul-09 10:13
0x3c013-Jul-09 10:13 
GeneralRe: how to convert any VB.NET code into C++.net Pin
samvaidy13-Jul-09 10:59
samvaidy13-Jul-09 10:59 
AnswerRe: how to convert any VB.NET code into C++.net Pin
Dave Doknjas13-Jul-09 15:13
Dave Doknjas13-Jul-09 15:13 
QuestionHow to use special symbols in VBA? Pin
Ton C13-Jul-09 7:10
Ton C13-Jul-09 7:10 
AnswerRe: How to use special symbols in VBA? Pin
helelark12313-Jul-09 19:50
helelark12313-Jul-09 19:50 
GeneralRe: How to use special symbols in VBA? Pin
Ton C14-Jul-09 23:58
Ton C14-Jul-09 23:58 
QuestionPrint Dialog Pin
No-e13-Jul-09 6:08
No-e13-Jul-09 6: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 6:18
Henry Minute13-Jul-09 6:18 
GeneralRe: Print Dialog Pin
No-e13-Jul-09 6:33
No-e13-Jul-09 6:33 
GeneralRe: Print Dialog Pin
Henry Minute13-Jul-09 6:54
Henry Minute13-Jul-09 6:54 
AnswerRe: Print Dialog Pin
Luc Pattyn13-Jul-09 7:14
sitebuilderLuc Pattyn13-Jul-09 7:14 
GeneralRe: Print Dialog Pin
No-e13-Jul-09 12:57
No-e13-Jul-09 12:57 
GeneralRe: Print Dialog Pin
Luc Pattyn13-Jul-09 13:31
sitebuilderLuc Pattyn13-Jul-09 13:31 
QuestionA narrow width combo box on the toolstrip control Pin
jinxster12-Jul-09 23:04
professionaljinxster12-Jul-09 23:04 
AnswerRe: A narrow width combo box on the toolstrip control Pin
dan!sh 12-Jul-09 23:12
professional dan!sh 12-Jul-09 23:12 
GeneralRe: A narrow width combo box on the toolstrip control Pin
jinxster13-Jul-09 3:11
professionaljinxster13-Jul-09 3:11 
GeneralRe: A narrow width combo box on the toolstrip control Pin
dan!sh 13-Jul-09 4:14
professional dan!sh 13-Jul-09 4:14 
Questionchange the size of playing video in window media player Pin
bhumika_singh12-Jul-09 22:56
bhumika_singh12-Jul-09 22:56 
AnswerRe: change the size of playing video in window media player Pin
Dave Kreskowiak13-Jul-09 2:49
mveDave Kreskowiak13-Jul-09 2:49 
GeneralRe: change the size of playing video in window media player Pin
bhumika_singh13-Jul-09 3:22
bhumika_singh13-Jul-09 3:22 
GeneralRe: change the size of playing video in window media player Pin
Dave Kreskowiak13-Jul-09 4:59
mveDave Kreskowiak13-Jul-09 4:59 
Questionwhat is pDllname in this "craxddrt.database.logonserver(pdllname,pservername,pdatabasename,puserid,ppassword)" ? [modified] Pin
xingselex12-Jul-09 16:36
xingselex12-Jul-09 16:36 
AnswerRe: what is pDllname in this "craxddrt.database.logonserver(pdllname,pservername,pdatabasename,puserid,ppassword)" ? Pin
riced12-Jul-09 22:19
riced12-Jul-09 22:19 
AnswerRe: what is pDllname in this "craxddrt.database.logonserver(pdllname,pservername,pdatabasename,puserid,ppassword)" ? Pin
Jack Vanderhorst13-Jul-09 15:25
Jack Vanderhorst13-Jul-09 15:25 

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.