subhanet's Q&A profile
Visual Studio Express Editions Space bar
These codes allow only alpha to be entered in textboxes for Names but does not also allow the use of Space Bar. How will i make it accept space bar input so i could place spaces in the Names Im not familiar with keycodes and keychar, I was familiar with keyascii in VB6 could you give me a reference like Enter = Keyascii 13 in VB.NET. Private Sub NAMETextbox_KeyPress(ByVal eventSender As System.Object, ByVal eventArgs As System.Windows.Forms.KeyPressEventArgs) Handles FirstNAMETextbox.KeyPress, LastNAMETextbox.KeyPress, MiddleNAMETextbox.KeyPress 'Allow only alpha to be entered If Not (Char.IsLetter(eventArgs.KeyChar) Or Char.IsControl(eventArgs.KeyChar)) Then eventArgs.Handled = True If KeyAscii = 13 Then System.Win ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Need help with calculating movement
Hi everyone, I'm making a simple top-down shooter using the XNA framework, kinda GTA style. Your character will look to where your mouse is, and you have to use the WASD keys to move. Now, the W and the S key work fine (move towards and away from the mouse, respectively), but I can't get A and D to work. The idea is that when you press and hold A the character will move around your mouse clockwise, and D will do the same, but counter-clockwise. Can anyone tell me a good way to do this, or link me to some tutorial Here's a screenie of the game in it's current state to show you in what direction I'm going with this. *click* Thanks, Aistina aka The Serious Spoon Ok, you have the character position, stored ...Show All
SQL Server For Loop
I have a table which has an identity column. I want to traverse through the table one row at a time using FOR Loop. Can someone help me with the syntax. Thank you for the reply Sir. But in the while loop you are giving a select statement. I guess it will perform a table scan which may slow down the process. I am not sure whether I am right or not. If I am right, then is there any alternative condition which can be incorporated in the while loop Thanks Subhojeet ...Show All
SQL Server Creating an Expression to Modify a Date Field
In my Derived Column Transformation Editor I have something like this: DAY([Schedule]) + MONTH([Schedule]) + YEAR([Schedule]) where [Schedule] is a database timestamp field from a OLEDB Datasource. I want to produce a string something like: "DD/MM/YYYY" using the expression above, I get something really wierd like "1905-07-21 00:00:00" Help much appreciated! One quick suggestion... you might want to change that last portion to have 3 zeros in the string literal, though you might never see a 1 or 2 digit year anyway, so it may not matter: RIGHT("000" + (DT_WSTR,4)YEAR(Schedule),4) ...Show All
Smart Device Development How to run 32bit application on XP64
Hi, I've got AMD64 box and XP64 installed on it. Whether I can run 32bit application and if I do, what I'll need for it Any help I appreciate, thank you! This forum is dedicated to device emulator. Please post to relevant news group instead: http://support.microsoft.com/newsgroups/default.aspx Closing as off topic ...Show All
Visual C# System.NotSupportedException thrown when using BeginInvoke in event handler.
Hi All, I don't know if anyone could help with this one Basically I am writing a .NETCF2.0 app that uses the PocketOutlook Interception class to intercept SMS messages. This application binds to the MessageRecieved event in order to process a message. I wanted this processing to happen acynchronously so I decided to use delegates to help me achieve this. Now, i've never done this before and have looked up samples from everywhere. I was pretty confident after much investigation that the code written would work. Well, unfortunately, true to typical programming, this code gives me the following exception: System.NotSupportedException was unhandled Message="NotSupportedException" StackTrace: at Microsoft.WindowsMobile.PocketOutl ...Show All
Visual Studio Team System Error 28002 installing Quiescence tool (919156)
I'm trying to install the tool mentioned in http://support.microsoft.com/kb/919156 as a prerequisite for installing service pack 1 for TFS. I'm getting an error message when it tries to install: Error 28002.Error Unknown Any ideas -dave You should delete more than one user. At least thats what i had a lot of problems with. I deleted 1 user for the 919156 fix, but this update inserts a service account to the licenced users. So when you try to update to SP1 the licenced users list again is full. So save yourself a lot of trouble and delete a couple of users just to make sure you can execute both updates after each other. ...Show All
Visual FoxPro appending to a grid
ok - this is kind of a weird question - is there a way to append to a grid in the background What I would like to do (if it's possible) is to still have functionality to my form while the program is taking the time to append. Does that make sense If so is that possible Forgive my inaccuracies - It's grabbing from an SQL Database and copying to a cursor which is bound to the grid. The basic reason why I need it is b/c when grabbing from larger databases, it's a stand still wait (sometimes up to 3-4 mins if the database is extremely large). I guess a more appropriate question would be how to grab asynchronously and display it like you had said The way it's running right now it waits till the entire thing is loaded and then displays... ...Show All
Windows Forms Problem adding controls programmaticaly to programmaticaly created form
Hi, I'm trying to create a form at runtime, and I need to add controls to that form. Now the problem is that i get many errors like this one: error C2664: 'System::Windows::Forms::Control::ControlCollection::Add' : cannot convert parameter 1 from 'System::Windows::Forms::GroupBox' to 'System::Windows::Forms::Control ^' when I try to add the controls. Here is the code I'm using (in a void): //Declare form + controls/////////////////////// //Form // System::Windows::Forms::Form frm_settings; //HL settings - groupbox + controls System::Windows::Forms::GroupBox HL_settings; System::Windows::Forms::Label lbl_path; System::Windows::Forms::TextBox txt_path; System::Windows::Forms::Button btn_browse; System::W ...Show All
Visual Basic How do I make a variable available to another form?
How do I make a variable available to another form I am trying to use a variable from one user control on another. Can anyone help Almost any variable you can make you can use with Settings. Use Configuration Settings (go to the application's properties, then the settings tab) to store variables such as integers, boolean variables, strings, whatever...and you can choose to save it forever or just for the lifetime of the current application instance. They are very convenient. Try it out. Edit 1: I forgot this was Visual Basic. You can access settings by going to My.Settings ...Show All
Visual Studio Team System Parameterize?
We've created hundreds of webtests and will soon be publishing our application. I'm wondering: a) Is there any sort of "global" Parameterize Web Servers to parameterize all webtests in the project or are we stuck with opening each webtest one at a time to parameterize it b) We have added Data Sources and data binding to the fields in our web tests; how do we parameterize our Data Sources so they aren't bound to the development database when we publish our application >> You must open each web test and parameterize them individually. Once they have been >> parameterized, you can then "globally" change the target web servers by changing the Web >> Server name assignments in the load test context. That ...Show All
SQL Server Stored Procedure Not returning rows in Web Application
Hi, I Have created a stored procedure to use full text search and return the results back, When i run this procedure in the query analyzer it is working fine, but when i run this procedure from asp.net application, it is returning zero rows. I have checked all the parameters and everything in my web application, there is nothing wrong in there. Another stored procedure which almost do the samething with some different parameters is working fine on both ends. I am using Sql server 2005 (express) + VS.NET 2005. and using ASPNET to connect to database. Thanks in advance for any suggestions. Hi, Thanks for both of you , i dont kno what happend but it is working now! , i tired to ...Show All
SQL Server Import and Export Wizard: Did they try it out before they shipped it!!!???
I have an excel file that, at least to me, is pretty simple. It's got 8 tables with about 25 records each. I'm trying to import 2 of those tables. Everytime I try to import I get this message: Column "Name" cannot convert between unicode and non-unicode string data types. So I've tried every combination of import/export that I can think of here and stil I get this message. Now I really don't think that I have any oddball characters in my data. As a matter of fact there isn't even any punctuation in there. And yet, SQL thinks there's some unicode in there. My dest column type for Name is a varchar(max). No issues there. So this is really about the simplest sort of data transfer that I can think of. And yet it doesn't ...Show All
Visual C++ destructor of global objects not called (CRT without managed code)
Hi there, our MFC application uses a couple of own and foreign dlls (like stlport , xerces , ..). After porting it from Visual Studio 2003 to VS2005 the destructors of the executable's global objects are not called anymore. Those of the dlls still are! The problem exists in the debug and release version of the application. For analysing the error I created a simple new MFC application, forced loading almost all external dlls and put a break point into the destructor of "The one and only " global MyApp object. But the destructor of MyAp p IS called. I looked into the call stack and found out that the destructors of global objects are called by the CRT function doexit (file crt0dat.c). That function runs through an array of functio ...Show All
Community Chat multiple interactive I/O system
its difficult to explain why any new ineraction technology has been unable to penetrate the PC world after mouse was invented. Although there has been lots of talk about voice commands, movement recognition etc but none has been able to leave its mark at large. I think the next level could be to use maybe more than one mouse to better interact with system when playing games etc. people will always be reluctant to inherit newer systems. But if something is really helpful then I think it will be readily adapted. Its been long since we started using mouse/keyboard combination and am sure there's some new innovation waiting to be reveiled. Just want to have some new ideas been generated here so that the proces ...Show All
