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

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

GaryMcC

Member List

billqu
chakravarthy_b
joelw7
Ed Glas - MSFT
Nadav Popplewell
ron nash
Matty4242
ShadowRayz
Alessandro Camargo
hfrmobile
Allen Razdow
Omar Fawzi
Matt_
webrod
KarlZheng
Ravonies
George2
LauraCapatina
Shady9399
Priyank Gajera
Only Title

GaryMcC's Q&A profile

  • Visual Studio 2008 (Pre-release) DataTriggers and DataTemplates oh my!

    I've got a simple list of objects and I want to create a "details" panel that displays the object that is selected. Is there a way to create a template for each type of object in the list and place it inside a Panel. I've done it with ListView but can it be done for things that don't contain lists of things Another approach: For each different type, add an implicit template to the panel's resources. (An implicit template is one whose DataType property matches the type of your item.) Here's a sketch... <StackPanel Name="DetailPanel"> <StackPanel.Resources> <DataTemplate DataType="{x:Type myapp:Widget}"> <!-- Note: do not use x:Key here --> ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Managed -> Unmanaged Interop

    Hello to the XNA team! Looks like some pretty awesome work you've got done here guys! Me and my colleague are professional game developers considering writing "Yet Another 3D Game Engine(tm)" for XNA. So I have two questions for the team: 1.) Is there any chance of getting a preview of XNA before december so we can start developing immediately 2.) It would be nice if we could do a bit of interop between XNA, managed C++ and unmanaged C++. What are the chances of us being able to achieve this Thanks in advance! The framework itself as managed assembly could be used with any other managed language. But the Game Studio extension is currently limited to VS C# Express. ...Show All

  • Windows Forms Invoke Design Time Editor from own code.

    How to show default property editor from your own code. Problem is IWindowsFormsEditorService is provided only by property grid, so is there any other solution then to override EditValue sub and show your own form. Ok, let's make it more clear. Let's concive we have a button (some element that can recieve events) in design time. When we press it we want to get standart (not overloaded) component editor being opened (in design time) for some component present on the current form. ...Show All

  • Visual C++ ShellExecuteEx leaking handles ?

    //ShellExecuteEx.cpp #include <windows.h> int main( int argc, char ** argv) { if ( argc == 1 ) { while ( true ) { SHELLEXECUTEINFO sei; ZeroMemory( &sei, sizeof ( sei ) ); sei.lpFile = "ShellExecuteEx.exe.lnk" ; sei.lpParameters = "-par1" ; sei.cbSize = sizeof ( sei ); ShellExecuteEx( &sei ); Sleep( 100 ); } } return 0; } Anyone knows what's the problem with above code, it leaks handles Compiled with VS2005 on Windows Server 2003 ShellExecuteEx.exe.lnk is shortcut to the same app (started with params it just exits). Kroum No, unless SEE_MASK_NOCLOSEPROCESS is set, which is not the case http://msdn.microsoft.com/library/de ...Show All

  • Windows Forms How to display a Dictionary in a gird like PropertyGird

    Hi, At run time, I created an instance of Dictionary Object which has a few keys and values . Now I want to display it inside something look like PropertyGird, one column for keys and one for values which is editable. My problem is I don't know the keys at design time, they are dynamic variables. That's why I cannot use PropertyGrid. Any ideas or walk around BR, L You could dynamically create an object at run time and give it a custom property descriptor but by the time you had done all that it might not be worth the effort :-) Is there some reason you can't use a DataGridView and make it look like a property grid ...Show All

  • Visual Studio Express Editions Removing characters from a string

    I am importing a string into a database. I have noticed that from the text file I can see a Square Character. How do I remove these characters from the string Here is some Very early code that I am working on, Dim linenumber Dim theReader As IO.StreamReader = IO.File.OpenText( "test.txt" ) ListBox1.Items.Clear() Do While theReader.Peek <> -1 linenumber = theReader.ReadLine If linenumber.Contains( "MeridianMail" ) Or linenumber.Contains( "No Activity" ) Or linenumber.Contains( "Services Detail" ) Or linenumber.Contains( "Interval Start-End" ) Or linenumber.Contains( "Service" ) Or linenumber.Contains( "Accesses" ) Or String ...Show All

  • Windows Forms Multiple Questions about Deployment Projects in VS2005

    Hi all, I'm working with ClickOnce publishing, web deployment and setup projects, and general setup projects in the 2005 framework and have several questions: 1) Is it still impossible to configure where the physical directory of a web setup project installs the files to 2) Is it possible to work within the deployment framework to install a web application into an application pool and/or anything other than the Default Web Site, or must this still be a custom action 3) Is it possible to run an installer or other action from a component inside of an MSI without actually deploying that component For instance, I have a common set of installation actions that I want to perform via an installer class, yet I don't have a need for a ...Show All

  • .NET Development ASP 2.0 web service & SQL 2005: Login failed for user ''

    My company has been working on ASP.NET web services since January 2003, with little to no issues. We've always used Windows Integrated Security to connect to the database. We started our migration to SQL 2005 and ASP.NET 2.0 last week, and we've encountered a problem at the very beginning: login failed for user ''. We are not using the new personalization stuff, at least I don't think we are, because we don't need it. Web services are for intranet use only (at the moment). It's driving everybody in my company crazy. We simply can't figure it out. Here's our dev environment Domain is a Windows 2000 domain ASP.NET 2.0 web service is running off IIS 5.1 on Win XP SP2 with firewall turned off SQL 2005 database is on a Windows 2003 server (not ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Boot Camp + XNA

    Anybody tried to run XNA on Bootcamped Mac I tried my schism game out on a bunch of computers it works just fine. However, when I tried it on a Bootcamped Windows XP Mac...The screen rotated 90 degrees...Everything worked right, controlls and such but I could only see half of my screen. A bug with the graphics device, or maybe drivers on the Mac Anybody got any ideas We've heard reports of successful usage of XNA GSE on Macs running WinXP. If you're seeing rendering problems, it's likely a driver issue. However, that hardware configuration hasn't been officially tested. ...Show All

  • Visual Studio Tools for Office Disappearing Document ActionTask Panes with Word

    I've been working on a fairly complex Word VSTO application which is about complete, except for some intermitent strange behavior which happens after a document has been saved. When reopening the document ( either the saved one or starting the new one via the application word template) one of two things may happen. 1) the document action pane begins to display and then closes , leaving only the getting started task pane. it is not listed as a disabled application, logging off and back on will fix the problem as if it had been black listed 2) The Document Actions pane stays open, but the two actions pane controls which should be there are not visible, despite code (msgbox(me.ActionsPane.Controls(1).Visible) claiming the control IS ...Show All

  • Software Development for Windows Vista Workflow not Persisted

    Dear all, I have a StateMachine like this: State1 ----- Event Driven ----------HandleExternalEvent ----------SetState (to state2) State 2 ----- Event Driven ----------HandleExternalEvent ----------SetState (to state3) State 3 ----- Event Driven ----------HandleExternalEvent ----------SetState (to state4) State 4 (Final State) And my host application do this: 1) Implemented the SQLPersistenceService (no tracking yet), set unloadonidled to 5 seconds. Added Handler for both workflow idle and persisted events. 2) The use click a button to raise an event to start a new workflow instance (State 1). By default, State1 will prompt an alert then goto State2 (become idle). The host actually unlo ...Show All

  • Software Development for Windows Vista showing workflow design view at runtime

    Hello all, I want to show the desgin view of my workflow to be displayed on run time, i.e., i want to show the design view with the particular emphasis on the activity that is executed currently. Can someboday guide me if it is possible to show the design view of the workflow on the run time does windows workflow foundation provide any facility for that if not, how can it be done manually I would really appreciate any support in this regard. It sounds like the workflow monitor example is exactly what you want. If not, it's probably a good starting point. It uses workflow tracking and the designer to monitor the progress of workflows. Bruce Bukovics http://www.bukovics.com Pro WF: Windows Workflow in .N ...Show All

  • Visual Studio Express Editions syntax code

    to those of you who are familiar with the coding, could you write a simple code example so we can understand,give us simple syntax examples please of; deleete command accept changes command that way those  of us who are beginners can read the syntax and get a better view of how it works. thanks for your time ahmed, i have a few questions for clification; 1 how does the code below relatte to my ,recordstableadapter,musicdataset2,and records(tablename) approach 1, raw "dirty" delete 2 do i have to create a NEW sql command or do i have on now as i have already got a batabase 3 is the conection string i got when i created my database not the same thing. 4 i havent grasp ...Show All

  • Visual Basic Storing Login Information

    What would be the best way to store a users basic info (i.e. username & access level) so that whenever they go to different screens, they will have only selected items based on the access level Also, whenever they use the Logout button, how can I make it close all open screen in the program & clear their information out of temp storage Thanks for any help, QWERTYtech Try Private myLogon As String inside the class, but outside any method to create "private" variables (I know them as class variables). Simple example follows. Public Class myClass     Private myLogon As String     Public Sub myMethod(ByVal someLogon As String)        code goes ...Show All

  • Visual Basic Compiler error on VB code in Access module

    Trying to run sample VB code in Access module - compile blows up on statement: Dim vD11Version as tWinInetDLLVersion I am using MS Access 2000 - what reference library do I need to include to correct this According to following example: http://msdn.microsoft.com/archive/default.asp url=/archive/en-us/dnarwebtool/html/msdn_vbhttp.asp this is a type that must be defined by you in VB6 it would be according to the article: Public Type tWinInetDLLVersion lMajorVersion As Long lMinorVersion As Long End Type in VB.Net I think that it translates to: Public Structure tWinInetDLLVersion Dim lMajorVersion As Long Dim lMinorVersion As Long End Structure ...Show All

©2008 Software Development Network