Web Explorer's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. animating textures
Hi there - this is probably a very simple problem but I've not stumbled over the answer yet. My Art Monkey has just sent me a model with an animated gif file attached. XNA complains about this texture so presumably gifs are not yet supported. Is there a way round this For instance a simple way to apply a texture to a model, or change the UV coordinates a model is using, so I could have a big bitmap with the necessary graphics on it and just change the UV Or even some way to load a bitmap into another structure, perhaps a Texture3D, which I've just noticed, and apply it to a model. Apologies if this is painfully simple or has been covered elsewhere. Cheers Robin. Could anybody post a small, ...Show All
Visual Studio 2008 (Pre-release) Databinding, Templates
Hi, I'm experimenting with WPF and Cider, and I have a couple of comments regarding things that I miss: - Databinding: I'd be nice to have some kind of wizard to create ListViews/GridViews, kind of what Sparkle has. Of course I can write directly the xaml code, but I think it will save time, even if the default code will be modified later. - Templates and Styles: I'm thinking features like we have when we design an ASP.NET app., for example in the templates of a gridview. Is there any chance that something like that will be in a next release of Cider I think that those things will we helpfull, because right now I feel that I'm writing too much xaml by hand, although this way I learn more about WPF. Thanks, Andres. ...Show All
Visual C# tool to enumerate all referenced classes
Does anyone know of a tool that will parse C# sources and report a list of all .NET Framework classes that are referenced I don't think there's a specific way to find references for a given C# file (depends on project settings partially). But, you can reflect an assembly and use the Assembly.GetReferencedAssemblies() method to find out what assemblies are refenced by a given assembly. For example: Assembly assembly = Assembly .ReflectionOnlyLoad( "someAssembly" ); if (assembly != null ) { AssemblyName [] referencedAssemblyNames = assembly.GetReferencedAssemblies(); foreach ( AssemblyName referencedAssemblyName in referencedAssemblyNames) { System.Diagnostics. Debug .WriteLine(referencedAs ...Show All
Windows Forms BackgroundWorker problems
Hi, I've written a C# WinForms app to convert content in Word docs, via some legacy Macros, into XML content for InfoPath. All was behaving as it should, using a backgroundWorker object to do the long running tasks, and the main thread to update a status message on the form. For some unknown reason, after multiple, but seemingly insignificant, modifications, I now find that my _DoWork routine doesn't seem to run right through. When I debug it, I see the new thread being created, and can step into the _DoWork code, but when it hits the first line: BackgroundWorker worker = sender as BackgroundWorker ; It hangs for a cpl secs, and then starts executing code which is after my .RunWorkerAsync call. When I switch to the backgr ...Show All
Visual Studio Express Editions How can I have 2 instances of Form2 running?
Visual Basic 2005: I would like to have 2 instances of Form2 running. Then, I want to have Form1 be able to .ShowDialog() one or the other. Then, I need to be able to end and restart them in order to initialize all variables. How do I do that You can create multiple instances of a form no problem. Forms are just Objects or instances of classes. So Dim x as new Form2 Dim y as new Form2 Has created 2 instances of form2. Then you can use the showdialog method on either one of them to display which one you want. This will display the appropriate instance of the form in a modal manner. So your calling code will not continue until this form is closed. I'm not sure of what y ...Show All
Visual Studio 2008 (Pre-release) WCF PeerChannel vs Vista's "People Near Me"
So I'm sitting at home playing with Vista preRC1 (5536). I notice that "People Near Me" is still there, so I sign in and then go take a look at the API for it. Its completely unmanaged, low-level, Windows API type stuff, but the methods are pretty high level. You can sign in, you can enumerate who is logged into the network, and so on. Windows Meeting Space (Vista) runs on the "People Near Me" (Windows Collaboration API) functionality, and its pretty similar to something I want to accomplish. My question is this: Am I better off using default PNRP on Vista using WCF (what I'm familiar with) , or should I be using the "People Near Me" functionality If the People Near Me functionality is using PNRP, then should ...Show All
Visual Studio Express Editions Can't Compile anything...
Hi, I have installed Visual C++ Express 2005, and I have installed the PSDK. I have followed all the guidelines on the website to configure VC++ for building Win32 Applications. However, when I try to compile any Win32 Project that I have made, It always gives this error: c:\program files\microsoft platform sdk for windows server 2003 r2\include\stddef.h(6) : fatal error C1021: invalid preprocessor command 'include_next' Something went terribly wrong. stddef.h doesn't belong in the SDK include folder, it belongs in the vc\include sub-folder. More-over, it shouldn't contain anything like "include_next". ...Show All
.NET Development Retrieving custom attributes of the assembly at designtime and runtime
Hi. I'm making a user control (lets say MyUserControl), that uses license provider and license classes to determine if developer has acquired a license key for the control. The user control is in the separate project. I like to add my custom control to a Form1. In the project that defines and shows Form1, I add a custom attribute to the AssemblyInfo.cs, that defines the lisenceKey: [assembly: MyUserControlLicenseKey("12345")] How can I retrieve the lisence key from AssemblyInfo at both design and runtime I have tried to retrieve it by using the instance parameter of the GetLicense method of the license provider, but the parameter always has a value null . public override License GetLicense(LicenseContext context, Type type, objec ...Show All
Visual Basic Upgrade VBA StrConv Byte Array vbUnicode ToString
I'm new to msdn forums and hope that this question is posted in the correct group. How can I upgrade the following VBA code to VB.NET StrConv(ByteArray, vbUnicode) Thanks, Simon The above post didn't do it for me. After some research, I found the exact equivalent of vb6's StrConv(ByteArray, vbUnicode) was this in vb.net System.Text.Encoding.GetEncoding(1252).GetString(ByteArray) ...Show All
Visual Basic on load submit
hi friend, i had created a application that has webbrowser at run time the application retrieve the data the ms access in vb.net and then covert into html format and after coverting the the application has html file with data that every field in filled without the interaction of the user that after load the data present in the form has to post automatically and i need the vb script to be written in vb.net nothing ma i need vb script code for when the page loads the field in the form will fill automatically now i have to submit the information with out the user interaction so i need vb script on page load submit ...Show All
Visual Studio Alternate Row color, for ALL rows
Hey all. I use this function , =IIF(RowNumber(Nothing) Mod 2,"White","LightGreen") to alternate the row colors. This isnt exactly what I want however. I want every single row to alternate. I have three groups, and one detail row. I want each row, to alternate, and when I click a on the + thing to expand, I want the grid to do whatever it has to do to reajust the alternation so that every other row is colored LightGreen. is this possible Readjusting based on the current toggle state is not supported. Btw, the expression you are using will only work fine in the case of list details or table detail rows, but not for group headers/footers or in a matrix. Check out the following b ...Show All
Visual Studio Exception from HRESULT: 0x8004032D - Help Documentation missing from VB Express
After installation of VB Express, .Net Framework, MSDN Express Library and SQL Express, there is no local help whatsoever. Searching online help works perfectly. Microsoft Document Explorer loads if help is chosen from within VB Express but is blank and just states 'Currently there are no search results to display'. If you type in an item and click 'Search' the following error appears ' Exception from HRESULT: 0x8004032D'. I have tried a complete uninstall and reinstall and have also tried repairing each item. None of this makes any difference, there is still no local help functionality whatsoever. Any ideas Hello joss1974 and Chr1s_W3ndt - can you provide a little detail about how you installed these Exp ...Show All
Visual Studio Express Editions Get text from a Textbox.
This is going to sound like a very stupid problem. I'm trying to get a string out of the textbox (using Windows.forms) then parse that string into a double. double payment = Double .Parse(ConsoleApplication1. Program .Monthly.Text. ) I cant seem to get it to work.. and what I get is that the string I'm trying to parse is being passed in the inccorect format. Help If you assigning the value from within the form that contains the textBox, all you need to do is the following (textBox1 is the name of your textbox): double payment = Double .Parse( this .textBox1.Text); However, the fact that you are using ConsoleApplication1 makes me beleive this is not a windows application. If it is a cons ...Show All
Visual Studio Express Editions how can i program this! using vb?
1.) ********** ********* ******** ******* ****** ***** **** *** ** * 2.) * ** *** **** ***** ****** ******* ******** ********* ********** I already do that! thanks! like this structure * ** *** **** ***** and ***** **** *** ** * but i don't know! what to do this structure! ***** **** *** ** * and * ** *** **** ***** ...Show All
Visual Basic Howto with textbox and variable
I am loading a large textfile into a variable and into a invisible textbox. I have values loaded from this text box into other textboxes. I wait it so if someone edits something in one of the boxes to change it in the invisible textbox and/or the variable. I want to know I can search line by line for certain text in either the textbox or variable. This should be a better piece of code for the search. It uses the lines collection and see if it contains a string. This will find the first Item. You could continue iterating through all of them to find all lines with the match in, which would be a simple change. Private Sub BtnSearchtextboxToDetermineLine(ByVal sender As System.Object, ByVal e As Sys ...Show All
