Click here to Skip to main content
16,006,355 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to encryp the database file? Pin
Developer.Guru19-Jan-05 11:05
sussDeveloper.Guru19-Jan-05 11:05 
GeneralTrouble creating webservice with custom object Pin
trufun10119-Jan-05 10:03
trufun10119-Jan-05 10:03 
Generalpdf rotated text w/ Acrobat 6.0 Pin
bwagz19-Jan-05 9:53
bwagz19-Jan-05 9:53 
Generalcreate reg_expand_sz key in registry Pin
KrissR19-Jan-05 9:31
KrissR19-Jan-05 9:31 
GeneralRe: create reg_expand_sz key in registry Pin
Heath Stewart20-Jan-05 5:55
protectorHeath Stewart20-Jan-05 5:55 
GeneralRe: create reg_expand_sz key in registry Pin
Dave Kreskowiak20-Jan-05 13:12
mveDave Kreskowiak20-Jan-05 13:12 
Generalpdf as BackGroundImage Pin
Anonymous19-Jan-05 8:13
Anonymous19-Jan-05 8:13 
GeneralRe: pdf as BackGroundImage Pin
Heath Stewart19-Jan-05 8:33
protectorHeath Stewart19-Jan-05 8:33 
It's possible, but not probable. Unless you expect a dynamic background (what are you trying to do anyway?), just rasterize the PDF as an image (Adobe Acrobat - the full version - can do this) and use that.

To actually display the PDF as a background would require that you be able to read and render PDFs yourself, and that you override OnPaint (when ControlStyles.AllPaintingInWmPaint is set), or OnPaintBackground) for a form or control and draw it. This would be very intensive, however, so be sure to only draw the PaintEventArgs.ClipRectangle for said form or control. If you redraw the entire PDF each time you'll drag down the system.

How to read and render PDFs? There's many third-party libraries on the market which you can google[^] for, and - because we've talked about this numerous times in this form - you can click "Search comments" for "PDF" to see what others have had to say about certain libraries.

Again, your best bet is to just rasterize the PDF as an image that is supported by GDI+ (which .NET uses) and set that as the background. It's far more efficient and doesn't require that you override any painting, such that Windows itself handles the painting efficiently.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralWindows Service Pin
DotNetAppDeveloper19-Jan-05 7:39
DotNetAppDeveloper19-Jan-05 7:39 
GeneralRe: Windows Service Pin
Heath Stewart19-Jan-05 8:08
protectorHeath Stewart19-Jan-05 8:08 
GeneralRe: Windows Service Pin
DotNetAppDeveloper19-Jan-05 9:17
DotNetAppDeveloper19-Jan-05 9:17 
GeneralCalling COM interface from C# Pin
shayw19-Jan-05 7:36
shayw19-Jan-05 7:36 
GeneralRe: Calling COM interface from C# Pin
Heath Stewart19-Jan-05 7:56
protectorHeath Stewart19-Jan-05 7:56 
GeneralRe: Calling COM interface from C# Pin
shayw19-Jan-05 8:20
shayw19-Jan-05 8:20 
GeneralRe: Calling COM interface from C# Pin
Heath Stewart19-Jan-05 8:27
protectorHeath Stewart19-Jan-05 8:27 
GeneralRe: Calling COM interface from C# Pin
shayw19-Jan-05 8:48
shayw19-Jan-05 8:48 
GeneralRe: Calling COM interface from C# Pin
Heath Stewart19-Jan-05 8:54
protectorHeath Stewart19-Jan-05 8:54 
GeneralRe: Calling COM interface from C# Pin
shayw20-Jan-05 7:36
shayw20-Jan-05 7:36 
GeneralRe: Calling COM interface from C# Pin
Heath Stewart20-Jan-05 9:35
protectorHeath Stewart20-Jan-05 9:35 
GeneralAccess COM Collection using InvokeMethod Pin
dlgussin19-Jan-05 5:19
dlgussin19-Jan-05 5:19 
GeneralRe: Access COM Collection using InvokeMethod Pin
Heath Stewart19-Jan-05 7:45
protectorHeath Stewart19-Jan-05 7:45 
GeneralRe: Access COM Collection using InvokeMethod Pin
dlgussin19-Jan-05 9:05
dlgussin19-Jan-05 9:05 
GeneralRe: Access COM Collection using InvokeMethod Pin
dlgussin19-Jan-05 15:59
dlgussin19-Jan-05 15:59 
GeneralSMTP Question Pin
WDI19-Jan-05 4:01
WDI19-Jan-05 4:01 
GeneralRe: SMTP Question Pin
Judah Gabriel Himango19-Jan-05 4:42
sponsorJudah Gabriel Himango19-Jan-05 4:42 

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.