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

Software Development Network >> Randal Greene's Q&A profile

Randal Greene

Member List

BinaryKiwi
mfroster
nesrine
think twice
Javafun
aashta
Earl Hood
Pete Nelson
Chuck Cobb
Kathy Weise
MillBear
NeederOfVBHelp
VisualCSharp
s schwarz
alecxss
mcutchin
JohnACE
Fluxtah
SDH2007
kopo
Only Title

Randal Greene's Q&A profile

  • .NET Development Exception: DataTable internal index is corrupted: '5'. on ...

    Hi, I have a problem with bindingsource component in framework 2.0. I have a combobox bound to a bindingsource which is also bound to a dataset with 2 related tables and a datagridview bound to the same bindingsource. What I want to do is : When the selectedindex property of my combobox changes, the corresponding cell value must be changed in the datagridview. But although the value in bindingsource changes, datagridview does not display the new value. That value is displayed after I move the mouse over that cell and make it invalidate its region manually. Another error I caught is the one that you can see as the subject of my post. I do not know why i have that message when I try to change the property of ((DataRowView)mybindi ...Show All

  • Visual C++ ref friend class?

    I'm using the Unit Testing framework of VS2005 and I'm running into a problem I'm trying to access private member functions of a NONmanaged class with a managed test class like so: class CBob { private: static int PrivateFunctionToTest(); friend class TestCBob; }; [TestClass] ref class TestCBob { [TestMethod] void TestPrivateFunction() { Assert::AreEqual(0, CBob::PrivateFunctionToTest()); } }; Is there any way to do this This post is a duplicate. I answered it here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=537138&SiteID=1 ...Show All

  • SQL Server OWC 11 XML out of sync with OLAP Cubes

    Hi I am using the OWC 11 Pivottable in a Windows Client App to show OLAP cube data and to change OLAP cube date (writeback). We store the XMLDATA for a Pivottabel setup, so that next time the user enters they see the Pivot tabel as it was when they last left it. ...or that is the idea. The problem is that our OLAP cubes is updated daily via our ETL flow. These updates may change dimension values in the OLAP, causing the OWC XML stored in the client to get out of synch. For the user this means that a column may disappear in the OWC. We are struggling to establish a system that keeps the XML data for the OWC updated when changes are detected in the ETL flow. Have you had a similar task that you have solved Do you know of an ...Show All

  • Software Development for Windows Vista event with DirectX

    Hi, I'm developing a windows application in c# and i use video with DirectX. I'm wondering if theres not an event that occurs while the video reachs a certain position. In fact my code is : Video vid; public Form1() { InitializeComponent(); vid = new Video ( Application .StartupPath + "\\vid.avi" , false ); vid.Owner = lblecran; vid.Play(); } i would like something to happend after 1s of the video with the video still playing. but i don t know how to do. Someone has an idea Sorry for my english, and thanx for your help, Laura. I moved it to Game Technologies: General ...Show All

  • Visual C# Some chars can't be typed when using EditingControl

    Hi, I’m using DataGridView control, and try to use EditingControl for special editting, but I found there are some chars can’t be typed. Follows codes are copied from MS web site, and I only replace DateTimePicker with TextBox. When running, such chars: "!","#","$","%","&","(","q", "." , can’t be typed. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace WindowsApplication12 { public class CalendarColumn : DataGridViewColumn { public ...Show All

  • Visual Studio Team System Changed WS unable to load projects

    Hello! I have Team Project1 that consists of a asp.net 2.0 solution file in TFS. It is constitutes of 12 project files , 7 of which are referenced from a different Team Project (Team Project2) and the remaining from TP1. The 6th project in the sln file is referenced as ..\..\webcommon\abc.web.common\project6\ The same reference paths hold good for the rest of the 6 projects. I was unaware of these references when I initially created my WS mapping the following way: TP1 goes to c:\tfsprod\tp1 TP2 to C:\tfsprod\TP2\ When I tried opening the sln file, it was not able to load up any of the 7 projects that were referenced. I later realized the reference paths and changed the WS mapping accordingly as TP2 to C:\tfsprod\we ...Show All

  • .NET Development No Value Given For Parameter Issue

    I am developing a report in VS2005 that is based on a view in Access. I need to pass a parameter to a subquery as well as the main query but do not know how. I get the error: "No Value Given For One Or More Required Parameters." How can I pass the parameter into both Here is the SQL: SELECT ADD_MAT1, ADD_MAT2, ADD_MAT3, ADD_TOT1, ADD_TOT2, ADD_TOT3, BASE_COST, BUSH_CAP_COST, BUSH_CAP_MAT, BUSH_CAP_QTY, COST1, COST2, COST3, ESTIMATE_ID, [LABOR COST], LP, MAN_HOUR_RATE, MAT1_QTY1, MAT1_QTY2, MAT1_QTY3, MATERIAL_COST, MATERIAL_NAME, MISC_MH1, MISC_MH2, MISC_NOTE1, MISC_NOTE2, MP, PAINT_SYSTEM, PRICE, PROFIT_FACTOR, RAIL_BASE_MAT, RAIL_BASE_QTY, TCP, TOTAL_MH, TOTAL_MTL, TOTAL_QTY, TOTAL_RADIATOR_AREA, TOTAL_TANK_AREA, UNIT_ ...Show All

  • Visual Studio Team System CTP5 - Names names names

    Hi What about this scenario: CREATE TABLE [Schema1].[TheTable] ... CREATE TABLE [Schema2].[TheTable] ... Perfectly legal and probably quite common. But the naming scheme for the files added to a DB-project wont permit this am i right Right now I'm looking at an error in my DB-project that I assume is triggered by this. And what about this: CREATE SCHEMA Person CREATE TABLE [Person].[Person] ... This fails too on import. Brumlemann Solution Architect A correction to earlier posts.  Both scenarios you mention are NOT working in CTP5. I know the first one (Table with same name but different Schemas) has been fixed and will work in future drops.  I'll give the CREATE ...Show All

  • Windows Forms Strange ClickOnce window messes up VS

    Several of the developers on my team periodically complain about a tiny gray box in the upper left corner of Visual Studio that overlaps the File and Edit menu. When this window appears, it's impossible to activate any of the menu options in Visual Studio. If we Alt+Tab at the time, we can see a new window called ClickOnce, but there's no way to make the window go away. The only thing we can do to resolve the problem is restart VS. It only happens maybe once or twice a week, but it's pretty annoying when it does happen. Any clue ...Show All

  • Windows Forms InvalidOperationException on BindingSource.AddNew

    I am trying to handle the Enter key in a datagridview. Everything works fine until I try to call AddNew on the BindingSource to add a new record and then I get an InvalidOperationException with the message "Operation is not valid due to the current state of the object.". I am new to databinding and I am not sure what the error means. Thanks for your help using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace WindowsApplication1 { public partial class Form1 : Form { Grid grid; BindingList<Dummy> bindingList = new BindingList<Dummy>(); BindingSource bindingSource = new BindingSource(); ...Show All

  • Windows Forms PropertyGrid: Disable CollectionEditor without changing the Object

    My Question I would like to disable the CollectionEditor inside the PropertyGrid. I'm not able to change the business object which is set as propertyGrid.SelectedObject. How can I do this Background information I use the PopertyGrid to create a generic user interface. This application should be able to show any object properties. The big disadvantage of the collection editor is that it opens a new modal dialog. If the object structure is more complex the user has to open several CollectionEditors inside their parent CollectionEditor. Bad usability :-( That's why I created a new UserControl which combines a TreeView with the PropertyGrid. The TreeView shows the hierarchies of the collections. So far it works fine :-) ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Getting the mouse position in screen coordinates using C++ (no .net)

    Hi, I'm quite new to DirectX, and C++... I'll start with what I'm trying to acheive: I'm aiming to get a bunch of textured cubes on the screen, and for the user to be able to pick them up and move them around, using the mouse. I've got the cubes (well, squares at the moment), and I can get input from the mouse so that when the mouse moves the camera moves. However, in order for the user to pick up a specific cube, I need to know which one the mouse is over at that point in time, therefore I need to get the screen coordinates of the mouse. All I seem to be able to get at the moment is the change in x and y of the mouse since the last poll for input. If anyone can tell me how to do that that'd be great! I've read stuff about getting th ...Show All

  • Visual Studio 2008 (Pre-release) WPF table selection

    Hello, I currently have a Table inside of a FlowDocument (which is in a FlowDocumentScrollviewer). Each of my cells contain a blockUIContainer, and a textblock, like so: <TableCell> <BlockUIContainer> <TextBlock>Cell1</TextBlock> </BlockUIContainer> </TableCell> My question is in regards to the built-in selection capability of the flowdocument. When I drag select multiple cells on this table, is it the tablecells, the textblocks, or just the text that is being selected inside of the flowdocument What I'd like to do in my app is have the user be able to select any number of cells in the table, and change the styles on them, such as background color and font, but I a ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Question: 2D development for both widescreen and standard on 360

    If you want a 2D game to run on 360 for both widescreen and standard TV sets, would the easiest solution be to 'center' your game to fit a standard TV and have verticle bars on either side for people using widescreen What resolution should you develop your game in so it doesn't end up being stretched when running on a 360 Thank You. The best way to handle widescreen really depends on your game. You could write it for a standard 4/3 aspect ratio, and then put bars down the side when running in widescreen. You could write it for a widescreen 16/9 aspect ratio, and then put bars along the top and bottom when running on a legacy TV. Or if the game design allows, you could make it adjust to work on either shape of display ...Show All

  • .NET Development unmanaged non-COM based MFC C++ based DLLs in C# code

    I want some method to use unmanaged non-COM based MFC C++ based DLLs in C# code. I don’t just want to call a few methods from it using PInvoke, but want to use Observer pattern between unmanaged Subject & managed C# listeners. Please provide some pointers on this. Regards Pradeep You can't really. You can only call unmanaged C methods (not class methods) or use COM to work with class-style objects. You can not create an interact with C++ classes directly. Now someone will probably tell you that you can call class methods through P/Invoke and they'd be right but you have to do the following: 1) Create a global function in unmanaged code to create an instance of the unmanage ...Show All

©2008 Software Development Network