|
Probably because the Items collection is implemented entirely in managed code; it has no knowledge of the actual items in the list box; just a count of the items contained in it. If you go behind its back and add a new ListBoxItem to the ListBox, the managed Items collection won't know about it.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Goof around music jam with my brothers (with video)
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
Hi,
I have an c#.net windows app that runs on client laptops with a MS Access database sitting on a server. Sometimes the users need to work on the system on the road so I need to create a local copy of the database on theie laptops. Obviously I need to synchronise the databases when they plug back into the server....I guess my question is, does anyone know of a 3rd party product/tool that will handle all this for me (preferably free...or cheap). I could try and write my own code but was hoping to save time by using an existing product....Any ideas would be greatly appreciated.
Cheers,
Craig
** I'd rather try and fail than fail to try **
|
|
|
|
|
Can anyone pls post the Do's and Dont's of C#.Net coding ?
Thanks in Advance
|
|
|
|
|
DO code in C#
(Sorry, I don't have any handy links, but I had to say something.)
|
|
|
|
|
DON'T code in VB.NET
|
|
|
|
|
|
Kevin McFarlane wrote: Just read this.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconnetframeworkdesignguidelines.asp[^]
For .NET 2.0 see also the Generics FAQs starting here...
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/Fundamentals.asp[^]
Kevin
---Very Helpful Thanks lot.
|
|
|
|
|
Do: Not ask for Do's and Dont's of C#.Net coding.
Don't: Do things In C#.Net coding that you should not do.
|
|
|
|
|
|
How else can you answer such an ambiguous question?!
|
|
|
|
|
Hi
i write a windows application program with Janus components,but an error occured on my runtime not in compile time,
an unhadled exception of type
'system.runtime.InteropServices.ExternalException' occured in System.drawing.dll
Additional information: Internal Error: GDI+ is not properly initialized
please help me
|
|
|
|
|
|
Perhaps if you posted the line of code that is causing the error, we'd be better equipped to help you.
thanks for your help
but there is big problem:
I can't find any line that occured this error ,even with remarking some of my codes.
please help me...
|
|
|
|
|
HI
there is only one way that you reinstall visual studio .NET
its my own experiance there is no other way to solve this problem
PRADEEP
|
|
|
|
|
ok.i will test it
but can you explain for me reason of happening this error!
|
|
|
|
|
I found reson of error and handle it at last.
this was because i new another form in this form and don't using them,i think this resource that don't be free occured problems.
however i solved this finally.thanks for your attention.
|
|
|
|
|
Hi, I have a class running on a secondary thread that listens to an IRC channel (don't worry if you aren't familiar with IRC, all this code is working), and fires an event when it receives a message, passing on this message on.
The problem is that I need the main thread to do all the business once a message is received. Attaching events in the normal manner causes the code fired by the event to be run on the secondary thread, which is not good.
So basically; how can I attach an event handler that runs on my main thread to events fired on a secondary thread?
Hope that all makes sense, I have done lots of searching but cannot find what I'm looking for, this is partly because I'm not really sure what I am looking for, as I am totally stuck.
thanks
Martin
|
|
|
|
|
AFAIK there's no other way than doing the following inside each event handler.
private void _Click(object sender, EventArgs e)
{
if (this.InvokeRequired)
{
this.Invoke(new EventHandler(this._Click), new object[] { sender, e });
return;
}
}
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
www.troschuetz.de
|
|
|
|
|
ahh that's great, works a treat, thanks.
|
|
|
|
|
Hi All
Is it possible to have mulitple column data displayed in a tree view control?
If yes, can you let me know how we can do it.
eg
+ Great Britian| Country | 32
- India | Country | 91
Bangalore | City | 560000
Mumbai | City | 440000
- America | Country | 21
New York | City | 2423612
Washinton | City | 4572125
+ Japan | Country | 23
Thanks in advance for any advice
PS: Please ignore if it has taken duplicate post. I was getting error while posting it.
Regards,
Kais
|
|
|
|
|
Kais4U wrote: Is it possible to have mulitple column data displayed in a tree view control?
No, but you can use an Owner Draw ListView control to render the "Tree" construct in the left column of the ListView when in Report View.
|
|
|
|
|
how i will use Crystal Report 10 in Visual Studio 2005 Express Edition using C#?
|
|
|
|
|
Hi All
Is it possible to have mulitple column data displayed in a tree view control?
If yes, can you let me know how we can do it.
eg
+ Great Britian| Country | 32
- India | Country | 91
Bangalore | City | 560000
Mumbai | City | 440000
- America | Country | 21
New York | City | 2423612
Washinton | City | 4572125
+ Japan | Country | 23
Thanks in advance for any advice
Regards,
Kais
|
|
|
|
|
|
I saw many problems with that implementation. In VS2005 they exposed the "OwnerDraw" of the ListView control so it is relatively simple to do your own.
|
|
|
|