alexxio's Q&A profile
Visual Studio Express Editions Indenting issue with code behind
Hello, I am using VWD 2005 Beta 2. I am using code behind and noticed that my code is automatically indenting 4 spaces. If I try to delete the spaces, it automatically inserts it as soon as I leave the line of code. How can I change this to only 2 spaces and how do I stop the automatic indenting from overriding my changes Thanks in advance, sck10 1. Choose Tools -> Options 2. Under the Text Editor node you can change settings for all languages Each language has a Tab node where you can change tab and indenting settings. ...Show All
Visual Studio Team System Is it possible to change the connection string property of a Web test datasource?
Hi all, thanks in advance for your help. We are developing a series of web tests to be used for performance testing. These tests use a local database for parameter data. What I have not been able to change is the connection string of the web test datasource. If we move the tests to another testers machine, they have to create a new datasource, re-establish all of the bindings in the Form Post parameters and then delete the original data source. Is there something I am missing here It may just be a case of 'functions as designed' due to security concerns. Thanks, Shawn Thanks, ...Show All
.NET Development HttpListener simultaneous connections give HttpListenerException
Hope someone can shed some light on this. I have seen lots of similar posts, but they tend to point to a client side restriction of 2 simultaneous connections, but I need to know what I can change on the server side. I have a C# webserver which uses HttpListener Note the Thread.Sleep(100) line which is to simulate getting real data to return. The code snippet is HttpListener listener = new HttpListener (); while (true) { try { HttpListenerContext context = listener.GetContext(); byte[] buffer = Encoding.ASCII.GetBytes("hi"); Thread.Sleep(100); context.Response ...Show All
Visual Studio 2008 (Pre-release) How to trace WCF with TcpTrace
Check out the following for details: http://pluralsight.com/blogs/aaron/archive/2006/04/17/21870.aspx Aaron Skonnard, Pluralsight Good to know - I had previously tried and failed to use TcpTrace! cheers - Donovan ...Show All
Visual Studio Express Editions DataGridView isnt saving the data
Me again... I am struggling with the datagridview. I have generated insert and update queries. When I try and save records by running the Update command: this .tblEnquiryTableAdapter.Update( this .functionJunctionDataSet.tblEnquiry); .... the data DOES NOT save into the database. So, to check the query I go and run the query from the dataset designer and it works. Also, I have put the UPDATE method into a try/catch block but Im getting no messages back form the database. Thanks Hi, I suggest posting this bug in Product Feedback so that microsoft would be aware of this. cheers, Paul June A. Do ...Show All
.NET Development SerialPort Timeouts
Hello It seems that there is a problem with SerialPort timeouts: For start there is no way of setting the ReadTotalTimeoutConstant and the ReadIntervaTimeout values the way we used to do with Win32. Second,i keep receiving one byte immidiatly after writing something to the port no matter what readtimeout i set. The sample code is: //port settings: MySerialPort.PortName = "COM1"; MySerialPort.BaudRate = 9600; MySerialPort.Parity = Parity.None; MySerialPort.StopBits = StopBits.One; MySerialPort.ReadTimeout= SerialPort.InfiniteTimeout; MySerialPort.WriteTimeout= SerialPort.InfiniteTimeout; ...Show All
Windows Forms How do you save a webbrowser page as an MHT file?
IE has a cool feature that lets you save a web page as a single MHT file. How can you implement this in vb.net 2.0, using the webbrowser control Not having this exposed is simply silly. If you're gonna include a webbrowser control, how about exposing ALL of the events and properties The current control is about as useful as selling a car with no steering wheel. ...Show All
.NET Development Just-In-Time Debugging not working through ActiveX script in DTS package
we do a lot of our coding in ActiveX script tasks within DTS packages. Normally, you can type the keyword "stop" or "x=1/0" on a line, and when you run your script, it forces the JIT debugging window to pop-up and then you can step through and debug your script within .NET or Interdev. This used to work on all of our work computers. It now only works on one remaining computer and we have not been able to figure out what is wrong. We have checked all appropriate options under the debugging menu in Interdev and .NET... we have tried reinstalling by using the "c:\Program Files\Common Files\Microsoft Shared\VS7Debug\v ...Show All
Visual Basic How to insert text into word document
Dear all My boss asked me to insert some text into the word Document. Let say I have a word document with content inside already and I need to insert some text (ABC) into the position of (Line 4, Column 2 or Left 60point, Top 60points) of this word doc. Does any one know how to do Thx Kit You are using the latest version of vb.net, I am still on the 2002 version. The problem is that the later versions of Visual Basic use UNICODE when they are handling strings and string functions. This messes up files that are just a stream of bytes - like the Word .doc files. One easy way around this is to get Wor ...Show All
Visual Studio Express Editions install error
Downloaded & installed OK on desktop. On Laptop, still getting the Windows Installer 3.1 error. The installation stops with the error message to send or not to send to Microsoft. On the download to desktop, the Windows Installer 3.1 wasn't one of the items being installed. However, when I did the install to the laptop, it was in the list of items it would install. Both systems xp pro sp2. Any help Hi, Could you try installing Windows Installer 3.1 from http://support.microsoft.com/default.aspx scid=kb;en-us;893803 and see if this succeeds If it does then you should be able to continue wi ...Show All
Visual C# Can't call indexer property
After recompiling the following code with VS 2005 Beta 2, an C# assembly can't calling the indexer. The code sample works fine with VS 2003. //C++: [System::Reflection::DefaultMember( "Parameter" )] public __gc class NativeObjectConfigurator : public System::Collections::ArrayList { public : __property ParameterInfo* get_Parameter( int index); __property ParameterInfo* get_Parameter(System::String* name); }; //C#: NativeObjectConfigurator no = new NativeObjectConfigurator(); ParameterInfo pi = no["ApplFlags"]; error CS1502: The best overloaded method match for 'System.Collections.ArrayList.this[i ...Show All
Windows Forms How to control windows resizing
Hi, In win forms application user can resize the window by hovering the mouse over the edges of the window and then drag it to resize it. Is there anyway I can control this functionality by specifying that user can only change the width of the form by 50% or by setting the minimum width of the form or something of this kind. Is there any .net function that does it or is there any event I can use Also, is there anyway to hide the maximize, minimize and close buttons of a window Thanks, Hi, Is your problem solved Thank you, Bhanu. ...Show All
Visual Studio Express Editions Controlling the Serial Port
Hello! I want to control the serial port and have converted some code over that i was using but got all kind of errors. Does Visual Basic Express deal with Mscomm1 the same as VB6 I tried to find some code to help see any difference but was unable to find such. Is there any code out there that i am not finding that allows me to crontrol the serial port Thanks, Kevin The .NET framework provides the SerialPort class: http://msdn2.microsoft.com/en-us/library/30swa673(vs.80).aspx You can find a sample here: http://msdn2.microsoft.com/en-us/library/c8zc5kah.aspx Best regards, Johan Stenberg ...Show All
Visual Studio Team System Nightly build problem
Hi, I have setup my Team Foundation Server to run nightly build. My application uses (CAB - Composite UI Application block). I try to setup the CAB Unit Test with my nightly build, but everytime it failed with following error messagae: Run has the following issue(s): C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning : One of the background threads threw exception: System.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly s ...Show All
SQL Server Txt file as a data source
Hi! I have some txt files with system's log, and I would like to create a report with them. Is there anyway I can use a txt file as a data source for a report Thank you! You can write a custom data extension that reads data from the txt file and returns it to the report server. Check this site for a sample data extension http://msdn.microsoft.com/library/default.asp url=/library/en-us/rsamples/htm/rss_sampleapps_v1_8spu.asp ...Show All
