Tony Danby's Q&A profile
Visual Studio Designer code for compact framework component not run at design time
I was following xinyan's CustomControlWalkthrough at http://blogs.msdn.com/xinyan/ to create my own custom control for compact framework devices. I cannot get my Designer code to be used at design time. Basically, I have a CFv2 component in one assembly, and its designer in a separate assembly. The property descriptions work, but the Designer code does not seem to be run. My designer extends System.ComponentModel.Design.Co ...Show All
Visual Studio Team System How does sequential databinding work on load test.
Yes, I've read the help here: http://msdn2.microsoft.com/en-us/library/ms182546 It says: When your Web tests are assembled in a load test and run on a remote rig, you must consider how the individual agent computers use the bound data. For example, when you are using four agents, each agent, not each virtual user, gets a complete copy of the data set and that data set is shared by all virtual users created on that agent when the access method is ...Show All
Visual Studio Team System uniqe calls per data row
Hi, I am runing a loadtest that containe one web test with 3 calls in it. first call is for login with a user id. second for status refresh and 3rd with one acction to add transaction. the server is doing the transaction B2B to another sever based on the login guid. my problem is , when I start the load test , I think that more then one user is using the same data row from the DB with the user id for the login action. so bascly only that last on ...Show All
.NET Development webservice response prompts me to download .smi file
Hi all, I'm having a problem with being prompted to download an smi file, when I'm expecting a standard SOAP response, displayed in IE, from a webservice call. This has only just started happening. I have not added any new software or anything. I need to go back to the original Soap response as it's also affecting the addition of webservice references in Visual studio 2005...a bit of a problem! My platform is win xp pro, using .NET framewo ...Show All
.NET Development how to get the return value from store procedue?
Hi, Below is a sample SQL SP. How can i get the return value using SqlCommand/Sqlparameter. Thanks and have a nice... CREATE PROCEDURE udspCheckForMilestoneUpdates AS IF EXISTS ( SELECT * FROM storyData WHERE nameKey = 52 AND date_posted = CONVERT(varchar, DATEADD([year], 0, GETDATE()), 101) ) BEGIN RETURN 1 END ELSE BEGIN RETURN 0 END GO I suggest that you ...Show All
.NET Development Assembly Security - Where to start?
I am currently building an application and I want to secure my Dlls so that only assemblies built by myself can use them. I have looked briefly at the permissions option but it appears that I would have to set permissions for each class within each dll. Is there a quick and easier way to do this at assembly level Any help will be gratefully appreciated. Mark Hallelujah! Does anyone have experie ...Show All
Visual C# How can I code this?
I am writing a text editor. I would like to have a combobox with all the fonts, and I would like the font to change in the rich text box to the one the user selected. How can I code this Matt Use the following code to get all the Font Names in the combo box for (int i = 0; i < FontFamily.Families.Length; i++) { this.comboBox1.Items.Add(FontFamily.Families[ i ].Name.ToString()); } ...Show All
Visual Studio 2008 (Pre-release) DLinq and null values and defaults
Is there any way to specify how DLinq handles null values - for example: [Table] public class Thing { string name; [Column] public string Name { get { return name; } set { name = value; } } } CREATE TABLE Thing ( Name NVARCHAR(120) NOT NULL CONSTRAINT DF_Thing_Name DEFAULT(N'No Name') ) ... results in an INSERT command that specifies NULL for [Name] when it would be helpful to indicate DEFAULT. Using stored procedures wil ...Show All
SQL Server Count Query
hi! I am new to this whole SQL language... had a question about using a count function or if i shuld even be using a count function for this... Data I have to work with I would like my result set to look like this: ID ID2 ID ID1Count ID2Count ID3Count ID4Count A 1 A 2 2 2 3 A 1 B 1 ...Show All
Visual Basic Using a Registry Launch Condition to Specify a Target Directory does not work
I am trying to use VS deployment as per http://msdn.microsoft.com/library/default.asp url=/library/en-us/vsintro7/html/vxtskusingregistrysearchtospecifytargetdirectory.asp but it does not work as intended. I have logged the installation failure.The launch condition seems to be evaluated after the target directory is formed so [INSTALLATIONPATH] retrieved from the registry is empty when it is supposed to be applied via DefaultDirectory ...Show All
Visual Studio 2008 (Pre-release) System.Windows.Serialization namespace problem
We are migrating an application built with Jan CTP to Feb CTP. We are egtting the below error while trying to build: Error 1 Unknown build error, 'Could not load type 'System.Windows.Serialization.XmlnsDefinitionAttribute' from assembly 'WindowsBase, Version=3.0.51116.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.' Test_brick I just checked the WindowsBase library in ObjectBrowser but couldn't find the type in the library. What sho ...Show All
Visual C# Lost Array
I am trying to emulate checkboxes but using custom images instead of check marks. At the moment I am doing this with buttons and changing the back colour to indicate "checked" (images used are transparent png's). There will be two groups with three buttons in each group. To easily manage this arrangement I am storing button refs in a 2x3 array defined as: private Button[,] btnAOSig; ...and initialise in the Form1() method (after Init ...Show All
Architecture Software architecture... I'm stuck!
Hi all! I'm currently stuck in the design process of my next app. This is nothing new as I've been trying to get past this particular hurdle (over several projects) for the last 3-4 years without much success. Everything goes well until the end of the requirement gathering phase. I have a list of detailed , categorized requirements and I think the next logical step would be to work on the architecture of the project at a highest possible level o ...Show All
.NET Development Cannot open database "db1" requested by the login. The login failed. Login failed for user 'BIGRED1\ASPNET'.
Cannot open database "db1" requested by the login. The login failed. Login failed for user 'BIGRED1\ASPNET'. I just got sql server ctp 2005 installed and have connected visual web developer with it. I can create databases through VWD, but when i try to open a page with any connectivitiy to the DB i get the above error. Does anyone know what i need to check, change or add Have you tried executing a query like: exec sp_grantlogi ...Show All
SQL Server Creation name for ComponentMetadata
Hi, I want to get the TaskHost.CreationName equivalent on a IDTSComponentMetaData90 object. Basically the CreationName property returns me the string used to create an instance of the DtsContainer object. (DTS.Pipeline for example). How do I get an equivalent on a data flow component. (ComponentMetadata object). There is a ObjectType property which returns a enum of type DTSObjectType but I want a string representation of the en ...Show All
