Mike Hildner's Q&A profile
Visual Studio Express Editions launching an exe from application menu
how do I launch an external program from my application menustrip Use the System::Diagnostics::Process class: http://msdn2.microsoft.com/en-us/library/system.diagnostics.process.aspx . A quick example: System::Diagnostics::Process::Start("notepad.exe"); ...Show All
Visual C# idle detection ...
I am developing an application with multiple forms and user controls embedded in panels. After an idle time interval – by that I mean an interval of time when the user does not interact with the application - I would like to launch a form. The stupid way of doing this would be to create a method to manually restart the timer time interval and then explicitly call that method from all “click-handlers” of all form components of all forms and user controls …. I don’t want to do it that way. What is the nice way of doing it, what message/event should I capture to restart the timer interval only from one place Thanks for your help, Dom. Check out Application.Idle , it raises "when the appl ...Show All
Visual Basic Copy of Screen
Good day to you. I don't know much about the ClipBoard and GetData and so forth but there seems to me that 2005 Express is not quite the same as .NET 2003. The code that I shall give in a moment gave me a full screen copy on the Form_Load event and gave a copy of the Form on a button_click event. Now, when using the code in 2005 Express the Load event only gives a copy of part of the screen. Why is this happening Is there a way in which I can rectify matters. I would be very pleased for any info. I have tried with Imports and Inherits and Paint. It is the sizing I believe. Private Sub frmScreen_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load SendKeys.SendWait( "{PRTSC}" ) D ...Show All
.NET Development Any hidden costs to inheriting MarshalByRefObject?
I've created a set of Remoting classes that inherit MarshalByRefObject. So I've noticed that when I instantiate them via Activator.GetObject(), they act as you would expect remote object to do, but when I instantiate them via the new keyword, they seem to behave as stricly local objects: the AppDomain is local and calls to CreateObjRef() blow up. This brings me to 2 questions I'm hoping someone can help me with: Why doesn't the new keyword create remotable objects The objects inherit MarshalByRefObject, they are configured in client's app.config and IIS's web .config to be SingleCall, server-activated objects over using HTTP channel and Binary formatter, and I'm calling RemotingConfiguration.Configure() on client startup. I do ...Show All
SQL Server install sql server 2005 express on 64 bit windows
I am trying to install sql server 2005 express on 64 bit windows but i get a error message saying SQLncli_x64.msi file is missing and asks me to download it. How can i fix this problem to install the SQL server on my Windows XP x64 Edition If SQL Native Client is not installed, you can obtain from http://www.microsoft.com/downloads/details.aspx familyid=DF0BA5AA-B4BD-4705-AA0A-B477BA72A9CB&displaylang=en *** Look for the " X64 Package (sqlncli_x64.msi) - 6403 KB" one. Thanks, Peter Saddow ...Show All
Smart Device Development Bitmap.Save() in Windows CE5.0
Hey, I am working on a project using the Symbol MC3000 mobile computing device Running CE5.0 with .NET CF 2.0 SP1). This particular device has an imager which we are using to capture a picture. After the picture is captured, we are creating a bitmap object (System.Drawing.Bitmap) to store the image while we create a Graphics object (with the bitmap as its image). We use the graphics object to post a date/time stamp to the image (drawString()). After that is completed, we are using the Bitmap.Save() method to specify a filename and image format. However, it is crashing on the save with a Not Supported Exception. Here is the code: Dim captureBitmap As Bitmap captureBitmap = New Bitmap(imageStream) 'imageS ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Speech SDK is a recommended XNA download? :D
Speech SDK works with XNA :P Hi this is Brandon Tyler of GotSpeech.net. Where do you see that Speech SDK works with XNA I looked at Related Resources and see: Related Resources XNA Developer Forums XNA Game Studio Express Beta Readme XNA Developer Center Microsoft Visual C# Express 2005 I am very interested in finding out more about XNA and it's connection with the Speech Application SDK Or is it this SAPI stuff ...Show All
Visual Studio Team System Merge Limitations Caused by Branching Hierarchy
I'm in the process of planning a migration from VSS to TFS and have come across a stumbling block when trying to merge from a Branches/Trunk-v1-BugFix subfolder to the Trunk folder. (The issue stems from the fact that the Branches/Trunk-v1-BugFix folder was originally branched from Releases/Trunk-v1). My repository layout is as follows: - Project1 - Branches - Releases - Trunk Let's say I reach version 1 in Trunk development. At this point I branch the latest Trunk version to Releases: - Project1 - Branches - Releases - Trunk-v1 - Trunk Ongoing development occurs in Trunk. Meanwhile, to fix a bug in version 1, I branch the release version 1 of Trunk (in the Releases folder), to the Branches folder where it can b ...Show All
.NET Development Web Service Response Problem
While iam calling web method from C# application, Progress bar updating status is not showing. Still to end of the web method process progress bar not responding any thing. While web metode work is in process i need to show the progress bar updation. If any body have the solution can you please help me. It might not be progressing as it could be waiting for the response from service. Well, may be you would like to show the progress on another thread and call the service on different thread.. It was just a thought, might help you. I considered that it is Win Form application. ...Show All
SQL Server constraint view
Hi, I want to know which table my foreign is reference to for instance I have this statement ALTER TABLE BANK ADD CONSTRAINT BANKING_R_154 FOREIGN KEY ( COM_CODE , ACCOUNT_CODE ) references BANK_GLT I want execute ine select * from information_schema.I_don't_know to get the table BANK_GLT from constraint BANKING_R_154 How can I do this cheers, Alessandro Select * from INFORMATION_SCHEMA.Referential_Constraints RC INNER JOIN INFORMATION_SCHEMA.Constraint_Column_usage CCU ON RC . Constraint_Catalog = CCU . Constraint_Catalog AND RC . Constraint_Schema = CCU . Constraint_Schema AND RC . Constraint_Name = CCU . Constraint_Name Where Table_Name = 'SomeTable' --for a ...Show All
Visual C# Why is this not valid!!!???
I have a question that nobody in my department is able to answer. It came to me while using the Class Designer to stub out our data access layer of our application. The question is: If I create an abstract worker class as such: public abstract class MyClass { public abstract void MyMethod( DataEntityAbstract Entity); } Then try the following in its derived class: public class ThisClass : MyClass { // ThieDataEntity is derived from DataEntityAbstract class public override void MyMethod( ThisDataEntity Entity) { // Do Something } } Visual Studio 2005 will throw a compilation error. Why I mean, polymorph ...Show All
SQL Server How to set the current connectionString user as a defualt value?
Hi, I'm using username & password in my connectionString to connect my program (C#.net) with Sql Server 2005.. I put in defualt value in one feild: user_name() it replace the user: dbo, not the user which I used in my connectionString . so.. how to get this user I tried to put: currnet_user but I get the same result, " dbo " not the user in my connectionString .. I think the resone is the user I which I used in myConnectionString, is Admin user, I tried with "dataread, datawrite" user and its worked.. Thank you myself ...Show All
SQL Server How do you execute a DTS on a remote server in Remote (not local) environment?
2 different servers. " Server_A " has report data but no Excel installed (corporate IT requirement). " Server_B " has Excel (containing pivot pointing to Server_A ) but no data. SQL Server 2K on Windows Server 2003 Ent Ed ( Server_A ) and XP pro ( Server_B ). I want to explicitly trigger a daily refresh of Excel on Server_B when Server_A data has been refreshed. Remember, I cannot directly refresh Excel on Server_B from Server_A , because Server_A does not have Excel installed on it. I have created a DTS on Server_B that refreshes the Excel successfully when run locally. Problem arises when I try to execute this DTS remotely from Server_A ... it tries to use a copy of Excel that's local to Server_A ...Show All
SQL Server scale greater than precision - not a valid instance of data type real
Our shop recently upgraded to MS SQL 2005 server from the prior SQL 2000 product. I receive and error during processing related to inserting a value into a field of datatype real. This worked for years under MS SQL 2000 and now this code throws an exception. The exception states: The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Parameter 15 ("@TEST"): The supplied value is not a valid instance of data type real. Check the source data for invalid values. An example of an invalid value is data of numeric type with scale greater than precision. This error is caused by inserting several values that fall outside of a range that MS SQL 2005 documentation specifies. The firs ...Show All
SQL Server 0xC02090F5 DTS_E_DATAREADERSRCUNABLETOPROCESSDATA
I am moving over 100 tables from mainframe to SQL Server 2005 using SSIS all but 2 tables have worked to some degree. 2 of the packages when executed write 0 rows to SQL Server becaue they are getting this error 0xC02090F5 = DTS_E_DATAREADERSRCUNABLET OPROCESSDATA I have looked at the definitions on the mainframe and SQL Server side all looks good. I have looked at the data on the Mainframe side and there is nothing unusual. The Mappings are simple one to one mappings At one time I could even preview the data while in designer building the package but when the packages for those 2 tables are executed I get the same error. Other tools can read the data. Does anyone know what could possibly be wrong ...Show All
