Vijay_kar's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Camera concepts
I was reading a little bit about camera handling and was wondering what the typical concept is. Assume you are programming a 3D world where a player can move. Would you: a) move the camera and leave the world objects fixed if the player moves or b) move all world objects to make it appear as if the player moves I write something that plays in a fixed sized world and I have several elements moving independently from the player, so I used a) there. But would you use a) for e.g. a space fighter simulation, too Or a race game Or something that plays in a virtual city Well, another basic question: - you are supposed to draw solid objects from near to far and transparent objects from for to near on the ...Show All
Software Development for Windows Vista Edit lock in the designer?
I'm a bit confused when comparing behavior of the workflow designer control in different hosting samples: (a) in hands-on Lab 10, the user is able to edit the workflow (for example drag an activity to a different place), (b) in Applications/Workflow Monitor sample the user can start dragging an activity, he can see the green placeholders (possible drop targets) but he can't really drop an activity in a different place, (c) in Technologies/Designer Hosting sample the user can't even start dragging an activity. My question is: how can I control the ability of the user to edit a workflow It seems that the reason for edit lock in case (c) is the custom message filter which intercepts most of mouse operations. But I can't find anything that mak ...Show All
Visual Basic How to get a Combo Box to feed from another Combo Box
Hope someone can help me!! I have a form with two combo boxes. One displays different Areas(e.g. Area1, Area2, Area3) and the other one displays different Regions(e.g. Region1, Region2, Region3). What I want to do is to populate the Region Combo Box depending on the Area selected in the Area Combo Box. For Example if the user selects Area1 have the Region Combo Box filter/display on those Regions that belong to Area1. I relly appreciate any feedback. Thanks alot!!! Hello.I'm also a beginer in visual basic development and I also have problems withs this code(i use this code in access database ).It seems to work fine until I go back in the first combo box on the saim form.For my code look l ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Tile Engine Tutorial Part 4!!! - Map Editor!
We have just posted part 4 of our Tile Engine Tutorial by our own Kurt Jaegers! This installment replaces the current map array declarations with a simple map editor that will allow us to visually design and save a map using our tile sets. Part 4 also introduces to mouse input and control along with some basic text rendering... by the time you finish this tutorial you should be able to create your very own tile based map and save it... and reload it the next time you are in the application! http://www.xnaresources.com OK. I will definitely remove the icon. I figured since it was in a freely available tutorial, it probably had no license issue. All of the games in the contest will go open source, so I will change the avatar whe ...Show All
SQL Server Reporting Services setup and problems
I have posted this to the general SQL Server group but without any response. I have also searched all of the forums and have not found an answer. For some reason all of a sudden, my Reporting Services is failing with this message when trying to connect: TITLE: Connect to Server ------------------------------ Cannot connect to UKCINT\UKCAZOSQL. ------------------------------ ADDITIONAL INFORMATION: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. The request failed with the error message: -- <html> <head> <title> SQL Server Reporting Services </title><meta name="Generator" content="Microsoft SQL Server Reporting Services 9.00.1399.00" /&g ...Show All
Windows Forms Setting up Picturebox with a dot grid.
Hi, Using VS2005, I need to produce a picturebox (or Panel), with a grid of points ( dots). to use in the design of some line drawings. The reason for the dots, is to enable a number of the angles to be more or less constrained to 90 degrees. The idea is to be able to collect the X,Y axis of the pixel positions, using mousedown, draw the line and save each pixels positions for later use. Hope someone has an idea on this. Thanks Tailor Same approach: private void panel1_Paint(object sender, PaintEventArgs e) { for (int x = 0; x < panel1.Width; x += 10) e.Graphics.DrawLine(Pens.Black, x, 0, x, panel1.Height); for (int y = 0; y < panel1.Height; y += 10) e.G ...Show All
Software Development for Windows Vista mshta.exe crashing when hosting ActiveX controls.
Hi all, I have an windowed activeX control that I've developed using the ATL libraries in Visual Studio .NET 2003. The problem that I seem to be running into is that it crashes when the control is hosted inside mshta.exe, but not in IE7 or in the ActiveX test container (tstcon32.exe). According to the code, the crash seems to be occuring in StartWindowProc deep inside the ATL code (during in-place activation). Of course this causes DEP to kick in and shut down mshta.exe. I know the control is correctly registered (I had to do that running as Administrator), and running mshta.exe with heightened privileges doesn't seem to work. Like I said, it's confusing since I can insert the control into tstcon32.exe, and even open the page in IE7 and it ...Show All
Visual C# winforms - knowning the next control which can get focus + knowning which control is the active control
Hello, When the user presses the TAB key. how does it know which control should get the focus: 1. since the user can change the tabindex from code. does it check each time the tab index of each control to find the next one 2. how does it know whether the control can have focus for example, label control tabindex and tabstop properties are set. how does it knows that those controls can't have focus another question, how does the environment know who is the active control Thanks, Eran. Hi Eran, 1. If you want to find out what the next control in the taborder is, you can use the GetNextControl method of the control class (a form is also a control). See http://msdn.microsoft.com/library/default.asp url=/library/ ...Show All
SQL Server Trying to get jpg image saved to sqlce db
I'm trying to get this logic to work in vb.net. I keep getting errors on assigning the value of the image to the parameter. Also, how do you do the reverse and retrieve it from the sqlce db into a picturebox Any help is greatly appreciated. Thank you. Dim value As ImageFormat Dim imageBytes As Byte () Dim cn As SqlCeConnection Dim strSQL As String Dim cmd As SqlCeCommand value = ImageFormat.Jpeg Dim ms As New MemoryStream() pbxPhoto.Image.Save(ms, ImageFormat.Jpeg) imageBytes = ms.ToArray() cn = GetConnectionStart(cstrSQLCeFileName) strSQL = "UPDATE BaltPhoneDir Set Photo = Values ( ) LName_1 LIKE '" & strLastName & "' AND FName_1 LIK ...Show All
Windows Forms GDI leak tool
Is there any third party tool or Visual Studio 2005 plugin which can detect GDI leaks I can find tools which can count leaked resources, but I want the stack trace i.e. where in .net code the leaked resource was allocated. Also another question: does .net use GDI or GDI+ or both Thanks in advance. Pawan I have used .NET Memory Profiler ( http://memprofiler.com/ ) with some success. It does a good job of tracking resource leaks and provides stack traces etc. The System.Drawing namespace wraps the GDI+ C API. Windows Forms however does make use of GDI indirectly when it allows controls to be rendered by the system. As an example, buttons are by default rendered in managed code using GDI+ but text boxe ...Show All
Audio and Video Development display="none" not applying to child buttons
I've tried Peter's scrolling menu example from his blog. I cannot get it to work because the buttons are displaying even though the parent div is set to display="none". I then created a test page with different buttons with their parent divs set to display none. That isn't working - the display style applied to the div is not being applied to the buttons. That has got to be a bug in the new sim right Can anyone else produce this Are you using style:display="none" rather than just display="none" Note that you don't need "inherit" on the children since, by definition, if a parent is not displayed then none of its children will be. The sample was written for the latest iHDSim. I will ...Show All
Visual C# create exe of the program
hi! i'm using VS 2005 and i'm confused on how i can make my application an exe file. I tried saving it as .exe but when i click the .exe file the command prompt and a message appears. The message says that it has encountered an illegal operation. Can someone help me with this thanks! When you debug your app without error I think your exe file has been created in Bin folder this is one of sub folder in your project folder does it help you ...Show All
Windows Forms Display message text on mouse hover
I want to display a popup-like window/messagebox when the mouse hovers above a control. I am trying to simulate the yellow information box that appears when you hover the cursor over a closed #region/#endregion in V.S. 2005 that displays the contents of the #region. Is this possible or, is this a feature of V.S. 2005 only and not availale thru code Using an instance of the ToolTip class should provide much of what you are looking for. ...Show All
Smart Device Development Debugging WM 2003 SP with VS2005
Is it possible to debug a WM2003 SP using VS 2005 All my attempts on several devices on several different desktops yield the same result: Access Denied. I can: 1. debug WM2005 SPs with VS2005. 2. run on a WM 2003 emulator. 3. run un-attached to the debugger on a WM2003 phone. but i cant debug. I've heard of several people having this same problem too. I've heard rumors that it is possible though and it must be. What could my problem be Thank you for any advice. You'll have to install the required development certificates. See: http://msdn.microsoft.com/library/default.asp url=/library/en-us/mobilesdk5/html/moconpreparingdevicefordevelopment.asp and: http://msdn2.microsoft.com/en-us/library/ms22883 ...Show All
Software Development for Windows Vista Project Templates misssing
Hi, I installed the Visual Studio Extensions for .NET Framework 3.0 (WWF) RTM (English). After installation, all other project templates for Visual Basic and Visual C# are missing. I tried devenv /installvstemplates and also devenv /setup. It didn't work to get the templates back. Project/ItemTemplates and Project/ItemTemplatesCache folders inside Microsoft Visual Studio 8\Common7\IDE seem to be ok, cause all the templates are still there. I uninstalled the WWF Extensions again and all project templates are back in the New Project Wizard. When I reinstall WWF Extensions they are gone again. Is this a bug of WWF Extensions My configuration: Windows XP SP 2 (German) (Visual Studio 2005 Security patch installed) .Net Framework 3.0 ...Show All
