Answer Questions
Jon_DEV Remoting client causes server to crash with "Attempted to read or write protected memory" error
I have a small solution that's using remoting to dispatch services across a network. When a client terminates the sremoting server suddenly throws a System.AccessViolationExeption with this message: found this post: http://groups.google.com.au/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/f21786da3e0ab071/fa44fb8c4b624b3d lnk=st&q=server+crash+.net+remoting&rnum=20&hl=en#fa44fb8c4b624b3d turned out I ...Show All
EamonnH select the current paragraph in a richtextbox
Is there a way to select the whole paragraph, not just the current line, at the current caret position in a richtextbox I think you mean using the Find method of the rtb. I will give a try. Many thanks. got it. Thanks again. Don't use the Find method; use the IndexOf and LastIndexOf the String class. Use this on the Text property of the Ric ...Show All
mrphp Incomplete code snippets for c#
Is there any way to get c# versions of all the vb snippets shiped with beta 1 I was hoping this would be addressed for beta two, but so far whidbey only contains a handfull of snippets. are the snippets for c# available now i searched for them but cannot be able to find. (i'm using the RTM vs.net 2005 professional) Use the demo edition of our Instant C# VB to C# converte ...Show All
omengware How to program a decision tree in C#
please How to program a decision tree in C# and what is the easy technique thaht i'll use it to program the decision tree and calculat the weight for each node A great article about ID3 Decision Tree in C# can be found on code project, ID3 Decision Tree Algorithm in C# . Other resources that will help you: Using Decision Trees to predict customer behaviour Decision Trees tutorials overview ID3 algorithm C4.5 algorithm (Extending the ID ...Show All
Toengel How to convert byte[] to Hexadecimal format?
Hi everybody, Is there anyone who knows how to convert byte[] data into hexadecimal data and store it in a text file Or for that matters how to to convert int to hexadecimal In VB, there is method Hex() where you convert data to hexdecimal. I can't find exact method in C#. Advanced Thanks. den2005 I don't think there's a SQL type for hex, I guess you'd store it as a varchar Do the bytes c ...Show All
JeffreyZHANG ListBox
Is there anyway to disable the vertical scrollbar from a listView listbox or listview Vertical Scroll Bar Depends upon the amount of Data in it. How can you show record (for e.g 100 rows) if Vertical Scroll Bar is not enabled. You can set the ListView.Scrollable property to false. If you're disabling the ListView's scrollbar to create your own VScrollBar (for example) for more control, you can set the ListView.TopView to ...Show All
M.Ali.Raza Code for unmanaged primitive type and managed object storage
i want to pass by ref (which i did by adding the ref keyword) now i want to hold the reference to change the value later on. I've tried casting to an object but this doesnt work :-/ also tried a pointer member variable in my class but compiler complains about it. how am i supposed to do this in c# Hi, I got your point and made these two examples to help. The first one (TestUnmanaged) demonstrates how to sa ...Show All
leandro Oliveira Reading from xml file
Hi all I created a xml file using XmlTextWriter for saving new file information with size < xml version="1.0" encoding="us-ascii" > - <logfile> - <file> <FileName>C:\Anup\wms_20050604.log</FileName> <Size>877</Size> </file> - <file> <FileName>C:\Anup\wms1_20050604.log</FileName> <Size>877</Size> </file> &l ...Show All
Jester Using a shared resource
Hi, The problem I have is not specifically related to C# or its implementation. Its more of a theoritical nature, but since I have been frequenting this forum as well as building my project in C#, I thought it d be a better place to ask it. The problem is this: There are three classes: A, B and C. They are a sort of component classes and the class that encompasses these classes (the bigger system) is, lets say, class BigSystem. Me ...Show All
RodColes C++/Win32 for the C# Programmer
Hello, My name is Vincent and I did not know what a semaphore was (until recently). Recently I've noticed (and it's been pointed out to me) that my lack of C++ and the resulting lack of intimate knowledge of Win32 is not helping me as I continue to dive deeper into C# (and as the language matures). Generics for instance have their roots in C++. Concurrent programming in .Net is all about the OS. I know and have studied the CLR ...Show All
croesener Problem with Virtual folder
Hi All Iam getting a problem with a windows application ,it is running properly if we open the solution and runs it but when i create a Virtual directory and browsing it ,there it is giving a problem called "File Or assembly not found or one of its dependencies are not available . I am opening a .exe file while browsing the application from the LocalHost. Please Help its urgent for me Thanks VishwanathK Hi Vishwanath, ...Show All
CreggH How to include an extern file within an .exe application?
Hi all, I am new here and I would like to ask you a question. My experience in using windows forms is not so big, I am coming more from the Web Forms area. Trying to develop a C# Windows Form application I encounter some situations like: how can I use the .exe compiled application together with some resource files at run time To be more explicit, e.g. I have an application that is using an XML file located in the Data directory ...Show All
Jim Homminga Events And User Controls
Hi, I've got a user control inheriting from System.Windows.Forms.TextBox and I've added a ListBox as a child. I would like to expose an event when the ListBox changes visibility. Any help would be greatly appreciated. Code Snippet Follows==================================== public class TextBoxLookup : System.Windows.Forms.TextBox { private System.Windows.Forms.ListBox listBox1; private void OpenListBox() { Control ...Show All
mikeb_ can someone convert this snipet of VB to c#?? Just Some Simple one (basics)
Hi This shouldn`t be difficult .. but i dont know VB But what does this means... He declare a function named with "Afunction" and then in the body of that fucntion he says.. Afunction= ..... LoL , how does he do that or what does that mean in c# can a name of a function take some value Please tell it what does this means in c# The statement FV = PV * (1 + i / 100) ^ n within body of ...Show All
Albino very slow setpixel and getpixel method of bitmap class
Hello, I am working on graphics assigment in that I am using Bitmap class and setpixel and getpixel members but this two members are very slow degrading the performance of my application. Does anybody know the substitute for this function. Please let me know. hi, Thanks for your reply. I had gone through the link it uses lockbits member of Bitmap class. But the problem is that I am developing ...Show All
