Chabs's Q&A profile
.NET Development How can I control my keyboard in C#?
I would like to write a program like in-screen keyboard. I face a problem that I do not know how to output a key to the system which like I am pressing the real keyboard. I checked System.Windows.Forms.Keys but it seemed to be only handling the pressing event from user but not "pressing" the key by the program itself. Thank you in advance. Find it difficuit myself and then half the time when I found something I still find it hard to understand the formatting, anyway the reason why you didn't find anything is becuase the Sendkeys is not part of the Forms.key class. Normally I look for description words eg send keys or save file. ...Show All
SQL Server Distriubtion Error on Stored Procedure
Setting up Transactional Replication. Log Reader Agent successfull. Snapshot Agent successfull. Distribution Agent Error (Replication is failing because of this error. I don't know what is wrong with the stored procedure that causes it not to replicate): Date 1/19/2007 10:28:13 AM Log Job History (IS36-MMS_20061213-MMSRepTest-IS4-30) Step ID 2 Server IS4 Job Name IS36-MMS_20061213-MMSRepTest-IS4-30 Step Name Run agent. Duration 00:00:11 Sql Severity 0 Sql Message ID 0 Operator Emailed Operator Net sent Operator Paged Retries Attempted 0 Message 2007-01-19 16:28:24.700 Category:COMMAND Source: Failed Command Number: Message: CREATE PROCEDURE "dbo"."spBTG_GetEventsSince"(@EventMin datetime, @BoatID i ...Show All
Visual C# Windows Service or Scheduled Task
Dear All, I need to run particular database script every 20 minutes. So what should I be doing I am confuse between windows service and scheduled task. Which is better I would say that which is better depends on your scenario. Meaning if you only need to do this on one machine then a scheduled task is probably the right way to go. But, if this is something that needs to be deployed to many differeny machines, then a windows service would be easier. Hope this helps! ...Show All
Smart Device Development Tasks in MS Mobile
I am trying to sort my tasks from my PC on XP to my Starcom pocket PC with MS Mobile. The syncronized items on the Starcom, when sorted by due date are always sub sorted in reverse alphabetical or decending numerical order. How do I change this secondary sort to alphabetical/assending numerical order This forum is smart device development related. Since your question is not related to smart device development, it's off topic here. If you’re having a hardware issue, please contact hardware manufacturer or reseller. If you having an issue with 3rd party software, please contact respective software manufacturer or reseller. Otherwise please post to relevant forum or news group: http ...Show All
Visual C# Get MAC address of client machine using C#
How to get MAC address of client machine using C# Not looking for remote machine MAC Address. Below mentioned code gets executed but it returns 4-5 MAC addresses even passing my system name. <quote> ManagementObjectCollection queryCollection = null ; ManagementScope theScope = null ; theScope = new ManagementScope ( "\\\\" + Environment .MachineName + "\\root\\cimv2" ); try { //query = new ManagementObjectSearcher("SELECT * FROM Win32_NetworkAdapterConfiguration"); StringBuilder theQueryBuilder = new StringBuilder (); theQueryBuilder.Append( "SELECT * FROM Win32_NetworkAdapter" ); //"SELECT * FROM Win32_NetworkAdapterConfiguration&qu ...Show All
Windows Live Developer Forums API V3 SSLException - unable to find valid certification path to requested target
Hi, Has anyone successfully updated to adcenter API V3, it seems there is new certificate for the url adcenterapi.microsoft.com added to the certificate, I imported the certificate into my keystore but was getting the following error. PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException : unable to find valid certification path to requested target javax.net.ssl.SSLHandshakeException : sun.security.validator.ValidatorException : PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException : unable to find valid certification path to requested target at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source) at com.sun.net.ssl.internal ...Show All
Visual Basic Trying to Do an inplace Update of Rectangle Objects stored in generic List
This is a strange one for me. What I have is a List(Of Rectangle) that are each 200 by 200. I want to be able to go through the list iteratively, change each ones location to being 10 pixels to the right and 10 pixels down and then shrink their size by 20 on each dimension. Initially, I planned on something like this: Private Sub prepareMenuSquares( ByRef squares As List( Of Rectangle)) For Each thing As Rectangle In squares thing.X += 10 thing.Y += 10 thing.Width -= 20 thing.Height -= 20 Next End Sub I assumed I would be passing the List by reference and then would have access directly to the Rectangle objects themselves and could do an inplace modifcation, no problem. Well that didn't work a ...Show All
Visual Studio Express Editions Form, getting a picturebox to be able to move the form.
This one may be complicated to explain how I mean. But ill try anyway. Lets say I have a Form thats is FormBorderStyle = None, and I want to make my own drag feature witch will use a Picture box as dragging place. So that the user can place the mouse over the Picture Box and then move the form around. Is that possible Well dave, It works satisfactorily for me. It doesn't have an offset. But it's hardly "horrible". That came out of a performance monitor that I'm writing and I really wasn't worried so much about moving the form as I was about the bitblt I was about to do. ...Show All
Windows Forms Simple Way to Uninstall a WinForms App?
I've successfully built a WinForms app. It's installed via its MSI file. Among other things, it creates a shortcut to the application in the Start->Programs menu. I'm thinking there must be a simple way to add another shortcut there that would uninstall the app. I know how to install the shortcut but I don't know what it should execute. Something tells me that there's something in the Windows setup system that I could likely call with a couple of parameters but my extensive searching has not revealed anything. Any ideas Robert W. Vancouver, BC PhilWilson wrote: boban is correct - the Windows logo program (which is a good "best practices" guide) says · Do not place s ...Show All
.NET Development Error loading Business Contact Manager -- NET Framework 1.1 issue
I attempted to load the newest version of ACT. The install failed because of a NET Framework 1.1 issue. Contacting ACT support, I was told to uninstall NET Framework 1.1. Net Framework wouldn't allow the uninstall -- but rather gave me this ... The exception unkown software exception (0x40000015) occurred in the application at location 0x7813461a. I then manually uninstalled NET Framework 1.1 using guidance from Article ID 824643. After uninstall, reinstalled NET Framework 1.1 and attempted to load Service Pack 1 --- and got the same error as above and this ... Runtime error Program c:\windows\temp\sl173.tmp. Giving up on ACT, I attempted to load Outlook Contact Manager and received the following error: Runtime error Program c:\ ...Show All
Visual Studio Team System Issues with customizing Work Item "Assigned To" field
I've tried to customize MSF for Agile Software Development - v4.0\WorkItem Tracking\TypeDefinitions\task.xml as follows: From: <FIELD name="Assigned To" refname="System.AssignedTo" type="String"> <VALIDUSER/> </FIELD> To: <FIELD name="Assigned To" refname="System.AssignedTo" type="String" reportable="dimension"> <HELPTEXT>The person assigned to do the work</HELPTEXT> <ALLOWEDVALUES expanditems="true"> <LISTITEM value="[Project]\Project Administrators" /> <LISTITEM value="[Project]\Contributors" /> <LISTITEM ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Screen layout for 360 games
Dave made a blog entry yesterday pointing to another blog entry that should be a must-read for all of us considering doing 360 development. I know I had no idea about what he talks about. I'm a bit more guilty than you. I've had several people mention that (Yes, ZMan, I remember you telling me that) and I STILL didn't listen. I need to make a mental note to start following a few more of these recommended best practices. Having that helper class should go a long way to reminding me though. Nice job on pointing it out Dave and great job in providing such a wonderful resource Mr. Anderson (boy, what a name to have and be a geek! bet he doesn't get tired of those Matrix jokes...) ...Show All
Visual C++ msvcirtd.lib
Hi all, My project is compiled using VS 2005 and was working fine. I don't know what I did :-(, but now it requires msvcirtd.lib. I searched the web and it looks like the lib is needed in VS2003. In fact, I couldn't find the lib in Program Files\Microsoft Visual Studio 8\VC\lib. So, can anyone tell me what I did that make the project needs the lib and how to undo the unknown change(s) I made Thanks Thanks for the help. With Verbose, I was able to identify the older lib. BTW, I added /verbose option in the linker->Command Line. Is there another way to set this option ...Show All
SQL Server Embedded text qualifiers
We have text files that are comma delimited, use double quotes as text qualifiers and sometimes have embedded double quotes. The embedded double quotes are escaped with an additional double quote like: below. "123","product q" "124","product ""a""" DTS 2000 had no problem with this- it correctly parsed the files. The 2005 SSIS file connection manager correctly parses this in preview mode. But when the task is executed the task fails with the message "The column delimiter for column X was not found". What is the recommended approach for this - we have alot of files in this format. thanks I've had to do this as the other post with a script comp ...Show All
