thomas woelfer's Q&A profile
Windows Forms Form-like Control Not Visible
I am trying to make a custom control that function similar to a Form, it displays and things can be added to it. The problem I'm having is that the Created property is false so that my program exits its main loop prematurely. Could I have any information on how the created property is set so that I might be able to make my control visibl ...Show All
Windows Forms CLR Relationship Objects DataSource
Hello! I like to use typed objects in datasources like Array, List<>, IEnumerable<> and works properly. But, now I have a class with a relation to another collection of objects. For example: class Person { (...) public Car[] Cars {get;} } (...) Person[] persons = GetPersons(); myReport.DataSources.Add(new ReportDataSource("Persons", persons)); So, I have a collection of persons to use as datasource, but each person have a collection of cars. I am triyng to create a report but I can't to set report controls to list de person cars. I'd like something as: ----------------------------------- List o ...Show All
Visual Studio Express Editions Using old dll, int* as function parameter
Hello, I’m using an old .dll, and the problem is, that the Function ncdGetApplConfig needs integer adresses. But it’s not possible to use the "&" Operator within managed code... public : int m_channel; public : unsigned int m_hwType; public : int m_hwIndex ; ... m_vErr=ncdGetApplConfig( "MotorControl" , // Application Name 0, // Application channel 0 or 1 &m_hwType, // HWTYPE_xxxx &m_hwIndex, // Index of hardware (slot) (0,1,...) &m_channel); // Index of channel (connector)(0,1,...) ... ...Show All
Visual Studio Team System Bugs, test and requirements traceability
Hi, I'm using VSTS (with both Agile and for CMMi process templates) working primarily on Testing. I have some doubts about traceability of the differents artifacts (requirements, Test Cases and bugs): How can I set this traceability How can I "view" this traceability I started creating a Requirement, a Manual Test and a Bug (created from a failing test execution): I tried linking the Requirement to the Manual Test case using the "versionned item" link type (linking to the last version and to the change set) from the requirement (because I couldn't find a way to link the requirement from the Test). The probl ...Show All
SQL Server Snaking reports
Hi, I have a report that has 2 simple columns. I want to persent this as a "snaking" report - i.e. like a newspaper. I have added a second column in the report properties, but I can't get it to work. It occasionally works (no rhyme nor reason to it) in VS2005, but never works when I deploy it to the server. Any ideas anyone ...Show All
.NET Development SMTP Problem
Hi folks I am new to the microsoft forums but have been reading them and realise how good you people are at programming. I have been crying out for help with numerous things and even tried yahoo chat.....what a disaster. Anyway I am having a problem with sending emails through the createuserwizard control in .net 2005. When I run the application and create a new user through the wizard control the application is just hanging. It seems as if its stuck on the email settings. If i take the mail settings out of the webconfig file it doesnt hang anymore, just brings up an error saying I have no email sending software or something to that ...Show All
SQL Server Task Upgrades, Update and CanUpdate methods.. Why?
I am writing a new version of a task with and additional property, and wish to support upgrades between the versions. I have implemented the CanUpdate and Update methods, and update the Xml for the new property. The problem I then have it LoadFromXml gets called which promptly fails since it is still using the old version of the Xml. Have I misunderstood the point of the Update mechanism It would seem to me that I’d better off ignoring Update and implementing the checks defaulting my new property within LoadXml. The new version of SaveToXml would sort out the upgrade when saved again. Reviving a thread from the dead. Does anyone hav ...Show All
.NET Development Types of JIT Compiler
Hi all, I heard that there are different types of JIT compilers available.Is it so If YES..What are the different types of JIT compilers available right now Thanks, Suresh. Hi.. thanks.. may i get more details regarding the functions of JIT compilers.. ...Show All
Windows Forms drag-and-drop,resize,and moving controls in runtime
Hi, I am working on a windows application where the user should be able to move,resize and drag and drop a control (a picture box in my case). I am pretty much ok with the moving and drag and drop except that I cant differentiate between MouseDown and Click events, because everytime I press the mouse button on the control the MouseDown event fire ...Show All
Visual Studio Express Editions nothing after if statement works
I have made a blank windows form and added a timer with this code " private : System::Void timer1_Tick(System::Object^ sender, System::EventArgs^ e) { if (y==1) MessageBoxA(hWnd, "hi" , "cool" ,MB_OK); y=y+1; } " I declared static int y earlier and I just keep getting never-ending messageboxes why doesn't my compiler process the y=y+1 here " public : static int y; static int sketchpad; static int news; HWND hWnd; Form1( void ) { InitializeComponent(); y=0; // //TODO: Add the constructor code here ...Show All
Visual Studio 2008 (Pre-release) how to end process
hi is it possible to open windows media player by using c# programatically Means when i click on a button i would like to open windows media player how can do this Thanx-Nagu Using C#, you can do that with the class Process and the static method Start: Process.Start("wmplayer.exe", "Location of your file"); Bye ...Show All
.NET Development DataSet.AcceptChanges() doesn't accept all the changes!
Hi, When I do a dataset.AcceptChanges there's always one table that I must additionally accept the changes befora all my changes are accepted. dataset.AcceptChanges() dataset.tableX.AcceptChanges() There are no errors in the dataset. Does anybody know why Thanks, Filip I understand that after invoking DataSet.AcceptChanges90 you are still seeing atleast 1 table which has 1 or more changes. We tried to reproduce this at our end but were unable to do so. DataTable.AcceptChanges() accepts changes on rows that exist in its Rows collection at the begining of AcceptChanges. i.e. event hand ...Show All
SQL Server Problem activating a server on home PC
Hi I am new to SQL / SQL Server and have downloaded SQL Server 2005 Express. I also appear to have an existing SQL Server program on my PC which includes Query Analyzer. I wish to use Query Analyzer. Is this compatible with SQL Express When I try to open Query Analyzer using Windows Authentication I get the error msg: 'Unable to connect to server HOME-DHGV3DIC8N: Server: msg 17, level 16, state 1 [Microsoft] [ODBC SQL Server Driver] [Shared memory] SQL Server does not exist or access denied.' I am guessing that I need to create some sort of server which I can use to run SQL server. Could anyone let me know how I do th ...Show All
Software Development for Windows Vista Questions on workflow types
Hello, I have a number of questions about workflow types. As I understand it, there are two workflow types available out-of-the-box with WWF: sequential and state machine. With sequential workflows, I believe the flow is generally top down from the initial activity to a final activity. The path is well defined; activities like ‘While’ allow the workflow to repeat contained activities and the ‘IfElse’ activity allows the workflow author to conditionally execute branches of related activities, which are embedded in the container ‘IfElse’ activity. In contrast, the state machine workflow is much more adh ...Show All
SQL Server HELP: Failed to create the task. (Microsoft Visual Studio)
I created my first SSIS project in BI Dev Studio but get the following error when trying to add a data flow task to the Control container: ================================== Failed to create the task. (Microsoft Visual Studio) =================================== Value does not fall within the expected range. (Microsoft.SqlServer.ManagedDTS) ------------------------------ Program Location: at Microsoft.SqlServer.Dts.Runtime.Executables.Add(String moniker) at Microsoft.DataTransformationServices.Design.DtsBasePackageDesigner.CreateExecutable(String moniker, IDTSSequence container, String name) Any advice greatly ...Show All
