Tryst's Q&A profile
Visual Studio Controlling what is installed using Tools.InstallCommunityControls
I have been struggling with the VS toolbox now for quite some time whitout really finding any solution. This is what I want to do: Create two tabs in the toolbox Add selected controls to the tabs Exclude controls that are base classes. I know how to create tabs and got it working using the ToolboxTabs.Add api. But then I have found that adding individual managed controls using the ToolboxTab.Add(string, data, format) api has been deprecated in favour of the InstallCommunityControls command. With the InstallCommunityControls, I can not find any support for specifying what classes in an assembly should appear in the toolbox and on which tab. Is it possible to control this at all using this command Plan B is to have a ...Show All
SQL Server SQL SMO and remote file system
Hello! I'm making an application that connects to SQL Server 2005 and programmatically creates database.And I want to give user an opportunity to choose the location for database files.(Like in SQL Server Management Studio) If SQL Server located on local machine - there is no problem - I show user FolderBrowserDialog and he's happy. :) But if SQL Server located on remote machine - I can't access remote file system through FolderBrowserDialog. So what can I do I've heard that I can use SMO. But how The Server object of SMO has an EnumDirectories method. That sound promising. You might call it for all top level drive letters C:\ to Z:\ -- SvenC ...Show All
Game Technologies: DirectX, XNA, XACT, etc. can't build space wars; attempt causes VS 2005 to hang
I have Visual C# 2005 Express and Game Studio Express. I've been working with random projects in 2005 Express and they compile and run fine. I was able to build and run the "Your First Game" tutorial without any problems. I created a new SpaceWarWin project; this seemed to go fine. But when I start to build it (F5, F6, ctrl+F5, right-click+build), the status output (lower left) says "Build Started...", but no build appears to actually start, and my entire machine slows to a crawl. No freeze/hang, mind you, just everything very, very slow. Task Manager shows 2005 Express as "Not Responding", and my CPU jumps to ~50% and just stays pegged there, though there's no disk activity and nothing apparently happening ...Show All
SQL Server Visual Studio 2005 automatically sets SSIS project as startup project
I have a Visual Studio 2005 solution which contains a Sql Server Integration Services (SSIS) project. In this solution I have explicitly set a Web application project as startup project, but whenever I edit a DTS package within the SSIS project, VS automatically sets the SSIS project as startup project and the package I edit as startup object. Needless to say, this may cause some really unwanted incidents when running the solution - thinking that you're about to run the Web application project (that was explicitly set as startup project), but instead, you run the edited package in the SSIS project. Is there any way to avoid having the SSIS project automatically setting itself as startup project, any workaround here at ...Show All
Visual Studio 2008 (Pre-release) Killing a Timer
Hello all, I have a method that is using a timer as a dealy to call another function: void sb_Completed( object sender, EventArgs e) { // create the timer PauseTimer that calls pauseMethod in 3 secs DispatcherTimer pauseTimer = new DispatcherTimer ( TimeSpan .FromMilliseconds(3000), DispatcherPriority .Normal, new EventHandler (pauseMethod), this .Dispatcher); } void pauseMethod( object sender, EventArgs e) { // kill the timer pauseTimer.Stop(); } // I get this error: Error 4 'System.EventArgs' does not contain a definition for 'pauseTimer' C:\Projects\TickerApp2\ I assume it is because the timer is out of scope... So, can someone please help me to kill the timer ...Show All
Windows Forms How do I get, or change, the color of a pixel of an existing graphics?
I need to obtain the color of a single pixel of an existing graphics, then change it to something else. I don't want to save the whole graphics, which I assume would take longer. How do I do this Yes, thank you, it does help a great deal. However, I am confused about how to "draw those graphics to a bitmap". When I am dealing with a graphics, I have all sorts of drawing calls like Graphics.DrawEllipse &c which Bitmap does not have. Sorry to be so slow... ...Show All
SQL Server Help getting error when using operation rename a file in the File system task editor?
Does anyone know how to do this using variables Everytime I try it, I get the Error: Failed to lock variable for read access with error 0xc00100001. I also tried it writing a script and still the same error. If I hard code the values into the variables it works fine but I will be running this everday so that it will pull in the current date along with the filename. So the value of the variables will change everyday. Here is my expression: @[User::Variable] +(DT_WSTR,4) YEAR( GETDATE() )+"0"+(DT_WSTR,2) MONTH( GETDATE() ) + (DT_WSTR,2) DAY( GETDATE() ) The result: C:\Documents and Settings\mroush\Desktop\OSU20060818 the 20060818 part will change everyday ie.(tomorrow will be 200608 ...Show All
Windows Live Developer Forums Windows Media Player and Messenger
Where do I find the plug-in for Windows Media Player that lets me show contacts what music I'm listening to on Windows Live Messenger Open Windows Media Player. In Tools menu you'll see Plug-ins. Check Windows Live messenger Music Plug-in. And in Live Messenger, under your status you have <Type a personal message> and a down arrow. Click the arrow and select Turn On "What I'm listening too" ...Show All
.NET Development [[ Strong name validation failed for assembly ]]
First of all, I am sorry for posting this two times. I have posted this in MSDN Forums Visual C# Visual C# General but it seems that no body is interested in this subject or i have posted in the wrong forum. I have used ExeShield to protect my application. ( http://www.exeshield.com/ ) - There is no problem when i try to protect Application writen in C# .NET 1.1 - But when i try to protect Application writen in C# .NET 2.0 i get this error Strong name validation failed for assembly 'c:\lab\xshld875.tmp'. The file may have been tampered with or it was partially signed but not fully signed with the correct private key. Any help on how to disable the Strong Name Validation Kind Regards ...Show All
Visual C# Multi-language solution
In a multi-language (multi-project) solution, does each project have to come out as a separate EXE Or, can one project call functions in the other, whereby it all compiles to one executable Hi, please look at the following: overview of the project types: http://msdn2.microsoft.com/fr-fr/library/bb165083(VS.80).aspx best practice is to create dlls that contain the logic and seperate .exe files which contain the gui and so on.. the different languages withing .net can 'talk' to each other (everything is IL in the end) ...Show All
Windows Forms Mimic Windows Screen Identify
Hi, How can I mimic Windows screen identify function in C# In a multiple monitor setup there is an Identify option which throws up big numbers 1, 2, 3 etc for every screen. How can I achieve that in C# Thanks in advance. Ahmed, One line of code to add before you show the screen. This will ensure that each form will appear on the relevant screen. theScreenForm.StartPosition = FormStartPosition.Manual ...Show All
Visual Studio Express Editions Restricting size of new window
Hello, I am adding a small catalogue to my website (no online purchasing). When an image is clicked, I want to launch a new window with a larger copy of the same image displayed. I assume the simpliest way to do this would be to set a hyperlink on the original image to launch the next page, where I have the larger image stored. My question is, how can I restrict the size of the new window, so it opens at, say, a third of the main window. Many thanks Karen You may want to try using the forums at asp.net for asp related questions forums.asp.net With VB Express you cannot create asp.net applications so this question is definately off topic for this forum. ...Show All
SQL Server Possible to encrypt database assembly?
Hello. I've built a simple Visual Basic .NET project containing the following code... Imports System Imports System.Data Imports System.Data.SqlClient Imports System.Data.SqlTypes Imports Microsoft.SqlServer.Server Partial Public Class StoredProcedures <Microsoft.SqlServer.Server.SqlProcedure()> _ Public Shared Sub WhoAmI() Using connection As New SqlConnection("context connection=true") connection.Open() Dim command As New SqlCommand("SELECT SUSER_SNAME()", connection) SqlContext.Pipe.ExecuteAndSend(command) End Using End Sub End Class From Visual Studio, I want to encrypt the contents of this assembly, as a proof-of-concept. Even though assembly contents are stored as ...Show All
Software Development for Windows Vista Listen Activity in state machine workflows
Hi, Can we use listen activity in state machine workflows. Here is my case, where i need to use listen activity, (which i thouht it would be better) I have created state machine workflow for my web application and when web app raises some events, i have to change the state of my workflow from one state to another. In the workflow, I have an event, which executes sequence of 7 steps. When user clicks a button in my aspx page, i am raising the event and the event performs all these 7 steps. Its working fine! Now i got another requirement, that user can raise one more event (from other button, but the state remains the same), which is very similar to that of former, but it has one different step at #2 position of sequence. The rest of the seq ...Show All
.NET Development AVOID THE ?DO YOU WANTO TO REPLACE IT?? QUESTION
AVOID THE REPLACE FILE QUESTION I`ve export the data of a data grid to an excel file, but everytime that i run the app the question doyo wan to replace it (the file shows, con anyone help me Sub entrar() 'Start a new workbook in Excel. oExcel = CreateObject( "Excel.Application" ) oBook = oExcel.Workbooks.Add 'Create an array with 4 columns and 100 rows. Dim DataArray(99, 3) As Object For r = 0 To 99 DataArray(r, 0) = "ID" & Format(r + 1, "000" ) DataArray(r, 1) = blu(r) DataArray(r, 2) = bla(r) DataArray(r, 3) = fecha.Text Next 'Add headers to the worksheet on r ...Show All
