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

Software Development Network >> Chris.Stewart's Q&A profile

Chris.Stewart

Member List

AlexBB
Smrtital
Condorito
mmdawson1
Chris Haas
Emersion
Heinz09
RajeshPKumar
Steve from adzac
Ariadne22
Williamq
Shaf2k
volksisme
JoneLee
Azimuth
Mnd1
Boy from Turkey
Goran _
vgrigor
Marauderz
Only Title

Chris.Stewart's Q&A profile

  • Visual Studio problem adding solution to Sourcesafe

    Very simple task you'd think, add a solution to sourcesafe and keep it in the same directory structure and location with reference to the root, NOT so!!!! SourceSafe through Visual Studio keeps creating additional structures. This is ridiculous. My solution is at C:\projects\Prototypes\IDE\MySolution\MySolution.sln The root of the present SourceSafe is C:\projects 1. I select the solution in Visual Studio and select "Add solution to source control". A dialog appears prompting me with name: MySolution.root location: $/ This creates a node name MySolution.root in the root dir C:\projects, which I do not want. 2. Instead I change the name to MySolution and change the location to C:\projects\Prototypes\IDE\ This then, frustratingly, ...Show All

  • Windows Search Technologies Word Add-In creates problems with Desktop Search Preview

    Hello All, Sorry for the long post, but I wanted to be somewhat clear. I'm developing a Word (2003) Add-In for an IM management system which handles the DocumentBeforeSave event, and runs a Windows Form to aid in attaching metadata to the document (mainly for XP). It also gives the user the ability to cancel the save event. Everything is working well with the Add-In, but when I tested it with various technologies before deploying, I found a problem with Desktop Search. When the Desktop Search generates a preview of a word document, it triggers the DocumentBeforeSave event, thus running the form. If the user simply adds the metadata when prompted by clicking OK, there is no real problem (other than the hassle of having this popup in a p ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Where's the wrapper for ID3DXEffectStateManager?

    Seriously - ID3DXEffectStateManager is beyond necessary when it comes to integrating D3DX Effects into any serious state management system...so where'd you hide it Or do we now have a way to read state assignment metadata like Cg And if so then...where's that Right. I understand that. In my case I'm trying to port a little game I wrote a while ago to the 360. Using a dummy pass to revert states isn't my first choice here as the rendering defaults change as the frame is rendered (changing that behavior is most definitely out of the question as that would mean ripping half of my renderer apart), so there's no way to do what I want unless I save/reset the entire state around each effect...which is way too sl ...Show All

  • SQL Server Custom Assembly Problem

    I am trying to use my own custom assembly in my SQL Server 2005 report. I have coded and compiled the following code to produce the ReportLibrary.dll: Imports System.Data Imports System.Security Public Class myClass Public Function myFunc() As Integer Dim value As Integer = 0 Dim permission As New SqlClient.SqlClientPermission(Permissions.PermissionState.Unrestricted) Dim myCommand As New System.Data.SqlClient.SqlCommand() Dim conn As New System.Data.SqlClient.SqlConnection( "MY CONNECTION STRING”) myCommand.Connection = conn myCommand.CommandText = "MY SELECT STATEMENT" Try permission.Assert() ...Show All

  • Visual Studio Express Editions Help with AddHandler click event with runtime Picturebox(es).

    Greetings, I am adding multiple Pictureboxes at runtime and I'm trying to add an AddHandler to handle the (left button) .Click and within that event be able to know which Picturebox was Clicked. Would somebody please tell me what I'm doing wrong, my code is working as far as the handler is called, my problems are : 1. The handler is called for all 3 button clicks (not just left click) 2. How do I retrieve the Picturebox name that was clicked. 3. What should the Handles in the SUB MyPicturebox_Click be. Approximately 16 PictureBox are created, so PictureBoxDisplay is called each time. My Code is : . Public Sub PictureBoxDisplay( ByVal ImageFileName As String , ByVal Count As Integer , ByVal pos As ...Show All

  • Visual Studio Express Editions Different Coloured Brushes

    How do I change the brush colour so that each square is different I was thinking of using an array, Dim arrCol() As String = {"Red", "Yellow", "Green"} but string can't be converted to system.brush. I tried Dim arrCol as System.Brushes, but that doesn't work either. So any ideas please. Here's the code, Dim B1 As New Bitmap(146, 92) Dim G1 As Graphics = Graphics.FromImage(B1) Dim PB As New PictureBox Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim X, Y, W, i As Integer X = 0 Y = 0 W = 128 For i = 1 To 40 G1.FillRectangle(Brushes.Blue, X, Y, 16, 16) X += 18 If X > W Then X = 0 ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. external libraries with XNA

    Can external libraries written in C# be used with XNA Does Xbox 360 support dlls I don't see that there would be any reason you couldn't use external libraries under Windows... XNA is a framework like the .NET framework and GSE is really just C# Express with the XNA templates and such. We don't know much about targeting the 360 with XNA yet, but given that it doesn't use the X86 architecture I would be very surprised if DLL binaries would work (I would say it's a virtual certainty that they won't). ...Show All

  • Visual Basic Listview remove multiple items

    I everyone... i've got this code to remove all selected items in a listview... but i like to know if there is any more simple code to do this ... My code: Dim i As Integer With frmMain.FeedsList For i = 0 To .Items.Count - 1 Try If .Items(i).Selected = True Then .Items.RemoveAt(i) i = i - 1 End If Catch End Try Next End With Thanks Often creating small projects with a few lines of code to test a principle is the way to go - it avoids a lot of confusion with other code an sticks immediately to the point in question. You can iterate through either the items and check if its selected before removing them or simply iterate throu ...Show All

  • Windows Forms Setting field when adding new item using BindingNavigator

    Hi, I have a binding navigator on my form. On the form there are fields that are bound to a datatable. The table requires a field to be set (not DbNull). That field isn't visible to the end user. I am able to set this field hitting save in the binding navigator. However I want to set it when hitting New Item. This button is bound to the AddNewItem property of the navigator. Setting the field in the bindingnavigator AddNewItem event and setting it in the Add New Item button click event does not set the field. How can this be done Thanks. BindingNavigator.AddNewItem seems to be useless, as example Exceptions can not be catched. Solution: 1. Set BindingNavigator.AddNewItem = None (D ...Show All

  • .NET Development Xml File + DataGridView

    Hi I need to retrieve a Xml file from a database and display certain nodes and attributes in a DataGridView. The Xml file contains TimeStamps/TimeInterval, which I want to display chronologically (top down). First I retrieve the Events node and get the first child and all its siblings (e.g. Play, Laugh, Hide). Then I have to continue to get the children and extract the attributes. Is there a better way of doing this Afterwards I have to order all data - at least I could do this in the DataGridView Thanks. Xml File: < xml version="1.0" > <Day1> <ID>123456789</ID> <Title>Action 1</Title> <Description></Description> <StartTime>28.08.06 10:10:07</StartTime> ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. how to fill D3DFMT_R32F texture's data

    I create a floating point texture ,and I will use it to store Z value in pixel shader. LPDIRECT3DTEXTURE9 g_pFristMap ; DXUTGetD3DDevice()->CreateTexture( Frist_MAP_SIZE, Frist_MAP_SIZE, 1, D3DUSAGE_RENDERTARGET, D3DFMT_R32F, D3DPOOL_DEFAULT, &g_pFristMap, NULL ); Now I want to initial texture's every texel data as 1.0f ,for my pixel shader to compare the Z value form ttexture and current pixel Z value ,keep the small Z value,how should I initial this texture LPDIRECT3DSURFACE9 g_pFristSurf; g_pFristMap->GetSurfaceLevel( 0, &g_pFristSurf ); D3DCOLOR color = 0x0010000f; DXUTGetD3DDevice()->ColorFill( g_pFristSurf, NULL, color); is it right thx all ;) The hex value to use is 0x00FF000. Actu ...Show All

  • SQL Server keep together

    Hi. I have two groups and a detail row in a table.First is ProductGroup, second is ProductSubgroup and the detail area's name is ProductName. My problem is that I want to keep the detail and the ProductSubgroup (second group area) together.For example sometimes ProductSubgroup is written at the end of the page and the detail area is on the next page or the ProductGroup (first group area) is written at the end of page and the ProductSubgroup (second group area) is written on the next page.And I don't want this.But for example the ProductSubgroup area contains too many detail rows and this time I want to split the records two pages.I hope you help me.Thanks! There are a couple way that you can mitigate this ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Forcing GraphicsDevice creation before Game.Run

    In order to incorporate Xna into an existing engine without a lot of ugly hacks, I need to force the GraphicsDevice to be initialised before the program loop starts (Game.Run). Can this be done Assuming this isn't possible (as seems likely), I'd need to ditch Game and handle device creation myself. This looks straight forward enough, except that it requires a handle to a window. This is no problem in windows, but what about on the xbox 360 Is there some sort of factory available that returns a GameWindow implementation for the platform it's running on Has anyone manually created a graphicsdevice on the 360 I never ran the Game.Update or Game.Run and I am able to use the SpriteBatch.Begin, Draw and End i ...Show All

  • Visual Studio 2008 (Pre-release) How to use CommandParameter from multi-controls?

    A typical scene use command in WPF is like this: <StackPanel> <TextBox Name="_textBox"/> <Button Name="_button" Command="{Binding MyCommand}" CommandParameter="{Binding Text, ElementName=_textBox}"> Do something </Button> </StackPanel> Now, I want to add another TextBox "_textBox2", and the Text from both the TextBoxes should be passed to the Command as CommandParameter. How to do this Thank you You can use MultiBinding here: < Button > < Button.CommandParameter > < MultiBinding > < Binding Path = " Text " ElementName = " TextBox1 " ...Show All

  • Visual C++ Junk values when build in Release mode

    Hello Everybody, I am having a strange problem in one of my VC++ code. I am setting a value in the code, which is getting retrieved perfectly when executed in DEBUG mode. But when I try to execute the same in RELEASE mode only junk values are being returned instead. I am totally clueless. Could anybody be having some idea on this My code snippet is as follows: _bstr_t szStatus = _T(""); _bstr_t szMessage = _T("not available"); // the value that I am trying to set int retVal = -1; try { retVal = m_oSql.GetStatusDescriptionSQL(...); if (retVal == 0) { szStatus = szMessage; // the value is being assigned here } } catch ( CSQLException& e ) { return this->Error(CComBSTR(e.m_szMsg), IID_ICola, E_F ...Show All

©2008 Software Development Network