Software Development Network Logo
  • .NET Development
  • VS Team System
  • Visual C#
  • Microsoft ISV
  • Visual Studio
  • Windows Forms
  • Game Technologies
  • Visual C++
  • SharePoint Products
  • SQL Server
  • Visual Basic
  • Smart Devicet
  • IE Development
  • Audio and Video
  • Windows Vista

Software Development Network >> Octopus384's Q&A profile

Octopus384

Member List

F1 Help
Mirko Messori
vbtheo
ElliotHC
newbiedogg
dacky
lasa
Kamii47
connect2sandeep
h3mp
Kristian Sogaard
Leo Fi
FabioPax
mattii
KevinBurton
Winnie.Wang
ralfkret
Dan_Brownlow
Recep TARAKÇIOĞLU
Jim Perry
Only Title

Octopus384's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. Shooting

    What code could u use for something to shoot. would this event work: if(GamePad.GetState(PlayerIndex.one).Buttons.A == ButtonState.pressed) shoot = true; if(Shoot = True) { bullet.X = Player.X; bullet.Y = Player.Y; buller.Y += bulletSpeed; shoot = false; } An easier way, that would be much more scalable is to possibly use a list of bullets, that contain bullets that have been fire. Check the input of the player, if the button to shoot is pressed, create a new bullet, and add it to the list of bullets. And every frame, you update all the bullets. struct myBullet { int x, y; int speed; int damage; } List<myBullet> _Bullets; public void CreateBullet() { myBullet bull = new myBullet ...Show All

  • Visual Studio Team System Error when trying to generate report rsItemNotFound

    The item '/EA Current Version/Remaining Work' cannot be found. (rsItemNotFound) Get Online Help I checked the TFSwarehouse database and it Seems there are a few errors. A week ago I moved the Databases from our C: to our E: on our appServer01 because C was running out of space. That might`ve caused this - not sure. When I look at tables, say the Code Churn Table, I have the columns: __ID LInes Added Lines Modified LInes Deleted Net Lines Added __LastUpdateTime __LastUPdatedBy __TrackingID Chanset FileName Date Checked IN By Team Project I think the error is that i have `__` in the column names, but not sure. Any advice would rock. Hi there, can you do me a favor and browse to /Reports/" href="http:// /Reports/">h ...Show All

  • Visual Studio 2008 (Pre-release) Scaling problem in UniformGrid

    I have another problem with scaling in a UniformGrid. When I use the code below the images look fine in their cells but the text in cell 0,0 and even the header of the groupbox is scaled down too much. How can I prevent the scaling of the image to have an effect on the rest of the grid Thanks for your help ;-) < GroupBox Header = " {Binding Path=ItemHeader} " HeaderTemplate = " {StaticResource rightAlignedHeaderTemplate} " > < UniformGrid Rows = " 4 " Columns = " 2 " > < Grid > < Grid.ColumnDefinitions > < ColumnDefinition /> </ Grid.ColumnDefinitions > < Grid.RowDefinitions > < RowDefinition /> </ Grid.RowDe ...Show All

  • Architecture failover to backup web service

    We have a failover site to host our web service for a company mobile app if our main site goes down. To implement support for it, I coded something like this: Try ws.Login(username, pwd) Catch ws.Url = Config.GetSetting("backupUrl") ws.Login(username, pwd) End Try See any hazards Thanks. Why have a 'backup' service when you could load balance 2 or more servers and therefore not have to worry about fail over servers from a code perspective. HTH Ollie Riches ...Show All

  • SQL Server Removing Rich Text formatting from a field

    I have a field where the data is stored with RTF. I know SQL Reporting Services cannot display it properly. Is there way to remove the RTF formatting codes through a function to just pull out the text and displya it in the text box Hi, Code Snippet function StripRTF(ByVal rtf as String) as String rtb.Rtf = rtf return rtb.Text end function I've similar problem and the above function works in Report Designer. However, when it is deployed in ReportServer, it didn't work at all. Is there something we need to do in the Report Server For your info, both Report Designer and Report Server sits in different machine. Please help. Regards Kamal ...Show All

  • Visual Studio Express Editions How to delete selected row in datagridview?

    Hi, how do I permanently delete selected row in datagridview as well as permanently deleting it in my .mdb file . Thought of using oledbcommand or something but I am still a beginner in C# so not familiar with Oledb. Thanks. Thanks Scott. Nice example for a beginner. Could you help me out with the exception that occurs Exception: Update requires a valid DeleteCommand when passed DataRow collection with deleted rows. I try to use the update method to update my database this is where the pump1TableAdapter.Update( this .fYPDataSet.Pump1); <<< Exception occurs<<<<<<< ...Show All

  • SQL Server Reporting services and access

    Hi There, I am hoping this is an easy answer as I am not too familiar with reporting services. We have a report in reporting services and we need to give full user access to a couple of peoplefor just the one report and nothing else(the usual care taker is on holidays). I have looked all around at the security links and only see the administrators setup there, however I know that there has been access setup for other individual users, for the purposes of just running the report. can you please let me know how to go about this Thanks, Rhonda All I see when I navigate to the properties page of the report is the below and just above it is an Edit Item security button. I don't see any way to ...Show All

  • Windows Forms Bug in VS.NET 2003?

    Ok I had some time to make a sample project to demonstrate what I feel is a bug. Either that or I am doing something wrong here. http://www.myshack.net/fotty/VSBugSLN.zip Here is a link to a simple windows form app project and class library project (both part of same solution) Zip contains only the uncompiled project files. the class library contains 1 class which extends to textbox class (just makes the font red, this is just to illustrate the fact that its a class inheriting from a control) the windows forms app contains just 1 form, and references the class library project. Open the project, and compile it in debug mode prior to viewing form1. This is because the class library DLL needs to be compiled before it can be used on the fo ...Show All

  • Visual Studio IronPython will not run after installing September SDK RTM 3

    Hello, I recently had the April SDK RTM2 installed. To run ironpython I had to open ironpython and F-5 as instructed to get the ironpython environment. I uninstalled the RTM2 and the installed RTM3 and cannot do anything related to ironpython once I build. Visual Studio just crashes. Steps done 1) Launch Visual Studio 2005 - with SDK RTM3 2) Open the IronPython solution in the 2006.09 tree 3) Click F-5 to build and launch to run python. 4) Open or create a console application project ** I see nothing in the solution explorer and when I click some more it Says that "Microsoft Visual Studio has encountered a problem and needs to close". and the details are: AppName: devenv.exe AppVer: 8.0.50727.42 App ...Show All

  • Windows Live Developer Forums Driving Directions Display

    Hello, I have a driving directions code that when you put an address in the route and directions popup, is there a way to make it so the directions get inserted into a area below the map instead of it being a popup (alert) My code is below. <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script src="http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js"></script> <script> var map = null; function GetMap() { map = new VEMap('myMap'); map.LoadMap(); } function ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. AudioSpeakers

    With AudioSpeakers apparently gone in release version, I was wondering if there is any way to set the speakers configuration (for PC) or to know which config is selected in the 360's audio settings. I've searched around with no luck... if it exists, I probably overlooked it. Thanks! ...Show All

  • Visual Studio 2008 (Pre-release) Resize proportionaly window

    Hello to all! I need to realize a window that at the same time resizes width and height, maintaining therefore the proportion of the window. How can I do it Thanks! "All you need to do in WM_SIZING" no you dont understand. I need WM_SIZING  message invoke in WM_NCHITTEST, thats is my problem. How to change or send new Message in WndProc. Ivant to do a custom resizing in custom rectangle. i need something like this: http://www.sturmnet.org/blog/archives/2006/12/07/custom-handling-of-the-non-client-area/ in wpf Thx a lot   ...Show All

  • SQL Server can a database be made full after 15 entry's

    Hello guys I was wondering if it would be possible to make a database full after 15 entry's and how would I go about doing that if it is possible Hi Warren, No worries at all :) It's probably easiest to paste the code in a query window in Management Studio. You won't be able to create the constraint in the table design view as the function that the constraint will use needs to be created first anyway. Cheers, Rob ...Show All

  • Software Development for Windows Vista Statemachine and others

    Hi all, could anyone please tell me: - In the statemachine design, what does the "MethodName" in the window property of a CallExternalMethod mean What should i enter, or how can i configure the things in the window property - In the WorkflowDesignerHosting example, how can i add paralell activity or other elements in the default workflow, which should be loaded and displayed on the design panel. Because i’d like to load the total original produced worklow on the design surface. Is there any example Thank you very much in advance EP Regarding your second question, are you trying to add a custom activity to the toolbox There is a text file ToolboxItems.txt storing all toolbox items, you can add your own ...Show All

  • SQL Server Controlling flow in a stored procedure

    I have a stored procedure with two UPDATE statements in it. The second UPDATE statement relies on the completion of the first UPDATE statement to run correctly. The problem I am running into is that SQL Server sometimes runs the second statement before completing the first. To get around this, I tried putting the second UPDATE statement in a different stored procedure called within the first procedure, but I am still having problems. I do not believe I am doing anything wrong, but just in case, here is the relevant code from the proc: -- Look up County ID BEGIN TRANSACTION UPDATE tmpZoneTypes SET CountyID = ( SELECT CountyID FROM tblCountyLkp WHERE tblCountyLkp . CountyName = LTRIM ( RTRIM ( tmp ...Show All

©2008 Software Development Network