kennm's Q&A profile
.NET Development .NET encourages poor coding?
The more I look at .NET error handling, and how to deal with it, the more frustrating it gets. Take this class for example. It has a single boolean property. You have to know on which side of the call an error will be raised… by the caller or the callee… well here’s a prime example. Say you have to read data from somewhere like a text file and you cannot ensure the format of the data is proper. Well, you cannot depend on a property to check that data for you if you strongly type the property. Read the orange comment to see what I mean, and please let me know how you deal with this situation since to me it appears to require horrible program design. Public Class ...Show All
Windows Forms speed up the populating process to display 20000 items in combo in VB 2005
Hi I need to show 20000 rows in a databound combo in VB 2005. The items display allright but after a considerable amt of time. How can i speed up the populating process................say maybe displaying 10 or 20 items at a time on each combo scroll click .........................sort of paging...........like in VB 6 !!!! How can i accomplish this Alex ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA getting started
I'm having trouble getting started. I downloaded all the req files and I'm going over a stater audio tutorial from http://learnxna.com/files/folders/vi...s/default.aspx . Each time I try to bring up a template called Windows Xna game its not there. just PC game. Simple difference it could be a big one. Can anyone help me I know I must be missing somthing. There is no "PC Game" template. GSE 1.0 installs the following: Windows Game, Windows Game Library, Xbox 360 Game, Xbox 360 Game Library, Spacewar Windows Starter Kit, Spacewar Xbox 360 Starter Kit. If you don't have these your install was not complete. You're running GSE in C# 2005 Express, right ...Show All
Windows Forms Prerequisite not working? (Possible solution)
I'm trying to build a setup for my application using a Windows Installer project. I'm using VS2005. My Windows application requires SQL Server 2005 Express, so I marked that as one of the prerequisites. I built the installer successfully and ran it on one computer running XP. It successfully detected that neither .net 2.0 or SQL Server 2005 Express were installed and installed both of them before installing my application. My application ran just fine and life was good. I then took the exact same setup.exe and setup.msi and ran them on another computer - also running XP. It didn't attempt to install either of the prerequisites, and seemed to successfully install my application. As soon as my app was launched though it failed with " ...Show All
Visual Studio Express Editions Problem with quering access DB
hello i have an access database that i want to query with an select * from where sql statement. I would like to build the statement in the code, and not in the dataset designer. i have an existing dataset connected to the DB but using tableadapters and the existing dataset how do i A. run a query on this db B. modify said query to change the filter on the returnning dataset C. change the Datagrid to use the returning dataset as source all i really need help with is applying the query to the DB I would be grateful for any help provided Matt take a look at this thread to see if it helps... http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1175290&SiteID=1 ...Show All
Visual Studio Tools for Office GetObject and Createobject fails with Outlook 2007 RTM
Hi, I have a VB.NET application (.net2.0). Running on Vista RTM with Visual Studio 2005 I have an application that used to do a GetObject(Class:= "Outlook.Application" ) and it always worked until I upgraded to Vista and office 2007. Now this used to work under XP Pro and Office 2007 BTR. Now all of a sudden I am getting the following error, and I cannot figure out why. --> System.Exception: Cannot create ActiveX component Any idea what I can do to get this going again Thanks, Ryk After a lot of searching and trying different things, I relised that the Interop is not going to work, so I just got the WebDAv and that works fine with no problems. Thanks, Ryk ...Show All
Visual C++ DLL without CRT
Is it possible to create a dll without it's copy of the CRT, so that it would use one from the context of the calling process well, the thing is that i am creating projects with CRT statically linked, and i DO want to create a dll without it's own copy of the CTR. that was my question. I already had problems with freeing the memory i have allocated in a dll. I have solved them by rewriting an allocator for vector and map.But now i am thinking of this another possibility. As long as the dll's code is executed in the context of calling thread, i thought it could be possible to use the caller's copy of the CRT.. ...Show All
Smart Device Development Handling events in a multi-form application
I'm trying to write a .NET CF 2.0 application that behaves a little like the built-in Calendar application, in that the main form has multiple views with very different contents. In fact, in my application the four views are so different that I'd like to implement them as four different forms, so that I can use the Visual Studio designer to layout and script each one separately. This also allows me to completely close the forms I'm not using so that they're not taking up memory. Taking some inspiration from the FormStack sample code, I replaced the usual call to Application.Run() with a custom routine that does: do { Application.DoEvents(); } while (MainForm != null); ...along with code and event handlers to make sure t ...Show All
Windows Forms Vs2005 and form transparency.
Hi! I wanna make a form transparent. I've tried to set backcolor property to "transparent" but doing so, a dialog box arise and say me I can't. Can anyone help me Thx! There's a good example of how to do this on CodeProject: http://www.codeproject.com/csharp/transparentwindowsincsharp.asp ...Show All
Visual Studio Express Editions Why Is It So Difficult To Save and Load Form Text Boxes?
I would appreciate any help someone could give me. I have searched this forum endlessly trying to find a way to save 60 or so text boxes on form1 to a file and then later read the information back into the same text boxes. It seems like I have tried every bit of sample code that I can find and nothing works. I have 5 books on VBE and VB5. I am a complete novice at this so please be gentle. Thanks in advance for any ideas/help. Glenn Well... I'll step out. You see, I think your intital approach is not that great and it's going to cause you problems and you will end up building a bi-plane. Why not take it a step at time. Break your problem up into small discrete steps. The first th ...Show All
.NET Development .NET Framework 3.0 installation failure on Windows Vista
Hi, I tried to installed .NET Framework 3.0 on my Windows Vista home premium. It asked me to install Windows XP Service Pack 2 Update Information. I was surprised. Further error message: "Windows XP Service Pack 2 Update Information You must install this service pack to complete installation. Microsoft .NET Framework 3.0 requires that this service pack be installed prior to the installation." Does it mean Vista requires XP Service Pack 2 :) Can someone assist Mary I installed a product on my Vista machine that installed Framework 2.0. It seems to have somehow corrupted my .NET 3.0 installation. So, how do I get back to a good .NET 3.0 installation on my Vista machine I tried installing 3.0 and ...Show All
Visual Studio Problem building
I have been successfully using VS 2005 Beta 2 (VB.NET) for about a month now. Yesterday, I started getting the error: Error 5 Unable to copy file "obj\Debug\BO.dll" to "bin\Debug\BO.dll". The process cannot access the file 'bin\Debug\BO.dll' because it is being used by another process. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Microsoft.Common.targets 2274 9 This error does not occur the first time I build the solution after just opening it in VS. But all subsequent build attempts fail with this same error. If I exit VS and reopen the project then I can again build one time and all subsequent attempts fail with the same error. Using SysInternal's Handle program, I was ...Show All
Community Chat .NET
What is the difference between .NET and java. If both are platform independent, can you suggest which is the most preferable based on platform independency. magicalclick wrote: .Net and Java are both platform independent. All you need is the runtime software for the platform. Offical Supports: Language for .Net: C# (primary), C++, VB, and other languages (I don't know what else). Language for Java: Java. .NET also supports J# ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Running builds
Okay, I am a super newb so don't scoff okay. I just started playing around with XNA beta 2 and I have a small, but hilarious, problem that I can't seem to figure out. I am in the "Your First Game: Microsoft XNA Game Studio Express in 2D" starter section, and I am at the end of step 4. The text tells me to "build and run your game". I built it and it tells me that the build was successful, but I can't find the option to run the game!! Please someone, just tell me how to "Run" my build!!! It's easy enough to miss. Looking at your toolbar under the file menu, you'll see a little green arrow. Clicking that will "run" your game. You can also hit the "F5" key to get the same result. Congrat ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XML usage on 360
Okay, so a simple query. How to I use an XML file when when developing for the 360. I can do it fine in windows, but as of yet I am completly lost on how to load the file when on the 360. Well, I did some quick experimentation and came up with something that works. Check out my blog entry here . ...Show All
