Jeppe Jespersen's Q&A profile
Visual Studio Express Editions Solution Questions
I have a database that I need to design a GUI and a few database entry functions. I am wondering if VB is the correct rout to go. I am using Access Database for the database, though looking at using SQL Server Express. The GUI will consist of a MDI form with several forms. The main form is a form with a tab container in it. The information shown on that form will come from several tables in the database, but only one tables info is directly editable. The other info is updatable through other entry forms. There is also a search form, and mass addition form. I will need to be able ...Show All
Visual C# How do I tell when all threads in a pool are complete
I have an app that uses a thread pool to ping all hosts on the local network. Each thread updates a listview with the status of that IP - alive or dead. When all the threads are done, I want to remove all the dead links from the list view. How can I tell when all the threads have done their job What is the best way to loop over the listview backwards (I assume backwards is best since the items are indexed...), removing each dead link (text in column 1 = "dead") Thanks in advance. Create an integer that stores how many threads are running. At the beginning of the threads that need to be ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Unmanaged DirectX with Managed C++
I have been reading about the .NET framework for quite some time, and I found that Managed C++ allows mixing unmanaged and managed code. I've got a few questions about that. Is it possible to use an unmanaged API (like unmanaged DirectShow or DirectX) in a managed application If so, are there any steps that need to be done to do this Are managed API's like DirectX.NET also availible for Managed C++ If so, how do I know if I'm using the managed or unmanaged API Now I've also got a problem with DirectShow. I installed the latest Platform SDK and tried to include <dshow.h>. When I did that, it said I needed <ddraw.h>. Since directd ...Show All
Visual Studio PowerToys for the Visual Studio 2005 Class Designer and Distributed System Designers
We’ve published a set of set of add-ins which augments existing functionality in the Visual Studio 2005 Class Designer and the Distributed Systems Designers. The Design Tools Enhancements add-in provides a common set of features that can be used by both the Class Designer and the Distributed System Designers , such as pan/zoom window and rich formatting commands. The Class Designer Enhancements add-in provides additional functionality for the Visual Studio 2005 Class Designer, such as HTML export and nested type creation commands. This download includes all necessary source code and a Visual Studio project template for creating your own a ...Show All
Visual Studio Express Editions Is it possible to shell an application seamlessly?
I need to be able to run an application such as notepad or calc in the same way that I can start a browser inside my VB app ie. make the spawned program appear to be just another window in my program. Has anyone done this before This isn't what's happening. The Webrowser control has been supplied as a wrapper for the Active-X webbrowser and you are using that. There are no such analogs for the utilties you mentioned. ...Show All
SQL Server Need help with a simple query
Hi Everyone: I am new to SQL, and I would like to request if someone could provide me with a query that could do a find and replace in a column in MSDE. I have an image path column in a table, the current image path is set to /images/xxxx.gif I would like to add another folder so the image path looks like this --> /images/imagesA/xxxx.gif The problem is i have 4500 records to update, so I cannot do this manually, so my question is can someone provide me with a query that can do this find and replace, i guess in this situation you are finding /images and replacing it with /images/imagesA Please advise. Thanks. It wo ...Show All
Visual Studio Tools for Office How to Show Complete Format Cells dialog
I have a VSTO 2005 solution with some controls on the action pane that I would like to refresh when the user changes the formatting on a range. Is there a way to programatically show the Format Cells dialog using Excels built in dialogs I have tried using some of the built in dialogs that are part of the Format Cells dialog (like xlDialogFormatNumber, xlDialogAlignment etc), but I can not find one that displays the entire dialog as you would see it when clicking on "Format Cells" from the Context menu or "Cells" from the Format menu. Thanks Patrick Hampton Here's the link to the e ...Show All
.NET Development Did asynchronous execution change in 2.0
hello, i have this code that called method asynchronously through the delegate class with the begininvoke and endinvoke methods. Exceptions could be thrown withing the methods which were always caught by the framework and rethrown when endinvoke was called. Has this now changed as my exceptions are no longer being caught and rethrown, and just bringingt the whole app down as they are unhandled. he is sample code that i use to denote the changes. .net 1.1 /// <summary> /// Summary description for Class1. /// </summary> class Class1 { private delegate void ThrowExceptionDelegate(); private static bool stop; /// ...Show All
Windows Forms deploying under microsoft iis sharepoint services
Hi, I would like to use the ClickOnce Deployment on a Windows 2003 Server where Windows SharePoint Services are running. I've tested the deployment on a Windows XP Professional PC with IIS which worked fine but is not applicable since the PC is in use as a Workstation. If I want to publish on the server I always get an error message. Has anybody an idea how the server has to be configured or if it is generally possible to deploy on this kind of server. Even a good link would take me a few steps forward. Thanks. Hi, What error are you running into. Here is a link to some troubleshooting st ...Show All
Windows Forms passing variables to form
I made my textboxes on form1 public. I was able to access them through my form2, after I made a statement like form1 form2 = new form1(); Problem is, the text boxes are all empty on form2. Is this because I initiated a new form1 and therefore the textboxes are set back to their default as empty How can I access variables stored in form1 from form2 thanks. To have one form talk to another, pass the Form as an argument In class Form2, write a method like Public Method(Form myForm1) { myForm1.TextB ...Show All
Windows Forms Change color in bitmap
Hi, I need to change Black color to White color in bitmap that created from array of pixels. Thank's Alexei Try the direct integer approach, discussed here: http://forums.microsoft.com/msdn/ShowPost.aspx PostID=61604 -chris ...Show All
Windows Forms Right click on RichTextBox no menu
When I right click on an instance of a RichTextBox control no menu pops up. The standard (like cut and past) operations will be extremely useful. Is there someone that knows if there is a property I need to set to enable the right click menu Is it maybe not yet implemented on the RichTextBox control Any feedback will be appreciated. Regards Herman Hi, thats not dificult at all. Add you own ContextStripeMenu to the richtextbox. Make two MenuItems with cut and paste and add this code: private void cutToolStripMenuItem_Click( object sender, EventArgs e) &nbs ...Show All
.NET Development Console.writeline() will not write to a ASP.NET page, Framework 2.0
Thought for sure that I have done this in Framework 1.1, but will not work with 2.0 The problem is simply writting to the web page console, can not seem to get the Console.Writeline function to work.... Tried setting the Console.Setout() but still no success. No error messages just nothing displayed from the Console.Writeline function. MSDN documents the issue if the default output is not the console, nothing is displayed. Any help appreciated... Partial of the code that I am using. Have attempted to set the the Console.Setout w/o any success. Try Dim outStream As New System.IO.StreamWriter(Console.OpenStandardOut ...Show All
Visual Basic My.Blogs Error - ProjectType value did not exist.
I am trying to install the My.Blogs sample. I am running VS2005 Pro on WindowsXP Pro SP2. The template installation fails with the error message: Installation stopped because the directory for the ProjectType value did not exist. The project type is invalid for your installation of Visual Studio. Is My.Blogs a beta2 only thing I am running release VS2005. Are there manual instructions for installing this via file copy Also: the error message suffers from poor design. Of more use would be something along the lines of "The project type 'inserttype' is invalid for your installation of Visual Studio, which I detect is: 'insert det ...Show All
SQL Server Problems Using Temporary Tables
I am declaring a temp table in control flow via Execute SQL task. I then want to use that table as a source in a data task, keep it alive going back to control flow and use it as a destination in another data task following. I am having trouble just getting the first data flow to access that temp table. In my Execute SQL task, I'm creating a simple temp table. After executing that task, I can head to the data task and change my OLE DB Source to point to that temp table, but I recieve an error about an invalid table name when I attempt to map columns or hit "OK." Is there something else I need to do to use that temp table as a sour ...Show All
