Excellent work
I was wondering if you have found a fix for the OOMEs that some users are experiencing? I'm also facing the same issues. Maybe if we share ideas, we can figure out what's up?
isn't solved
Excellent work
I was wondering if you have found a fix for the OOMEs that some users are experiencing? I'm also facing the same issues. Maybe if we share ideas, we can figure out what's up?
System.Runtime.InteropServices.COMException was unhandled
Message="Unspecified error "
ErrorCode=-2147467259
StackTrace:
at StedySoft.SenseSDK.SensePanelItem._getImageSize()
at StedySoft.SenseSDK.SensePanelItem.OnRender(Graphics g)
at StedySoft.SenseSDK.SenseListControl._renderGraphics()
at StedySoft.SenseSDK.SenseListControl.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.WnProc(WM wm, Int32 wParam, Int32 lParam)
at System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
at Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain)
at System.Windows.Forms.Application.Run(Form fm)
at Restaurant.Program.Main()
private void menuAbout_Click(object sender, EventArgs e)
{
using (frmAbout fa = new frmAbout())
{
fa.ShowDialog();
}
}
private void ButtonSense1_Click(object sender, EventArgs e)
{
this.Close();
}
w Microsoft.AGL.Common.MISC.HandleAr(PAL_ERROR ar)
w System.Windows.Forms.Control.get__ClientSize()
w System.Windows.Forms.Control.get_ClientSize()
w System.Windows.Forms.Control.get_ClientRectangle()
w StedySoft.SenseSDK.SenseButtonControl.OnMouseUp(MouseEventArgs e)
w System.Windows.Forms.Control.WnProc(WM wm, Int32 wParam, Int32 lParam)
w System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
w Microsoft.AGL.Forms.EVL.EnterModalDialog(IntPtr hwnModal)
w System.Windows.Forms.Form.ShowDialog()
w SettingsExporter.frmMain.menuAbout_Click(Object sender, EventArgs e)
w System.Windows.Forms.MenuItem.OnClick(EventArgs e)
w System.Windows.Forms.Menu.ProcessMnuProc(Control ctlThis, WM wm, Int32 wParam, Int32 lParam)
w System.Windows.Forms.Form.WnProc(WM wm, Int32 wParam, Int32 lParam)
w System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
w Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain)
w System.Windows.Forms.Application.Run(Form fm)
w SettingsExporter.Program.Main()
i'm still having issue with my toolbox doesn't show up the controls when creating .net 3.5 project. how to solve this?
at StedySoft.SenseSDK.SensePanelItem._getImageSize()
at StedySoft.SenseSDK.SensePanelItem.OnRender(Graphics g)
at StedySoft.SenseSDK.SenseListControl._renderGraphics()
at StedySoft.SenseSDK.SenseListControl.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.WnProc(WM wm, Int32 wParam, Int32 lParam)
at System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
at Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain)
at System.Windows.Forms.Application.Run(Form fm)
at NewsPaperReporter.Program.Main()
I fill a Panel with filenames and by clicking on a panel item I want to open the file, the problem is that I can't send any variables to the EventHandler function.
Code:for (int i = 1; i <= 7; i++) { MyPanelItem1 itm = new MyPanelItem1(); // base properties itm.ButtonAnimation = true; itm.Name = "PanelItem" + i.ToString("0#"); itm.ShowSeparator = true; // MyPanelItem1 properties switch (i) { case 1: itm.Thumbnail = iimg; itm.PrimaryText = string.Format("Primary Text for '{0}'", itm.Name); itm.SecondaryText = string.Format("This is the Secondary Text for '{0}'", itm.Name); break; ... etc. } itm.OnClick += new MyPanelItem1.ClickEventHandler(OnClickGeneric); this.senseListCtrl.AddItem(itm); void OnClickGeneric(object sender) { // Here is my Code - I want to get the "on-clicked" Filename }
void OnClickGeneric(object Sender)
{
MyPanelItem1 itm = (Sender as MyPanelItem1 );
// itm.PrimaryText <- This is your FileName.
}