Answer Questions
Nicholas Herring How to realize Undo/Redo
hi c# community! have anybody of you ever realized something like Undo/Redo in C# i need some informations, ...links, ... examples... or how could i start... thanks a lot jerry could you describe what kind of application you are building and what is your requirements The TextBox control and the RichTextBox control support Undo and Redo methods natively you all you need to do is call the appropriate m ...Show All
Naman Windows Media Player
Ok. I have a windows media player control on my form. I need to know how to make it play a wav file that is on my desktop. Can someone help me please. Why would it do that, unless you tell it to Not sure why it would play automatically, but this is how I disabled that: windowsMediaPlayer.settings.autoStart = false ; Ok. I understand the first part, and got that ...Show All
taken_by_another_user_or_invalid Wierd error : Attempted to read or write protected memory. This is often an indication that other memory is corrupt
Ok I have a project that runs fine from the IDE, the problem is if I install the app or run it from the bin\release folder then I get this error on one of my method calls. I have tried this on a test machine and on my development machine and the results are the same. I have spent hours trying to figure this one out....... The crazy thing is, the method shows up in the stack trace but there is not code at all executed in that method. ...Show All
Parminder How do I call this function?
I'm very sorry for asking, I'm used in designing Datasets from the DataSet Designer then I tried to shift to making codes for them manually, I got this example from MSDN. How will I use or call the adapter from this function If I want to use the SelectCommand or the other commands, what should I write in my code for example from Form1_Load, I want to use the SelectCommand. Thanks in advance. public static SqlDataAda ...Show All
mix600 C# Parameter not passed to Web Service
In a revision of the Distributed Application Walkthrough located here: http://msdn2.microsoft.com/en-us/library/1as0t7ff.aspx , we have changed the WinForms app portion of the walkthrough the use the designer tools in VS2005 instead of a manual placement of the datagridview control and the Load/Save buttons. When we use the VS2005 designer tools to drag and drop from the DataSources window after adding a Web Reference to the project, everythi ...Show All
JPATEL VS 2005 RTM crashes A LOT when using refactoring
Hi, Currently I am pretty annoyed... Every second or third time I am using the refactoring-option in the IDE, the IDE crashes. For example, I have a C#-class with some members. I rename one member hit Alt+Shift+F10 and then Enter. After starting the IDE, it works one, two or maybe three times if I am lucky. But then when using it, the IDE will crash. Either a real crash or the Window is just gone as well as the process. REALLY annoying, when ...Show All
ReneL Web.Sitemap won't display node
This is one of my siteMapNode s that will not display on the page probably because there is an error. < siteMapNode url = " BLOCKED SCRIPTwindow.open('../User/Redirect.aspx Page=~/User/EmailUrl.aspx'); " target = " NewWindow " title = " Email " description = " Check your email " > Why can't I run javascript in the url Has anyone done this Thanks carter BLOCKED SCRIPT = j ...Show All
VasuHema Deep equivalence testing?
Hi, hope you can help. If I create a class with some properties and fields and then instantiate two objects based on this class, I need some way of testing for equivalence. Since the == operator works on reference equivalence, this will not work for me. I need to do a field-by-field/property-by-property equivalence check. Ideally, this would be a deep test, recursively looking at sub-objects too. How is the best way to achieve this ...Show All
Jefis Can I use "Virtual Space" in Visual C# 2005 Express Ed?
There is no option to set "Enable Virtual Space" in the texteditor of Visual C# 2005 Express Ed. This setting was in Visual c#. NET 2003 and I am used to it. When this option is set you can move the cursor up and down and it doesn't go the last character of each row. Is there any solution for it any setting in the registry , or anything please help Hi, It's in Tools->Options->Text Editor-> C# or All Languages ->General Jus ...Show All
DotNetGroup How to get total memory of computer
How to get total memory of computer by using C#. Can you instruct me, thank you very much. Reece Williams wrote: Is "Environment.WorkingSet" what you're looking for No, Environment.WorkingSet contains the number of bytes of meomory that are mapped to the process. You can use WMI, here is a working example and article. You can use Windows Management Instrument(WMI) in System.Manage ...Show All
Ray_GTI-R the filename, directory name or volume label syntax is incorrect.
I have been trying to start a new project in Visual C# Studio 2005 Express and keep getting the error: the filename, directory name, or volume label syntax is incorrect. (Exception from HRESULT: 0x8007007B) I have checked my volume label (WINXP) and the directory (E:\VS2005\) and even the filename that i have entered (MyProject) and can find no invalid characters or syntax in any of these. Yet each time I try to create a new project ...Show All
cyclops Inserting images (.jpg) into SQL Express
I'm using SQL Express and I have a table that has a column of type image. My question is how do I go about inserting and/or updating an image in a row using C# I'm aware that the image type in SQL is simply a BLOB, but I don't know how to insert an acutal picture (.jpg) using C#. I tried something like this: byte [] photo = GetImage ( @"C:\image.jpg" ); SqlCommand command = new SqlCommand ( "UPDATE character" ...Show All
MusaR C#. Program's debug mode returns expected result, but normal runtime does not !
I am using Visual Studio 2005 Express Edition Beta 2 and i have weird problem. I have doubts that this could be some kind of beta bug. After hours of spent debuging time i can't figure out where the problem is... i wonder if anyone can give me a clue on this. So the problem: I wrote program that simulates 10 lap race... it is very simple program that has only 1 form. By presing start button i get random lap time which is passed to ...Show All
Richard Back 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
kastanienreis Is there any CustomFormat for showing the millisecond in DateTimePicker
I wants to show the millisecond in the DateTimePicker.So the customer can change the millisecond value also. Is there any format by which i can show the millisecond in datetimepicker. Regards Yogesh > Is there any format by which i can show the millisecond in datetimepicker AFAIK the answer is no. The supported formats are described in the MSDN docmentation for the CustomFormat property. You ca ...Show All
