el_d's Q&A profile
Visual Studio Express Editions Instance of Class and context
Hi, I have a project that contains the following: Form1------------------Form AccountsForm-------Form Search-----------------Form AccUpdate-----------Class I have created the following instances of the above AccountsForm in Form1 and called it ObjAccountsForm Search in the AccountsForm and called it ObjSearch AccUpdate in Search and called it ObjAccUpdate My question is When I need to reference, forexample, the instance of the AccUpdate Class form within my project I am having to type the full context to its instance Form1.objAccountsForm.objsearch.ObjAccUpdate. somepublic property in this Class My project contains many more Class's, and I have had to draw a table to keep track of where each instance of a ...Show All
Game Technologies: DirectX, XNA, XACT, etc. C# and how it works with XNA
Howdy guys and gals, I just downloaded the Visual Studio 2005 and the XNA thingy. Can't recall which one. I've never done anykind of C programming before. I'm wondering if say I found a tutorial or book on how to use C# for games. Would the examples work in the XNA program Thanks for any feedback. XNA is just a Framework focus to develop games for Windows XP (and higher OS like Vista) and the XBox 360 console. Is designed to work with C# Express edition only (for now, i guess). A very good book to start is "Beginning C# Game Programming", althoug is DirectX oriented is a wonderfull book to start, you'll learn about C#, game development and how to work with a framework. Then, when you just start ...Show All
Software Development for Windows Vista activity being currently executed
I have the following questions: 1 . How can I get reference to the "current" state in a running workflow a) Let's say that I have a state-machine workflow. I saw in HOL execrices #4 that StateMachineInstance class is used as a placeholder for running state machine workflow. My concern is about the implementation of the CurrentState property, which uses FindActivityByQualifiedId method, which recursively compares textual name with passed-in ID (stored in currentStateQualifiedId) Maybe it Woudld be more optimal instead of remembering textual ID of current activity to remember current activity itself (instead [String currentStateQualifiedId] => [Activity currentState] ) Are there any other options to get current ac ...Show All
SQL Server Subscriptions invalid after SP applied
Hello, I finished applying SP 1 to sql2k5. Under the replication monitor all of the subscriptions now look like [].databasename when they were originally [subscriber1].databasename. Under Mgmt Studio I see the subscriptions correctly. When I try and replicate I get the message "The subscription to publication 'pub_databasename has expired or does not exist." I have tried to reinitialize the subscriptions but it doesn't work. Is there a way to solve this without have to drop the subscriptions and add them again as I do not want to lose the changes that were made on the subscriptions. We are using merge replication. Thanks. John Greg, Sorry for the late response but I just got the ...Show All
SQL Server Split the file
my ssis package downloades the text file from Ftp. iT downloades for ex 5 files. I want to split the file to smaller file after downloades. If the size of file is more then 600 mB then I want to split it into 6 files. please suggest if any task in SSIS can perform this or any other way. Two ways I can see how to do this. 1 - Use a Script Task and the System.IO namespace stream objects to read the file and write out into several files. Change files based data size, rows or whatever. 2 - Use a Data Flow, with Flat File source. Then split the flow into several outputs and direct to seperate flat file destinations. There are two ways to do the split that I can think of. You could write a Scrip ...Show All
Visual Basic Exceptioon error when trying to set ComboBox.SelectedIndex
Hello All, First, just so you know, I am not a real programmer and have never programmed in visual anything before and am playing with VB 2005 Express Edition. In the Sub below I am simply trying to change PtComboBox.SelectedIndex when the RunComboBox selection is changed, but am getting the exception error shown in the comments in the sub. In the Form1_Load event handler I have this line. PtComboBox.SelectedIndex = My .Settings.PreTrig and it seems to work fine. I can change the value of My.settings.PreTrig and the box is set properly. There are 4 items in PtComboBox and there are only 2 items in RunComboBox. I sure hope someone can show me what I'm missing here because this makes no sense. Private Sub RunC ...Show All
SQL Server Integrating data from two Tables into one
Hi all, In case I have two tables. In them there is data and I want to integrate all this data into one table. that is to say Table A and Table B has data (Both A and B are from the same database) I want to integrate all this data into Table c. How do i go about this Regards, Ronaldlee The "other way" I spoke of is to do the joining in a script component or custom component that you build yourself. Those options mean writing code! -Jamie ...Show All
Smart Device Development Smart Device Programming Working example
Hi, I try to write a simple application with winform and web service for smart Device ( Pocket PC 2003 SE) in VS2005. In the toolbox, I could not find any object such as textbox, button or label controls at all. I downloaded some examples application for smart device in Microsoft website and none of them are working ( may be I do not know how to configure to make those work). Do you have any simple working example like "Hello Wolrd" for me to take a look Regards, JDang I did the same thing but the tool box is empty. I tried on other machines then I can see some controls on the toolbox. Perhaps, I have to reinstall Visual Studio 2005 and see if the problem goes away. J ...Show All
Visual Studio Team System CA1062 Warnings when using a Guard class
I have created a Guard class, as I have seen in many of P&P deliverables, that for example have a method called ArgumentNotNull. I use this class to validate the parameters passed to my methods. When I turn on code analysis in VS 2005 I get CA1062 warning me that I haven't validate the parameter. What is the recommended solution for this problem Is there any way to set an attribute on my ArgumentNotNull method or Guard class to indicate that they are doing the validation or do I have to use SupressMessage Is it recommended to set the SupressMessage for the assembly or for each method in that case Thanks in advance, Eric Unfortunately, this rule does not do inter-method analysis, so it does not understand that your ArgumentN ...Show All
Visual C# Passing Parameter to method and Return type
Hello All, Good Day! I am in the process of studying C#. I made a method with paramters and with out parameters. What is the key difference between passing and not passing parameters to a method. Also, I made a Void method and return type method. What makes the difference between these both The book that I am using doesnt really explain why we need to do that. Experienced peoples, please share your views with real time examples. Thanks, John a void is a method that has no return value, it just does work inside that method and thats it, does not give anything back. Return method: int theValue = this.GetValue(); private int GetValue() { return 1; } ...Show All
Visual C# Immediate window in C# VS2005 - how to loop through collection
I've got an error during loading data into DataTable - "Constraint violation...Relax constraints.". I need to loop in immediate window to find DataRow that HasError. I tried: foreach(DataRow dr in dtab) if(dr.HasErrors) Console.WriteLine(dr["ID"]); but it failed: Invalid expression term 'foreach'. Is there any way to achive it Billberry Use conditional breakpoints. http://msdn2.microsoft.com/en-gb/library/7sye83ce.aspx ...Show All
Game Technologies: DirectX, XNA, XACT, etc. TorqueXNA
I had a look at the XNA version of the Torque 2d engine and noticed that it converted 4mb worth of png files into over 60mb of xna files; Is this a Torque issue or xna as its a massive increase and would make releasing any games online a virtual impossibility. I don't know why it increases that much, but as for 60MB of files - I download that without even thinking about it. It would take what, 5-10 minutes or so (depending on the server). Not a problem. ...Show All
SharePoint Products and Technologies List of All SharePoint Sites (Site Directory not enough)
I need to get a report of all sites created within our SharePoint site. I tried the Site Directory, but I know there are some missing here, because you have the option of *not* including it in the directory when you create it. How do I get to this information Thanks, Jen Look at the stsadm enumsites command in the SharePoint bin directory, it will give you a list of all the site collections and owners. stsadm -o enumsites -url http://webappname ...Show All
Visual Basic Opening a form based upon combo box list selection?
Hi, I am trying to load a report form. There are four reports and I have stored them in a table because there may be more later. I want to open the report that the user selects from a drop down list. Once they select, I know the "indexID" and can lookup the report in the table. My question is how do I "show" "frmNameFromTable". For example, indexID "1" is "frm12MoSpread". I obtain the "frm12MoSpread" from the table with a sql statement and I want to be able to do something like this (in psuedo code): dim frm as New Form sqlResult = "frm12MoSpread" ' comment: convert string name into form object frm (new instance) = my.frm12MoSpread frm.show Thank you for ...Show All
Windows Live Developer Forums How to extract Lat and Long values from map.GetCenter();
Hi, I need to extract lat and long from map.GetCenter(); as separate values but I'm not sure exactly how, or if it is possible at all. The following returns "undefined": var ctr = map.GetCenter(); var lt= ctr.latitude; alert (lt); As well, is there any way to identify lat and long values of the corners of the map I need at least one long value... Any suggestions much appreciated. ..and for the corners of the map, use map.GetMapView(). It returns a VELatLongRectangle object, which has 2 properties: TopLeftLatLong and BottomRightLatLong. ...Show All
