« first day (23 days earlier)      last day (4925 days later) » 
02:00 - 19:0019:00 - 23:00

2:20 AM
0
Q: How to show Enum type members in a DataGridViewComboBox?

Dr TJWhat else I have to do in order to show ReadAccess enum members in this DatagridViewComboBox? ReadDataGridViewComboBoxColumn.Items.Clear(); ReadDataGridViewComboBoxColumn.Items.AddRange(ReadAccess.None, ReadAccess.Allowed); ReadDataGridViewComboBoxColumn.ValueType = typeof(ReadAccess);

@GeorgeStocker
 
How is C# vs Java hiring in the job market now guys?
 
0
Q: Compile codes with my own compiler in VS2010?

Dr TJHi Anybody knows how can I use VS2010 IDE to write my own language codes and compile it with my own compiler?

 
 
4 hours later…
6:38 AM
Hello everyone. does anyone aware of W32Time and its configuration?
 
@Akie what is the question? Can you provide a bit of code to demonstrate what you're unsure of or what you're trying to accomplish?
 
@drachen : I am struggling with one error in my c# code since last 3 days
error is "The interface is unknown. 0x800706B5"
I saw on net and came to know it is something related to w32Time
 
out of curiousity, can you show me the line in your C# code that the compiler reports as giving this error?
 
also this. support.microsoft.com/kb/816042 but not sure how to solve my prob
sure
 
well if you're sure you've got the solution, then you don't need us in the chatroom right?
 
6:44 AM
string strUrl = "http://localhost:1978/solo.pointcross.com/Orchestraweb/?Appid=1&ViewID=12&Bnry=1&InstanceID=401bb2e4-1076-4d5f-aad4-3308a70baa0d&redir=.%2f%3fAppid%3d1%26ViewID%3d255%26PICKCTX%3d2%26FT%3d0";
int iHeight = 200;
bool Resizable=false;
int iWidth=200;
int iLeft=20;
int iTop=20;
object vPost = "";
object vHeaders = "";
object oEmpty = "";
object oURL = strUrl;
object iHeight2 = iHeight;
string strPostinfo = "XML=%3cDROP+Re%3d%22.%252f%253fAppid%253d1%2526ViewID%253d255%2526PICKCTX%253d2%2526FT%253d0%22%3e%3cI%3eC%3a%5cUsers%5cashif%5cDesktop%5cdesktop.ini%3c%2fI%3e%3c%2fDROP%3e";
No. I just read article tried to solve problem but its not helping me
 
So I don't see any reference in your code to W32Time
 
I am getting error on this line IE.Height = (int)iHeight2;
 
Can you show me what line the W32Time reference is on?
 
there is no reference in my code. however from first link and this link google.co.in/… I came to know that windows internally use this
 
So why do you assume that the error code could only ever mean one error?
 
6:46 AM
for each network request it uses w32time
 
The error you received did not use W32Time, so why would you think that is your error?
the error you have is that iHeight2 is not casting as an int, when it clearly should be.
When does IE get declared?
It may not be correctly initialized ... also, where is this being used?
winforms?
 
IE is declared globally.. as SHDocVw.InternetExplorerClass IE;
yes its in winforms
and i am initializing it here try
{
IE = new InternetExplorerClass();
}
catch (Exception Ex)
{

MessageBox.Show(Ex.Message);
return;
}
and there is no error on initialization
 
I don't see why your code isn't working. I would put the IE code together in the try block tho, that's just my style. Then I would change that particular line to IE.Height = iHeight;
I see where you're initializing it, I was curious where it was declared, since you didn't give it in your code.
funny how people tend to give code that doesn't affect their problem, and leave out the code that does.
 
Its declared globally as I said. in same class..
 
try the change I just suggested and see if it works
quit trying to think about your code. Your debug statements show that you don't understand the code you're using, but I'm presuming you're trying to learn it, not just hack something together that mostly works sometimes.
 
6:54 AM
previously I tried same but it was not working. so i used object after reading in one article
 
ok, well you should keep reading the articles, those are working for you really well
my advice, what I do when things don't work out for me, I delete it all and start over (rather I comment it all out)
 
one more thing I observed is it is working with other url
I mean if I use www.google.com then its working
 
so then it's the URL that's causing it grief? that's odd
 
