Juan Manuel CR's Q&A profile
Visual C# How do I test a button when running an event?
I have a start button which runs a section of code continuously - how do I test the stop button while this code is running Colin, it is usually not a good idea to have an event executing for a long time, as while you are serving an event, the other events get blocked. This amounts to freeze the user interface. If you plan to have a lengthy task running in response to a button click, you should probably use a ...Show All
Visual Studio Express Editions Unable to install SQL Server Express 2005
My installation seems to not work that well....I get a little red circle with a cross inside for installation parts MSXML6 and Database Services (and Workstation components, if I tick that). When finished, SQL Server Setup terminates with the message "Microsoft SQL Server 2005 Setup has encountered a problem and will end..." and the option to send an error report to Microsoft. No service is ever installed. Although one could man ...Show All
Visual C# Image size changing during rotation
I copy pictures from one directory into another. I rotate some of them. Average size of the picture is 0,9MB. When I copy images without rotating file size doesn't change, but when I rotate this image it size is smaller (about 4 times). Did I loose some quality of this image Code: _stream = new FileStream(@"C:\test.jpg", FileMode.Open); Image _photo = Image.FromStream(_stream); _photo.RotateFlip(RotateFlipT ...Show All
Visual Basic Cant run any VB 2005 programs
I have installed and re-installed VB 2005 Express Beta 2 twice and I still get the following error, even on a simple form with only 1 control..."AccessViolationException was unhandled"...Attempted to read or write protected memory. This is often an indication that other memory is corrupt." When I click on detail I get the following additional information>>> Data: System.Collections.ListDictionaryInternal Source: System.Windows.For ...Show All
.NET Development Data Insertion Updation Deletion in Multiple DBs
Hi, I am developing an application in VS.net 2002 or 2003 using VB.net that will have the facility of connecting to Access, SQL Server or MySql depending on criteria. What will be the best way to connect to DBs I am making few generic functions that will return me Connection and Adapter objects of relevant database. What is the best way to Inert , Update and Delete data Should I populate Datasets or should I use Command object for data man ...Show All
SQL Server Management Studio - Graphical Show plan
Sorry if this question has been asked already but I am testing out the Sept CTP of SQL Server 2005 and I noticed that when you display a query execution plan, you cannot manage the indexes of the tables from a right click like you could in Query Analysier. Am I missing something or is it expected to do all management of indexes from the object browser Thanks in advance. Chad I noticed the same thing. I'm n ...Show All
Visual C# XML DSD?
I noticed that .NET has DTD and Schema validators for XML but couldn't find anything for DSD. Is that not supported yet No I don't think DSD is supported. VS Supports DTD's and XSD's as far as I know. Regards, Saurabh Nandu www.MasterCSHarp.com www.AksTech.com ...Show All
Visual Studio Team System Data source grayed out
I am attempting to add a data source to a web test. Currently the data source is .NET Framework Data Provider for OLE DB. I am unable to select a different data source. Is there a default that is set, and can I unset it Thanks, TomK No. You have to use the OLE Db provider. What kind of datasource are you trying to add With this datasource you can use a csv file, excel spread shee ...Show All
Windows Forms DataGridView
I have DataGridView control with entire first column Check box options. So that I can check whatever columns I am interested by click. I am trying to put a check mark programmatically, whenever I call following code it always assign ‘false’ to the cells. How would I programmatically assigned checked state to the following cells. DataGridView fTable =new DataGridView(); fTable.Rows[1].Cells[0].Value = true ...Show All
.NET Development Configuring Certificates to be used with WSE 3.0
I have just create a simple WSE 3.0 test application which uses user name and password security. However I have a serios problems with configuring the digital certificates. I get an exception with the following fault response, < xml version="1.0" encoding="utf-8" > <soap:Envelope xmlns:wsa=" http://schemas.xmlsoap.org/ws/2004/08/addressing " xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/ ...Show All
Windows Forms modifying control properties
when I create a simple form application project in vc++ express I have these two files created by default, form1.h & project_name.cpp now suppose i add a text box in form1 I'm not able to change the properties like text of this textbox from anywhere else other then form1.h (say if i want to change properties from this file project_name.cpp) its a very basic doubt but I've done evrything from making textbox public t ...Show All
Visual Studio Team System How can i write custom rules in FxCop?
Hi All, I like to know the step by step procedure to write the custom rules in fxCop. I got some articles regarding this subject from the net, but all are confusing. I'm using FxCop 1.32. I like to know the following things 1. How can I write a simple custom rule using Visual Studio.Net (in C#) for the Introspection engine. 2. How can I debug it and make sure that it is error free. 3. After developing my custom rule, how can I add ...Show All
Visual Studio Team System Performance Wizard Error
Hello, I am trying to run performance wizard for my web application. when i try to do this i am getting given below error's. Launch Error: The web site could not be configured correctly; getting ASP.NET process information failed. Requesting 'http://localhost:1375/src/VSEnterpriseHelper.axd' returned an error: The information returned is invalid. PRF0017: Can't launch server for 'D:\...\src\'. given below is my web.config fil ...Show All
Visual FoxPro Determining nXYCOORDINATES for the Typing Cursor (Insertion Point) in myEditBox.Selstart
(to help with an autotext class in an editfield) I'd prefer not to use Mouse Cursor Coordinates nor myEditBox.Selstart Derivations. Both frequently elude the Typing Cursor in myEditBox.SELSTART ... (See code below) (Intellisense pinpoints nXYCOORDINATES of the selstart in Native VFP-9 editors) Is _WGetCursor() a solution here Thanks, Philip *Failing Code: lnXY= (this.Width * this.height /(70000)) &&1 lLineIncr=lnXY*pLoadedSelStart/8.5+ ...Show All
.NET Development Is there a way to force derived classes to implement serializable?
I have a base class which is serializable. When I distribute this class I need to ensure that any derived classes will have to implement serializable or throw an error. After looking through the documentation I added the [Serializable] attribute, will this do it Not by using attributes The SerializableAttribute 's i nherited property is set to false, so the attribute is no ...Show All
