Scrolling Form windows CF Control

I

iKiLL

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
 
G

Guest

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.
 
I

iKiLL

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.CodeDomDesignerLoader.EnsureDocument(IDesignerSerializationManager
manager)
at
System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager
manager)
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager
serializationManager)
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32
fReload)



Thnaks
ink
 
I

iKiLL

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top