Click here to Skip to main content
15,881,882 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to Serialize object's property by its Category Pin
Heath Stewart2-Jul-04 3:02
protectorHeath Stewart2-Jul-04 3:02 
AnswerRe: How to Serialize object's property by its Category Pin
nakey_yang2-Jul-04 4:33
nakey_yang2-Jul-04 4:33 
GeneralTCP/IP Pin
Melanius2-Jul-04 1:05
Melanius2-Jul-04 1:05 
GeneralRe: TCP/IP Pin
Colin Angus Mackay2-Jul-04 2:12
Colin Angus Mackay2-Jul-04 2:12 
Generalpositioning a popup window correctly when large fonts are used... Pin
misterbear1-Jul-04 23:33
misterbear1-Jul-04 23:33 
GeneralRe: positioning a popup window correctly when large fonts are used... Pin
Heath Stewart2-Jul-04 3:01
protectorHeath Stewart2-Jul-04 3:01 
GeneralMultiple problems related to PrinPreviewControl Pin
sachinkalse1-Jul-04 23:00
sachinkalse1-Jul-04 23:00 
GeneralRe: Multiple problems related to PrinPreviewControl Pin
Heath Stewart2-Jul-04 2:58
protectorHeath Stewart2-Jul-04 2:58 
1. Set the PrintPreviewControl.Cursor property. This Cursor will only apply to the PrintPreviewControl. For the standard cursor set, see the Cursors class. If you only want the cursor to be different over the document (and not the "gray area" outside the document but within the PrintPreviewControl, you'll have to do the calculations yourself and handle the cursor display accordingly.

2. As I mentioned above, you really have to do the calculations yourself. There is nothing publicly exposed that helps you determine the exact logical dimensions of the document (there is for the physical size of the printed document), but you can make these calculations by using the Columns, Rows, and StartPage properties of the PrintPreviewControl. With a little trial and error, you should be able to use that information to construct and algorithm to get the document that was clicked.

3. Extend the PrintPreviewControl, override WndProc (be sure to call base.WndProc!) and handle the WM_HSCROLL (0x0114) and WM_VSCROLL (0x0115) windows messages. See the Platform SDK for more information about these two messages and what the WParam and LParam properties of the Message struct passed to WndProc will contain. You can find this information in the MSDN Library Online[^].

 

Microsoft MVP, Visual C#
My Articles
QuestionHow to Serialize object's property by its Category Pin
Anonymous1-Jul-04 23:00
Anonymous1-Jul-04 23:00 
AnswerRe: How to Serialize object's property by its Category Pin
Heath Stewart2-Jul-04 2:47
protectorHeath Stewart2-Jul-04 2:47 
GeneralResizing a Form Pin
Anonymous1-Jul-04 14:03
Anonymous1-Jul-04 14:03 
GeneralRe: Resizing a Form Pin
Anonymous1-Jul-04 14:04
Anonymous1-Jul-04 14:04 
GeneralC# Print Driver Pin
cobyjone1-Jul-04 12:45
cobyjone1-Jul-04 12:45 
GeneralRe: C# Print Driver Pin
cobyjone1-Jul-04 13:14
cobyjone1-Jul-04 13:14 
GeneralRe: C# Print Driver Pin
WillemM2-Jul-04 1:26
WillemM2-Jul-04 1:26 
GeneralRe: C# Print Driver Pin
cobyjone2-Jul-04 2:17
cobyjone2-Jul-04 2:17 
GeneralRe: C# Print Driver Pin
Dave Kreskowiak2-Jul-04 3:25
mveDave Kreskowiak2-Jul-04 3:25 
QuestionPocket PC database access ? Pin
Christian Graus1-Jul-04 12:31
protectorChristian Graus1-Jul-04 12:31 
AnswerRe: Pocket PC database access ? Pin
Anders Molin1-Jul-04 13:54
professionalAnders Molin1-Jul-04 13:54 
GeneralRe: Pocket PC database access ? Pin
Christian Graus1-Jul-04 13:58
protectorChristian Graus1-Jul-04 13:58 
GeneralRe: Pocket PC database access ? Pin
Anders Molin1-Jul-04 13:59
professionalAnders Molin1-Jul-04 13:59 
GeneralRe: Pocket PC database access ? Pin
Heath Stewart2-Jul-04 2:18
protectorHeath Stewart2-Jul-04 2:18 
GeneralSetupDiGetDeviceInterfaceDetail driving me mad! Pin
Pain_Elemental1-Jul-04 10:22
Pain_Elemental1-Jul-04 10:22 
GeneralRe: SetupDiGetDeviceInterfaceDetail driving me mad! Pin
leppie1-Jul-04 12:17
leppie1-Jul-04 12:17 
GeneralRe: SetupDiGetDeviceInterfaceDetail driving me mad! Pin
Pain_Elemental1-Jul-04 19:46
Pain_Elemental1-Jul-04 19:46 

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.