Comments (10)
Hi, I believe this is related to what #55 fixed, I released it in the lastest version, are you using the latest? Try that and report back please :)
from materialskin.
I'm using the 2.1.2 versions from NuGet Manager
from materialskin.
hmm, ok, good to know. Could you get the stack trace of the error and post it here please? otherwise I have no way to know where it's failing.
from materialskin.
i have a question ,when i clsoing winform ,the form was closed ,but the process not stop,it was still runing,disposing was not disposed , it break at below :
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
from materialskin.
I see you opened an issue (#65) for that last comment, We'll continue the discussion about it there
from materialskin.
Hi @leocb ,
When Datasource property is set for combobox and after selecting value from list, when control gets focus again I get Null Reference Error.
Below is stackTrace
System.NullReferenceException was unhandled HResult=-2147467261 Message=Object reference not set to an instance of an object. Source=MaterialSkin StackTrace: at MaterialSkin.Controls.MaterialComboBox.CustomDrawItem(Object sender, DrawItemEventArgs e) at System.Windows.Forms.ComboBox.OnDrawItem(DrawItemEventArgs e) at System.Windows.Forms.ComboBox.WmReflectDrawItem(Message& m) at System.Windows.Forms.ComboBox.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) at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, IntPtr wParam, IntPtr lParam) at System.Windows.Forms.Control.SendMessage(Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.Control.ReflectMessageInternal(IntPtr hWnd, Message& m) at System.Windows.Forms.Control.WmOwnerDraw(Message& m) at System.Windows.Forms.Control.WmDrawItem(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.Application.ParkingWindow.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) at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam) at System.Windows.Forms.NativeWindow.DefWndProc(Message& m) at System.Windows.Forms.Control.DefWndProc(Message& m) at System.Windows.Forms.Control.WmSetFocus(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ComboBox.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) InnerException:
from materialskin.
Thanks for posting the stack trace
it seems to be related to the debuger somehow(?), try it on a release compile and see if it still happens
also, what version of the .net are your using? the lib is compiled on 4.6.2 and is know to have issues with version 4.7.x
from materialskin.
The was same issue with MaterialSkin.dll when downloaded from nuget.org.
I then downloaded the code from github compiled in debug mode and tried to find out on which line it is giving me error.
Error is in Class: "MaterialComboBox.cs" Method: "CustomDrawItem(object sender, System.Windows.Forms.DrawItemEventArgs e)" on below line:
if (!string.IsNullOrWhiteSpace(DisplayMember)) { Text = Items[e.Index].GetType().GetProperty(DisplayMember).GetValue(Items[e.Index], null).ToString(); }
My application is compiled in 4.6.1
And Your code (downloaded from git) seems to be compiled in 4.6.1.
from materialskin.
any updates on this issue.
from materialskin.
I haven't fixed this one yet; I don't use the material skin with a database and I don't plan to install one on my development computer just to debug this issue. If anyone wants to fix the issue and open a PR, I'd be more than happy to update the nugget package.
from materialskin.
Related Issues (20)
- Styling the border of the Combobox dropdown HOT 1
- Drawer not showing icons after inserting new tab at runtime HOT 2
- Control box doesn't work
- Drag and drop on MaterialTextBox2 not working HOT 1
- Change Cursor for ActionBar Burger-Button? HOT 1
- Different Color-Scheme for specific control?
- Slider glitched when resizing
- Modify border style for drop shadow HOT 1
- Material TextBox2 have some problem HOT 4
- Enable input in Combobox HOT 1
- How to resize materialswitch HOT 1
- UserControl HOT 6
- Can I create a Custom Color to replace the primary color? HOT 1
- how to make the MaterialSkin drawer open towards the left instead of opening towards the right HOT 1
- 🧙🏻♂️Looking for mainteners🧙🏻♂️ HOT 3
- Slider needs a Direction property. HOT 5
- MaterialSkin.2 Wacatac.H!ml Torjan ?? HOT 1
- Font issue on foreign computers HOT 2
- which can be substitute of DatagGidView
- Tooltip for Tabpages HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from materialskin.