Answer Questions
RWeinstein Beginner help with Regular Expressions and replacement
Sorry if this is in the wrong forum. Feel free to move it if it is. I'm a student learning C#. I'm having trouble with a program I'm writing. I have a rich textbox that has been accumulating string data. This data is choices the user has selected. I'd like to allow the user to remove choices. I’ve tried getting the data in the rich textbox and replacing their choice with “” but this replaces all instances of their choices. I’d like it to remove ...Show All
Dessus Where can I place a bug report?
I found a bug in VS2005. Where can I place bug reports In particular: static void Test() { sbyte[] sbytes = new sbyte[]{-2,-3}; byte[] bytes = new byte[]{4,5}; Console.WriteLine("(object)sbytes is sbyte[]: {0}", (object)sbytes is sbyte[]); Console.WriteLine("(object)bytes is sbyte[]: {0}", (object)bytes is sbyte[]); Console.WriteLine("(object)sbytes is byte[]: {0}", (ob ...Show All
Ulrich Vogl Can't "save project as".
I'm trying to do something pretty simple. I have a large, complex project. I want to save it under a new name, so that I can make changes to it (changes that I wouldn't want to risk screwing up my original project). I cannot for the life of me figure out how to do this in the C# IDE. There seems to be no option. Saving it as a template isn't what I'm looking for. I want to duplicate the project so that the old version is safe, and there se ...Show All
Abbott Navigate DataSet
Hi all, I had a datagridview which is bind to a dataset. I want to do some condition checking where by if certain field is empty, I will highlight the row of datagridview to some other colour. By doing this, am I right to say that I need to navigate through the dataset to check if the field is empty. If yes, may I know how to navigate the dataset Please help. Thanks Hi, I am referring to Win ...Show All
MollyBos -- MSFT Confusion with Clear() method of ArrayList
Hi, Check out the following lines. ArrayList list1,list2; list1.Clear(); list1 = list2; Now, my question is, does calling the Clear() method matter here It shouldn't isn't it because in the next line we are assigning another list2 to list1 (this is by reference isn't it). So the presence or absence of Clear() method should affect list1. But that is not the case for me. If I call Clear() the content ...Show All
GuestMan pointers and linked list in c#
how can i create a linked list and use the " -> " There is a ready linked list implementation in .NET, in System.Collections.Generic.LinkedList<> so there's no point of making your own. You don't need to use pointers to create a linked list in C#. Just store an object reference to the next list element. Hi there, There are plenty of tutorials on the net about creatin ...Show All
Delmer Johnson Get ALL the forms into a collection
I am able to get all the open forms into a collection and iterate through them. Is there a way to get all forms, opened and closed Thanks... Thanks for the help. That did what I was looking for. Im not sure what you mean by all forms in all assemblies. The code you provided returned every single form in my solution. What other forms are there in the other assemblies Thanks again, I never, never, never would hav ...Show All
Kofoed Threading Join issue - getting Join_Timeout Exception.
Hi all, I have an application that creates an object which creates a thread in its constructor. The application then starts this threads by calling the Start() property on this object, and then calls a Thread.Sleep(), and then the Stop property to stop the Thread() - and example of the code is below..with the issue I am getting provided below. static void Main() { PowerNotifications pn = new PowerNotifications(); pn.Start(); Thread.Sleep(1 ...Show All
gowtham173656 Visual C# Look and Feel nice in XP, ordinary in 2000, why?
Hi, I downloaded and am running Visual C# Express on my Windows 2000 machine. At first, I was slightly taken aback by the clumsy, clunky look of some of the dialogs in the IDE itself. That is, some of the buttons were strangely large and the size of some dialogs just didn't come anywhere near the professional, smart look of say, Office 2000. For example the "Edit Rows and Columns..." dialog if you right-click on a TableLayout panel. I'm not ...Show All
Mario Chenier - Microsoft vs 2005 not responding
I am using VS.Net2005. Whenever I open a project, the VS gets stuck. If I end the vshost process, the VS continues to respond (but I cannot debug the app). The same happens when I create a new project, so it is not a project specific issue. Does anyone know how to solve the problem thanks. Project hangs not on debug start, it's hangs on project opening or creation. i.e. I doubleclick solution file ( or creating ...Show All
dparvin Touch Screens
Hello people, I am going to create an application for a shop, this application should be used through a touch screen, should I take this into account when programming the application I mean, I would create the surfaces in the screen using buttons for example, but I do not have idea how to connect them with the touch screen, any help Thank you! Thank you! The touch sc ...Show All
lamont_23 Color Font Dialog Problem
Hi guys I am trying to set the font dialog with color but it shows only with fonts. and then if I try to change the color on the selected text it change the entire document with that color. here thecode that I am using: Can anyone gelp private void fontsToolStripMenuItem_Click( object sender, EventArgs e) { FontDialog fontDialog1 = new FontDialog (); try { if (fontDialog1.ShowDialog() != DialogResult .Can ...Show All
MaStErDoN Generics and typecasting
public class ObjectA{ //.. } public class ObjectB: ObjectA{ //.. } public abstract class ObjectAList<T>: List<T> where T: ObjectA { //.. public void LoadData(ObjectAList aList){ XYZ.Load(aList); } } public class ObjectBList: ObjectAList<ObjectB> { private _fObjectBList = n ...Show All
Kartik Subramani a doubt please solve???
hi, I am creating a online test for a IT Firm out here...the problem i am facing is that i am loading the questions..on the same page..so the page is not able to update the marks ..i thing some probs regarding state..let me know if somebdy knws the sol. ni@#$h The description is a little vague. In the load is there a if (!Page.IsPostBack) { // Load Questions } &nbs ...Show All
Marinos Christoforou A strange questoin?
hi, guys I got a very strange question, float a = 1.18F; float b = 0.01F; float m = a + b; Run this code, the result m is not 1.19, IDE shows the value is: 1.189994 Why is that hi, i have tried it and it working fine for me nothing strange the result was 1.19 namespace ConsoleApplication1 { class Program { static void Main( string [] args) { float a = 1.18F; floa ...Show All
