XNA-Mordt's Q&A profile
Visual Studio Team System Web Site project & Mixed Platform
Hi; when I created my build type for my web project, I selected the "Mixed Platform" in the build configuration... I know the configuration setting in the Configuration Manager should be same as the configuration setting of the build type, but the "Mixed Platforms" option is not available in the Configuration Manager... so how can I get it back Thanks... 1 - Not sure about this one. Typically website projects will have .NET as their default platform. 2 - If everything you are building has a platform of Any CPU, I would suggest modifying your build definition (to build the Any CPU platform in place of Mixed Platforms) rather than trying to add Mixed Platforms to your sol ...Show All
Visual Studio "Attache to a process" can't find debug symbols
Hello. I'm trying to debug a DLL which runs on a remote x64 machine. The user interaction for giving some input should be done on the remote machine by using the MS Remote Desktop Connection. I attached my local VS 2005 debugger to the remote process and set some break point. However, it can't load debug symbols. So, I can't do source-debugging. It only allows to display disassembled code. Can anyone tell me how to do source-debugging Thank you. P.S. I have the source codes of the project locally also. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Audio Analysis
Hi, Is there an easy way to gain access to final sound buffers using the XNA framework What I'm aiming to achieve is an oscilloscope style wave display of the currently played audio. Is this at all possible Cheers, 71M You can read streams...and try to analyze that. But, believe me you don't wanna do this unless you are creating some "sound/music based" app. http://en.wikipedia.org/wiki/Pulse-code_modulation . ...Show All
Windows Forms Have forms open in the upper right corner of the screen.
I have a VB .NET application in VS 2003. It has several different forms. When each form opens, especially the first one, I would like for it to open in the upper right hand corner of the screen. Is that possible Thanks, Steve There is an option to define the initial windows startup position - but I don't believe there is an choice for the upper right corner. AFAIK, you would need to calculate the correct position yourself and set the window position. ...Show All
Windows Forms how to erase item on listbox
Can anybody tell me how to remove the item on listbox I want to do when I select an item and click Delete button, then selected item removes. The code is something like this; private void AddButton_Click(object sender, EventArgs e) { listBox1.Items.Add(textBox1.Text); textBox1.Text = ""; } private void DeleteButton2_Click(object sender, EventArgs e) { listBox1.SelectedItems.Clear(); } When I test DeleteButton event, it seems to remove successfully, but the item still exist. I appreciate your tip. Thanks. foreach(object obj in listBox1.SelectedItems) listBox1.Items.Remove(obj); Wouldn't work as the enumerator is bound to t ...Show All
Visual Studio Express Editions Copy files from FTP to Harddrive
Hi. I have code which downloads a file from my FTP space onto my hardrive. Can somebody help me to incorporate a loop so it downloads every file in the FTP dir, and puts them in the HD. So it downloads every file in ftp://ftp..../pub/myprogram and puts them in C:/myprogram. This is the code i have for 1 file: Imports System.Collections.Generic Imports Utilities.FTP Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Values to use Const localFile As String = "C:\myprogram/blah.exe" Const remoteFile As String = "/pub/myprogram/blah.exe" Const host As String = "ftp://ftp.invision.ecwhost.com" Const username As String = & ...Show All
Windows Forms ToolTip for listviewitem and setting delay
We have a listview with ShowItemToolTips set to true. For the listviewitems added to the listview we set the ToolTipText property. This works great and the tooltip's show when runing the application. But now we want to alter the delay's so that it shows for more than the 5000 millisecs thats the default value. How do i find the tooltip control and set its delay values (We havent added any ToolTip control to the form.. the tooltip seems to be "autogenerated" somewhere). You should see the tooltip control in the tray of the form. If you don't see it in the designer, try using the combo box in the Properties window to select the ToolTip control. You should then be able to set the delay, etc. ...Show All
Visual Basic Nooby here again. Handle the keyDown event.
Eh i cant believe i forgot this lol... How do you make a PictureBox move with Arrow Keys I keep trying this ... But, it doesn,t seem to work :( Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyUp: Picture1.Top = Picture1.Top - 50 Case vbKeyDown: Picture1.Top = Picture1.Top + 50 Case vbKeyLeft: Picture1.Left = Picture1.Left - 50 Case vbKeyRight: Picture1.Left = Picture1.Left + 50 End Select End Sub Thank you, Moveit Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown Select Case e.KeyCode Case Keys.Up Picture1.Top = Picture1.Top - 50 Case Keys.Down Picture1.Top ...Show All
Visual Studio Team System Automaticaly deployment to multiple environments app.config
I have been looking at the Web Deployment Project. It's nice that I can specify replacement to be made in web.config for different configurations. As we are deploying a win app with web services we need to replace the app.config with the server name for the different environment. Is the best solution to use cmd file or can this be performed some other way by team build I guess I can use the EXEC command to call the cmd file with different environmnent paramters. But I will not have access to the build log file. Another option can be to build a custom build task that take of this.. I think I can use the XML tasks in Microsoft.Sdc.Taks instead to do the replacement, as I already have installed Microsoft.Sdc.T ...Show All
SQL Server sqljdbc DriverManager.getConnection Hangs after mirror failover.
When performing a failover the DriverManager.getConnection method never returns from it's call. I used a modified version of the test program included in the sqljdbc help file (below). If the principle server is server2 and a failover is performed, the program works just fine. If the priciple server is server1 and a failover is performed, the hang occurs. The sql servers are not on a domain, are in the same workgroup, have certificates setup between them. Sqljdbc version used is 1.1.1501.101. I rolled back to version 1.1.1320.0 and the DriverManager.getConnection exceptioned. Not sure if this is a setup issue or a common problem. Anyone have any suggestions or seeing similar issues Thanks - tc Version 1.1.1501.101 - Syst ...Show All
Visual Studio 2008 (Pre-release) Call mysteriously hanging
Hello, I'm calling a WCF service method from my client using the net.tcp binding and the client just hangs until a timeout exception is raised. At which point the client terminates and the service then receives the call and seems to process this perfectly normally. The method is correctly defined in the contract and was bizarrely was working OK a day or so ago and I'm at a loss to explain what has changed in the meantime. All other methods on the contract are called fine and there are no timeout issues. The mystery deepens when looking at the message traces. The client receives a SecurityVerifiedMessage and then sends a SecurityAppliedMessage to the service method as expected, however the server receives no message until more than a ...Show All
Visual Studio 2008 (Pre-release) Help with TextBlock formatting ('padding' between the font & the bounds of the TextBlock)
Hi, Im trying to create the visual effect of some white text within a solid blue box, where there is a uniform padding between the text & the blue box. I have been trying to to do this using a TextBlock and setting its foreground & background. If you require a tiny amount of padding around the text (which I do), you'll notice the 'default font padding' above & below the text scuppering your plans for a nice 1 pixel blue uniform padding all the way round the text (see below XAML) <Page xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " > <TextBlock Font ...Show All
Visual FoxPro Dbf Autoincrement with ADO
Hello everybody, I created a table with an autoincrement field( CREATE TABLE `Synch_LogFile` ( `ID` I Autoinc NOT NULL, `TableName` C (100) NOT NULL, ...) ) when I try To open it by ADO with VB (Select * From Synch_LogFile) I get this error message: [Microsoft][ODBC Visual FoxPro Driver]Not a table. What's I'm doing wrong Thanks, Dim cn As New ADODB.Connection cn.Open "Provider=VFPOLEDB.1;Data Source=C:\Programmi\Microsoft Visual FoxPro OLE DB Provider\Samples\Northwind\northwind.dbc;Password="""";Collating Sequence=MACHINE" Dim rs As New ADODB.Recordset rs.Open "Select * from Categories", cn, adOpenForwardOnly, adLockOptimistic rs.AddNew and I got the error: Runtime error 325 ...Show All
SQL Server Simple Calendar Parameter question
This is probably pretty simple, but i've never done it before. Im trying to put a Calendar up for the parameter, So they can click a date on the calendar, and get it quiered. Is this done in the dataset or in the report Parameters and what do i need to do Nope, it keeps giving me an error. Now it says the Datatype is wrong. It will only work as a string. There has to be something wrong. Or maybe it just doesnt do numbers like this 1999 Quarter 1 Jan 1, 1999 Jan 2, 1999 Jan 3, 1999 I just feel like im not getting anywhere with this. Maybe i need to download a custom calender code or something. ...Show All
.NET Development Hosting remoting objects over IIS: Exception : System.Runtime.Remoting.RemotingException: Cannot load type
Hi All, This looks to be a repetetive discussion over many groups... but unfortunately couldn't find a solution for this problem yet I have a simple object made remotable (marshalbyref) and a simple method, myFirstMethod() which accepts a strings, returns a string appending some text (the machine name). I am able to host the remoting services with the the help of a listener of my own using the HTTP channel Now, when I wanted to host the remotable objects over IIS, I am heading nowhere! I have used the following configuration file and place my DLL in the \bin directory of IIS Virtual directory. Gurus of .NET Remoting, help me out in this issue My DLL: myRemoteObject.DLL MyNameSpace: myRemoteObject My Class: myRemoteObjec ...Show All