also I am getting this problem only in windows 7
win xp it is working fine
namespace SendToSoloTest
{
public partial class Form1 : Form
{
SHDocVw.InternetExplorerClass IE;
public Form1()
{
InitializeComponent();
}
 
then you should say that from the word go
 
6:57 AM
oh sorry.. but what could be the reason with URL :(
 
idk, I haven't got any experience with that control
does it work if you remove the height line?
 
let me try
giving error on width
Problem with IE object i guess. no property is accessible in windows 7
 
the problem is BEFORE the height line
my advice?
get it working without the problematic URL
get it working with google.com
in all regards
you can troubleshoot a single URL easier when everything else works
ok, my wife is tapping her foot, I know the fights I should pick
best of luck, I'm out
 
very well.. thanks anyway
:)
 
jjj
what's up guys?
 
 
1 hour later…
jjj
8:37 AM
i noticed that most of .net developers are using C# language ... so ... is it better that VB for example ..?
guys ..?!
 
not everyone, there are many developers using VB.Net, but if someone wants to learn .net language, he start to learn C# not vb I think
 
jjj
well ... i started with VB..!!
and ...@ArsenMkrt ... i sayed( most of .net developers are using C# language )
 
good, c#.net and vb.net are equivalents languages, just someone prefer vb.net syntax, someone c#, and that's all :)
 
jjj
ya .. but
most of the people i met are working on C#..and also here!!
why?
 
because they choose to learn C# :)
 
jjj
8:52 AM
and why?...:)
 
jjj
^_^.. thanks
 
you are welcome :)
 
 
2 hours later…
11:25 AM
any geek online?
 
Depends
 
any regex experts in the house?
 
Depends
 
just posted a question here stackoverflow.com/questions/4123455/…
 
11:47 AM
hello
0
Q: WPF Expandable ToolBox

serhioWhat control should I use in WPF to build Exapdable Toolboxes like in Visual Studio?

 
The Expander would be a good start, but I'd recommend looking at Teleriks controls. They already have some great controls that do that kind of stuff
 
@Micah Do you still need any help with that question, or has the answers posted helped?
 
@Micah telerik is commercial, now is not a question of buing something just for a expander...
thanks however
 
If you only need to be able to expand and collapse them, I'd say a simple control with a button with vertical text and a panel would do
 
I found somthing interesting, just a transform in the header
but now when I expand, I need to apply a diferent transform
this is a little ennoying
 
12:03 PM
@LasseVKarlsen got it. Thanks!
 
jjj
12:45 PM
guys
massage error:"The specified type member 'user_name' is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties are supported."
on login
any idea
@Lassevkarlsen .. help
 
0
Q: WPF UserControl DesignMode property (Hosted on a WinForm)

serhioI search DesignMode boolean on a custom WPF UserControl... How correctly do I impelment it? I have a WPF Control hosted in a WinForm. I saw that the "DesignerProperties" class does not work in such a case. I have some logic in the constructor that throws exceptions in the design mode and want t...

 
jjj
thanks
 
 
1 hour later…
2:22 PM
Is there a need to encapsulate Collections?
0
Q: Is there a need to encapsulate Collections?

serhioIs there a need to encapsulate Collections? say private List<Item> items; public Items Items { get { return this.items; } set { this.items= value; } } or just public List<Item> Items;

 
@serhio Gave you an answer
 
is there something like codingbat.com/java out there for c-sharp?
 
@spoulson tanks :)
 
@serhio I don't understand your response though. I thought I answered your question.
Is there a problem with encapsulation that you don't want to do it?
 
2:51 PM
Woo, got +4 votes today. Hadn't got much rep lately until now. :)
 
@serhio i posted on your question too. most people forget that they can handle null fields directly in the encapsulation by using the null coalessing operator.
 
It's not possible to create a static delegate within a non static class? I do not want to have to set the delegate for each instance of the class that is created
 
@ChrisKlepeis delegate or event? You can declare a static delegate field/property, or you can declare a static event (if you want multi-casting)
 
II suppose I'm trying to wrap my head around when to use events and when to just use a delegate. When I try this
public static delegate void PreRender(TreeViewItemViewModel t);
I get "static is not valid on this item"
I know how to do it with events... i can have a static event, and a non static delegate... but I thought I would be able to do what I need to do with just the delegate
 
3:07 PM
@ChrisKlepeis that's declaring the new delegate type
@ChrisKlepeis if you have: public delegate void PreRender (TreeViewItemViewModel t);, then the static delegate field (which would be an instance of that delegate type) would be "public static PreRender RenderCallback;"
 
