Answer Questions
braden2 Parameters and methods
Hellooo! I have a problem . I need to use a methode in my click event : private void copyToolStripMenuItem_Click( object sender, EventArgs e ) { folderTreeView_DragDrop(); } but my methode has folderTreeView_DragDrop(sender object,DragEventArgs e) ------- events argument so I get error ! so how can I give it hers parameters in click event co's he don't have DragEventsArgs ... Thanx!!! take a look at the link I supplied and ill be sure to post back if i find something else :-) Hi ! I made solution thank's to all of you for helping me out. how do you mean that the methods do not start when you click on a button What code do you have on the dragdrop event As sta ...Show All
NILKAMAL How to access settings created by the SettingsSingleFileGenerator from another assembly?
How can I access settings created by the SettingsSingleFileGenerator from another assembly Is it possible to tell the SettingsSingleFileGenerator to create a public class instead of an internal Or how can I access my settings Greetings Harry Thank you Harald. My apologies but I do not understand what is meant by adding just a class as a link. Are you referencing the assembly to get to the class I am interested in a IDE-friendly solution also. Ideally I simply want the class generated as public since every update via the designer sets it back to internal. ..probably a bit late in coming but there are two ways of fixing this: 1) Hack the generated source file to make the generated cla ...Show All
Greenstrike Intellisence Doesn't Remember Last Session
I have visual studio 2003 installed on my computer. The intellisense was working just fine until I installed VS 2005. I don't know what happened but now everytime I start VS 2003 it doesn't remember any of the recent intellisense commands. Ex: If I type "System." it should come up as "System.Diagnostics " instead it selects the first item in the list. If I repeat the process in the same session it goes right to "System.Diagnostics". Is there anyway to fix this I found the option at Tools => Options => Text Editor => C# => Formatting. It was already checked so I unchecked it, cleared the history and rechecked it. I will see if that solves the issue Eva ...Show All
glasgow1 Does C# 2005 support coding RS232 serial communications?
It seems VS.NET does not support RS232 serial communications, many people choose to use VB MSComm to do serial communications. Besides, we can also get " Use P/Invoke to Develop a .NET Base Class Library for Serial Device Communications " source code and to apply it in our application from : John Hind's CommBase( http://msdn.microsoft.com/msdnmag/issues/02/10/netserialcomm/ ) However, to get VB MSComm means to buy another software. Does VS 2005 has solved this problem and has some built-in functions to support RS232 serial communication Is there any example about this Thank you! Of course you can! I used it with C#... But there could be a problem. I was getting some garbage data when I read from the stream contin ...Show All
james_cline_ Interfaces - a beginners question
Hi all, In most of the books I've read on C# they make the statement "C# only supports single inheritance, but you can implement as many Interfaces as you wish". To me, this seems to suggest that Interfaces serve a similar purpose to inheritance, but from what i've read and understood, this doesn't seem to be true. To my mind, an interface simply gaurantees that anly class that implements that interface will have those methods/properties the interface requires. However, as far as I understand, each class that implements an interface has to contain all the code necessary to implement that interface; so, for example, if I have two classes that implement an interface, then each class has to have its own code for that implement ...Show All
su45937 Sending email using enduser's default mail settings
Hi, I need to add simple email capability to my app but I don't want to bump into issues like end user smtp authentication, etc. Is there a simple way to automate end users default email client to send email Thanks ! Thanks very much. Pity smtp authentication is necessary to protect us from evil. unfortunately not - you need to supply the SMTP class the correct credential details as well as SMTP gateway, or use your own :-) The end user may not have a default email client, or if they do then you could probably use the email client to send an email but they would have to hit the "send" button. You could use the outlook COM interop approach but agai ...Show All
Vishal Shah Timer Precision
Hi, I am implementing an app that needs to send out data at 20ms intervals. I have tried 2 timers, System.Timers.Timer and System.Windows.Forms.Timer. Neither seems very steady at that rate. Is the one that is, maybe that is too precise Any suggestions Thanks Jeff dear sir or madame , i need another timer which is a timertick but is according to microseconds,can you help me it's very essential.please reply! Hi, That is one of the things that I have tried but at 20ms the timer is very erratic. Jeff dear sir or madame, i need a timertick which repeat my process every 400 micro seconds. can you help me i don't have enough time ...Show All
McGeeky Operator '+' cannot be applied to operands of type 'T' and 'T'
One day, the Microsoft C# team will stop treat us as kids, and this code will become possible: public static ABIDataVoidNull<T> op_Addition_NV_NV<T>(ABIDataVoidNull<T> inValueL, ABIDataVoidNull<T> inValueR) { if (inValueL.IsVoid) { return (ABIDataVoidNull<T>)inValueR; } else if (inValueR.IsVoid) ...Show All
SPWilkinson Inserting a List into a database
If i have an ArrayList of items all with a different object value like Index(0) is "Hello" and Index(1) is "GoodMourning" how would i got about inserting that to a database...I want to insert the index and the value....the value being "hello" and "goodmourning" Eh That's not right. The parameter values are changed each time round the loop; new Parameters won't be added to the collection when there are existing Parameters with those names. ah yes! Sorry, mis read it.. Assuming your ArrayList object is named "list": SqlConnection cn = new SqlConnection("[xyz]"); SqlCommand cmd = new SqlCommand("insert into [table] ([indexColumn], [valueColumn ...Show All
EduardoPayan enums inside interface ?
What is the way to involve enums in an interface i know why i can't , but how do i solve this public interface ICommCallback { enum CommEvents // ERROR! { Connect, Disconnect, Send } void handleReceiveCB( byte [] ReceivedData); void handleEventCB( CommEvents commEvent, bool Res); } VB allows declaring enums (and other types) inside of an interface, but C# does not. David Anton www.tangiblesoftwaresolutions.com Instant C#: VB to C# converter Instant VB: C# to VB converter Instant C++: C# to C++ converter, VB to C++ converter Instant Python: C# to Python converter, VB to Python converter Hi rodniko! You have ...Show All
PeterTPeterT How many threads should a process possess?
Hi, everyone: My application runs with its thread number ranging from 40 to more 60. I wonder how many threads a windows process should have. I have checked a lot only to find that the general MaxThreadNumber for ThreadPool is "25". But how about threads created by Thread.Start Further more, after Thread.Start() was executed in my application, I was surprised to find the the thread may remain "Unstarted" under a uncertain condition which brings about a hang-up. Does this happen just because of too many threads in my application Thank you Thank you very for your reply.I will have a good look at the attached site. TaylorMichaelL wrote: As for AutoResetEvent I ...Show All
Bjoern.Greiff FreeAllUnusedJunk() ? any such method?
I've got a program that runs through a loop, and during this loop, consumes a lot of RAM. of course, .NET is smart, and auto-disposes.. so the RAM usage goes something like.. 40MB, 80MB, 115MB, 230MB, 307MB, then it drops back down to something small again. The thing is, when this loop is over with.. the process could be eating up 40MB RAM, or 300MB. Is there some kind of global method I can call that basically frees up ANYthing that's not in use So why wouldn't you recommend calling the gc.Collect() I want to use it in my application. its bad practice and should leave the GC to do its own thing without interferring with it otherwise sometimes you will have undesira ...Show All
Mgrondin345 Debugging system error
Hi All, I ran into a problem yesterday whereby I get the followig system error when I try to debug a basic "Hello world!" Windows application: "Error while trying to run project: Unable to strat debugging. The binding handle is invalid." When I first wrote the application it worked no problem. I also installed XNA development SDK but don't know if that broke anything. Funny enough I get a different error when I try to run the sample MySpacewarWin1 (but can't seem to even open this one now...). Running: XP pro on a IBM T41 with 512MB RAM, 1.6GHz Intel Pentium M... Is there a way of fixing this error Obviously I would prefer being able to debug... Thanks! Pano T ...Show All
ZeroSerenity printing rdlc files
Hi i made a report, with the Walkthrough that msdn provided ( http://msdn2.microsoft.com/en-us/library/ms252091(VS.80).aspx ) the printer name that provided is a tool that work under office 2003 only, ("Microsoft Office Document Image Writer") is there a way to change this code so i could print the report without having office 2003 (my pc's on the network got office xp and 2000). thanks ahead tomer glick 10X that's exactly what i needed, and it's working great tomer one way maybe to show the printerdialog and choose the printer you want to print to. PrintDialog thePrinterDialog = new PrintDialog(); thePrinterDialog.ShowDialog(); ...Show All
Francis Tracey AppDomain and WinForms performance issues...?
I have a bootstrapper application which needs to be able to launch one of several different versions of my application (for clarity I'll call these versions the SubApp). I have chosen to do this using AppDomains... If I run my SubApp on its own (either via the exe or from the IDE) it runs perfectly and performs really well. However, when I run it inside the AppDomain from within the BootStrapper app the performance is definitely slower... The first form takes around 10 seconds to appear (a oppose to about 1 second running directly) and even after that, there is a noticeable performance degradation when loading new forms, etc... Each SubApp version sits in its own directory, so I use the following code to create the AppDomain: // Cre ...Show All
