TEK7347's Q&A profile
Visual C# Capturing Mouse Movement
Many of you have probably seen "mouse meters" that track how many pixels the mouse has moved. I'm trying to do that but I can't figure out how to execute code every time there's a mousemove (on any control, let alone the entire screen). This is what I've gotten so far but it doesn't work. Any ideas namespace mmove { public partial class Form1 : Form { int pxls = 0; public Form1() { InitializeComponent(); ...Show All
Visual Studio 2008 (Pre-release) Constraint
Look into the Northwind.cs generated by SQLMetal and learn quite a bit from the source. I don't see any database and columns constraints + rules. Did I miss anything or this feature is not yet implemented We don't propagate database constraints in the object model. In our view, the object model is not an in memory constraint mechanism. That is left to the underlying database. ...Show All
Visual C# a bug in: ArrayList.Add()
It seems there is a bug in ArrayList.Add(); i have created a loop that adds differents array's (string[]) in ArrayList property. ok, let say i call my ArrayList "something" then this is what happens in my code: if i use: something.Add(Array1); then it adds it normally. if i use it two times: something.Add(Array1); Array1[1] = "another value" something.Add(Array1); then it adds it AND overwrites the old value, so both 'something[0]' and 'something[1]' have the same values. If i use the method 3 times, like: something.Add(Array1); Array1[1] = "another value" something.Add(Array1); Array1[0] = "yet another value" something.Add(Array1); t ...Show All
Software Development for Windows Vista Cannot add workflow into folder
When I create a folder under a project , and try to add the flow under it, if I click "add-->sequential workflow",VS2005 always add the item under the project root and namespace doesn't contain the folder name. But if I go thru another path "add-->new item-->sequential workflow", then it works fine. I don't see it is a big issue, but it's definitely a bug. Hope some Microsoft developer can see this post and fix it in the final release. Hi Walter, Thanks for pointing out the issue. We are looking into it. Thanks, Chethan ...Show All
.NET Development Launching a COM server from a service on WinXP 64-bit
I have a 32-bit application that gets launched by a service. It is basically an MFC out-proc server. On a 64-bit machine, I am seeing an issue where a client is unable to communicate with this COM server. My assumption is since the application which is 32-bit is getting launched from within a service, there is some kind of a security issue. The COM error I get is 80080005. Is it possible at all to have a service launch a 32-bit out-proc COM server on a 64-bit platform and have an client communicate using COM Note that all of this works on a plain 32-bit OS i.e. I am able to launch the COM server from within a servic ...Show All
.NET Development net view in .NET
does any one know the syntax to get a list of computers on a network like using net view from the command prompt. thanks, k ...Show All
Visual Studio Matching Crystal Reports with Windows Form
I am writing an application that outputs some text to a crystal report. In simplified terms, this is what happens... The crystal report contains a textbox which is fixed in size (both width AND height - this is the way it needs to be). On the windows form I utilise a RichText Box to take the user input. I need to match up the RTB and Crystal Reports box. I know its not going to be perfect but I need it to be as accurate as possible. I currently have the rtb width roughly equal the Crystal Report box width and I use programming to count the number of lines in the RTB. The application already knows how many lines it is possible t ...Show All
SQL Server sql 2005 Error: Unable to read local eventlog (reason: 87).
on the same machine both 2000 and 2005. 2000 replicate to 2005, then 2005 replicate to 2000. I recieve the above error from 2005 instance. The replicates (both) work fine, but the application EVL is full with this error. Any Ideas Could you please tell me the exact setup that you have Is SQL 2000 a publisher/distributor and SQL 2005 a subscriber which then republishes What kind of replication is this Tran/Snapshot/Merge ...Show All
Visual C# Namespace problem
Hi, This looks very simple, but somehow Iam not able to solve it. Take a look at the code. 1) File MyAssembly.cs namespace MyNamespace { [AttributeUsage(AttributeTargets.Class|AttributeTargets.Method,AllowMultiple=true,Inherited=false)] public class MyAttribute : Attribute { ...................... } } Now it is compiled into a .dll file MyAssembly.dll 2) File OtherAssembly.cs namespace MyNamespace { [MyAssembly.MyAttribute("some value")] publi ...Show All
Visual C++ Scroll limitation issue
hi, I have recently taken over the a project for someone, one of the issues we have come across is that you cant view an entire document, in a window with scroll bars if its really big. I track this problem down to the ranges on the scroll bars. Once the range of the scroll bar exceeds 32000 pixels, it is set, by my ex-colleague back to 32000. So when you view a document, depending on the zoom factor you may only see a fraction of the document (until you let the zoom, zoom out to say 25% and you can see the whole document but its obviously too smal. So easy fix I thought just not have that reset in there...wron ...Show All
Visual C++ Microsoft Visual C++ Runtime Library error question
I recieve this error when I launch Internet Explorer - version 6.0 OS Windows XP Home edition 2002 Service Pack 2. Error is as follows: Microsoft Visual C++ Runtime Library Runtime Error! Program C:\Program Files\Internet explorer\iexplore.exe This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. I am not certain where to post this question and problem. Your assistance is greatly appreciated. Currently, I am using Firefox as my back-up web browser. I have seen a similar Problem. The Culpret was a corrupted Mc ...Show All
Visual Basic Dynamically populating a combo box .?
I am trying to populate a combo box on a form based on the contents of a field within SQL. i.e. I read the data from the SQL field. In this case I return the string "Select * From Transactions" I populate my dataset and set the dataset as the datasource of my combo box. This works fine. However what I want to do is to use a where clause in my select statement such as "Select * From Transactions Where AccNo = '" & strAccNo & "'", where strAccNo is a variable within my VB app. Now not surprisingly my combo box is empty as the the datasource is exactly as my select statement reads and it is trying to return records where Acc ...Show All
Visual Studio Tools for Office Workaround ( Serious Smart Tags Problem (a bug?))
Hello, Using Word Smart Tags Sample sample. Smart tags get processed only if there is no other Word windows open. If there's ANY Word window, or even a hidden WINWORD.EXE server process running, VSTO smart tags are ignored. Such behavior sadly renders Smart Tags useless for users who keep an open instance of Word for any editing purpose. Even Outlook with Word as the editor may cause this. Note, this applies to VSTO smart tags only, the shared COM smart tags work OK. Here is how to repro: Download and compile the Word Smart Tags Sample sample. Open WordSmartTag.doc from <sample folder>\CS\bin\Debug ...Show All
Visual Studio Will VS 2005 coexist with VS 2003?
I am about to rebuild my computer so that I have a fresh machine for Visual Studio 2005 (I had the RC installed until now). Once I install everything (including VS 2003) will Visual Studio 2005 install fine and will both Visual Studios work as expected The problem is solved already. After installing .Net framework 2.0, there is one more tab named "ASP.NET" in the IIS Web Site Properties dialog. Change the ASP.NET setting to 2.0.XXXX. It will be OK. It works on both IIS 5.X and 6.0. ...Show All
Visual C# RichTextBox : Text color
hi.. i have a richtextbox in which im displaying some messages, i want to change the color of some text . is there any way to that thanx Hi, yes you can, select the text and use the SelectionFont and/or SelectionColor property: richtextbox.SelectionFont = new Font("Verdana", 10, FontStyle.Regular); richtextbox.SelectionColor = Color.Blue; ...Show All