@Pete ok, roger on the type thing... so if the delegate points to a static function then all instances of my class that declared and uses the delegate will call that static function? Does that sound about right?
might take me a few to wrap my brain around this... I haven't used events or delegates much
 
@ChrisKlepeis correct.
@ChrisKlepeis Now, there are certainly potential threading issues you should think about when doing something like that...
 
How so?
The static function is pretty quick, and I plan on having it run in the UI thread (this is a WPF app)
 
@ChrisKlepeis if a common object might be accessed by the static method
for instance, form -> textbox.value.set()
that's as opposed to receiving data and then storing it away somewhere. Just saying that if you call back out of the static method to singletons (like display elements) then you have the potential for obliterating data
just something to be considered, not a woe to be scared of
 
3:23 PM
@ChrisKlepeis if you assign a static delegate field to some static method somewhere, and that static function is assumed to be run on the UI thread, if some random instance of your object gets passed to some async callback, or a timer event that doesn't run on the UI thread, etc. then your static method may get invoked in ways it didn't anticipate. Just something to be careful of. Nothing inherently wrong with the approach.
 
@ChrisKlepeis In a sense, events are to delegates what properties are to fields. Events are by default thin wrappers around a delegate field, but can have some added logic in their add and remove accessors. We use properties when 1) what we represent is logically a property of the class, or 2) we need extra stuff to happen on set and get, or 3) we want to encapsulate a field just in case (2) applies in the future – changing from a public field to a property is a breaking change.
I'd say the same considerations apply to events.
 
gotcha, thanks all
 
3:52 PM
0
Q: How can I send the HTTP response back to the user but still do more things on the server after that?

shogunSometimes there is a lot that needs to be done when a given Action is called. Many times, there is more that needs to be done than what needs to be done to generate the next HTML for the user. In order to make the user have a faster experience, I want to only do what I need to do to get them thei...

mornin'
 
spawn a new thread before you return data
the worker thread will not be aborted just because the data is returned
 
that's what i was kinda thinking, didn't know if that was the ideal way or not
 
I'm not gonna answer just yet, see if anyone else says the same thing
look for a second opine, as it were
 
sometimes i need to send a bunch of emails, or calculate a bunch of data, etc
 
see if @Joren or @LasseVKarlsen or @ReedCopsey has an idea
I presume that would still work in MVC land, I know it would in WebForms world
 
3:54 PM
i dont need an answer right this moment just thought i would share the question in case anyone knew or wanted in on it
 
how the hell am I down to 5 votes left for today? doesn't the clock reset around 10pm CST? Where did I burn all my votes?
 
there's a votes limit?
 
well seeing as how I was the first to respond if that's the concensus I should be up for top honors :p
 
4:09 PM
wait, is there a votes limit?
 
yeah, 30 votes per day
there's even a badge if you use them all (awarded once)
 
@drachenstern how 'business critical' are the things that need to be done in response?
errr. @shogun ^
@shogun if the user gets an OK back, but their emails don't get sent, is that considered unacceptable?
@shogun responded to the Q.
 
4:25 PM
@Pete i dont have a specific enough answer for you unfortunately, i was more asking this in general to see how it was done in an effort to speed up my site
 
@Pete for stuff like that we've implemented an offline messaging queue (templated emails that the user can subscribe to, giving just the facts, regarding specific job types) that we let the user subscribe to so they can fire-n-forget on those sorts of things, and if it doesn't succeed they know they'll get an email (well, they get one either way)
 
4:59 PM
hey..
someone can tell me how can I get the current window inside a windows form app?
 
@PhE use this?
 
this return "class", the method need "window"
not work :S
this return class, and i need window object
 
@PhE I'm reading your mind from here but I'm getting static
can you remove the tinfoil hat and give us sample code?
 
public void PosiciaTelaCantoInferiorDireito(Window _Window)
{
try
{
double _WindowPosicaoX = ObterComprimentoTela() - _Window.Width;
double _WindowPosicaoY = ObterAlturaTela() - _Window.Height + 25;

_Window.Top = _WindowPosicaoY;
_Window.Left = _WindowPosicaoX;
}
catch(Exception __Excp)
{
new uException(__Excp).GerarLogErro();
}
}
 
what's the calling code look like?
 
5:05 PM
public void PosiciaTelaCantoInferiorDireito(Window _Window)
{
try
{
double _WindowPosicaoX = ObterComprimentoTela() - _Window.Width;
double _WindowPosicaoY = ObterAlturaTela() - _Window.Height + 25;

_Window.Top = _WindowPosicaoY;
_Window.Left = _WindowPosicaoX;
}
catch(Exception __Excp)
{
new uException(__Excp).GerarLogErro();
}
}
 
