russ_mac's Q&A profile
Visual Studio 2008 (Pre-release) WinFX February CTP
The WinFX Runtime Components February CTP has been published. For February, Vista will also be releasing a CTP which is sync’d with WinFX Runtime Components. The build of Vista (5308.17) will be available only to MSDN Subscribers, while WinFX RC, the SDK, and tools will be available to everyone via the MSDN Download Center. WinFX Runtime Components: http://www.microsoft.com/downloads/details.aspx FamilyId=F51C4D96-9AEA-474F-86D3 ...Show All
Visual C# How to omit keyword "virtual" in System.CodeDom.CodeMemberProperty?
Hello, I am studying the basics of .NET CodeDom technology and came up with this small issue: my code generation goes well, but as I create a new property, I always end up having otherwise beautifully constructed property, but they all are marked virtual. This is is something I'd like get rid of - or at least control it's appearance. Example code: CodeMemberProperty test = new CodeMemberProperty(); test.Attributes = MemberAttributes.Public; te ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rotation about the z-axis...
I have a square on screen (2 triangles), and I'm experimenting with rotating the thing. Rotating about the x and y axis works as expected (the thing spins horizontally and vertically), but when I rotate it about the z-axis, it goes up and down, deforms a bit, and just looks weird. As for how I'm doing it right now, I'm using Matrix.RotationYawPitchRoll(x, y, z) to get my rotation matrix. ...Show All
Visual Studio Tools for Office Unable to rebuild my project
Hi, I've produced a C# automation addin for Excel and all works well. However, I'd like to be able to recompile the addin without closing Excel and reloading the addin. I've tried unchecking the addin from the addin list in the tools>addin menu, but it doesn't work. Does anyone know how to rebuild & overwrite the existing file without having to close Excel Thanks !! Thanks for the reply. Soooo frustratin ...Show All
Visual Studio .Net 2.0 Web Form + ReportViewer +Stored Procedure
Hi, I have a web form and on it is a databound dropdown and a ReportViewer control. An ObjectDataStore object has been automatically added to the web form as well. The underlaying dataset issues a query which requires a paramter - I am having problems passing that paramter through. In my Page Load code I have something like: ObjectDataSource1.SelectParameters.Add("region_id", RegionDropdown1.region_id.ToString()); ObjectDataS ...Show All
Visual Studio Express Editions Problem on Sorting Strings
Hi, I have this problem on sorting strings. I want to sort the Strings in ascending order. Here are my strings: A,1111 B,3333 C,2222 D,3333 A,3333 B,2222 C,1111 D,2222 A,2222 B,1111 C,3333 D,1111 I am getting them from a text file. How can I make it look like this: A,1111 A,2222 A,3333 B,1111 B,2222 B,3333 C,1111 C,2222 C,3333 D,1111 D,2222 D,3333 I have a code already but my results are like this: A,111 --->>> Sorted Elements - Provis ...Show All
Visual Studio Team System Unit Test Configuration
I am just starting out using VSTS Unit Test capabilities. I have used NUnit in the past. I have created the Test project and added an App.config file. In this file I have created a <connectionStrings> section along with an <add name="DBAMS" ... /> entry. In fact, I copied from the app.config file I was using in NUnit where it worked. When I debug the test it is failing on the following line: providerName = Configurat ...Show All
Visual Basic Trying to Export a DataGridView that has no DataSet or DataSource(really)
I have an unbound datagridview called DGV1 I simply want to dump the entire contents to excel (or a csv file and open it with excel) I would prefer not to use XML and definately not a dodgy clipboard method. I can only find ASP.Net samples or samples that require a dataset or datasource. Is it possible to create a dataset based on teh contents of the datagridview on the fly Or is there a really simple method to export the conte ...Show All
Windows Forms DataGridVeiw Control(columns)
Hey, I am trying to amke it so when you clcik on button1 then on datagridveiw1 it will add another column, and the header text of the column will be whatever text you have put in textbox1... I can do all of this except for the adding colums part, I tryed different ways of code to do this but I cant figure out how without getting errors, so can someone help me out Thanks :) EDIT: oh, and I am using Visual Basic ...Show All
Visual Studio Express Editions localization
Hi to all, In the form's properties ,I changed Localizible->True And language->telugu when i changed the above two properties,visual studio will add the corresponding resource files.But resource file form1.te.resx is not added.why Please help me how to generate those resource files I have just finished the development of a free tool that I call ResEx , composite, translation friendly resource editor for .NET. It i ...Show All
.NET Development "multiple rows" If select all checked true ~ insert old data with updated dates appended to database for logging Mgr decision
I have been twirling this one around for days ~ HELP!! I hope that this will make since. Here is the just of what I am doing in lang="VB" . Dataset select satement generates a collection of data defined by login, that inturn says you are the manager of the following users 'Code example Dim auth As String auth = (Request.ServerVariables("AUTH_USER").Split("\")(1)) 'in the select statement where manager = ...Show All
Software Development for Windows Vista Workflow Parameters and Activity Properties in xaml Beta2
I would like to know if it is possible to declare a workflow parameter and then pass that parameter into a custom activity using xaml. I see that in beta 2 that ParameterDeclaration has been removed so I am unclear if this is possible. This is my current workflow, very simple, i just want to pass in a parameter and assign it to "To" Thanks < SequentialWorkflowActivity x:Class = " Microsoft.Samples.Workflow.SequentialWo ...Show All
Windows Forms Showing an image pixel by pixel (for a raytracer)
Hello, I'm using C# and Windows Form to test a simple ray tracer. The problem is, the ray tracer is slow (+10 sec. to render one frame) and the way things are, the window only appears when the whole rendering is finished. I would like to be able to see pixels appear one by one (and possibly see what I want to see without having to wait too much.) This is the basic layout of my RayTracer_Load() function: DY = 3; f ...Show All
Visual C# generics and COM+
Hi. It is possible to pass a generic type through COM+ Suppose that I have a IList<int>. How should I do it When I run regsvcs.exe it prints a warning message saying "Warning: Type library exporter encountered a generic type instance in a signature. Generic code may not be exported to COM." Thanks. Hi. Thanks for your reply. It seems that Webservices have no problem passing generic types. You ...Show All
Windows Forms DataBinding to Textbox
Hi , I have a dataset ds with 2 tables artist --> table1 name artistid artistname collecion - --> table 2name collectionid collectiondate artistid etc.. have created a datarelation dr between artist and collection dr = new datarealtion("artistcollection",ds.tables("artist").columns("artistid"), ds.tables("collection").columns("artistid")) I have a form which displays all collection information which includes the artist name. I can nav ...Show All
