Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object cannot be cast from DBNull to other types. #15

Closed
maiqxx opened this issue Jan 11, 2023 · 1 comment
Closed

Object cannot be cast from DBNull to other types. #15

maiqxx opened this issue Jan 11, 2023 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@maiqxx
Copy link
Owner

maiqxx commented Jan 11, 2023

System.InvalidCastException
HResult=0x80004002
Message=Object cannot be cast from DBNull to other types.
Source=mscorlib
StackTrace:
at System.DBNull.System.IConvertible.ToDouble(IFormatProvider provider)
at System.Convert.ToDouble(Object value)
at Carinderia_Kiosk_System.Customer.MenuBoard.TotalAmount() in C:\Users\Jamaica\source\repos\Carinderia-Kiosk-System\Carinderia-Kiosk-System\Customer\MenuBoard.cs:line 225
at Carinderia_Kiosk_System.Customer.MenuBoard.GetOrderList() in C:\Users\Jamaica\source\repos\Carinderia-Kiosk-System\Carinderia-Kiosk-System\Customer\MenuBoard.cs:line 315
at Carinderia_Kiosk_System.Customer.MenuBoard.MenuBoard_Load(Object sender, EventArgs e) in C:\Users\Jamaica\source\repos\Carinderia-Kiosk-System\Carinderia-Kiosk-System\Customer\MenuBoard.cs:line 41
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

image

@maiqxx maiqxx added bug Something isn't working help wanted Extra attention is needed labels Jan 11, 2023
@maiqxx
Copy link
Owner Author

maiqxx commented Jan 12, 2023

@khyle17 @Xe12la baka naman😭

@maiqxx maiqxx closed this as completed Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant