scrollbar in Compact framewok windows form

how can we make the form scrollable in a windows form in compact framework ?
[76 byte] By [HusseinAhmad] at [2008-2-3]
# 1
In CF 2.0, both Panel and Form expose the AutoScroll property (set it to true).

For CF 1.0, you have to workaround it by adding a Panel, a ScrollBar and changing the Location of the Panel in the ValueChanged event.

Cheers
Daniel

DanielMoth at 2007-9-8 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...
# 2
Dear Daniel ,

i have a picture which is larger than the ppicture box in CF1
i need to have scrollbars to be able to scroll the image .

would you please advice ?

HusseinAhmad at 2007-9-8 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...
# 3
Since you are using NETCF 1.0 the second part of my reply applies. Like I said, add a panel and a scrollbar to your form. Put your picturebox in the panel (and size the panel according to the picturebox with picture). Catch the scrollbar.valuechanged and move the panel up or down accrodingly.

I found a sample of the principle here, hope it helps:
http://samples.gotdotnet.com/quickstart/CompactFramework/doc/scrolling.aspx

Cheers
Daniel

DanielMoth at 2007-9-8 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...
# 4
Dear Daniel ,

thanks a million for your help . this is enough .

please Daniel , this is a last question , which i need very urgently and it is extremely important .
how can i print to a serial port from compact framework ?

i have a serial printer connected to my WinCE 4.2 device , and i need to print from my windows form .
would you please advice ?

HusseinAhmad at 2007-9-8 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...
# 5
Glad to have helped.

Please try to start new threads for new topics and do understand that every topic is urgent/important to the original poster. May I suggest you check this out:
http://www.danielmoth.com/Blog/2005/03/please-read-before-posting-to-ng.html

The serial/rs232 story in relation to .NET is here:
http://www.danielmoth.com/Blog/2004/09/serial-rs232-communications-in-net.html

Printing is an FAQ that has been addressed in the NETCF newsgroup. Please see previous threads there:
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework/search?hl=en&group=microsoft.public.dotnet.framework.compactframework&q=printing&qt_g=1&searchnow=Search+this+group

Good luck

Cheers
Daniel

DanielMoth at 2007-9-8 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...
# 6
Hi Daniel,
Thanks a lot . The links provided by you is really helpful for me.

Cheers
Ram

Ramanathan at 2007-9-8 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...