btreff's Q&A profile
Windows Forms Create an event for the close button on the title bar
Hello, I am using VS 2003. Lets say for example we have just a simple form and at the top of the form we have the default minimize, maximize and close button. How would I create an event for when if the user clicks the close button at the top of the form before the window closed it would perform an operation For example, if the user clicked the close button at the top, it would print a message box saying "Are you sure you want to cl ...Show All
Visual Studio Cannot Implement Splash Screen.
I cannot get the splash screen for my package to show up. I'm using the Sept. CTP and using the Package.dll sample as a blueprint. I'm using the same icons as Package.dll for the splash and about boxes. The about box shows up for my package but not the splash screen. The only difference that I can see between my package and the sample is that my package does not yet have a Load Key(but this shouldn't be a problem) and my package has a sate ...Show All
Visual Studio Express Editions Debug- Setting a watch
Simply put, how do I do it Every piece of debugging software I've used so far has some way to place watches, including VB6 (which my school uses)... but I can't find how to do it in this IDE :( Please, help is appreciated so I can get back to work on my (A level) coursework (I imported it from a VB6 project and now it's been changed so that it no longer works- which is the main reason that I need the watch in the first place)... EDIT: Oh, ...Show All
Visual C# label.text repetition
Is there any shortcut instead of typing the code like this. I have 300 lines like these. Any suggestion guys, thanks label1.Text = myArray[0, 0].ToString(labelFormat); label2.Text = myArray[1, 0].ToString(labelFormat); label3.Text = myArray[2, 0].ToString(labelFormat); label4.Text = myArray[3, 0].ToString(labelFormat); label5.Text = myArray[4, 0].ToString(labelFormat); --- label6.Text = myArray[0, 1].ToStri ...Show All
SQL Server Row and Cell Security
I am trying to implement row-security in SQL 2005 but i make a query to make a view CREATE VIEW vwVisibleLabels AS SELECT ID, Label.ToString() FROM tblUniqueLabel WITH (NOLOCK) WHERE ID IN --Classification (SELECT ID FROM tblUniqueLabelMarking WITH (NOLOCK) WHERE CategoryID = 1 AND IS_MEMBER(MarkingRoleName) = 1) AND --Compartments 1 = ALL(SELECT&nb ...Show All
Windows Forms Any ETA?
Any ideas on when the dowload will be available again I got my boss all excited over the idea and then discovered I couldn't download it anymore.. Even a vague idea would be more than helpful. Thanks Morkai Live... thanks so much  ...Show All
Software Development for Windows Vista Global Run Time Variable
Is there a global variable that I can use across all the workflows in my workflows I am loooking for what the application variable is to asp.net, but within the workflow runtime. Thanks,. Marty Mardo - AFAIK there isn't anything in Wf that has those sematics - but it is pretty easy to add with your own WF service. First - define an interface (or abstract base class if you need common functionality) public interface IWFCachingService ...Show All
.NET Development Why is Thread.Name a write-once property?
In my application, I have run into an InvalidOperationException when I did try to re-assign the Thread.Name property. Looking at the doc, it says that this property is write-once. Can someone tell me why For me this constraint is just annoying (the workaround is easy but painfull). Thanks in advance, Joannes Actually, there is no constraint (at least no constraint specified in the doc) about the time when the T ...Show All
Visual C++ Multiple Namespace Declarations
I have two classes in separate files that I want to put into the same namespace. In some sources I will need only one, in others I will need to include both. How can I do this You can reopen a namespace: // header1.h namespace MyPrivateClasses { class CClass1 { ... }; } // header2.h namespace MyPrivateClasses { class CClass2 { ... }; } ...Show All
Visual Studio How to hide a ToolWindow next time VS Starts up.
I have a ToolWindow that is displayed from a menu item. I do not want the ToolWindow to appear next time VS starts up. If a solution is open I subscribe to IVsSolutionEvents and call the following code in the OnAfterClosedSolution member implementation: myWindowFrame.Hide(); This works, but if there is no Solution open what is the appropiate way of hiding the ToolWindow so that it does not automatically show up next time VS starts up. ...Show All
SQL Server Proxies in NT4 domain
I am unfortunately in an NT4 domain. I am trying to use proxies for jobs but its failing with the following errors SSPI handshake failed with error code 0x8009030c while establishing a connection with integrated security; the connection has been closed. [CLIENT: 10.55.250.67] followed by Login failed for user ''. The user is not associated with a trusted SQL Server connection. [CLIENT: 10.55.250.67] I assume this is a Kerberos iss ...Show All
Windows Forms When I publish my sample 'Personal Website' to my Windows Server 2003 Enterprise Ed. I get this error...
The CodeDom provider type "Microsoft.VJSharp.VJSharpCodeProvider, VJSharpCodeProvider, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" could not be located. I have .NET Framework 2.0 installed, and setup in the properties for the web. I also have installed SQL Server 2005 on my Windows Server 2003. I cannot find any help on the web so I am hoping somebody here might have the answer. I am very new to .NET programming so forg ...Show All
Smart Device Development #ifdef for VS 2005 vs EVC 4.0
What is an #ifdef I can use to determine a compile is VS2005 vs eVC 4.0 Thanks JEK The short answer is that you can't. There is no "emulator" flag because the device emulator is just another device from the IDE's perspective. Devices are only relevant to the deploy and debug operations, the compiler is completely unaware of them. If you wanted to, you could create your own "emulator&quo ...Show All
.NET Development How to encrypt messages without X509?
I need implement custom security with WSE 3. I wish to implement following scheme: 1. User enters name and password. 2. Application sends user's name and password to security web service. 3. Security web service authenticates user against database. 4. Security web service sends back user's identifier (from database) to application. 5. Application sends user's identifier to other web services to autorize user. I have some ideas about im ...Show All
SQL Server SQL Server Setup failed to retrieve the SSL Certificate Name
When I try to install SQL 2005 Developer September CTP on Windows XP Professional it returns an error "SQL Server Setup failed to retrieve the SSL Certificate Name" . I was using a certificate from SelfSSL but removed it. Still no luck This appears to be an issue with SQL Reporting Services. If I don't install Reporting Services then I can install SQL 2005. I'm guessing that Reporting Services is now requiring a certificate a ...Show All
