langev's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Handling Save Files in XNA
has anyone written any tutorials on save files for XNA I'm wondering what the save structure is, or if its possible to specify your own structure, and how we access this data. I've look at the storage overview, but its using FileStream, and I was wondering if it was possible to use XML formatted documents instead of a byte stream. Does anyone have any ideas on how to do this, or if this can be accomplished I need to update this tutorial after doing some more examination as there's some problems and it's incomplete, but it might be useful, especially if you're looking to make your game compatible with both PC and 360. ...Show All
Software Development for Windows Vista WorkflowRoleCollection and DependencyProperty
Dear all, I want to create an activity with a DependencyProperty with type of WorkflowRoleCollection. So, I have written the following code: public static DependencyProperty RolesProperty = DependencyProperty.Register("Roles", typeof(WorkflowRoleCollection), typeof(Workflow2)); [Browsable(true)] [RefreshProperties(RefreshProperties.All)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] public WorkflowRoleCollection Roles { get { return ((WorkflowRoleCollection)(base.GetValue(Workflow2.RolesProperty))); } set { base.SetValue(Workflow2.RolesProperty, value); } } But, when I use it in the designer and click on the "Add" button in the editor, I have an exception: "Cannot create an instanc ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Designer view
I see some examples and/or videos on the net about using the design view of a game to just drag & drop previously created game components into. When I create a new Windows Game, I do not get a designer in my solution explorer. How are they adding a designer to an xna game Also, are there any links to tutorials on how to create a game component waheyluggage wrote: I get this too. I also have Visual Studio 2005 so thought maybe it was a limitation in the Express Edition - trouble is when I try to load a project into VS2005 it just complains about it not being compatible. Yep, there's currently no support for VS2005. Just C# Express. ...Show All
Windows Forms Changes made in designer not propogating to code
My project seems to have gotten into a state where the designer is no longer in sync with the code behind it.. The first thing I noticed, is I dragged a new control onto the form, set the properties, and then went to use it in my code and I got the 'is not declared' message so I checked the formname.designer.vb and there was no declaration for the control I had dragged onto the form, but I can still change properties and such in the designer .. However, when I do a build it disappears from the designer. Then I noticed that if I rename a button, it doesn't change the name in the code, and the rename goes away if i save / exit / restart .. Or if I do a build .. If I start a new project I don't have this problem, but I'd prefer not to h ...Show All
Microsoft ISV Community Center Forums paste into next blank column
hi.. i need a VBA code that can paste data column by column.. i have the code as below: If CheckBox1.Value = True Then Sheet7.Range("Time").Copy Destination:=Sheet4.Range("A2") End If If CheckBox2.Value = True Then Sheet7.Range("Input").Copy Destination:=Sheet4.Range("B2") End If If CheckBox3.Value = True Then Sheet7.Range("Output").Copy Destination:=Sheet4.Range("C2") End If If CheckBox4.Value = True Then Sheet7.Range("Cycle").Copy Destination:=Sheet4.Range("D2") End If this is an ideal case if i click all the check boxes and as a result the values will be pasted in sheet4 side by side. but what if i just check check boxes 1 and 3, how should i paste them next ...Show All
Windows Live Developer Forums using the 3d activex in winforms
i am currently trying to find out how to use the 3d activex control in my winform app, anybody got it yet David Buerer has an example app on his blog http://heptazane.spaces.live.com/ ...Show All
Smart Device Development TextBox and MouseDown
Hi all,please help me. I have TextBox and I need catch the event MouseDown becouse I use the touch screen. Thank you very much. Best Regards. Jindra StriderIRL is correct same event fire either you are using touch screen or any thing other. StriderIRL wrote: does the Mousedown event not fire textbox1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles textbox1.MouseDown has the textbox been declared with events Friend WithEvents textbox1 As System.Windows.Forms.TextBox ...Show All
Software Development for Windows Vista Multiple implementations of an interface
Hi, Here is my situation. 1.) I have an internal interface with an [ExternalDataExchange] attribute 2.) I have two classes which implement my interface 3.) I have a workflow with a CallExternalMethodActivity where I hook in the interface type and method name 4.) 1,2 and 3 are all in the same namespace My problem is that when I run the app the workflow seems to hook into the methods of the first class which implements the interface but does not notice the second. How does WWF deal with this case What is the correct way to implement something like this Thanks, Nathan Nathan, You can have separate implementations of the interface, but you can only add a single instance to the runtime at once. For example, you ...Show All
Windows Search Technologies When WDS 3.0 beta and 2007 Office Issue
I installed 2007 Office and received a message that I would need to install WDS 3.0 Beta. I installed it and rebooted, but all of the WDS Icons, etc. are gone. I no longer have anyway to access the search. There are no icons, no search bar, nothing, so I have no way to get at the search functionality. Hello dnr, It sounds like Office pointed you to the old WDS 3.0 beta preview. The WDS preview had no user interface with the exception of the serach box in Outlook 2007. I would suggest you uninstall your current version of WDS and install WDS 3.0 beta 2. This version comes with a full user interface. You can find the download here: http://www.microsoft.com/downloads/details.aspx familyid=0C1AE7C6-C548-4184-B575-7AB3913547D2&di ...Show All
Visual Basic from list of tables to combobox: what the best way of doing it?
Hi, From a lot of help from this foum and the Net, I have managed to get a list of tables from my access database with these line of codes: Dim vrn As String () = New String () { Nothing , Nothing , Nothing , "TABLE" } Dim schemaTable As DataTable = objConnection.GetSchema( "Tables" , vrn) DataGridView1.DataSource = schemaTable Using GetSchemOledb also worked fine but I think GetSchema needs much less typing . Since GetSchema returns a DataTable, is it possible to put the list of tables in a combobox if this is possible can somebody reccomend the best way to do it I think it involves getting the names from the TABLE_NAME column which have TABLE as property in the TABLE_TYPE column. Any hint/ ...Show All
Visual Basic PrintForm Forum only!!
I've no backexperience on VB6 but more than three years of experience on .net. I'm trying now to play with the printer. PrintForm look to be a very useful utility; only few programming examples are missing. Pls open a specific forum per Power Pack tool. Hi all: I want printing form this printfomr1 component but no print quickly to my paper. my paper size is width:8cmxheigh:14 or label size. whhat do you do for print this paper or label my printer is HP laserjet 1320 thanks for resolve this peoblem ...Show All
Visual Studio Express Editions web service error
Public Function HelloWorld() As String Dim R As String R = "SELECT * FROM PanHotelRate" Return R End Function i wanna return information from my database wif the above codes but there's an error i tink i noe the error it is this: Dim R As String i noe i should not declare it as String but i donnoe any other alternative what should i declare R as Hi, I've looked at that and it seems that all the function does is return the srting that is inside the function. If you want to return the data stored in the database you'll need a dataset and a tableadapter, thats what I used. Dim var as DataSet.(row here)= DataSet.(tablename).Select(query ...Show All
Visual Studio Team System TF53010 error after SP1 install
I installed this first http://www.microsoft.com/downloads/details.aspx FamilyID=c18c756e-8f80-4987-b3bf-600068a9e3c4&DisplayLang=en then installed this http://www.microsoft.com/downloads/details.aspx familyid=A9AB638C-04D2-4AEE-8AE8-9F00DD454AB8&displaylang=en everything installed ok. Reboot. Went into VS2005 and get several 503: TF53010 Service Unavailable errors. The event log is shown below. I read one post but all the TFS databases are in multi user mode and there arent any IP restrictions in IIS. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1026766&SiteID=1 I can access work items, documents, run reports but cant access source control - help! ! ! TF53010: An unexpected condition has occurred in a Team Foundatio ...Show All
Windows Live Developer Forums Auto select all
Is it possible to have, when signed in, all contacts selected Hi Kratpalm, The Contacts Control does not prevent the end user from sending spam or exporting their entire address book to another system, but then it also does not make these actions a simple one click operation. The end user can do it, with a small amount of effort. Bulk operations are not the primary focus of the contacts control. The scenario that we're most concerned about is a malicious or deceptive web site using the contacts control to trick a naieve end user into spamming everyone they know. Plaxo, for example, was burned by this a few months ago. A third party web site using Plaxo behind the scenes did not make it clear what wo ...Show All
Visual C++ Any interest in building an FAQ?
I'd like to propose that we put together an FAQ to address some of the issues that pop up regularly here. It seems like we have an awful lot of questions like: - "How can I call my C#/VB/FORTRAN routines from C++ " - "How do I compile and run my project " - "I've included the correct header files, so why am I getting LNK2019 errors " - "How on earth am I supposed to use destructors/finalizers/IDisposable " And of course these are all valid questions! But since they are common questions which tend to be answered in the same way from one thread to the next, I think it would be very helpful to have all (or at least most) of the common answers in one single place. This would be helpful both to aske ...Show All
