CSI's Q&A profile
.NET Development Using a ReadTimeout at SerialPort component
I have a question. I am using the SerialPort object in a project I am working on , and I am having a problem with a timeout catching. As known, in Serial port object we may use DataReceived, PinChanged and ErrorReceived events/delegates. Thats all. What is a right way to catch timeout event Thanks. A timeout is signalled with a TimeoutException. These are thrown only when you call a "blocking" method like ReadByte, ReadLine, etc. If you implement DataReceived to read data from the port, you won't need nor use a timeout value. ...Show All
SQL Server about bcp
Hi all, I would like to know about bcp. The input file (in parameter) must to has \t to separate the columns Is there a way to choice the separator simbol for example the file: 1;Test1;active; 2;Test2;active; 3;Test3;inactive; Yes, there is a command-line parameter "-t" which can be used to specify a field terminator. See Books Online for more details on the command-line options of BCP. http://msdn2.microsoft.com/en-us/ms162802(SQL.90).aspx ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Game Networking
What is the best option for doing networking with managed directx Is directplay a good option We no longer recommend using DirectPlay and instead to either build your application's network layer on top of the native Windows networking components such as sockets. ...Show All
Visual Basic DataGridView edit causes Form.Show() to crash
Hi all, I have an MDI called "Question Centre" with a docked ToolStrip that controls the navigation between the sub-forms within it. One of these forms has an editable DataGridView on it. I experience an "Out of Memory Exception" if I am currently in "Edit Mode" of the DataGridView when I click the ToolStrip to swap to another form. The exception is explicitly throw on the form.Show() event in the ToolStrip's OnClick event. This exception does not occur if an uneditable cell is selected. It also does not occur when I jump between editable cells without changing forms. It only ever occurs when I am ed ...Show All
.NET Development request.BeginGetRequestStream with FTP in ACTIVE mode problem.
Hi, i'm making an asynchronous upload function. When using .usepassive = true all is good, i can transfer and catch pretty much every exception thrown at it. When using .usepassive = false and the server and client are both configured properly, all is good too. The problem i have is when .usepassive = false and either the ftp or client are not configured properly to use active ftp connections. Here is the code that calls the BeginGetRequestStream request.BeginGetRequestStream(New AsyncCallback(AddressOf EndGetStreamCallback), state) waitObject.WaitOne() After BeginGetRequestStream is used and EndGetStreamCa ...Show All
Visual Studio Express Editions Turn On C# Line Numbers
Recently, I got VC# as a gift and installed it. I wanted to add line numbers to my code view, but I can't seem to find it in Tools>Options. Please help, I'm just a beginner and I don't know much. hi, i'm not sure from your question, this is VB.net express edition forum not C# in vb tools menu >>> options >>> texteditor basic node >> editor subnode >> interaction groupbox >> check linenumbers in c# tools menu >>> options >>> select show all settings at bottom>>> expand texteditor node >> expand all languages subnode >> select general node >&g ...Show All
Visual Studio Team System Perfmon and VSTS
Hi, I am using the TeamSuite edition to record the performance metrics using loadtest containing recorded webtests. The reading that I see on the perfmon of the server and the readings in the VSTS always are different, particularly for the counters % time in .Net CLR Jit and % time spent in Garbage Collection on the server. I am collecting readings every 10 sec at both locations, usually(almost always) the metric on VSTS is approx. twice the number that it shows on perfmon. I am trying to use perfmon more effectively by changing the x-axis if possible for more precise readings and also export the performance logs into an excel spre ...Show All
Visual Studio Error "Operation is not valid due to the current state of the object"
I'm trying to use the ReportViewer control (in remote mode) in a winform app. Everything works great until I try and change the ReportPath of the control (in response to a TreevIew after select event ) when the currently visible report is a report that has been drilled into from the original report specified in ReportPath e.g. ReportViewer rv = new ReportViewer(); /* other code */ rv.ServerReport.ReportPath = "/Report1"; rv.RefreshReport(); User then clicks on a link in Report 1 that jumps to Report 2 (still within the same control). Now if you try and set the ReportPath to anything you get an "Operation is not valid ...Show All
Visual C# UserScopedSetting, DefaultSettingValueAttribute, ApplicationSettingsBase: Help!
I'm obviously overlooking something fundamental. I just can't get a class derived from ApplicationSettingsBase to work. Here's my settings class: using System; using System.Collections.Generic; using System.Text; using System.Configuration; namespace AppSettingsTest { public sealed class Settings1 : ApplicationSettingsBase { [UserScopedSetting()] [DefaultSettingValueAttribute( "Default" )] public string Text1 { &nb ...Show All
Windows Forms Iterate through Datagrid
Hello, Does anyone have a code example they can post, of Iterating through a datagrid to check a cell content. I really do not know where to start on this one. Thanks Peter Thanks alot rkimble, Your solution works great. Thanks again Patere ...Show All
Windows Forms debug mode - can't drill into instances
When debugging, I used to be able to click on the little "plus" icon next to an object instance name in the Autos window, and it would expand to show the values of that object's members, it's parent types, etc. Now it never does that - the little plus just diappears. I don't remember changing any settings relating to this. What&nb ...Show All
.NET Development Problem with Asserted Permissions
I have code that is hosted in IEEXEC. The same code can be run from a local or remote file and it will work. When it runs from IEEXEC it fails because of code access permissions. (The code is trying to use remoting to connect to a host that is other then the one it is loaded from.) The assemblies are strongly named and fully trusted. I found an article that indicates the following line of code will allow code in a fully trusted assembly to do anything that it wants regradless of the AppDomain or previous deny settings. (new PermissionSet(System.Security.Permissions.PermissionState.Unrestricted)).Assert(); AS A TEST I have put this code ...Show All
Microsoft ISV Community Center Forums What is an error 400?
Useless errors are rather ... well ... useless. Brenda I believe the error would be generated if Tony is trying to show the form, which has been displayed) modally . Or Could be the Bad Server error one gets while connecting. Regards Shasur ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Changing Screen Resolution
Hi ive been stumped on the best way to change screen resolution in my program. so far the best answer i found was to destroy everything and recreate it. I have tried to implement this but when i go to recreate the device if fails due to invalid paramerters but if i try to recreate it again right after it works. if (SUCCEEDED(hr = D3DDevice->CreateDevice(DisplayOptions.dAdapter, D3DDEVTYPE_HAL, hWnd, D3DCREATE_HARDWARE_VERTEXPROCESSING, &DisplayOptions.pParam, &Device)) || SUCCEEDED(hr = D3DDevice->CreateDevice(DisplayOptions.dAdapter, D3DDEVTYPE_HAL, hWnd, D3DCREATE_HARDWARE_VERTEXPROCESSING, &DisplayOptions.pParam, &am ...Show All
SQL Server Windows Authentification Behavior
If you setup SSRS 2005 with windows authentification across the board (your report datasets, datasources, models, etc.) is the expected behavior a or b a) user tries to run report via WebPart in SharePoint and gets prompted for their domain username and password b) user tries to run report via WebPart in SharePoint, credentials are passed, no need to input their username and password. I am getting both, one user gets prompted while the rest of the staff don't and the report just opens. The user who's getting prompted tries their domain username and password and it doesn't work. This user is not locked out. Check th ...Show All