what does typeof(this) return?
 
evening all :)
 
I'm still waiting to see how he calls that method
 
new uWindow().PosiciaTelaCantoInferiorDireito(????);
Sorry
@entens I tried to use the typeof but could not.
 
if your calling it from the code behind of the window you want to pass in, then

new uWindow().PosiciaTelaCantoInferiorDireito(this);
but I don't like the fact your new-ing up objects just to call a method.
 
5:11 PM
or alternately couldn't he do this as well?
new uWindow().PosiciaTelaCantoInferiorDireito(); if he changed this line too? public void PosiciaTelaCantoInferiorDireito(this Window _Window)
converting it to a window extension method that is
 
@Sekhat but it is a kind of library. Center code.
@Sekhat You have a better idea?
 
@PhE ostensibly you would work with the existing window, rather than try to create a new one just to center it ...
 
@PhE well new-ing up a class just to call a method is a bit wrong. You probably want an extension method like @drachenstern suggested.
 
@Sekhat he's still not getting a reference to the existing window tho, so he needs to change to pieces of code
 
@drachenstern aye, would like more context around where it's being called
 
5:18 PM
13 mins ago, by drachenstern
what's the calling code look like?
 
@PhE could you provide the code for the class that does the
new uWindow().PosiciaTelaCantoInferiorDireito(this);
call?
perhaps post it on gist.github.com or pastebin.com or something?
 
actually I would like to leave the screen on the side of the clock. And I'm not getting. This code worked for my XAML.
 
@PhE Not sure the translation came through there. I didn't understand what you meant :)
 
me either, wasn't going to say anything tho, thought it was me
 
@Sekhat Sorry. My English is terrible. I want to position the screen beside the clock.
sorry. My English is terrible. I want to position the screen beside the clock.
 
5:32 PM
@PhE Ah, I get you. Either way I could still use some extra context around the calling code. I know how your calling it now, but I don't know where your calling it from :) In order to know how best to get the reference to the window I will need to know the where :)
however, it's home time, so I'm sure the other guys can help you if you provide said information :) See you all later :)
 
Just noticed that 'CurrOwners.Where( co => co.disabled != true )' does not return entities with 'disabled' nullable boolean is null. Realize that "??" will fix that, but that I could have sworn '!= true' caught null values too.
Does anyone have insight into this? Shouldn't null value match the 'not true' condition?
I realize in set theory it doesn't but I seem to remember C# doing things differently.
 
@kervin what's the logic that says that "false" == "null"?
"null" additionally != "true"
but it also !!= true
 
@drachenstern Not sure I understand the question. The 'disabled' scalar variable is a nullable boolean, so I have 3 states. Since not all entities have a value for 'disabled', we make the decision of treating 'null' values as 'false'. 'CurrOwners.Where( co => co.disabled ?? false != true )' does what I want. But I was surprised that 'co => co.disabled != true' didn't do the equivalent.
 
because with the ?? you're assigning a value where a null exists
I do that with strings all the time, it's like a coalesce operator
 
Not like, it is the null-coalescing operator in C#
 
5:44 PM
so for instance, an example: string test = Request["MyRandomGETField"]; if (string.IsNullOrEmpty(test)) test = "empty"; is equal to string test = Request["MyRandomGETField"] ?? "empty";
@LasseVKarlsen thanks, I wasn't sure if that was the name for it
I knew coalesce from SQL before I learned of the ?? syntax
@kervin so does that make sense now why the code didn't work before the addition of the coalesce op?
 
Note that your example isn't exactly the same
 
yeah, I realized that
 
if the string is empty, but not null, ?? won't coalesce into the second operand
 
test = "" is valid without being assigned
I realized that too late
 
@drachenstern I understand why null-coalescing works. I guess my question is why doesn't the Nullable<integer> not-equal operator return a false between 'null' and 'true'
 
5:47 PM
I should've put string.Empty ...
why doesn't the nullable notequal operator return a what?
I think you've defined the answer within the question
Null is a special case that can't be decided if it's true or false without you making that decision
@drachenstern corrected code: string test = Request["MyRandomGETField"]; if (string.IsNullOrEmpty(test)) test = string.Empty; is equal to string test = Request["MyRandomGETField"] ?? string.Empty; because if I don't correct that somewhere it's gonna bug me
that way test will always be either an empty string or have a value
never null
@kervin remember doing truth tables in college?
 
