DavidR100's Q&A profile
Smart Device Development .Net developer walking on the dark side.
I am working on an application for a custom Windows CE 5 device. The application will be written in C# and run in the Compact Framework v2. I have been asked a question that lead me to write a quick and dirty C program. The question is how much overhead does the CLR add to our network communications. The issue I have is that I am using VisualStudio 2005 to write this C program. The only options VS2005 give me for creating a Win32 Smart Device project are Pocket PC and SmartPhone. Is there a way that I can compile and deploy a C/Winsock program to my custom WinCE device using VS2005 I have already built the platform image in Platform Builder and deployed that to my test bench. I have also written and deployed a network benchmark in C#. No ...Show All
Windows Forms Gridview elements
I have a gridview, and i would like in the code, when i check the NO radio button for it to display a text box in the next column. I am new at this and i do not know exactly how to do it. I set up a postback event on the radio buttons. I would appreciate your help Thank you Thanks for your reply, I already have the radio buttons there and i have also a postback event on them but i don't know in code how to access those and check if YES radio button is checked then txtComment.visible = true kinda deal. On which event ...Show All
SQL Server Side Clash in distributed transaction Statement
Hi, I have a distributed transaction statement that updates an SQL server instance on Windows Server 2003 from another SQL server instance on Windows XP SP2. Both servers a linked to each other. The DB is the same on server and client. I use SQL Server 2000 with SP3 on both server and client. Update statement from client side: update re set re.[Password] = le.[Password] from [ServerName].DBName.dbo.Employees as re inner join dbo.Employees as le on re.EmployeeId = le.EmployeeId where le.IsUpdated = 1 Update statement from Server Side: update re set re.[Password] = le.[Password] from dbo.Employees as re inner join [ClientName].DBName.dbo.Employees as le on re.EmployeeId = le.EmployeeId where le.IsUpdated = 1 When I try to execute the stateme ...Show All
Windows Forms Changing the databasource of a DataGridViewComboBoxCell at runtime
Hi, I have a DGV where one of the columns is a combo box style. I bind this combo box to some datasource. What I would ideally like to do it to limit the combo selection to make the items available mutually exclusive to what is in other rows. The net result I guess is I get uniqeness in this column over all rows. Is this possible If so, which event should I use to re-assign the datasource property for the combo Thanks for your help Graham Graham, The way I understand it, you are using the same BindingSource for your ComboBoxColumn as for you DataGridView. The idea would be to use a different BindingSource, and only filter the one for the ComboBoxColumn. That's the beauty of the Bindin ...Show All
Visual Basic How can I create a DLL using VB .NET
Can I create a DLL file that do not need to register to regsvr32 using VB .NET Can I create a DLL file that can be access by VB6 program Thanks for the help. SY Tee hi sy tee, visit this article http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnvs05/html/vbbestprac.asp . there's a step by step process here that'll teach you how to work on your dll and used it in vb6. good luck! dave ...Show All
SQL Server Problem with Report Model.
Hi, I am using report model as my data source and when I preview my report, I got the following error message: An error has occurred during report processing. (rsProcessingAborted) Cannot create command for data source 'xxxx'. (rsErrorCreatingCommand) An attempt has been made to use a data extension 'SQL' that is not registered for this report server. (rsSemanticQueryExtensionNotFound) Anyone has any idea how to fix it Many Thanks, UT A couple questions: What Version & Edition of SQL Server do you have installed Do you see this same error when you publish and render the report from Report Manager Is the Data Source local to your Report Server - Jason Tremper ...Show All
Software Development for Windows Vista One of multiple events handled by EventDrivenActivity: possible?
Hi, I have a state machine that in a certain state S1 should react to one of the several different events E1, E2, E3, E4 and then execute the same single CallExternalMethodActivity followed by a single SetStateActivity. In other words, I need an equivalent of EventDrivenActivity without the restriction of having only one HandleExternalEventActivity as the first child activity. Ideally, there would exist a HandleExternalEvent s Activity (note the plural) that would behave just like HandleExternalEventActivity except that it would "wait" for more than one event. More precisely, this imaginary activity would "continue execution" as soon as any one of the events would be raised, not all of them. Can I simulate this behavior ...Show All
Visual C++ Need help with CreateFile to a device
I am trying to use CreateFile to access either a USB or Serial device. The code below works fine in my legacy VC++6 project (ported to VS 2005), but when I try to make a new project where the code is separated out into a library or class, it doesn't work. I have tried: an unmanaged Win32 static library, a MFC DLL, an unmanaged class, and a managed class (with the code compiled as unmanaged) to no avail. As far as I can tell, all compiler and linker settings are the same between the legacy project and the new one. Handle port = CreateFile(pszDeviceName, GENERIC_WRITE | GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL | FILE_FLAG_OVERLAPPED, NULL); pszDeviceName = " \\.\BTIAUSB ", in this case, which is a exi ...Show All
Visual Studio 2008 (Pre-release) ClipProperty Animation
There is a textblock named "t1" control on window, i clip it to hide some text. When the mouse enter the textblock,i wan to show all the text, so i write some code behind: public Window1() { InitializeComponent(); t1.Clip = new RectangleGeometry(new Rect(0, 0, 50, 13.6)); RectAnimation ra = new RectAnimation(); ra.From = ((RectangleGeometry)t1.Clip).Rect; ra.To = new Rect(0, 0, t1.Text.Length * 12, 13.7); ra.Duration = new Duration(TimeSpan.FromSeconds(3)); Storyboard sb = new Storyboard(); sb.Children.Add(ra); Storyboard.SetTargetProperty(ra, new PropertyPath(RectangleGeometry.RectProperty)); t1.MouseEnter+=delegate(object sender, Mou ...Show All
SQL Server Odd FMTONLY statements
Hi, I recently started using ADO for connecting to a remote SQL Server from Delphi. Prior to this I used BDE (Borland Database Engine). I noticed that all SQL communication seemed slow – only half the speed of using BDE! I ran a trace using the Profiler (from MS SQL Server) and noticed that ADO generated roughly twice the amount of traffic compared to BDE. Every SQL statement (SELECT, INSERT and UPDATE) send from my application was preceded by the exact same statement encapsulated in ‘SET FMTONLY ON/OFF’. -Example Start- SET FMTONLY ON SELECT * FROM TabelVersion SET FMTONLY OFF SELECT * FROM TabelVersion -Example End- Why are these odd statements being passed to the server ...Show All
Visual Studio Express Editions VB 2005 applications to work on Vista?
Hello, will apps made with VB 2005 run on Vista And, will the VB 2005 Compiler (or whatever you call it) work on Vista Thanks yes it will :-) http://msdn.microsoft.com/vstudio/express/support/readme/ I believe the .NET 3.0 framework will be used to run your .NET 2.0 application, since Vista will ship with .NET 3.0 ...Show All
Windows Forms PictureBox1.Image = PictureBox2.Image
Hi, I am trying to copy PictureBox1.Image to PictureBox2.Image because I am streaming a webcam video. The webcam video is displayed on PictureBox1. In order to show the webcam video on other computer, I may copy the webcam video from PictureBox1. However, it can't be simplily achevied by making a button like private void button1_Click(object sender, EventArgs e) { pictureBox1.Image = picCapture.Image; } How can I copy the pictureBox1.Image to other pictureBox You could download my application at: http://www.yousendit.com/transfer.php action=download&ufid=CB1D2DAC74B050A3 Hi, You will find as has been stated that the video is not rendered within the picture b ...Show All
Visual Basic show the particular record when click on a DataGridView control
Hi, I want to show the particular record when I click on a DataGridView control. I have the ID of the record which works, but I can not figure out how to show the form for that record (the Details.Show line). I tried 'Details("ID") .Show' but I got an error "can not index because there is no defualt property". Thanks in advance for your help. Private Sub PropDataGridView_CellDoubleClick( ByVal sender As Object , ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles PropDataGridView.CellDoubleClick Dim Row As DataGridViewRow = PropDataGridView.SelectedRows(0) Dim ID As Integer = CInt (Row.Cells( "ID" ).Value) Details("ID").Show() End Sub is ...Show All
SQL Server Slow backups and restores
Hi all, A few weeks back I had a problem with setting up Maintenance Plans on my SQL Server, the only fix in the end was re-install the SQL along with SP1. Since then backing up or restoring our developers database takes around 15-20 minutes whereas before it would take 1-2 minutes. The server doesn't seem to be the problem as I have restored it to a 2nd server and get exactly the same problem there. Other databases on the same server of around the same size backup as expected. The database is approximately 150MB's with the log file being 800MB's. The server in question is a Dual Core Opteron 2.2Ghz with 4GB's of RAM, running Windows 2003 x64, fully patched and up to date. The SQL version is 2005 Standard Edition x64 also incl ...Show All
Visual Studio Sharing gpState in TFS Source Control
I'm trying to set up guidance packages to be used in Team System projects. The goal is to create standardized solutions that will have recipes attached that can be used by everyone on the team. When I first tried sharing a project through source control, the non-originating client location didn't have any recipes available and looked just like a normal solution. I've now started checking the gpState file into source control manually as a Solution Item, but since the file is updated on closing of a solution an error pops up whenever I close a solution unless I have gpState checked out. This update/checkin scenario will obviously not work in practice, especially for non-recurring recipes requiring updates to the gpState file after running. I ...Show All
