wannabe_2's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Scaling my Skybox
Hi guys i hope you can help me with my simple problem. I use the following code to draw my skybox: public void Draw() { Matrix[] transforms = new Matrix[myMesh.Bones.Count]; myMesh.CopyAbsoluteBoneTransformsTo(transforms); foreach (ModelMesh mesh in myMesh.Meshes) { foreach (BasicEffect effect in mesh.Effects) { effect.EnableDefaultLighting(); effect.View = View; effect.Projection = Projection; effect.World = mesh.ParentBone.Transform * Matrix.CreateTranslation(Position); } mesh.Draw(); } } Whats my problem My problem is that my skybox is too small. So how can I scale my skybox or in common how c ...Show All
Silverlight (formerly WPF/E) Multiple Storyboards
I'm trying to create a simple rectangle which has a MouseEnter and MouseLeave event. These events trigger a corresponding storyboard. The first time I roll onto it the MouseEnter storyboard plays fine. When I roll out it runs the other storyboard fine too. But after that it never triggers the enter storyboard again. Below is my XAML and JS.. <Canvas x:Name="home" Canvas.Top="114" Width="144.692" Height="36"> <Canvas.Triggers> <EventTrigger> <EventTrigger.Actions> <BeginStoryboard> <Storyboard BeginTime="1" x:Name="in"> <DoubleAnimation Storyboard.TargetName="rectangle" Storyboard.TargetP ...Show All
Visual C++ Debug and Release Mode produces slightly different numerical result -- why?
I have built a debug and release version of an application that produces a numeric output value. Most of the time, the two values match but occassionally there is a slight difference in output value (off by 1 at the very last digit). For example, The Debug version might report a value of -0.00003998 4 while the Release version reports a value of -0.00003998 3 What are some possible causes for these differences I know that the Release version has optimizations (such as not zeroing out memory or checking memory access beyond array boundaries) that might cause problems (such as crashing) but I was surprised that there are differences that might cause some slight differences in numerical output. ...Show All
Windows Forms host usercontrol on a modal child form?
I just set the Mainform's 'IsMdiContainer' property to true but when adding the following code to a tab controls selectedIndex changed event, the form does not appear. Any ideas Can I do this (successfully) Can I simply change this formerly NonMDI app to on that supports modal forms thank you. -greg NewMDIChild.Controls.Add( Me .UserControl) NewMDIChild.Location = New System.Drawing.Point(100, 100) NewMDIChild.Size = New System.Drawing.Size(400, 200) NewMDIChild.Visible = True NewMDIChild.TopMost = True NewMDIChild.Show() Thanks for catching that Andrej. I ommitted the lines that preceded the others in my post. They are there in the code but this NewMDIChild form is still not sho ...Show All
SQL Server Unable to open MSDB node
I'm sure there is a simple answer to this but it eludes me at the moment. I’m using the Developer Edition of SQL Server 2005. The MSDB node under Integration Services->Stored Packages refuses to open. It always fails with a login timeout message and that the connection was actively refused. I’ve run the SQL Server Surface Area Configuration tool and allowed remote and local access, even though it’s all installed on the local machine. This didn’t help. The next thing I did was to turn off all my firewalls and internet access control software and it’s still not working. I’m using integrated authentication and the user is part of the administrators group, a ...Show All
Visual Studio Express Editions Find a arrayList value in a string without looping trough it?
Assume i have my code like this... ArrayList test = new ArrayList (); test.Add( "Test1" ); test.Add( "Test2" ); test.Add( "Test3" ); string s = "Kevin tells you, 'Test2'" ; for ( int i = 0; i < test.Count; i++) { if (s.Contains(test .ToString()) == true ) { MessageBox .Show( "Found string in Key " + i + "!" ); } } Is it possible to do the same without having to loop (for function) the arrayList Cuz the array in my program can be huge and looping will delay to much. Also need to have the key returned where the match is been found in the ArrayList. Regards Kevin; I understand what you want now...to achieve the goal see this following c ...Show All
Visual Studio Team System Error running unit tests from wizard
Hi, I'm running Visual Studio 2005, and I'm having trouble with the unit tests generated by the Unit Test Wizard. Here's what I'm doing: 1) create a new project (I've tried Windows Application and Class Library) 2) add a single method that returns the number 3 3) Add a unit test using the Unit Test Wizard; modify the resulting test to check that my method returns 3. 4) Compile everything and run the test I get an error saying: "UTA052: DummyTest.Class1Test is not a test class". Any suggestions as to what's going on --Matt Hello, Got several questions for you, 1. Is this RTM version of Visual Studio 2005 installed on a clean machine 2. What language are you using 3. ...Show All
Commerce Server Commerce Server 2007 Orders on BizTalk 2006 Adapters
Hello, I have a Biztalk Commerce Server orders Adapter polling the Orders web service for the status of NewOrder. It polls the service fine but then I get an error from it straight after it completes polling. The error is below Could not retrieve the recent orders as XML for submitting to BizTalk. Exception message: . Stack trace at Microsoft.CommerceServer.ServiceAgent.TryHandleWebMethodException(Exception ex, SoapHttpClientProtocol serviceProxy) at Microsoft.CommerceServer.Internal.Orders.OrderServiceProxy.AuthorizedInvoke(String methodName, Object[] parameters) at Microsoft.CommerceServer.Internal.Orders.OrderServiceProxy.GetPurchaseOrdersAsXml(Guid[] orderGroupIds) at Microsoft.CommerceServer. ...Show All
Smart Device Development how to turn off the ppc
how to turn off the ppc with c# .net cf 2.0 Thank you . Hi Here is a sample how to call this Win32 API: using System.Runtime.InteropServices; namespace SuspendTest { public partial class Form1 : Form { public Form1 () { InitializeComponent (); } private const int POWER_STATE_SUSPEND = 0x00200000; private const int POWER_FORCE = 0x00001000; [ DllImport ( "coredll.dll" )] internal static extern int SetSystemPowerState ( string psState, int StateFlags, int Options); private void button1_Click ( object sender, EventArgs e) { SetSystemPowerState ( null , POWER_STATE_SUSPEND, POWER_FORCE); ...Show All
Windows Forms Button Hover Color C#
I was wondering how to disable the button hover color in a program in the form.cs. Is it possible or is there some other way. You changed your original question, making every post to your thread look like nonsense. That's pretty annoying and, frankly, rather rude. Let's try this all over again. I'll lock this thread and mark it as answered, you can repost your question in a new thread. ...Show All
Visual Studio Tools for Office Control like "Type a question for help"
How to make a ComboBox Command Bar control like "Type a question for help" in all Office application I create my own CommandBarComboBox in Outlook 2003, and set up a handler for Change event. I want to clear input text if users press Tab key for example, the sismilar behavior as "Help" combobox. But I can't do this. I don't find any way to catch this action. Change event doesn't call correctly - for example, if i press Tab button - event doesn't occur, but if i select some message from inbox - it fired. Why Change event doesn't occur immediately Where i can find info about how to make a control like "Type a question for help" Hi Alexander Your only chance, I think, would be to add a control of type ...Show All
Visual Studio Team System TF53010 - WAREHOUSE update error - Urgent
The following error below has appeared recently within the event loag of our team server. Our graph reports also show no data since the error occured. Error can be replicated by issuing the 'Run' command from the following asmx. http://localhost:8080/Warehouse/v1.0/warehousecontroller.asmx Any ideas please Thanks in advance. TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 22/02/2007 16:18:07 Machine: TEAM01 Application Domain: /LM/W3SVC/3/Root/Warehouse-19-128166346769658534 Assembly: Microsoft.TeamFoun ...Show All
Visual Basic Visual Basic with notepad and vbc.exe
I wanted to use notepad and a compiler to write Visual Basic program and it proves to be quite easy after you find the related articles in document explorer. just implement an entrypoint in you module or namespace that has the signature public shared sub main (args() as string) end sub Imports System Imports System.Windows.Forms Imports System.Windows.Forms.Design Namespace testing Public Class testingclass Public Shared Sub Main (args() as String ) Dim frm as New formx frm.ShowDialog() End Sub End Class Public Class formx Inherits System.Windows.Forms.Form Public Sub form_load ( ByVal sender as Object, ByVal e as EventArgs) End Sub End Namespace The problem is that ev ...Show All
Visual Basic Bound Data in Non Visible Textbox
I have found an odd situation in VB.Net. If a bound textbox's visible property is set to false, the data does not get bound to the textbox until it becomes visible. The result of this is that textbox.text value = "" until the textbox is made visible. Is there away around this such that the textbox.text= bound data without actually making the textbox visible Get the data direct from the binding source rather than the bound control. That way the visibility of the control becomes rather irrelevent. As you getting the data from the source and not an intermediary control. ...Show All
.NET Development new at this
my computer cant make the connection needed when activating or debuging asp.net (so i cant see if what i program actualy works) its a simple program (aspx, aspx.cs files, and an access file) how do i try it for real then i tried moving the files to server (lycos) though im not sure if it supports that kind of thing when i enter the address ( www....../file.aspx ) i see the page without the components... just the headers.... so what gives what do i need to do if anyone can also give me their icq/msn/email for further help on how to get it solved, i'd appriciate it (cause i think there may be more than one problem) do you have another way of checking a site (even a name of another free server that ...Show All
