ruleDWorld's Q&A profile
Visual Basic containing control not a valid container
I am getting an error while adding the frm to the project. The same is working fine in another folder with vb project. When I try to open only this particular from in a new project , I am not able to do so. Please help. Johnson., If the form is valid and working in another project Project -> Add Existing Item Ensure that vb code files is your filter. Select <Form>.designer.vb, <Form>.resx, <Form>.vb Where <Form> is the name of the form you want to add. All 3 files should reside in the same folder. This should add all three files to you project and the solution explorer will display the correct icon that the form has been added. This separation of the form into 3 files occurs ...Show All
Game Technologies: DirectX, XNA, XACT, etc. GraphicsStream.Write not writing as expected
I have a method where I write a 2d array into a texture. It is used for running some ordinary calculations on the gpu. private void writeToInputTexture( Vector4 [,] inputData, Texture inputTexture) { GraphicsStream graphicsStream = inputTexture.LockRectangle(0, LockFlags .None); unsafe { Vector4 * textureData = ( Vector4 *)graphicsStream.InternalDataPointer; for ( int y = 0; y < dataHeight; y++) for ( int x = 0; x < dataWidth; x++) textureData[x + y * dataWidth] = inputData[x, y]; } inputTexture.UnlockRectangle(0); } That works as expected. However, if i try to use the graphics sctream write as below, it does not do as expected. The input is not written corrently into the ...Show All
Windows Forms Detect if IE is running
How do I detect if IE (or any program) is running on the target machine from a Visual Studio Setup Project I want to check this as a launch condition prior to starting the setup. Thanks. Ideally, I'd like to check before the installer loads as a launch condition, but checking before the actual installation begins will probably work. Thanks for your help. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Xbox Live Arcade
Do any of you reckon that it's possible to make a game using the XNA express framework, and then get it published (by MS or otherwise). I think, looking at the standard of games on Xbox Live Arcade, that I can make a much better game than anything there. I'm guessing the XNA Professional will be reasonably priced ... $100 give or take. I read something about having to subscribe to some annual "service" for roughly the same amount. Not sure if that gets you access to XNA Professional, or just the rights to even think about publishing. Or both ;) The tough part will be Cert. Full TRCs I imagine, which are non-trivial (or is it TCRs can't recall which belongs to Msft and which to ... other .. ...Show All
.NET Development HOW TO DELETE RECORD IN A DATABASE ?
Hi, I have question to delete record in database. After clicked delete button I was able remove that row from view in datagridview but this record still exist in database. Here my coding : private void button3_Click( object sender, EventArgs e) { int Z; Z = dataGridView1.CurrentCell.RowIndex; maintenanceDataSet.MTN_Request.Rows .Delete(); maintenanceDataSet.MTN_Request.AcceptChanges(); } Thanks for your help. Joseph Please, get in the habit of using Parameters with your database queries. They make coding easier, in the longrun, because they will handle all the formatting. Furthermore, they will handle strings in such a way as to prevent SQL injection hacker attacks when you are wri ...Show All
Gadgets Gadget behavior on spaces vs live.com?
I am still working on my first gadget and noticed things work really different on live.com compared to spaces. If you want to load what I have so far and see what I mean, the manifest can be found at http://www.incendy.com/MyRSS/rssgadget3.xml Basically the css is very different and also the function that rebuilds the list does not really work on Spaces and you have to manually refresh the page to get the new feed. Just curious if others have experienced this and have advice on what I should be doing differently. The function getfeed gets called but the content seems to be cached on Spaces where it works fine on live.com! Todd0sI am trying to use your example to parse the rss from flickr and show it ...Show All
Visual C++ Mixed mode C++/CLI idiom
In my C++/CLI components, for each component I create a ref CLR class and a C++ class, the latter which does most of the internal processing and interfaces to the C++ standard library and 3rd party libraries such as Boost. I do this so I can use C++ libraries in my CLR component, especially when the .Net framework does not offer all the facilities which 3rd party C++ libraries have. In order to allow the C++ class to access the properties, methods, and events of the corresponding CLR class I have a pointer to the C++ class as a private member of my CLR class and dynamically create an object of the C++ class, passing a pointer ( ^ ) to the CLR object to the constructor of the C++ class, and assign the resulting C++ object to the pointer in ...Show All
Architecture Performance issue become worse upon split out Web Applications into web server and DB server
Hi, Currenly i'm faced web applications (in web server, 2GB RAM) with performance issues upon seperated database(4GB RAM) and web application into 2 machines. Before spliting, it have performance issue where IIS need to be reset when "Server is un-available" or hanging occur. In this case I proposed to split out for better performance and hope to resolve the issue. Now, after spliting, users complaint that the responce time even worst that before. Any one have this problem before Any suggestions to help * DB server with SQL Server 2005 and SQL Server 2000 installed but i only used SQL Server 2000 and both web servers with Window Server 2003 installed together with crystal report 10. Thank you.. ...Show All
Visual C# how to return null from a constructor
say, i a m trying to do something like: class something something(streamreader){ if (wrong format or end of file) caller receives null as result else build object from what has been read in file } i tried 'return null', but it says it can not do that since a constructor is 'void', so i can not place a return sentence. i'm not sure something like this.dispose would retunr a null, since the 'dispose' may be asynchronous (or something) i have the next alternative class something blah blah somehting(string) (build object from string, check if string==null or wrong format before calling) static bool checkformat(string) check to see if string is adecuate to build somet ...Show All
Visual Basic VB Futures, VB 2005 Essential Content, Other Content From PDC '05
Hi Forum Readers - I just wanted to give you a heads up about some of the pretty exciting announcements and content coming out of PDC '05 this week, so you can share in the fun. I discuss the overall activities and Essential Content available from PDC here: http://blogs.msdn.com/pauly/archive/2005/09/12/464207.aspx I discuss the announcements of LINQ and next generation Visual Basic features here: http://blogs.msdn.com/pauly/archive/2005/09/13/464965.aspx Best, Paul Yuknewicz Visual Basic Not sure i like the idea of VB infering data types for me. Spose it ones of those things you gotta get used to. Will there be an option to turn this feature off ...Show All
Microsoft ISV Community Center Forums Word: Normal.dot template menu bar
I have programmatically modified the Normal.dot menubar (adding more dummy options), and I want to get rid of all of them, permanently, to return to the original state and appearance of Normal. dot.... How can I achieve that, please thanks Here is some general information from one of our engineers that might be helpful. Firstly, I’m not very sure how the ISV would like to reset the settings. However, to work around this problem, you must rename the Normal.dot global template. Word will re-create the template when you start the program. To rename the Normal.dot global template for Microsoft Office Word 2003, follow these steps: 1. Right-click Start and then click Explore . 2. Double-click the ...Show All
Visual Studio Team System Schema Import: Syntax Error with valid SPROC
I have a few stored procedures in our database that are getting ignored during schema import and have been logged into the "ScriptsIgnoredOnImport.sql" file. Please see below: "Syntax Error: Incorrect syntax near ,." CREATE PROCEDURE getOrders AS SELECT OrderID , OrderDate , ShippedDate FROM Orders WHERE CustomerID IN (( SELECT CustomerID FROM Customers WHERE CustomerID = 'ALFKI' ), ( SELECT CustomerID FROM Customers WHERE CustomerID = 'ANATR' ), ( SELECT CustomerID FROM Customers WHERE CustomerID = 'ANTON' )) GO Now obviously this procedure can be easily re-written to avoid using the comma-separated sub-queries, but this is merely a procedure o ...Show All
Visual Basic Backgroundworker Fundamentals
Are these background workers slow or what If you give it a simple 2-3 lines of codes, it could take a long time for it to execute. No, that's not true. The background worker will execut the code but it appears to have amensia, because the error - thread cannot run multiple tasks at the same time... which means, even though it has finished running the code, it cannot automatically dispose itself and therefore is still active until some element deactivate it. Oh, I can understand on a single core CPU, it might have to "wait" until it turn is up - but come on, on a dual core... what's the wait I don't suppose if you tell ******** to give more processing power to background services would help ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA framework for non C#
One of the great advantages of the .NET framework is that developers can work on the same project in different programming languages. As I'm reading about XNA, it seems that this will not be possible with the XNA framework. Will the only programming language that has access to the XNA framework be C# I believe Microsoft should support a VB compiler and documentation. I am a VB programmer, I have considered moving to C#, but from what I have heard there is a productivity hit. And anyway if Microsoft is going after the hobbyist market then there is no better language than VB. Alternatively Microsoft could offer XNA C# documentation specifically for beginner programmers just to get people using programming and then move them onto creati ...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
