473,780 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
4 4365
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***@NotMyEma il.comwrote in message
news:ug******** ******@TK2MSFTN GP04.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******** ******@TK2MSFTN GP05.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***@NotMyEma il.comwrote in message
news:ug******** ******@TK2MSFTN GP04.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.Bas eForm' could
not be loaded. Ensure the assembly has been referenced and that all projects
have been built.
Hide

at
System.Componen tModel.Design.S erialization.Co deDomDesignerLo ader.EnsureDocu ment(IDesignerS erializationMan ager
manager)
at
System.Componen tModel.Design.S erialization.Co deDomDesignerLo ader.PerformLoa d(IDesignerSeri alizationManage r
manager)
at
Microsoft.Visua lStudio.Design. Serialization.C odeDom.VSCodeDo mDesignerLoader .PerformLoad(ID esignerSerializ ationManager
serializationMa nager)
at
Microsoft.Visua lStudio.Design. Serialization.C odeDom.VSCodeDo mDesignerLoader .DeferredLoadHa ndler.Microsoft .VisualStudio.T extManager.Inte rop.IVsTextBuff erDataEvents.On LoadCompleted(I nt32
fReload)

Thnaks
ink

"iKiLL" <iK***@NotMyEma il.comwrote in message
news:eN******** ******@TK2MSFTN GP02.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******** ******@TK2MSFTN GP05.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***@NotMyEma il.comwrote in message
news:ug******* *******@TK2MSFT NGP04.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***@NotMyEma il.comwrote in message
news:eZ******** ******@TK2MSFTN GP06.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.Bas eForm' could
not be loaded. Ensure the assembly has been referenced and that all
projects have been built.
Hide

at
System.Componen tModel.Design.S erialization.Co deDomDesignerLo ader.EnsureDocu ment(IDesignerS erializationMan ager
manager)
at
System.Componen tModel.Design.S erialization.Co deDomDesignerLo ader.PerformLoa d(IDesignerSeri alizationManage r
manager)
at
Microsoft.Visua lStudio.Design. Serialization.C odeDom.VSCodeDo mDesignerLoader .PerformLoad(ID esignerSerializ ationManager
serializationMa nager)
at
Microsoft.Visua lStudio.Design. Serialization.C odeDom.VSCodeDo mDesignerLoader .DeferredLoadHa ndler.Microsoft .VisualStudio.T extManager.Inte rop.IVsTextBuff erDataEvents.On LoadCompleted(I nt32
fReload)

Thnaks
ink

"iKiLL" <iK***@NotMyEma il.comwrote in message
news:eN******** ******@TK2MSFTN GP02.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******* *******@TK2MSFT NGP05.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***@NotMyEma il.comwrote in message
news:ug****** ********@TK2MSF TNGP04.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3275
by: Martin | last post by:
Thanks to all those who assisted me with my last question re: What is the best way to produce WYSIWYG pages for viewing and printing. I think that I have mastered the form with scrolling picture box method, it looks fine but still lacks that windows application feel. I was advised not to go the MDI form root at the time but no reason was given. Could someone explain why not MDI form for the same purpose, I understand that most MS...
1
3610
by: Wesman | last post by:
Threads, textboxes and scrolling Thanks in advance for any information on this matter. I have run into a small richtextbox, scrolling and tread issue. Which has me totally confused. Instead of trying to explain it I wrote some small C# code to demonstrate the fact that in the threaded version the textbox simple doesn't scroll like it should… please look to the startButton_Click method for the distinction between the two programs..
2
3833
by: James CC | last post by:
I have a strange bug in C# using windows forms. To make sure it's not some bug with my code, I've gone back to a simple test app, and still see the same behavior. I have created a simple C# Windows MDI Application, as in MSDN, ie : 1) Create Windows Application (Form1), set IsMDIContainer to true 2) Create MainMenu component in the form, with top level '&File', submenu '&New' and '&Close', and another top level '&Window' with MDIList...
1
2176
by: Tim Frawley | last post by:
I have a large form with many controls, almost like legal size paper in height. Just so I can head these off, I am not looking for suggestions to the effect of using Tab controls, multi-window or multi-page forms. The Forms AutoScroll property is set to true so the user can scroll the window. What I would like to do is scroll the form for the user. I have explored the possibility of Me.ScrollControlIntoView(control further
5
22313
by: Rob T | last post by:
To keep my example simple, let's say I have a windows application form with a panel in it. For this example, I want to draw a single line in the panel, which is larger than the size of the panel. Is there a way to get the scrollbars to show up? Also....If I were to put a control (like a button) into the panel, the scrollbars are there...but my line doesn't redraw properly. How should I be doing this? Thanks.
1
2357
by: Oberfuhrer | last post by:
Hello all VB.net friends ! i have done most of my programming in assembly, at least so far. Recently i decided to learn a high level language for windows programming. I didnt take long to realize that VB.net would be my perfect friend. I have already rewritten most of my assembly controls in VB, but i am not satiesfied with the scrolling performance, though. In assembler, where you can write directly to the video memory, this
1
1852
by: atif | last post by:
Hi, I m new to CSharp.. so may be my preliminary questions look stupid.. but plz help me.. I want to drag controls like buttons or some other user controls over form.. i have set form's autoscroll = true to handle scrolling automatically. but when i drag the components of form, scrolling occurs extra ordinary too fast.. so plz help me to control scrolling as in visual studion designer.. as we
11
7655
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, I know I sound like a one-note Johnny on this but I'm still looking for a solution. I need to display characters coming in from a serial port or a socket. I also need to be able to type characters into the display myself - but that's not the main issue at this time. I've tried a scrolling multiline text box but once the original viewable area fills up and it starts scrolling the flashing of the entire area drives me nuts. The...
7
2909
by: robert.waters | last post by:
I have an Access database frontend linked via ODBC to a large (gigabytes) mysql database. I need to view a large amount of data in a a textbox (variable up to 300K), but I receive a 'there isnt enough memory' error whenever I scroll past N number of bytes in a textbox that has been filled with a lot of data. I am not sure what N is, but for a large chunk of data it occurs at about the halfway scroll, and smaller chunks might not throw...
0
9636
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9474
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10306
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10139
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10075
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7485
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5504
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3632
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2869
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.