MojoRising's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Text-based games?
Seeing as though the XBOX 360 supports a keyboard, would it be possible to create text-based keyboard input games Thanks. t_p If anyone actually writes a Z-code interpreter (that can run Zork and the hundreds of other games on the platform), I for one will be pretty pleased. ...Show All
Visual Studio 2008 (Pre-release) Layout animation
I was trying to write my own layout animation using some of the ideas from Dan Crevier's blog posts. I now have two ways of doing them: Approach 1. Using an animation inside the ArrangeOverride() Approach 2. Doing it on LayoutUpdated event of the Panel The code that I have in the ArrangeOverride() does a translation of the child from the old position to the new position. I used the exact same code in the LayoutUpdated event but the animations don't play well anymore. Here is the animation code. I apply the animation to every child in the Panel: transform.BeginAnimation(TranslateTransform.XProperty, MakeAnimation(oldPosition.X - newPosition.X)); transform.BeginAnimation(TranslateTransform.YProperty, ...Show All
.NET Development WMI wireless signal strength
Hi, I have searched everywhere for the answer to this question with no luck. Question: I have 4 Access Points on my network, and I want to get the signal strength of device X which is connected to my network. However, I need to get the signal strength of device X in relation to each Access Point. Can this be done with WMI I have managed to execute a WMI query which gives me the signal strength of connected APs, but this does not seem to give me the relationship between an AP and a device on the network. If WMI is the wrong solution, then how can this be achieved Thanks Heaps, Patrick. I too am interested in this. Perhaps it could be achived using wmic and grabbing the output from the command line (a bit like usi ...Show All
SQL Server Dynamic dimenssion security
I am trying to pass the username to a vb function in the allowed members set of a dimenssion. For some reason it is not getting to the function. All of the other parameters are being received as I am logging them in the event log. Any ideas on why it looks like the username is not being picked up at all would be great. Thanks in advance. Chris Chris, I'm assuming you are using the UserName() function Can you post the MDX expression you have in the allowed members set definition You might try creating a test calculated member using some or all of the MDX expression you are using for that parameter just to make sure it is resolving in the manner you think it should... Dave F. ...Show All
Windows Forms Is using too many DataSets in an app bad?
I'm still a beginner when it comes to Windows apps programming but i have a pretty simple question. Is using too many datasets in your application a bad thing Like does it slow down your app any or does it not really matter. I've created an identification database app that's using 4 datasets to hold various tables. I'm experiencing some slowdown here and there and i'm just wondering if the # of datasets i have could be causing the problem. Thanks in advance Jason thats correct, the more you add, the more performance will be affected. Remember to be effecient and use datasets only when you need to and try to make "less" trips to SQL if at all possible, since connecting to a database system is ...Show All
Visual Studio Express Editions VB 2005 Express Issues
I got the hotfixes today and installed them. They seem to help some with the crashes. But, I'm still having this issue: I have a table in a SQL database I made with SQL express edition. I have the db connected to my program. In this table I have a field called Last Name. I place a listbox item on my form, then on the controls bind it to Lastname field. When I click on the small triangle, I select build query at the bottom. I use the query builder to build me a query. Everything is fine, until I go to add a second query. I then get this message: Unable to write the custom tool "MSDatasetGenerator" to file Database1dataset.designer.vb. Process cannot access file because user by another process. Also, then my dataset i ...Show All
SQL Server export to excel
Hi, In my report, I have 3 rows in the details section. I need to show all the 3 rows into a single line when it is exported to excel. Is this possible to do in reports, please help me. I don't understand what you're trying to accomplish; if you can explain in more detail maybe I can give better guidance. Each row in RDL will be exported to at least one row in Excel (it may span rows depending on the content of the cells and the position of other report items). ...Show All
Internet Explorer Development Hotfix completed
Our product is suffering some pretty severe problems because of IE7. We've starting getting calls that dialog windows become hidden. We've heard this is a threading issue. We found out that the problem is actually much worse. Modal dialogs don't seem to function correctly in IE7. You can recreate the problem using VB6 by doing this: 1. Create an ActiveX UserControl project. 2. Add a form to the project (form1) 2. Put a button on the user control (usercontrol1). 3. Add this code to usercontrol1. Private Sub Command1_Click() Dim objForm As Form1 Set objForm = New Form1 Call objForm.Show(vbModal) End Sub 4. Build the project as an OCX somewhere on your hard drive. 5. Find your control's CLSID in regedit. I ...Show All
SQL Server Where to use SQLCLR ? Data access is not recommended?
Just wondering which scenarios is suitable to use SQLCLR. Any kind of data access is not recommended I guess. Only things that cannot be easily done in TSQL should be done in SQLCLR but why Can't those things be done in app layer itself Scenarios recommended for SQL CLR: - External data access like filesystem, registry etc - Complex calculation - Recursion without data access (this can be implemented with CTE for data access) If data access with SQL CLR is not recommended why should CLR should be even used and logic reside in database layer.. it makes no sense to me. Any thoughts I have found myself using SQLCLR for plenty of database code, including lots of data access. The reason is plain sim ...Show All
SQL Server MDX Hierarchy help
I have two calendar hierarchies in a 2005 SSAS cube. I have to make some calculations based on the date level, but of course, my calculated measures dont work when the wrong hierarchy is chosen. I have tried to look at the .hierarchy and hierarchy() function but am unable to really understand how they work and I haven't been terribly successful looking online for info on them. Has anyone had a similar issue How did you test for the current hierarchy Here's an Adventure Works example, when either the Calendar or Fiscal hierarchy is selected on rows: >> With Member [Measures].[DateHierarchy] as Axis (1). Item (0). Item (0). Hierarchy . Name select {[Measures].[Order Quantity], ...Show All
SQL Server Where is the database selection dropdown in Management Studio?
Hi, I am a long time user of Sybase and SQL Server 2000, and have been trying to get used to the new Management Studio for the past few months. I have found many situations where I ended up in the wrong database, almost ending up deleting production data, etc. At this point, I am back to pasting temporary "use DB" clauses in my edit window just make sure that I am in the right place. Where is the eqivalent of the sql server 2000 database selection dropdown Also, how can I display the current database on the screen All I see now is the tab showing abreviated file and db, that I constantly have to mouse-over to see. It looks something like "DB........test.sql" thanks Did ...Show All
Windows Forms mail component or or Outlook component in VB 2005 to send mail
Hi, I need to create a mailing utility in VB 2005. How can i use the mail component (if exists) or Outlook component in VB 2005 to send mail Alex Check out the system.net.mail namespace. ...Show All
Visual Studio 2008 (Pre-release) LINQ to SQL: Bugs and desperately wanted features
We have been using the LINQ May 2006 CTP (VS2005) for some time now, and we are very eager to get our hands on the upcoming Orcas March 2007 CTP. However, after reading blog posts and chat transcripts, I've found out that the next Orcas CTP is going to be " on par " with the May 2006 CTP. This sent a cold chill down my spine, since the May CTP is so buggy that we cannot use it for even the most simple tasks... Will the Orcas March CTP include lots of DLINQ bugfixes, or just the codebase from May 2006 CTP Things we desperatly need fixes for include: 1. The @@IDENTITY bug. When inserting rows into a table with a trigger the wrong identity is returned, and thus LINQ gets out of sync. Use SCOPE_IDENTITY() instead! 2 . The ColumnAttribute ...Show All
Visual Studio Team System Delete Field Error?
I am working on our process template and I have a custom field I added as a PlainText field. I later wanted to change the field type to HTML. I deleted all the projects using the template. I deleted the template. I used witfield.exe to delete the field, and if I try to delete it again, I get an error, so I assume it's gone. I changed the template to have the HTML field type. I cannot use the new template. I get the error that my field used to be of type PlainText and I am trying to redefine it as HTML. Am I missing some step somewhere Or could it just be a caching error on the server I had followed all my field names with a number, indicating the version of the field, when I put th ...Show All
Visual Studio Problems installing our product after using the new Sept 2006 SDK
Hello, We are having a bit of a problem since we started using the Sept 2006 SDK. Previously we were using the April 2006 SDK and our installation on target machines was working fine. Since then we have reworked our code to use the new Project sample as a base and everything on the development machines works fine in both Debug and Release mode without any problem. No problems with the PLK or anything. However, when we include our new assemblies into our install and try to install our product on a machine that is not running the VSIP SDK we are getting the following error after a user clicks on the Add New Project and selects our project template: "The project file [c:\<tempdirectorypath\projectname.proj>], cannot be ope ...Show All
