Diango's Q&A profile
Visual Studio 2008 (Pre-release) Why no "raise to power" operator in Expression Tree API?
Hi, Is there any special reason for not including a "raise to power" expression type in the expression tree API VB has such an operator, for instance... Here I show a situation where having such an operator would be desirable: http://www.elguille.info/NET/futuro/firmas_octavio_symbolic_computation_EN.htm Best regards, Octavio Hernandez Madrid, SPAIN The operators designed into the expression trees were limited, not to any particular language, but to the native runtime support for these instructions in MSIL. Everything else is intended to be incoded as method calls, just like your language compiler does. The "raise to power" operator is encoded as a call to System.M ...Show All
Visual Studio Express Editions ALT+F4
Is there a way to stop ALT+F4 working on a form If possible I would also like to stop CTRL+ALT+DEL working as well. Right, first of all i do not think that critiscing my coding habits is relevant to this forum. I am making an application to be used by me, and only me. Not for distribution. I aim to prevent some system functionality, as is the nature of the applicaiton i am developing. Thankyou to those who have answered or attempted to answer my questions or backed up my point. I believe that this forum is designed to help, not criticise or dominate. ...Show All
Visual Basic Saving data from DataGridView
Hi, I know there are already some questions posted here similar to my question. But I am completely stuck and none of those solutions are helping me. Here is what I am doing to load the data into DataGridView: ' 'Bind the DataGridView to the BindingSource and load the data from the database. Dim bsHistory As New BindingSource dgvParticipant_History.DataSource = bsHistory GetData4GridView( "select Participant_Relative as 'Relative', Participant_RelativeOnset as 'Onset' from Participant_History where Participant_ID = " & P_ID, bsHistory) Private Sub GetData4GridView( ByVal selectCommand As String , ByVal bs As BindingSource) Dim table As New DataTable ' Create a new data ...Show All
Visual Studio Express Editions Newbie C# Programming Question - Alarm Clock Program
Hello I'm brand new here trying to learn C#. I spent many hours trying to write a small Windows application alarm clock program. It sits in the system tray and you can set the alarm to a certain time and it will play a wav file. My question right now is how do I check the current time against what the user has selected for the alarm time I've tried to do it many different ways and it never seems to work. In the timer tick event I have something like this: private void timer_Tick( object sender, EventArgs e) { if (DateTime.Now == alarmTime.Value) { this .Restore(); Player.SoundLocation = @"C:\Windows\Media\ringin.wav" ; Player.PlayLooping(); } } Obviously the (DateTime.Now == ala ...Show All
SQL Server weird and funny question
I specified configuration like shown below "select * from table where id<>***" always doesn't work however i changed that like "id != ***" working! Who can tell me why Is the value represented by *** in your example ever NULL If it's NULL then the where clause that is send to the SQL engine will be "WHERE id <> NULL" or "WHERE id != NULL". This is an invalid syntax but you will not get an error, instead you will get unpredictable results! The correct syntax is "WHERE id IS NOT NULL". Thanks, Greg Van Mullem ...Show All
Visual Studio Team System debugging "visual studio code analysis custom rules"
i have my custom rules for visual studio 2005 code analysis. it works but i want to debug my custom rule in visual studio 2005. are there any step by step guideline or any material any help will be appreciated. thank you. · Debugging custom fxcop rules - with out using stand alone fxcop 1.35 - devenv.exe with the /debugexe switch - FxCopCmd.exe with the right arguments - create an .fxcop project (test project on which you want to run your rules on) fxcoptest.fxcop file - < xml version="1.0" encoding="utf-8" > <FxCopProject Version="8" Name="Sample Library Code Analysis Project ...Show All
SQL Server Calling Reporting Services from SSIS
Hi I have created a packages which pull and push the data to SAP server. I want to create a report every day and send that report to the manager. For the same i want to call reporting services in my SSIS package. I know i can write a SQL script and export the report in excel but i want to use Reporting services. Have any one call reporting services from ssis. bhalchandra.kunte wrote: Hi I have created a packages which pull and push the data to SAP server. I want to create a report every day and send that report to the manager. For the same i want to call reporting services in my SSIS package. I know i can write a SQL script and export the report in excel but i want to use Repor ...Show All
Visual Studio Team System branching files twice to the same branch
Hello, We are moving our source code control system from pvcs to tfs. During this process I encountered the following strange behaviour during a branch operation. I'll list the actions I performed. 1. create a directory with a file under source control : $repository/main/A/file0.txt 2. branch the 'main' folder to branch 'test', using the branch UI. This generates $repository/test/A/file0.txt 3. I then found out that I forget to add file1.txt to directory A and to branch that too. So I created $repository/main/A/file1.txt 4. I did exactly the same branch operation as in 2., i.e. branching main to test 5. The result is not that $repository/test/A/file1.txt is created as pending branch checkin, but that the entire main ...Show All
.NET Development How increases the CodeCompileUnit in method to the code file in
Hi all, I'm developing a designer.I want to use CodeCompileUnit to produce a method code,then increases these code to the code file appropriate position(Looks like the dissimilarity which in vs does),ask how I should do Also or generates CodeCompileUnit by code file,how does that do -thanks The CodeGeneratorOptions class has a property on it called VerbatimOrder. This should allow you to organize your ouput in the way you want. At this moment we do not have plans to support Parse. Thanks. ...Show All
Visual Studio How to make a Domain Relationship visible in a class's shape on DSL designer surface
Hi, I whant to add a reference from Relationship to Domain class. As I undestand to to that I have to see my Domain Relationship in a class's shape on a DSL designer surface. Could somebody help me Evgeny I found some way: open .dsldefinition file in Xml Editor add <BaseRelationship> to Domain Relationship and after that it will appear as a class. So I guess I could add a reference in Xml editor and affect will be the same. The problem is: designer does not support making relationship for Domain Relationship when it's shown like link between Domain Classes and also does not allow you to make inheritance on a designer. So when you jhave done it manually and designer try to show it, it has to s ...Show All
SQL Server SQL Server 2000 Reporting Services SP2 Fails
Hi, This may be a trivial question but neither SQL Server 2000 Reporting Services SP1 or SP2 wil install against our SQL Server 2005 Developer edition installation. Our Version: Microsoft SQL Server Reporting Services Version 9.00.3027.00 Does anyone know whether the Services Packs are for SQL Server 2000 only if so, whether the new functionality in SP2 will be made available to SQL Server 2005 Many Thanks, Mike Thanks Samuel, The most valuable feature in the 2000 SP2 for us is as described in 889400 ? You can create a main report that has a sub-report. You can set the Visibility/Hidden property of the sub-report control to "True." However, if you do this, yo ...Show All
Smart Device Development How can I use a mp3 as a ring when someone call in ?
thanks 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://support.microsoft.com/newsgroups/default.aspx Closing as off topic. ...Show All
Visual C# Call Method From External Process
I'm not sure if this is possible, but I need to call a method in a running program from a different program. The method I want to call is being loaded into the remote EXE via a DLL. If I try using DllImport, it does call the method, but it doesn't work correctly. The method is supposed to return its class's member information, but if I use the DllImport from C# to call the method, it doesn't return the actual remote class's members, just some garbage values. Also, the program and DLL were written in C++. For example, TestApp has a class called TestClass. This class has a bool called TestMember and a method called TestMethod that returns the value of TestMember. When I write a program and use DllImport to import TestMethod, it returns true, ...Show All
Visual Studio Tools for Office ThisWorkbook_Open() triggers twice...
Hi, I am building VSTO application for Excel 2003 using framework 1.1 In public class OfficeCodeBehind theres a VSTO function protected void ThisWorkbook_Open() that triggers when the excel sheet opens. In this function I am writing some initialization code but I just found out when application starts, this method gets called twice. I dont call this function, this is VSTO's internal function.... I dont know why is this happening and how to stop this event triggering twice. Where should I write initialization code In initialization I instantiate my own objects and stuff... Is ThisWorkbook_Open() a good event to write initialization code Thanks, Theres only _Startup() event in my application. Is workbook1 ...Show All
SQL Server Manage instances in another machine
I'm trying to manage another SQL Server 2005 instance in another machine. I'm doing this by connecting to another computer thru Computer Management. When I go the SQL Server 2005 Services, the right pane is showing There are no items to show in this view. How can I view the services Another problem that I have is that I have to turn off the Windows Firewall in the other machine. What exceptions are needed I have tried by adding the specific TCP used by the instance. Hi Steven, I'm following this MS article: http://msdn2.microsoft.com/en-US/library/ms190622.aspx I can connect to the SQL Server Configuration Manager of the remote computer thru Computer Management. I c ...Show All