bool? b = null;
if (b != true) { ... }
executes the block, so null != true for a nullable boolean
however:
if (b != false) { ... }
also executes the block
 
@Lasse ah
well, that's ok
 
because null isn't one of the standard pair of truth table operands
 
right, that's what I was expecting
 
you need ^3 for those tables
instead of ^2
 
5:54 PM
bool? a = null;
bool? b = null;
if (a == null) { ... }
 
@Lasse I think my issue may have to do with EF 4
 
If you introduce SQL into the mix, like EF, Linq-to-sql or similar, then yes, all bets are off
In that case, null is neither equal nor unequal to anything
 
@LasseVKarlsen Right. That's what I expect and use in SQL. But I also expected the behavior you outlined in C#
 
??
Can I ask why you would expect nulls to be treated differently in C# from SQL?
I'm just curious and trying to understand
 
They just are
 
5:56 PM
But it seems EF is doing some slightly different? I'm trying it in Linqpad and I'm not get '!= true' matching null
 
SQL has a different meaning for null than a programming language
 
so, C# geniuses, care to look at this issue?
 
@drachenstern: SQL seems to stay closer to set theory, I've noticed. In which NULL is the absence of value and so any expression with a NULL is automatically NULL
 
1
Q: Using the NewLateBinding class in C#?

C. RossUnfortunately it seems I need to do some small amount of dynamic interop in C# 2.0. I discovered the NewLateBinding class from this question. I was looking at the specification on MSDN and noted that it said Executes a late-bound property get or field access call. This helper method is not ...

 
ok, maybe I misunderstand, @LasseVKarlsen are nulls treated differently between C# and SQL for purposes of null compare in bool evals?
 
5:58 PM
comparisons in general will treat nulls differently in SQL and C#
has nothing to do with booleans or the data type really
in C#/.NET, a null is equal to another null
 
I see.
 
And null is unequal to something that isn't null
Whereas in SQL, null is neither equal, nor unequal to anything, null or not
 
how do i remove the selection from a rich text box?
 
null in SQL essentially means "unknown" -- so you can't know whether something does or does not equal X if it is unknown
 
The comparison will also yield null, because null in SQL means "unknown"
 
5:59 PM
I thought so, but the new thing to me is what EF expression evaluator seems to be doing
 
windows forms + .net 3.5
 
well you still have a separate test in SQL (or at least in TSQL) for IS NULL which is like the C# HasValue
 
@LasseVKarlsen I would expect the EF lambda to operate like C#, not SQL
 
and in C# you still coalesce, like in SQL
maybe I'm not grokking a nuance here
 
it gets translated to SQL, so there's some crossover, but I don't know the details to be honest
 
6:00 PM
I see them as the same when I work with them, so there's a behavior I'm not understanding
 
@drachenstern the work arounds are fine, I'm trying to get the theory down. Or at least as much as possible.
 
@Román: Use the SelectionStart and SelectionLength properties.
 
@Román box.SelectionLength = 0
 
@LasseVKarlsen Ok, thanks. That helps
 
@CRoss It doesn't remove the previous selection, want to see code?
 
6:04 PM
@kervin yeah I feel like I'm missing something from what you and @LasseVKarlsen are discussing so I'm trying to absorb. I know the mechanics of what I want to happen, but I feel like there's something right on the edge
 
@Román Let me pull up my own
 
@CRoss requirement: select twice and second time first selection gets wiped
i mean, if the text is "the richtextbox is crazy" then if u search for richtextbox it highlights the selection, and if after that u search for crazy, then the first selection gets removed and crazy gets highlighted
 
hello
 
do i make myself clear?
 
0
Q: How to show Enum type members in a DataGridViewComboBox?

Dr TJWhat else I have to do in order to show ReadAccess enum members in this DatagridViewComboBox? ReadDataGridViewComboBoxColumn.Items.Clear(); ReadDataGridViewComboBoxColumn.Items.AddRange(ReadAccess.None, ReadAccess.Allowed); ReadDataGridViewComboBoxColumn.ValueType = typeof(ReadAccess); here ...

can anyone help me plz?
the problem seems solved
 
6:07 PM
@Román are you setting the highlighting manually?
 
but I still have problems...
 
yes
as in RichTextBox.SelectionStart = startIndex;
RichTextBox.SelectionLength = findStr.Length;
RichTextBox.SelectionBackColor = Color.Yellow
 
