zerocle's Q&A profile
Visual C# Beginner questions about Serial.IO.Ports and multiple forms
Hello everybody, I'm currently learning C# using Visual Studio 2005 and still have a hard time to get the big picture in this (new to me) object oriented world. I hope you don't mind answering me some questions that might be pretty basic in your point of view. I managed to write an application that reads commands (text strings) of a serial port and does certain things. I'm now in the need to make this serial port reader a background task that is always running, regardless which form is currenlty visible. I would also like to move the serial reader into a seperate class to keep the code a little cleaner. I read about the background worker task but I'm still confused whether or not this is the way to go or if there is an easier and ...Show All
Windows Forms New to Win Forms - Looking for some help
Hey Guys, I'm totally lost right now, I know what I'm looking for, but have no idea how to do it. I'm stuck with 10+ years of web design experience trying to make a win-forms application. I want to split my form up, right side and left side. I'm looking for a control that can be displayed on the left hand side of a form (menu control) that displays 4-5 icons. Each icon is a different menu that changes the right side (vertical display). Many applications have this control, I just can't figure out what control it is. Until I get that sorted out, I want to start designing my screens: Data Capture Download From Webservice Upload To Website View Website Help I believe from my college days I will need to use seperate forms for each of these scr ...Show All
SQL Server Need for Multi-Threaded Visual Basic.NET to SQL Server Data Access Example Code
Of all the Visual Basic.NET data access books that I have purchased and all the Internet site example code that I have reviewed, none have had any good examples of multi-threaded VB.NET code doing data access. I am trying to avoid the non-responsiveness in a VB app while a simple data retrieval from SQL Server 2005 is in progress. If anyone knows of any book titles or web sites that have example code (good or not) of multi-threaded VB.NET applications doing data access against Microsoft SQL Server (7, 2000, or 2005) or even against Microsoft Access(TM), it would be very much appreciated if you could provide the book title or URL to point me in the right direction. The more examples the better. Thanks in advance. ...Show All
Windows Forms DataGridView, Styles, and New Row
I have a table bound to my grid. On the default row style (I think that is what it is called), I have one column set to ReadOnly. (The idea being once the row is added, the value cannot change.) But when I go to add a new row, I cannot enter a value in this ReadOnly column because of the default style. And I do not see any particular property which controls the style of new rows. Do I need to listen for "new row" events and apply a different style programatically Any thoughts Thanks. Jason Try this it makes the cell editable when it is a new row and readonly when it leaves the row Imports System.Data.SqlClient Public Class Form1 Private Sub Form1 ...Show All
Smart Device Development generate a beep in CF 2.0 VS2005 C#
how can I generate a beep in CF 2.0 using C# Thanks I'm a lowly vb.net code monkey, so here's how I do it. I'm sure a c# guru will translate it no bother #Region "PlaySound" <DllImport("coredll.dll")> _ Public Function PlaySound(ByVal szSound As String, ByVal hMod As IntPtr, ByVal flags As Integer) As Integer End Function Public Sub PlaySound(ByVal strFileName As String) Dim SND_SYNC As Integer = &H0 Dim SND_ASYNC As Integer = &H1 Dim SND_FILENAME As Integer = &H20000 Try PlaySound(strFileName, IntPtr.Zero, Fix(SND_SYNC Or SND_FILENAME)) Catch ex As Exception End Try End Sub #End Region ...Show All
Visual Studio Express Editions Sendmail vb
Hi, I can send email to outlook using this code. Private Sub Command4_Click() 'Option Explicit 'Add a reference to MS Outlook xx.0 Object Library Dim oApp As Outlook.Application Dim oEmail As Outlook.MailItem Set oApp = New Outlook.Application Set oEmail = oApp.CreateItem(olMailItem) With oEmail .To = "example @other.co.uk " '.CC = " ruff@example.com " .Subject = "hi!!!" .BodyFormat = olFormatPlain .Body = "Blah, blah, blah... ...Show All
Architecture Selecting a good UML tools
thanks Pranshu for the reply. I understand your concern. Do you think that VS Studio 2005 will offer UML'ing in subsequent time to come If I go with VS Studio and not the Enterprise Architect then what are the differences. thanks Paresh. ...Show All
Smart Device Development Access command prompt in the emulator
Can any way we can go to the command prompt in the emulator. I want's to start one service using services.exe on the command prompt Thanks JR Lyon We are working on a smartphone application which is a conversion from pocket pc. In pocket pc we have a application in which a dll is registered in the today item.Whcih have to be always runing. Now as it is [Today] not supported in smartphone so we have decide to install it as a service. We we are using C# with CF2. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Future D3DX's not supporting SM1.x??
I saw this in the October SDK readme October 2006 DirectX readme! wrote: Preview Release of the new HLSL Shader Compiler for Direct3D 9 Targets This release has a beta version of d3dx9d_31_beta.dll that includes the Direct3D 10 HLSL compiler enabled for Direct3D 9 targets (shader models 2.0 and later). The new compiler has no support for 1_x targets. This debug-only DLL allows developers to utilize the new Direct3D 10 HLSL compiler for their Direct3D 9 shaders, and will become the default compiler for all Direct3D shaders. Please try the new compiler by building your application with d3dx9d_31_beta.dll instead of d3dx9d_31.dll. Does this mean in future SDKs SM 1.1 will not be supported any more, or is this limitation j ...Show All
SQL Server error in ssis package!
Hi, [OLE DB Destination [1146]] Error: An OLE DB error has occurred. Error code: 0x80040E23. An OLE DB record is available. Source: "Microsoft OLE DB Provider for SQL Server" Hresult: 0x80040E23 Description: "Cursor operation conflict". [DTS.Pipeline] Error: The ProcessInput method on component "OLE DB Destination" (1146) failed with error code 0xC0202009. The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. [DTS.Pipeline] Error: Thread "WorkThread0" has exited with error code 0xC0202009. have any of u encountered this error package is wo ...Show All
Smart Device Development Help discovering devices (obex.h)
Hi, I would like to connect to a device but i don't know its name or address. I have only 2 informations abut the device, they are the class of device (0x52020c) and the name of the service provider for its services. I use an asynchronous discover method, but when i read the PropertyBag's i receive i can't read any of these two informations (service provider or class of device). I can only read Name, Address, Transport, Port and ServiceUUID. Does anyone know how to get more information about the device or its services ...Show All
Visual Studio 2008 (Pre-release) XpathMessageFilter, how to form the XPath?
Hi all, If I have a Message that is sent with this contract using Test1: [ServiceContract] public interface ISendContract { [OperationContract(IsOneWay = true)] void Test1(int a); [OperationContract(IsOneWay = true)] void Test2(int a); } and that is read with this contract: [ServiceContract] public interface IReadContract { [OperationContract(IsOneWay = true,Action="*")] void AllMessages(Message m); } I want to examine m in the AllMessages service callback to see if it matches some XPath expression (in this case, I want to see if the message is Test1, and not Test2, but ultimately I want to be able to do more sophisticated matching). I'm currently doing this: XPathMessageFilterTable<bool> filterTable ...Show All
Windows Forms Need DataGridView Read/Write Example ComboBox
VB2005, SQL Server 2000 The MS supplied 101 sample DataGridView ComboBoxColumn example is read only which is kinda dumb since I'm not sure when one would ever need a read only dropdown. Has anyone seen a KISS example of connecting to a SQL Server 2000 table (spmething like the PUBS DB, authors table) using a DataGridView with a combo, say on the State field Need to see something that does not use the DataSource wizard objects. In general: Is it possible to bind to a dataset using the auto generated columns and then change a column type to Combo Or does one have to construct all columns manually if any are other than the auto generated type TIA Thanks Mark! The step 1 to 10 above was ...Show All
Visual Studio Installation Error.
Can't this company make software that just installs as it should Why am I getting the founding error when installing the trail version of Visual Studio Pro 2005 Error 1406. Could not write value to key \Software\Classes\.xsd\OpenWithList\devenv.exe. Verify that you have sufficient access to that key, or contact your support personnel. All other programs WERE closed and my anti-virus WAS disabled Mike I doubt it is a corrupted account. It's probably worth uninstalling, re-booting and installing again, though knowing Microsoft I'll probably still get the error. Isn't crazy that you have to BUY the product to get it to work Thanks Bill! :( I'll get back to you on the res ...Show All
SQL Server Express and Developer - performance counter errors
I installed Visual Studio 2005 on my machine, which includes SQL Server Express. I then installed the Developer edition of SQL Server over the top, as that's the edition I wanted. I now get four errors in my Application event log whenever I boot Windows: MSSQLSERVER - Performance counter shared memory setup failed with error -1. Reinstall sqlctr.ini for this instance, and ensure that the instance login account has correct registry permissions. MSSQLSERVER - Error in mapping SQL Server performance object/counter indexes to object/counter names. SQL Server performance counters are disabled. MSSQL$SQLEXPRESS - Performance counter shared memory setup failed with error -1. Reinstall sqlctr.ini for this instance, and ensure that the ...Show All
