467,116 Members | 1,224 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,116 developers. It's quick & easy.

Scrolling Form windows CF Control

Hi All

I am Developing in C# with VS2005. I am Developing a Windows Mobile Forms
Application with the CF2

My problem is that when the Input panel is displayed my screen does not
scroll.

I have found some code using an Panel and a scroll bar that will make the
screen scroll when necessary.

What I would like to know is how hard would it be to create an Windows
control for the CF that I can just stick on my form so that I don't have to
keep copping and pasting the code and the controls and laying them out all
the time.

And If any one has already done this some advice would be welcome.

Thanks

ink
Feb 28 '07 #1
  • viewed: 4132
Share:
4 Replies
Why not just use a base form with the panel and SIP (and any other common
items) and derive all other Forms from that? Inheritance. Learn it. Live
it. Love it.
--
Chris Tacke - Embedded MVP
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--
"iKiLL" <iK***@NotMyEmail.comwrote in message
news:ug**************@TK2MSFTNGP04.phx.gbl...
Hi All

I am Developing in C# with VS2005. I am Developing a Windows Mobile Forms
Application with the CF2

My problem is that when the Input panel is displayed my screen does not
scroll.

I have found some code using an Panel and a scroll bar that will make the
screen scroll when necessary.

What I would like to know is how hard would it be to create an Windows
control for the CF that I can just stick on my form so that I don't have
to keep copping and pasting the code and the controls and laying them out
all the time.

And If any one has already done this some advice would be welcome.

Thanks

ink


Feb 28 '07 #2
This is exactly what i was hoping i could do.

but i am not sure i know how. I have been trying using the information at
this web site.

http://samples.gotdotnet.com/quickst...scrolling.aspx

To create the control.
Any sugestions?

Thanks
ink


"<ctacke/>" <ctacke[@]opennetcf[dot]comwrote in message
news:OK**************@TK2MSFTNGP05.phx.gbl...
Why not just use a base form with the panel and SIP (and any other common
items) and derive all other Forms from that? Inheritance. Learn it.
Live it. Love it.
--
Chris Tacke - Embedded MVP
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--
"iKiLL" <iK***@NotMyEmail.comwrote in message
news:ug**************@TK2MSFTNGP04.phx.gbl...
>Hi All

I am Developing in C# with VS2005. I am Developing a Windows Mobile Forms
Application with the CF2

My problem is that when the Input panel is displayed my screen does not
scroll.

I have found some code using an Panel and a scroll bar that will make the
screen scroll when necessary.

What I would like to know is how hard would it be to create an Windows
control for the CF that I can just stick on my form so that I don't have
to keep copping and pasting the code and the controls and laying them out
all the time.

And If any one has already done this some advice would be welcome.

Thanks

ink



Feb 28 '07 #3
I have tried to create a form in my project called BaseForm.

I put the scroll bars and the form and the pannel and i got it all working.

Then i compiled my application and went to create a new form using the
inherit from base form template.

i then selected the BaseForm from the list.

When the form then displays i get the following error i have passed below.
Does any one know where i am going wrong?
Should i be developing my base form in a seporat application?
The designer could not be shown for this file because none of the
classes within it can be designed. The designer inspected the following
classes in the file: Form1 --- The base class 'SquareForm.BaseForm' could
not be loaded. Ensure the assembly has been referenced and that all projects
have been built.
Hide

at
System.ComponentModel.Design.Serialization.CodeDom DesignerLoader.EnsureDocument(IDesignerSerializati onManager
manager)
at
System.ComponentModel.Design.Serialization.CodeDom DesignerLoader.PerformLoad(IDesignerSerializationM anager
manager)
at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.VSCodeDomDesignerLoader.PerformLoad(IDesignerSer ializationManager
serializationManager)
at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.VSCodeDomDesignerLoader.DeferredLoadHandler.Micr osoft.VisualStudio.TextManager.Interop.IVsTextBuff erDataEvents.OnLoadCompleted(Int32
fReload)

Thnaks
ink

"iKiLL" <iK***@NotMyEmail.comwrote in message
news:eN**************@TK2MSFTNGP02.phx.gbl...
This is exactly what i was hoping i could do.

but i am not sure i know how. I have been trying using the information at
this web site.

http://samples.gotdotnet.com/quickst...scrolling.aspx

To create the control.
Any sugestions?

Thanks
ink


