Comments (2)
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.
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)
- Test issue
- Issues for compiling under Mono HOT 3
- OnModified triggered repeatedly
- Smart indenting behaves strangely (C#) HOT 1
- Copying brace characters as rich text doesn't work
- Mouse Wheel Scrolling HOT 1
- MDI demo no code completion? (autolist)
- AutoList Not functioning or I'm not doing it correctly. HOT 3
- WordMouseDown, WordMouseHover not being triggered at all.
- <script> and </script> in same line dont work HOT 1
- scrolling using large files lags
- SyntaxBoxControl.dragDrop event doesn't work
- Possible bug : Syntaxbox is not detecting $ as a scope end marker.
- Selection Highlighting
- Scope with Start only
- Problem in EditViewControl.ScrollIntoView()
- NormalizeCase not working right
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 alsing.