Born2bWild's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Buttons and ...
Is it possible to use Buttons and other UI elements with XNA Can you combine XNA and Windows Forms Thx And a Happy New Year You can't mix them together, but you can do the traditional side-by-side - e.g., you have a viewport displaying your scene, and then some panels with buttons/etc on the side (like how most level editors/etc look). Search around on the forums here and you can probably find some code for setting it up; it's almost identical to how MDX did it. An alternative is to have a separate window with your UI in it - this allows you to still use Game, although it's tricky unless you have experience with WinForms as you have to run the WinForms stuff in another ...Show All
Visual Studio Team System Error when I upload my Porcess Template
I got this error when I tried to upload my new Process Template, any idea ---begin Exception entry--- Time: 2007-02-07 12:28:42Z Module: Engine Event Description: TF30162: Task "SharePointPortal" from Group "Portal" failed Exception Type: Microsoft.TeamFoundation.Client.PcwException Exception Message: The Project Creation Wizard encountered an error while uploading documents to the Windows SharePoint Services server on "ServerName". Exception Details: The Project Creation Wizard encountered a problem while uploading documents to the Windows SharePoint Services server on "ServerName". The reason for the failure cannot be determined at this time. Because the operation failed, the wizard was not able ...Show All
SQL Server sp_issues
hi i have the following sp. i want to be able to create a view from the sp that will store the data that can be retrieved with the select statement my sp returns me. if the table exists, it should be dropped i suppose, because columns may vary. now i also want that enough info be stored to retrieve information again from the view, that i can map the records back to their original form how do i set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go ALTER PROCEDURE [dbo] . [sp_DetailedBill_byPono] @payment_or_bill nvarchar ( 2 ), @pono nvarchar ( 25 ) AS BEGIN SET NOCOUNT ON ; DECLARE @fieldname varchar ( 10 ) DECLARE @stmt varchar ( 4000 ) DECLARE Fields CURSOR FOR SELECT A ...Show All
Visual Studio Team System How to delete team project from broken team project creation
When I tried to create a team project, my network connection was broken and I end up with missing project. I can create a new project, but I cannot use the same name as the failed project name. I can't even add the failed project into team explorer, but it exist somewhere in the storage. How can I delete the failed project Any help appreciated. Thank you in advance! Try to use "TFSDeleteProject" command with the /force option: http://msdn2.microsoft.com/en-US/library/ms181482(VS.80).aspx ...Show All
Visual C# Regarding Threading in C#
Hi i have a scenario where we i have piece of chunck that requires time consuming processing , so i put that chunck into seperate thread (see code below) now the problem is I got UI reponsive as soon as seperate thread starts so whole aplciation takes very little time around 6 seconds to load (prviously it was 5 mins) now the issue i close the Form and then open it again this time it takes bit more time like 8 sec and this continues as i close the form and reopen it it take some extra time. The only ways out is to close the entire application and then re-open it I am now looking where we can put Abort method or some thing else to free the memoery taken by thread. please let me know what can be done , every one is encourged to email me ...Show All
SQL Server Disable HideDuplicates from Report Builder
I have some business analysts (I guess Microsoft would call them Information Workers) using Report Builder to design reports, but also as a querying tool. They often times dump the results of their reports/queries into Excel, do some crunching, and then come back to write a better report. When the Report Builder builds groups, it inherently turns on the HideDuplicates property / element so that it only displays distinct values on the group by fields. This looks great on a report, but is impractical for Excel, where the data is going to be manipulated by row. In the .rdl, I found the element "HideDuplicates" http://msdn2.microsoft.com/en-us/library/ms152916.aspx controls this behavior of the report. However, I cannot find an ...Show All
Windows Forms click WindowForm close button to generate an event C#
Background: I am programming a windows form class in C# in visual studio 2003. I don't know how to generate an event that tells me that the window is closed. Suppose that I have a class extending from windows.forms.form. Let's call it Main.cs. Then I create another class extending from windows.forms.form. Call it SecondMain.cs. When I click the close button, which is "x" button in the top right corner of the SecondMain window, how does Main.cs know that the SecondMain window is closed There is a form_Closing event which you can implement in your Form class if this helps From this you could probably raise some event to your other class to indicate that the form is closing ...Show All
.NET Development PROBLEM WITH FTP FIREWALL IN C#
My problem deals with the fact that I was able to FTP files to and from a friend's site that doesn't have a firewall but I now have the real FTP information and it does have a firewall and I have no idea how to FTP a file to this new FTP location. I am under severe time pressure and would like to see the commands necessary in C# and NET 2.0 to accomplish this goal. Here is an example I was given by the site administrator using DOS FTP to access and upload a file. I will change the passwords in the example below: ftp -n open edifxpbw.geia.com user yppc112 yppc110GX user 10033XDIR@edi.yppc.geia.com 15211 HENRY binary put DirectoryStart.dat %YPPC-TEST%DIR ls mblist Here is an example of an upload that I created in C# ...Show All
Visual Studio Express Editions How do I convert .NET 2.0 Coding into VB 2005 Express Edition coding?
How do I go about understanding and converting the coding of .NET 2.0 into the coding that Visual Basic 2005 Express Edition can understand Could you possibly figure out these next two for me. That would be great. THANKS! public NumberedTextBoxUC() { InitializeComponent(); numberLabel.Font = new Font(richTextBox1.Font.FontFamily, richTextBox1.Font.Size + 1 .019f); } private void richTextBox1_VScroll( object sender, EventArgs e) { //move location of numberLabel for amount //of pixels caused by scrollbar int d = richTextBox1.GetPositionFromCharIndex( 0 ).Y % (richTextBox1.Font.Height + 1 ); numberLabel.Location = new Point( 0 , d); updateNumberLabel(); } ...Show All
.NET Development Remoting - GetChannelSinkProperties - error IDictionary requires to 2 type arguments
Hi readers - <moved to this new thread> The following code is widely quoted (text book and web) as how to send credentials over to IIS for Windows authentication: IDictionary channelProperties = ChannelServices.GetChannelSinkProperties(amazingRemoteObject); channelProperties["credentials"] = System.Net.CredentialCache.DefaultCredentials; However, this results in the following error: Error 8 Using the generic type 'System.Collections.Generic.IDictionary<TKey,TValue>' requires '2' type arguments P:\Projects\Visual Studio 2005\Projects\TestServer\TSConsole\Program.cs 30 17 TSConsole I can declare the types for the generic using <sometype, sometype> syntax but I don't know what types the pro ...Show All
SQL Server .net and Sql Express
Hi all, I have written a simple .net class to call sql functions like create subscription and sync replication. I am using merge replication. My Question is this:-- my class calls Microsoft.SqlServer.Replication.dll. On a machine that has SQL Express loaded it works but on a machine that does not have sql express it fails. I have made a setup project and deployed my "service". I added all references into the project and all works well on a machine that has sql express. We are running a network with 1 machine that has sql express and other machines that plug into this sql express. Is there a sql express runtime setup or do I have to load sql express on each machine. OR Am I deploying my class wrong. my setup project has the Micros ...Show All
Software Development for Windows Vista [RuleWrite("somefiled")]
Hi Can you give me a good example how to use [RuleRead/Write/Invoke] with PolicyActivity I don't get example from manual... I want some pratical real life example how to use and when :) Jedrzej The RuleRead attribute is used when let's say in your rule condition, you have a method inside which you read some fields. The RuleRead attribute then helps the Rule Engine by indicating what fields are being Read since it is not obvious to the engine (the method call is a black box). Same goes for RuleWrite. The reason this is needed is so that the engine can do analysis of side-effects/reads/writes so that it can do forward chaining. ...Show All
SharePoint Products and Technologies Connecting Filters to Report Viewer Web Part
Hi, I want to connect the Filters to Reporting Services Report. I tried it but it's not possible to pass inputs for the Report Viewer Web Part from a Filter. Has anyone tried this Thanks, S Suresh Hello, The Report Viewer can't connect to the Filter Web parts. You have to use another web part for reporting services that uses the Integrated mode of the Reporting Services with sharepoint. That web par can use the values from the filters and use them in the report parameters. That web part is installed with an addin in called SharepointRS.exe . ...Show All
Visual Basic A first chance exception of type 'System.NullReferenceException'
Hi folks, sorry to bother you all. I'm learning VB and have become a little stuck. Whenever I try to debug or run my programme, I just get: "A first chance exception of type 'System.NullReferenceException' occurred in General Utilities.exe A first chance exception of type 'System.NullReferenceException' occurred in General Utilities.exe" I have 2 forms, Main and Passwd. I open Main, disable the buttons then open the Passwd form. This is the code: Public Class Menu Private Sub Menu_Shown(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Shown REM On entering our form, disable all the buttons Me.Renamer.Enabled() = False REM Now, prompt for a password Dim PasswordForm As New Passwd Pas ...Show All
.NET Development CAS Policy Problem
I have an assembly deployed which demands a certain permission. This assembly is strong named and lives in the \bin directory. To make configuration "easy", I figured I'd add a new Code Group to my Runtime Security Policy using the .NET Configuration tool which grants Full Trust to my assembly. The Code Group is under All_Code and the Membership Condition of the Code Group looks for a strong name of an assembly using the public key of the assembly (derived by importing the .dll). I disregard name and version. Straightforward, right It just doesn't work, though! Every time, my assembly fails the permission demand! In theory, it should have full trust, right What could be going wrong It s ...Show All