"<ctacke/>" <ctacke[@]opennetcf[dot]comwrote in message
news:OK**************@TK2MSFTNGP05.phx.gbl...
>Why not just use a base form with the panel and SIP (and any other common
items) and derive all other Forms from that? Inheritance. Learn it.
Live it. Love it.
--
Chris Tacke - Embedded MVP
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--
"iKiLL" <iK***@NotMyEmail.comwrote in message
news:ug**************@TK2MSFTNGP04.phx.gbl...
>>Hi All

I am Developing in C# with VS2005. I am Developing a Windows Mobile
Forms Application with the CF2

My problem is that when the Input panel is displayed my screen does not
scroll.

I have found some code using an Panel and a scroll bar that will make
the screen scroll when necessary.

What I would like to know is how hard would it be to create an Windows
control for the CF that I can just stick on my form so that I don't have
to keep copping and pasting the code and the controls and laying them
out all the time.

And If any one has already done this some advice would be welcome.

Thanks

ink




Feb 28 '07 #4
I have figgerd out what is causing the errors.

But how do i solve it.

It seems that the problem is the SIP (Software input Panel)

When i remove it all of a suddent the form displays in the designer.

Is there some whay of solving this because the whole point of me doing all
of this was so that i would not have to write the resize screen code when
the pannel is selected.

Thanks
ink



"iKiLL" <iK***@NotMyEmail.comwrote in message
news:eZ**************@TK2MSFTNGP06.phx.gbl...
>I have tried to create a form in my project called BaseForm.

I put the scroll bars and the form and the pannel and i got it all
working.

Then i compiled my application and went to create a new form using the
inherit from base form template.

i then selected the BaseForm from the list.

When the form then displays i get the following error i have passed below.
Does any one know where i am going wrong?
Should i be developing my base form in a seporat application?
The designer could not be shown for this file because none of the
classes within it can be designed. The designer inspected the following
classes in the file: Form1 --- The base class 'SquareForm.BaseForm' could
not be loaded. Ensure the assembly has been referenced and that all
projects have been built.
Hide

at
System.ComponentModel.Design.Serialization.CodeDom DesignerLoader.EnsureDocument(IDesignerSerializati onManager
manager)
at
System.ComponentModel.Design.Serialization.CodeDom DesignerLoader.PerformLoad(IDesignerSerializationM anager
manager)
at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.VSCodeDomDesignerLoader.PerformLoad(IDesignerSer ializationManager
serializationManager)
at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.VSCodeDomDesignerLoader.DeferredLoadHandler.Micr osoft.VisualStudio.TextManager.Interop.IVsTextBuff erDataEvents.OnLoadCompleted(Int32
fReload)

Thnaks
ink

"iKiLL" <iK***@NotMyEmail.comwrote in message
news:eN**************@TK2MSFTNGP02.phx.gbl...
>This is exactly what i was hoping i could do.

but i am not sure i know how. I have been trying using the information at
this web site.

http://samples.gotdotnet.com/quickst...scrolling.aspx

To create the control.
Any sugestions?

Thanks
ink


"<ctacke/>" <ctacke[@]opennetcf[dot]comwrote in message
news:OK**************@TK2MSFTNGP05.phx.gbl...
>>Why not just use a base form with the panel and SIP (and any other
common items) and derive all other Forms from that? Inheritance. Learn
it. Live it. Love it.
--
Chris Tacke - Embedded MVP
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--
"iKiLL" <iK***@NotMyEmail.comwrote in message
news:ug**************@TK2MSFTNGP04.phx.gbl...
Hi All

I am Developing in C# with VS2005. I am Developing a Windows Mobile
Forms Application with the CF2

My problem is that when the Input panel is displayed my screen does not
scroll.

I have found some code using an Panel and a scroll bar that will make
the screen scroll when necessary.

What I would like to know is how hard would it be to create an Windows
control for the CF that I can just stick on my form so that I don't
have to keep copping and pasting the code and the controls and laying
them out all the time.

And If any one has already done this some advice would be welcome.

Thanks

ink




Feb 28 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Martin | last post: by
1 post views Thread by Wesman | last post: by
2 posts views Thread by James CC | last post: by
1 post views Thread by Tim Frawley | last post: by
5 posts views Thread by Rob T | last post: by
1 post views Thread by Oberfuhrer | last post: by
1 post views Thread by atif | last post: by
11 posts views Thread by =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.