Code Monkey home page Code Monkey logo

Comments (2)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
Ok, i write in VB, but I noticed that in C# it doed not give a very good 
error... just 
Attempted to read or write protected memory

so i recreated it in VB, and got the same error but more information, the list 
box
contains to many items?!?!?!? well after a little playing and testing...

in Style.cs
comment out the overrides ToSting
add property StyleName
and just do a get name
NO SET for this

on the SettingsForm.cs
in SettingsForm function (the NEW function for VB)
where you see the lbStyles.selectedindex = 0
right above that add lbStyles.DisplayMember = "StyleName";

problem solved


Original comment by trspraypaint on 16 Feb 2009 at 2:00

from alsing.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
Hi.

Found this one out and it appears that tha problem happens in some files rather 
than
others, due to many styles with null names.

To solve this, instead of commenting out the ToString() override, you can just 
add
something like 

        if (string.IsNullOrEmpty(s.Name))
          s.Name = "Style " + i;

in the constructor of SettingsForm, so that it will give unique names to the 
unnamed
styles.

And trsprayp, cheers for finding out about the listbox! I was bangging my head 
around
this one, and if it were not for you, I'd still be.

Original comment by [email protected] on 19 Dec 2009 at 1:49

from alsing.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.