akilhoffer26386's Q&A profile
Visual Studio Express Editions Change button image on MouseClick
Hi. I've managed to change the button's image when it's clicked but want it to automatically revert to the first image after the second image displays. I.E. A custom button with an image. When the button is clicked the image showing the downstate of the button appears, a short.wav is played then the initial image of the button's upstate is displayed. Thanks for any help. Thanks guys! The code worked beautifully. I tried both examples to get a grasp on the different ways of doing it. ...Show All
Visual Studio Express Editions How to search for strings in the listbox or sequential file access?
Hello developers, I'm a first year student and I am doing a project regarding "Phone List Index and Searcher". By the name of it, you should already know that I'm supposed to create a program which is able to search for a substring of an entire string. My strings are kept using sequential file access and displayed using a checked listbox. Here are the few details you might want to know: Buttons Add - Add 2 string inputs, name and contact no. Remove - Deletes selected string from the listbox( I have a problem deleting multiple strings) Search - How do I code the search button and by using what method Refresh - Do a WriteAllText method to rewrite the entire sequential file and re-display. I ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Distributing games with XNA runtime
So what's the best way to distribute the XNA framework with a game Just point people at the framework download on the Microsoft site Include the XNA framework installer with the game I was clicking around and found in the project properties-> "Publish" -> "Application Files..." options, I can set the publish status of Microsoft.Xna.Framework.dll and Microsoft.Xna.Framework.Game.dll to "Include", which copies the dlls with the game. Is this enough to get the game running on another PC, assuming Framework 2.0 is present and DirectX is up to date Thanks! Jim Perry wrote: Why include it if you don't have to True, I don't have to, but it's one less step for the p ...Show All
Software Development for Windows Vista How to cancel the branch of a ParallelActivity that does not complete
Here's my situation. I ParallelActivity with two branches; one branch needs to continually check for a certain database condition. The other branch waits for a period of time, sends an e-mail, waits for another period of time, and then sends a final e-mail. My problem is that when one of these branches finishes I need to cancel the other. I have a working solution but don't like it much. When one branch finishes, I throw an exception and then catch that exception at the ParallelActivity. This, of course, causes the other brances in the parallel activity to cancel, but surely there is a better way. I could write my own Activity that implements IEventActivity and then use a ListenActivity which would cause all other activities to cancel when ...Show All
.NET Development Remoting large datasets and merging it at client side - out of memory excpetion
hi, I have a large dataset that is remoted over to a client and merged with the client's dataset. The transfer happens fine. But when I call merge it throws "Out of memory exception". Why is this happening ((DataSet) this .dataSetHash[dataSetName]).Merge( dsTemp, false , MissingSchemaAction.Add); regards, catinat hi, The exception doesnt happen at merge. The server loads the dataset and the exception happens at the client side. Client side: DataSet dsTemp = Server.ReturnDataSet(string [] tableNameList); at the above line of code, we have out of memory exception on the client side. Can anyone throw some light upon this regards, catinat ...Show All
Visual Studio Express Editions Microsoft Access - Visual Basic 2005 Express Edition ?
I have create database in Microsoft Access 2003 Pro . And i have bind in Visual Basic 2005 Express Edition. But how is the code for add user and delete user and save new user Please You have the choice of using datasets and datatables to manage the database or the use of sql statments and command objects...it depends upon the application SQL Statement will be needed in either case.... Add: "Insert Into TheTable Values( , , ) Delete : "Delete * From TheTable Where Field = Blah" Save: "UPDATE TheTable SET TheName = "Balh" WHERE TheNumber=1" ...Show All
Visual Basic Database Help
hi i made a programme that have a database, with some registered ppls name. Now what i need is to make a search box that will search from the database. and show if there is some answer. so can any one give me the code for that with the dim things ... for vb.net 2005 . and the database sql 2005, and if u can also can u give me for access 2003 if it's not the same tanks well basically you would need to create a query string for SQL/OleDb to perform your search. There are many ways of doing this. Firstly, you could fill a dataset using the dataAdapter from SQL or OleDb, depending on the approach you wish to use, then bind the results to a datagridview or something. The other would be to read each record returned using a Sql/OleDb ...Show All
Windows Live Developer Forums What should I choose?
Hi, Im looking for some advice, I have an XML file which contains a list of properties (name, description, price, bedrooms, lat, long and an image) that is being returned from an RDF database. I wish to plot these on Virtual Earth, my question is should I use geoRSS to display these properties and if I do can I place a user control to filter by price or bedrooms and how is this done OR Should I create JavaScript functions to read from the XML file and plot properties this way and how would I filter XML placed using this method I have researched and looked around but im having trouble as I have never done this before. Thanks for the help. James. Thanks for that link John, I'll t ...Show All
Windows Live Developer Forums MSN Messenger Activity SDK
Hi, Im totally new to MSN programming (what i call it), so i have totally no idea how and what to do to get started. My aim, is to use an existing javascript (which writes in my native language, hindi) in MSN Messenger. This script is available at http://www.hindi.uni.cc, what it does is that it processes the last typed character, and then generates appropriate ASCII char when the next letter is typed. What i wanted to do is to run this in the message box in MSN Messenger, but as that may not be possible (i dont know, im just guessing!), i want to try to create a single use activity which enables me to achieve this. I saw some examples on the next (as well as the SDK), but even after i put the XML file in MSN's folder, i did not get it in ...Show All
.NET Development Instrumentation problems using latest Jan 2006 version of Enterprise Library
Has anyone ever tried instrumenting a component using InstrumentationListener and InstrumentationProvider from the latest Enterprise Library I am following a sample code from the documentation but it fails during run-time when I try to raise OnDbConnect event from the code below. The error that I get is "Object reference not set to an instance of an object". I am sure it is an easy fix but I cannot seem to find what is wrong. ObjectBuilder is supposed to link an OnDbConnect event from the InstrumentationProvider with the function ConnectObserved() from the InstrumentationListener, but that is clearly not happening :-( Here is the code: public partial class Form1 : Form { public Form1() { InitializeComponent ...Show All
Visual Studio 2008 (Pre-release) Bind one ItemsControl.ItemsSource to a property on the items of another ItemsControl?
Hi there, I have a scenario where I have two ItemsControls. Say ItemsControl #1 has items called MyItem with a Name property on them. I'd like ItemsControl #2 (which is a ComboBox) to be able to bind to ItemsControl #1 and list all the MyItem.Name values in it. I've been playing with some XAML code like ObjectDataProviders but can't get it to work. Could anyone post a simple sample of showing this I'm probably missing something simple. Thanks! Here's an example. You can use a simple binding on ItemsSource to reference the other ItemsControl . You can then use DisplayMemberPath to step into a property on each item. < Page xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = & ...Show All
Visual Studio Sandcastle November CTP - Issues with some xml tags.
Hello All, I have just been testing the November Sandcastle CTP and I have noticed a few small issues regarding some of the xml tags. I have created a simple class which I have included which demonstrates these issues. When I compile this code and build a v2.0 .HXS help file using either the Prototype or VS2005 presentation type, these are the following issues I have noticed in the example ExampleMethod() method and are reproducible using the code example I an included: - 1) The caption of my <seealso> tag does not appear. - 2) In the <example> tag, the <see cref="Object"/> works, but the <see cref="ExampleMethod"/> does not. - 3) When using the <c> tag, the text within it ap ...Show All
Visual Studio Express Editions A few questions about migrating to VB
I'm a C++ programmer, I've been into it for six years now. Lately, I find that whenever I want to design something, even something fairly simple, I have two options - spend hours/days writing the backend stuff to handle everything, or become familiar with some third party library that does it for me. Both of these are time consuming. This is why I'm getting into Visual Basic - it seems like it is more suited for the things I want to do at the moment, such as learning to work with the Windows GUI and maybe some game-related stuff. Is this accurate I do love C++ very much, it's just that it doesn't seem fit for my purposes. C++ seems to be more useful for complex projects. The other problem that I have is that I am not very familiar with th ...Show All
Visual C++ using excel type library in vc++2005
I tried to do the following example in vc++ 2005 but it wont comiple. It returns like 300 errors in excel.thl file. I havent even done the coding part, i just imported the CApplication.h and turned on the runtime support compiler option ( /clr:oldSyntax ) like the kb says and tried to compile.. help.. http://support.microsoft.com/kb/308407 hi Thanks for the tip. but still returns comilation errors. How do you remove these errors Error 1 error C2504: '_IMsoDispObj' : base class undefined Error 2 error C2504: '_IMsoDispObj' : base class undefined Error 3 error C2504: '_IMsoDispObj' : base class undefined Error 4 error C2146: syntax error : missing ';' before iden Error 5 error C4 ...Show All
Visual C# Windows Service Won't Start Automatically
I created a Windows Service application in C#. It is installed as service that runs in the LocalSystem account. The start type is set to automatic. When I reboot my machine and bring up the services manager, it shows that the service is "Starting..." After a while, when I refresh the services manager the service reverts from "Starting..." to blank. I have the option to start the service manually. When I do, it suceeds and changes to "Started". Any idea why my service won't start automatically Could it be that the startup times out if it takes too long to automatically start a service I tried having my computer reboot if my service fails to start (through the properties, recovery settings) ...Show All
