|
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.
|
|
|
|
|
Well lads how are things,
I have a question about the RijndaelManaged class in C#. I am using it and everything is ok. However I spotted on some message board that another lad was using it and he said that he did a Microsoft security update and could no longer decrypt his old data previous to the update, but anything encrypted/decrypted post update was ok. Has anyone ever heard of this problem? I would have thought that the AES standard is independant of any such changes and that once you have key and IV your sorted. However, the possibility of this happening to me is so serious that I have to investigate this. Thanks for any help in advance,
|
|
|
|
|
Hi,
How can converty the FieldInfo to Dictionary ?
my code :
fieldInfo = this.GetType().GetField("dictionary1");
Dictionary<string, string=""> dic2 = (Dictionary<string, string="">)fieldInfo;
The second line is wrong.
Thanks
Wilson
|
|
|
|
|
Hi,
assuming your field is really of type Dictionary then:
Dictionary dic2 = (Dictionary)fieldInfo.GetValue(this)
|
|
|
|
|