larspl's Q&A profile
Visual Basic How do I run a VB .NET 2005 EXE from the network and not get all these security exceptions
Hi, I'm trying to have my users run a simple VB .NET 2005 app from the network. It does not require any installation as its pure .NET. However whenever they run it they get security exceptions. If they copy it to the local hard drive it works fine. I believe its something to do with .NET framework security zones - but I'm not sure. Can anyone explain Regards Michael Green Start + Control Panel + Administrative Tools + Microsoft .NET Framework 2.0 Configuration, Configure Code Acces, Adjust Zone security, Next, Local Intranet. Phew, that was a mouthful... ...Show All
Visual C# When Using a "C" style comment /**/ how do I disable the automatic * on every line?
How do I disable or stop the IDE from adding a new * on every line after hitting the enter key when I am creating a "C" style comment /* * I don't want this line to start with * * I don't want this line to start with * **/ Like This: /* My comment is now easier to read. Because, there is no * in front of every line */ First of all I must say that I sofar like the VS2005 environment a LOT! Good job! If you consider the possibility to modify the apperance of comments then I also hope that you consider the possibility to modify the indentation of the comment. I, for example, usual ...Show All
Visual Studio Team System Beta 3 Refresh question
Just looking at the article http://msdn.microsoft.com/vstudio/teamsystem/b3rmigrate.aspx It doesn't mention backing up the TFSActivity Logging database. Does anybody know what this db does exactly and what I will loose by not taking a backup of this before migrating. Cheers Darren, This database keeps track of web method execution. Each Team Foundation component writes entries for each web method it executes. You can read more about its contents here: http://blogs.msdn.com/jefflu/archive/2005/08/30/457923.aspx ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Hardware Simulation
Hi, I am developing a game (using VS 2005, C#, and Managed DirectX) as a final project for programming course. Although the game runs fine on my PCs, several of the people who have tried it (including my professor) have complained that it works sluggishly or not at all for them. I suspect that the system requirements of my program are simply too high, but because both of the computers I have ready access to are fairly high-end, I don't have a reliable way of testing whether changes that I make are actually improving the situation. I know that programs to simulate different hardware setups exist, but I'm not sure what my options are ...Show All
Visual Studio Express Editions error C2061: syntax error : identifier 'L_Val'
I'm currently in the process of learning C++, while working with vectors and sets this error stopped me dead in my tracks. Any assistance would be great. my source *************************mysource.cpp************************* #include "stdafx.h" /* #include <stdio.h> #include <tchar.h> #include <vector> #include <iostream> #include <algorithm> #include <set> #include <string> These are included in stdafx.h */ using namespace std; int main() { string word; vector<string>text; vector<string>output; vector<string>::iterator iter; set<string> nameList; // <~~~ this line c ...Show All
Visual Studio 2008 (Pre-release) Developing full screen WPF applications
How would I create borderless full screen applications with WPF Is that possible with Navigation Applications as well Thanks, Neno the way i had to do it is to use win32 interop to create a layered window which takes up the whole screen, then make that window topmost. the downside to this is that because there is currently no per-pixel alpha, unless you are drawing the entire screen for your app, you'll get jagged edges. ...Show All
Visual C++ How to remove files
Hi, again, I am a newbie to the programming and I need your help! Well, I am just trying to learn the language for my hobby and free time. But I need to get help to this.... I tried the Remove command like: for Delete32.cpp: _________________________________ // remove example: remove myfile.txt// #include <stdafx.h> int main () { if ( remove( "myfile.txt" ) == -1 ) perror( "error deleting file" ); else puts( "File successfully deleted" ); return 0; } _______________________________________ and this, I used remove command (or I think) to delete myfile.txt within the SAME directory to where Delete32.cpp is located but, how do i ma ...Show All
Smart Device Development USB CDROM on Windows Mobile 5.0?
Does anyone know if it is possible to connect a USB CDROM to a PDA running windows mobile 5.0 I can see it supports ATAPI drivers for a CDROM (but that's not via USB) Not sure for a CDROM mass storage device Thanks Chunda This forum is dedicated to device emulator. Please post to relevant news group instead: http://support.microsoft.com/newsgroups/default.aspx Closing as off topic. ...Show All
Visual Basic Loading .txt files
Hello, I am sort of new to Visual Basic, but I have completed some tutorials. I can't find information on how to make a menu with Open File for example, in it, then make it open a file such as .txt. Where or how can I script a menu to have an option called Load File that will load a .txt file or something else. So far I have made a menu with the Open File option, but I need to script it to load a file now. Thank You! An OpenFileDialog is the class you need in order to let your user browse for a text file to start with. Once you have the path: &nbs ...Show All
Visual Studio 2008 (Pre-release) Style.Triggers and Template.Triggers
Hello, I'm trying to customize the appearance of the selected listbox item. My problem is that the triggers defined in ControlTemplate.Triggers only seem to respond to EventTriggers and therefore don't know when the the listbox item 'IsSelected'. Conversely triggers defined under Style.Triggers understand the 'IsSelected' Trigger but can't get access to any of the UI elements I want to change. Hopefully the following snippet will make this slightly clearer: <Style x:Key="ListBoxItemStyle1" TargetType="{x:Type ListBoxItem}"> <Style.Triggers> <Trigger Property="IsSelected" Value="Tr ...Show All
SQL Server SQLServer2005_SSMSEE.msi & SqlServer2K5_BOL.msi
After I installed SqlServer2K5_BOL.msi, Microsoft SQL Server Management Studio Express CTP does not launch any more. How can I use both SSMSEE and BOL I would be very skeptical when downloading either of those files. MS download servers currently have a fairly serious (in my opinion) problem with syncronizing their mirroring. It seems to lead to some mirrors providing outdated files - it's meant to be transparent to the end user so you typically don't even know you may be downloading from a mirror, or receiving an outdated file. See these forum threads for details: http://forums.microsoft.com/MSDN/ShowP ...Show All
Visual Studio Team System "Connect to Team Foundation Server" option not there
I installed the VS.NET 2005 Team Edition for Software Developers but I don't see the "Connect to Team Foundation Server" option. Shouldn't this be there by default Hi Jason, You still have to install the Team Foundation Server Client over the top of Visual Studio. You should then be able to connect to your TFS and have access to Team Explorer. ...Show All
Visual Basic how to insert new text message on top of the other?
Hi!, I have two webforms and log.txt file on my machine. webform1 enable the user to view the contents of log.txt while the webform2 enable the user to input text message on textbox and save to log.txt. However, the new message to appear on webform1 was on the bottom portion, How do i make the new text message appear on the top of the other I was using streamreader and streamwriter for this. thanks, Mac TextBox1.Text = newText + ControlChars.CrLf + TextBox1.Text Then save TextBox1.Text to log.txt, show in webform1. -Joe ...Show All
Visual C++ 64 bit porting Issues
Hi Albert! We are planning to port our COM, mfc applications to 64 bit platform. Any pointers to the resources for 64 bit porting issues, guidelines, casestudies, newsgroups and forums would be of great help. See: Porting 32-Bit Code to 64-Bit Code http://msdn.microsoft.com/library/en-us/vccore/html/vcgrfPorting32BitCodeTo64BitCode.asp See: Overview of the compatibility considerations for 32-bit programs on 64-bit versions of Windows Server 2003 and Windows XP http://support.microsoft.com/kb/896456/EN-US/ See: General Porting Guidelines http://msdn.microsoft.com/library/en-us/win64/win64 ...Show All
Windows Forms SDI ApplicationFramework
Chris Anderson's MSDN article "Real World Applications Sample, Part 1: Adding SDI, Single Instance, and a Forms Collection to Windows Forms" is very useful, but the ApplicationFramework for creating multiple linked SDI forms doesn't compile or run on VS.NET 2003 final beta. Does anyone have a modification that will make it work Many thanks, Mike,&n ...Show All
