d2army's Q&A profile
Visual Studio Express Editions how can I define when the user close the form with the cross button he will end the application??
Hi, I bulid an application in VB and I have a button that exit and end the application but when I the user close the form with the cross button on the top right of the form the application does not end. I can see him running in windows task manager in processe. So how can I define when the user close the form with the cross button he will end the application Regards, Yaniv I didn't understand where to add this line... I have a button that end the application properly (with application.exit, END) but the problem is when the user decide to close the form\application with the cross button(on the top right of the form) and not with my button.... Regards, Yaniv ...Show All
Software Development for Windows Vista How do I add Namespace references to my XAML based WF?
I need my first node to look like this: < SequentialWorkflowActivity Name = " CustomSequentialWorkflow " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/workflow " xmlns:my = " http://schemas.example.org/MyStuff " xmlns:i = " http://schemas.example.org/MyITask " > I am trying this: Dim WF2Save As New XmlDocument Dim SeqWFActivity As XmlElement = WF2Save.CreateElement( "SequentialWorkflowActivity" ) WF2Save.AppendChild(SeqWFActivity) SeqWFActivity.SetAttribute( "x:Name" , "CustomSequentialWorkflow" ) SeqWFActivity.SetAttribute( "xmlns" , & ...Show All
Visual Studio Team System Database Connections
Is it possible to rename/delete/manage the database connections which are listed in several dropdown lists (eg schema comparison, etc). I would like to be able to create and use multiple connections to the same database using different credentials. I would like to be able to distinguish these different connections by their name. Currently, this product uses the term 'database' for a connection. Sachin, thanks. However, would it be possible to call connections consistently. It is labeled in the New Schema Comparison Dialog Box "Database". Shouldn't it be "Data Connection" like in the Server Explorer And instead of "Choose a database" -> Choose a "Dat ...Show All
Visual C# Can C# consume MC++ instance operator overload?
Hello, In my MC++ project, i did the following instance + operator overload: OperatorOverloadingInstance^ operator + (OperatorOverloadingInstance^ o1) { System::Console::WriteLine( "instance + is called" ); return o1; } It doesn't seem like i can consume the above operator in C#. i is of type OperatorOverloadingInstance^ i = i + i; // compiler error: Operator '+' cannot be applied to operands of type i.op_Addition(i, i); // compiler error: cannot explicitly call operator or accessor IntelliSense doesn't show op_Addition() as an option, which leads me to think there must be a way to invoke the function defined in the above MC++ code. Thank you very much Lexin I ...Show All
SQL Server How to determine if a database is in use
I have a VB application that uses SQL Server 2000. I am adapting it to support both 2000 and 2005. I connect to the database using ODBC. My application has the typical backup/restore functionality. Before I do a backup or restore, I check to see if the database is currently being used by another application. In SQL Server 2000, I did this by connecting to the 'master database' and running the following query: SELECT COUNT(*) FROM SYSDATABASES WHERE DBID IN (SELECT DBID FROM SYSLOCKS) AND NAME = 'MyDatabase' If I get a count greater than 0, someone else is using the database. This of course does not work on SQL Server 2005. I have come up with an alternative. For SQL Server 2005, I connect to the database I want to backup or restore ...Show All
Visual Studio Cant' install "Guidance Automation Extensions" ...
I downloaded from here http://www.microsoft.com/downloads/details.aspx FamilyId=C0A394C0-5EEB-47C4-9F7B-71E51866A7ED&displaylang=en However, when I installed it, this error came out: Could not find file "C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PublicAssemblies\Microsoft.Practices.RecipeFramework.InstallState" This file is supposed to be inside the installation package " />. I tried to find around but it seemed that there's not much support for it. Any help will be appreciated. I'm desperated wanting to use it " /> Yeah, I logged as admin privilege. But the problem still remain ... ...Show All
Visual Studio Team System Throughput calculation
Hi , Is there a specific way to interpret the throughput data . If the value is 5 requests/sec for a login use case does that it mean that the server can handle 5 logins/sec for that given load . Or is the throughput calculation done on the data returned to the Vuser from the server. I understand that there is a formula called little's formula Server Throughput = # of real simultaneous users / ( Average Response Time + Think Time ) for e.g There are 50 users who are logged in. Now I create a scemario where 5 concurrent users are doing a search as part of the application functioanlity. Now let us assume that the response time is 5 secs Is the following calculation right Avg.Throughput =50/ (5 + ...Show All
.NET Development question about remoting!!
Is it true that .net remoting is used to run the processes on the other computers which are under the same firewall.Can we use remoting to for the computers which are separated by the firewall Lucian is correct - you can use .NET Remoting to talk through firewalls. You can use either TCP or HTTP, but HTTP is typically better supported by firewalls. One thing to keep in mind is that your receiving application will always need to be addressable. This means that if you're sending from machine A to machine B, if machine B is behind a firewall, you'll need to open a hole in the firewall to allow requests from A to get through. Cheers, JJustice [MSFT] ...Show All
Windows Live Developer Forums custom error message for findlocation
Is there a way I could display a custom error message when no matching location is found instead of: "Virtual Earth could not find a match for the location. Please check your spelling, enter the complete address including country name and commas, and try again." OR is there a way I can stop that message from being displayed Same for the message displayed when a close match is found. Is there a way to not display that popup message is this functionality #a_vemessagepanel {visibility:hidden;} available in 3.1 or was this added in 3.2 ...Show All
Windows Forms Colour selection and Drawstring in VB Express
I am using Drawstring to print some stuff on labels. However, it has just become apparent that will will need to be able to let the user select a colour. No problem, the FontDialog does this, just like it does for font and size. I can assign a variable with the color returned by FontDialog but I can't use this variable in Drawstring. It seems you can only specify a specific system colours. I also can't declare a variable of type brush and assign a colour to that unless it's a specified colour. Could someone tell me please how I can use a colour seleted from FontDialog without 10 screens of Select Case statements Thanks, Rich Thanks Nobubz, If I want to store this in a database, w ...Show All
Visual Studio Team System Recator-->Rename won't let me change the case of an object name
As above. I want to change the name of a column from "MyId" to "MyID". When i try and make the change it moans at me saying: "A schema object with the name [Column] dbo.MyTable.MyId already exists. Choose a differernt name." This is a little annoying to say the least! I think this is a legitimate thing to want to do. Another problem. My workaround was to change it to "MyID_" and then to "MyID" which it didn't moan at but after those two operations the column was called "MyId" again. Not what I wanted at all (although the SQL script has changed - it looks like its just hanging onto some metadata somewhere I guess). Are these bugs or by design Should I raise them at Connect -Jamie ...Show All
Windows Forms Execute another form's Sub from a Dialog
Hi, I'm new at vb2005 and this is my problem: Let's say I have a form with a Combobox filled from a dataset, and I want to show a dialog where the user might insert a new value for that Combobox. If the user hits the Ok button, the values are stored ok, but what would I have to do to reload the Combobox content as soon as the user hits ok in the dialog, so the new value appears on the list Thanks in advance. I'm sorry, it was my mistake here goes: Public Function ProvideDS( ByVal PSql As String , ByVal DBConn As SqlClient.SqlConnection) As DataSet Dim ASQL1 As New SqlDataAdapter(PSql, DBConn) Try ProdDataSet = New DataSet ...Show All
Game Technologies: DirectX, XNA, XACT, etc. joran's video tutorials dont work plz help
ok so the videos start out ok but as they progress the speech and video don't match up which makes it very difficult! plz help and tell me how to fix because i heard these are the best video tutorials out there. (dont tell me to find diff. tutorials ive done learnxna.com and i hate the text tutorials cause they make no sense.) (in case you dont kno wat tutorials im talking about there found here www.xnatutorial.com thx) Have you thought about just leaving him a comment in his site If he hasn't seen your angry face here, maybe showing it to him there will get you noticed.... Good luck. ...Show All
Visual Studio 2008 (Pre-release) Just Signing or Encrypting the message.
Hi Community, Did anyone try just signing the message Or Just encrypting the message Or Did any one try using two seperate keys for signing and encrypting e.g. I can have a seperate key for signing such as "CN=SignKey" and seperate key for encryption such as "CN=EncryptKey". Is it possible in WCF with minimum coding efforts If you have tried can you share your thought Can some one help me pointing to the right direction Thanks in advance. - Pankaj. Avanade Inc. Well, in other words, if you define a message contract on the service side with the right attributes (None, Sign, or SignAndEncrypt), the autogenerated proxy classes will also contain the same attributes. What do you mean with mu ...Show All
SharePoint Products and Technologies IE Crashing when opening Sharepoint list
When a user tries to open a list in Datasheet view on our sharepoint site they are being welcomed by the nice 'IE Has encountered a problem and needs to close.' Error. This just started a couple days ago. This is to the point that I can't open a couple of my administrative lists anymore. We are currently running: WSS v3 MSSQL 2000 Happening on IE 6 AND IE 7 Office 2003 ONLY I have Sharepoint Designer 2007 - This has been installed and used for a couple of weeks before problem arrived. ONLY seems to be happening on Service Pack 2 computers. I've seen lots of posts about deleting the dll 'OWSSUPP.DLL' when running Office 2007 or uninstalling ALL office 2007 products. However I am receiving this on seve ...Show All
