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

Software Development Network >> Kim Madsen's Q&A profile

Kim Madsen

Member List

Anand Raman - MSFT
NeW2VB
Lakshmi N
Sniper167
JohnBurton
ANB_149
Raulnsh
Geert Verhoeven
Mel Schehlein
boaz_b
pravinarote
GusaMusa
Leandro Rodrigues
techplan
Alek Yakovlev
black dove
R.Working
Divyajosephjohn
xw
aboutKnowledge
Only Title

Kim Madsen's Q&A profile

  • Visual C# Does a C# Windows Service running on "local system" or "local service" have access to environment variable such as PATH?

    I have created a windows service and deployed it using a setup project (.msi installer). I am wondering if the service has permission to access the windows environment variables such as PATH any help would be appreciated. Thanks, Keith Yes I am trying this. To give you some background I have a console program which references some third party software. This line of code starts an .exe process on the system, to do this it must access the PATH variable on the system. When I convert this over to a windows service, everything runs fine except for this one line of code which starts the .exe process. If this .exe process is running before this line of code is executed, the service runs correctl ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. How to draw to an offscreen texture (for screen effects and video feedback)

    I'd like to do some screen effects with a pixel shader and maybe also some video feedback stuff. I'm trying to figure out how to render to a texture (maybe an Offscreen Surface ) which I'll then be able to render back on to the graphics device's buffer. I'm not sure whether I should use GraphicsDevice.CreateOffscreenPlainSurface or GraphicsDevice.CreateRenderTarget or what sort of paramters I should feed to either of those. The once I've got a Surface created by one of those methods, I'm not sure how to set it as a render target... GraphicsDevice.GetRenderTarget with an index above 0 always throws an exception, so I'm guessing there is some way to explicitly add Surfaces to GraphicsDevices as a render target that I can't seem to figure out ...Show All

  • Visual Studio 2008 (Pre-release) XBAP / JavaScript

    Hi I have an XBAP opened in a IFRAME in a HTML page. How can I add an element to my HTML page from the XBAP without reloading the page (Supposedly JavaScript) PS: if not with JavaScript … with what As far as I know, it's not currently possible to directly communicate between the XBAP and Javascript. All we can do is to encourage MS to greatly improve the browser integration in the next release (Orcas). See this thread for more: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1016463&SiteID=1 Tor. ...Show All

  • Visual FoxPro Hot key question

    I know that we can assign a hotkey 'S' for a button like : thisform.button1.caption="\<Start" The question is: how to assign a hot key "Page Up" or "F2" key for the button in a form A menu doesn't have to be visible to be available. You can define a menu popup and never display it and still have the menu shortcuts available to the users. Tamar ...Show All

  • .NET Development No row at position 0.

    I am trying to show/hide a control based on the value of a boolean DB field with the code below: Dim dsAdmin As New DataSet Try DBCon.ConnectionString = csWBoard DBCon.Open() userAdpt.SelectCommand = New OleDbCommand _ ( "SELECT admin FROM [User] WHERE (userID = '" & userName & "')" , DBCon) userAdpt.Fill(dsAdmin, "User" ) If dsAdmin.Tables( "User" ).Rows(0).Item( "admin" ) = True Then mnuAdmin.Visible = False Else mnuAdmin.Visible = True End If DBCon.Close() DBCon.Dispose() Catch ex As Exception MsgBox(ex.Message) End Try The field is of type Yes/No in my MS Access DB and the format property ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Is it realistic to create one's own engine?

    I'm not new to programming, but I'm new to game programming and C#. I'm wondering to what extent it's realistic for someone to make their own 3D (or for that matter 2D) game engine. The two projects I have in mind for myself are a turn-based 2D war/strategy game, and a 3D adventure game in the manner of "Dreamfall". On the 2D side, I feel confident I could come up with a 2D interface on my own. I haven't done a lot here yet, but I did manage to whip up a little 2D hockey game without peeking at Bill Reiss's excellent 3D airhockey tutorial at http://xna101.spaces.live.com/ . I've even given my computer hockey opponent a very primitive AI. OK, my collision detection and physics aren't great, but I'm not sure how much I'll need either of ...Show All

  • Visual Studio Express Editions Gobal imports. Is this possible?

    Hi Quick question, is it possible to have a global imports statment in a module which can then be used by all forms in the application instead of having to write an imports statment in every form. e.g I have Imports System.Data Imports System.Data.SqlClient These are in a module, but are not referenced by the forms. Is there a way to publicly declare this. Any help is appreciated. When you provide a project reference to an assemly it is available globally to the project...however each class/module maintains its own list of Imported namespaces ...Show All

  • Windows Forms How do i populate a datagridview cell with an unbound data after input information on a cell?

    Hello, I want to populate, in datagridview control, a row cell with to fields (to simplify the example). I have a sql database with a table named Products. The datagridview will show the code of product and in the next column for the same row the correspondent description. I want to insert manualy in each row the product code and after that using for instance the CellEndEdit event conect to the sql database, search for the product code in products table and bring the corresponding data to the grid columns, for this example the description for each product. I am using Visual basic 2005. How can i do this simple task !!! Thanks. ...... ...Show All

  • Windows Forms Where are my buttons?

    I am trying to display two text boxes when the edit button is clicked. The MemberName textbox does "disappear" but the other two textboxes remain invisible. The textboxes are in a panel and I thought by inserting the control.BringToFront(), it would put the control into the panel. What am I missing using System ; using System . Collections . Generic ; using System . ComponentModel ; using System . Data ; using System . Data . OleDb ; using System . Drawing ; using System . Text ; using System . Windows . Forms ; namespace bindDbToDataGridView { public partial class Form1 : Form { #region Strings TextBox ...Show All

  • Visual Studio Passing Parameters to Crystal Reports 10 using Visual Studio 2005

    I have been looking all over the place and I am looking for a way to generate a stand alone Crystal Report using a parameter passed from a form in Visual Studio 2005. I don't want the report to be attached to a reportviewer, I just want the report to be opened with the parameters being passed to it. How would I do such a thing I have been looking for the answer and I cannot find it. I am not sure if you are required to attatch the report to a viewer or not. It would make sense that you would be if you wanted to view it during run time, otherwise you can export it through code. Sorry i can not be any more help. I am experiencing the exact same problem and have not been able to find the answer for about ...Show All

  • SQL Server [SQL2k5] Dynamic SQL Query Select on all user tables

    In one query, I would like to query every user table in a specified database for SELECT TOP (3) COUNT_BIG([Event Count]) AS EventNum, [Target IP], MAX([Time]) as LastSeen GROUP BY [Target IP] ORDER BY EventNum DESC How is this possible Please give examples, I am a beginner. Assume every table has the same structure for columns event count, target ip, and time. Hi, try the following: sp_msforeachtable 'SELECT *,'' '' AS TableName FROM (SELECT TOP (3) , COUNT_BIG([Event Count]) AS EventNum, [Target IP], MAX([Time]) as LastSeen FROM GROUP BY [Target IP] ORDER BY EventNum DESC) SubQuery' But keep in mind that this should be just used for administrative task and adhoc queries not for busine ...Show All

  • .NET Development how to read and update an xml file

    I have an xml file with the follow fields: <name> John Doe </name> <city> XYZ </city> <zip> 88888 </zip> How can i update for example the zip code to 99999 without affecting other fields What would happen if the config file is set up but there's no value inside the node yet like <name>John Doe </name> <city>XYZ</city> <zip/> if i do elementNode.InnerText = "99999" won't work since elementNode is null. how can i take care of this case ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Transform matrix problem

    hi all, 1. how to transform matrix in directX, Whether use sprite object 2. Where have good example with transform object in driectX Best Regards, Brian Tsim What are you trying to transform, and what format are you trying to transform it into Are you looking for basic 3D transformation matrices (transpose, rotate, etc.) or something else ...Show All

  • Windows Forms Searching Records in Windows Forms

    I can't seem to find a solution for this anywhere! Everywhere I've searched on Google always shows me how to do this with a datagrid - but not a form. I've created a form which correctly displays all my fields in a recordset. I can scroll through them, add new records, delete records, etc. etc. and everything is fine. I would like to be able to Jump to a specific record. e.g. if you have 100 records in your database and you display each record on your form. Instead of scrolling through the records to get to the one you want I want to be able to jump to it. Any help will be appreciated. ...Show All

  • Visual Studio Tools for Office Excel: The customization does not have the required permissions to execute

    getting this error: The customization does not have the required permissions to execute. ************** Exception Text ************** System.Security.SecurityException: The customization does not have the required permissions to execute. at Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.HandleOnlineOffline(Exception e, String basePath, String filePath) at Does Temporary Internet Files qualify as a Trusted Zone I ask because users often open the XLS file from outlook by double-clicking the attachment. in that case it opens them from the IE Cache. Is there a way to check what are the security restrictions on that The user workstation has this type of security policy change run. It enables me to open ...Show All

©2008 Software Development Network