[Windows Mobile Software Development] BarrySumpter:
Hi kliptic,

Yes that is the current situation for everyone.

Everyone is either coding by hand to create the control on the fly/dynamically

or copying the controls in from the sample project.

I've also sorted the trust issues but the Out of Memory is still a problem for me.

I found this sample in a previous post.

I think #584

http://xdaforums.com/showpost.php?p=6659280&postcount=584

Please pardon the repost of the following code

as I'm just updating the install doc now

to clean it up

and include the first how-to project

using these SenseSDK v1.39 controls.

I've only just found this myself and have NOT had a chance to test.

Double click on the back ground and replace all the code with the following.

???

Imports System
Imports System.Drawing
Imports System.Globalization
Imports System.IO
Imports System.Reflection
Imports System.Windows.Forms
Imports Microsoft.Drawing

Public Class Form1
Dim senseHeaderCtrl As New StedySoft.SenseSDK.SenseHeaderControl()
Dim senseListCtrl As New StedySoft.SenseSDK.SenseListControl()

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
senseHeaderCtrl.Dock = System.Windows.Forms.DockStyle.Top
senseHeaderCtrl.Location = New System.Drawing.Point(0, 0)
senseHeaderCtrl.Name = "senseHeaderCtrl"
senseHeaderCtrl.Size = New System.Drawing.Size(240, 25)
senseHeaderCtrl.TabIndex = 0
senseHeaderCtrl.Text = "SenseSDK Demo"

senseListCtrl.Dock = System.Windows.Forms.DockStyle.Fill
senseListCtrl.IsSecondaryScrollType = False
senseListCtrl.Location = New System.Drawing.Point(0, 25)
senseListCtrl.MinimumMovement = 15
senseListCtrl.Name = "senseListCtrl"
senseListCtrl.ShowScrollIndicator = True
senseListCtrl.Size = New System.Drawing.Size(240, 243)
senseListCtrl.Springback = 0.35
senseListCtrl.TabIndex = 1
senseListCtrl.ThreadSleep = 100
senseListCtrl.TopIndex = 0
senseListCtrl.Velocity = 0.9

Me.Controls.Add(senseListCtrl)
Me.Controls.Add(senseHeaderCtrl)

senseListCtrl.BeginUpdate()

senseListCtrl.AddItem(New StedySoft.SenseSDK.SensePanelDividerItem("DividerItem1", "Panel Items with Thumbnail"))
senseListCtrl.AddItem(New StedySoft.SenseSDK.SensePanelDividerItem("DividerItem2", "Panel Items with Thumbnail 2"))

Dim itm As StedySoft.SenseSDK.SensePanelItem

itm = New StedySoft.SenseSDK.SensePanelItem("PanelItem1")
itm.ButtonAnimation = True
itm.PrimaryText = String.Format("Primary Text")
itm.SecondaryText = String.Format("This is the Secondary Text")
senseListCtrl.AddItem(itm)

itm = New StedySoft.SenseSDK.SensePanelItem("PanelItem2")
itm.ButtonAnimation = True
itm.PrimaryText = String.Format("Primary Text 2")
senseListCtrl.AddItem(itm)

senseListCtrl.AddItem(New StedySoft.SenseSDK.SensePanelDividerItem("DividerItem3", "Panel Items with On/Off Switch"))
Dim itm2 = New StedySoft.SenseSDK.SensePanelOnOffItem
itm2 = New StedySoft.SenseSDK.SensePanelOnOffItem("OnOffItem1")
itm2.ButtonAnimation = True
itm2.ProcessEntireButton = False
itm2.PrimaryText = String.Format("Primary Text")
itm2.Enabled = True
itm2.Status = StedySoft.SenseSDK.ItemStatus.Off
'itm.OnStatusChanged += new SensePanelOnOffItem.StatusEventHandler(OnOnOffItemStatusChanged);
'itm.OnClick += new SensePanelOnOffItem.ClickEventHandler(OnClickGeneric);
senseListCtrl.AddItem(itm2)

senseListCtrl.EndUpdate()

End Sub
End Class

-----

Surprise! Surprise! Surprise!

Nope.

If it weren't for bad luck I'd have no luck at all!

Doom, dispair, and agony on me!

Error after error.

No proper coding examples to be found.

Would certainly appreciate any help from someone who can get this working.

My doco updated:

http://xdaforums.com/showpost.php?p=6876859&postcount=793

I'll have to push on to get some real things done.

I'll leave this for now in hopes it will one day become a proper development product.

All my best to everyone.