@Román are you REMOVING the highlighting manually before continuing?
seems like how I would do it
 
@drachenster: no, i want to highlight all occurrences at the same time
so if text is "a b b b a a a b b" and i find "a" all a's get highlighted
and if after that i search b, the same happens
but with the first a's not highlighted
 
All I'm saying is if you do an operation, undo it
 
6:10 PM
@drachenstern You can test the issue in LinqPad and compare with what @LasseVKarlsen posted. If your selection lambda in your EF 'Where' is "!= true" on a variable that's nullable, then values with null will NOT be returned
 
that's the only way I know to do it
@kervin but that's the behavior I expect
does SQL return those values?
 
but in C# ( not EF ), nullable types with null WILL match '!="
 
they do?
ok, I'm gonna have to test that then
 
@drachenstern that's what @LasseVKarlsen confirmed
I never noticed the difference between C# and EF till today. I've known the difference with SQL before
That's a bit subtle since how much EF lambdas and C# are mixed.
...and it doesn't throw an error or anything. Just evaluates differently
If anyone knows where this is documented, please let me know...
 
any body with another idea? :'(
 
6:23 PM
works in the studio
 
@CRoss did you pull your own?
 
And when you say "doesn't run", what do you mean?
 
@LasseVKarlsen DNP throws an error "Line 0 : Metadata file 'FSharp.Core.dll' could not be found" but it compiles and runs just fine as-is in visual studio
 
Then it's not a problem with the code, but with DNP
 
yeah, I figured. but didn't know if it was something I could work around
probably my use of null, it wants to use the F# libs
 
6:29 PM
No, there's a general error on the site now apparently
 
oh, well then ... maybe he's upgrading or something ... or somebody hosed the server?
I figured it ran all code as needed, even old code, I guess maybe it caches results so it only processes once, cos I pulled up other code and got results ...
but I didn't fork and run the old code
 
@LasseVKarlsen hey lasse, that thing doesn't work. this looks hackish
 
"that thing"?
Doesn't it work setting SelectionLength to 0 to remove the current selection?
 
nope
see my problem is this
i want to highlight all occurrences at the same time
so if text is "a b b b a a a b b" and i find "a" all a's get highlighted
and if after that i search b, the same happens
but with the first a's not highlighted
but the box keeps the a's highlighted
 
"the box"?
 
6:41 PM
the rich text box
wanna see code?
 
If I set SelectionLength to 0, it removes the current selection from the rich text box
 
not in mine :(
 
Show me some code then
 
ok, let me gist'ify it
 
So what is the problem, seems like it removes the current selection fine
 
6:49 PM
well, it "looks" like it should, but if i call twice that method
it simply keeps selecting over and over
which defeats the purpose
 
No
No no no
You're coloring the words
There's no magic that removes that, you have to undo that yourself
 
grrr
 
"Selection" is the same as selecting text with the mouse or the keyboard
That blue background part when you select text
That's what SelectionStart/SelectionLength manipulates
 
ok, understand now
and to remove it, i guess i set the selectionbackcolor to the rich text box background?
 
Where do you get the text from that you put into that rich text box?
 
6:52 PM
that's not the problem, i guess i have to store all previous selections in a list
and then iterate and "erase" all of them
 
Ok, never mind me then
 
would love to have something like rchTB.ResetSelections()
 
These are not "selections"
 
well, the api is missleading
 
And there's no way to "reset" them
No it isn't
Just because you don't understand it doesn't mean it is misleading
 
6:53 PM
cause to create them you have to use selectionstart, selectionlength and selectionbackcolor
 
In all text controls, selecting text is the same as using the mouse, or the keyboard, to select a piece of text
Yes, you set the background color of the currently selected text
You select text, then you format it
That's how it works
And there's no safe way to "reset" it
If the text came with a background color already, for you to "reset" it back to white means it'll still be off
Which is why I asked where you got the text to begin with
 
its created from a list of objects in memory
 
And does the text come with any formatting to begin with? Is it rich text?
Or is it just plain text?
 
no, just plain
i created the text myself from that list
 
Then simply set the text property of the rich text box to the original value, and you're rid of all the colors
 
6:57 PM
oh, but its huge, what about flickering? i already thought that
 
I don't know if it will flicker
 
i guess i will do the pre-iteration removing what i coloured before and kill it
 
02:00 - 19:0019:00 - 23:00

« first day (23 days earlier)      last day (4925 days later) »