CrazyHakiko's Q&A profile
Visual Basic Problems with the compiler?
Someimes my compiler report error in my .Resources.resources file when compiling. To fix this all I have to do is close the project then delete the 'bin' and 'obj' folder in my program solution folder. But, it eventually messes up again. Also, sometimes my compiler will cause an error and have to close. I think it may have something to do with my resources. I have about 128 MegaBytes of resources. Could it be because the size is so much None ...Show All
Visual Studio Express Editions User Login Troubles
Hi, I pretty new to all of this. I have followed the tutorial on http://beta.asp.net/guidedtour2/ and is working all ok locally. When I uploaded to IIS 6 on a Windows Server 2003 SP1 and tried logging in using login.aspx it gave me this error: An attempt to attach an auto-named database for file C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\WebSites\WebSite1\App_Data\aspnetdb.mdf failed. A database with the s ...Show All
Visual Studio VSS shadow folder permission problem
Hi, I want to apply source control on a shared folder sitting on one of our servers. I used shadow folders to reflect the changes whenever somebody checks in, and it works fine. However we have templates (.ascx) files in this shadow folder and when we try to load these templates from ASP.NEt we get permission errors. Is there any other way to reflect the changes to a shared folder Thanks Hi ...Show All
.NET Development "Cannot allocate a new command id" exception when creating ContextMenu with lots of MenuItems
I am writing a c# windows application that displays lots of information to the user via a ContextMenu. I have encountered a problem where the ContextMenu doesn't display after a large amount of MenuItems have been displayed. To better understand what I am saying, here is a simple example that will reproduce the problem. Create a c# windows application with a button and an event handler for the button click. In the handler ...Show All
Visual Studio Express Editions .exe file to change screen resolution settings
Can VB Express Edition be used to develop an .exe file that, when run, will change screen resolution from one setting to another (e.g. 1024x768 to 1280X720) If so, what template would/should be used and where might I find more information on how to do it Any feedback would be appreciated. Thank you The code I provided works in Visual Basic, not Vicual C++ (this is a VB forum). To make it work, open VB, make a new EXE project, ...Show All
Visual Basic Can serialport output wave or TTS audio?
Using SerialPort in VB 2005 Express, I have managed to get from any modem on the system the CallerID "NAME" and "NMBR" packet parts. I can also Answer and HangUp the phone using the commands as set out in the Registry. But (a huge but) how do I stream wave files or TTS streams to the callers via SerialPort I've also managed (using CreateFile in the Kernel32) to do the same but waveOutGetID won't accept the handle CreateFile gives me. In VB6 I u ...Show All
Visual Studio 2008 (Pre-release) Next CTP of WinFX scheduled for when?
I'm having the runtime throwing exceptions on any application I compile, some BAML parser exception that's related to a FPU stack overflow (or whatever). This issue showed up in the December CTP already, was promised to be fixed in the next release (which would be the January CTP) in a thread on these forums, yet it's still there. I'd like to be able to continue with the development of this WPF based application, without buying some new rig beca ...Show All
Visual Studio Replacing a Target conditionally?
How can I replace a target conditionally If i have <Target Name="MyTarget" ....> ...some stuff... </Target> and then <Target Name="MyTarget" Condition="MyCondition"> ...different stuff... </Target> What happens is that when MyCondition is true, "different stuff" is executed, but if MyCondition is false, nothing is executed, when I expected that "some stuff" was executed. Is there any way to call the old target, like if h ...Show All
Smart Device Development DPI Aware
Hello, Anyone have solutions on the best method to create DPI aware applications Thanks I searched http://search.microsoft.com for "DPI aware pocketpc" and got one match: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnppcgen/html/build_portable_wm_apps.asp . That article refers to another, http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnppcgen/html/dpi_awareness.asp . Barry ...Show All
Visual C# Operator + in strings
string path = "C:\\Documents and Settings\\"+ LogonName +"\\Recent"; Error 1 Operator '+' cannot be applied to operands of type 'string' and 'method group' What do i have to do Thanks, Guilherme It looks like LogonName is a method, if so and it returns a string, try this: string path = "C:\\Documents and Settings\\"+ LogonName() +" \\Recent "; ...Show All
Windows Forms Custom Actions - sourcepath not saved when vdproj is opned from new location
I have created a "Custon action" to call a vbs file and included the file in the setup project(in the same folder as the location of vdproj file). If I get all the source files and vdproj files to a new folder and run devenv to build the solution file, then I get the error - ERROR: Unable to build custom action named '<vbs filename>' because it references an object that has been removed from the project. 1. Is there a wa ...Show All
Smart Device Development ActiveSync and Phone Connectivity
Due to the next to unusable behavior of the new SmartPhone Emulator in VS.NET 2005, I'm using my live phone to run and debug my applications now along with Pocket Controller to monitor the application on the desktop. It all works fine except that ActiveSync always disconnects as soon as the phone makes a network request. Example: With ActiveSync connected I cannot call a Web Service on the Internet without ActiveSync disconnecting. I can however ...Show All
SQL Server Unable to add new publication
I have been wrestling with this one all day and cannot find anything on MSDN, google, etc.... I have configured replication, but cannot create a new publication either programmatically or using the wizard. I programmatically did the following: 1. I set up m y local server as a distributor, and created a distribution database (@distributor set to server sysname) execute sp_adddistributor @distributor = @distributor execute sp_adddistribu ...Show All
Visual Basic output strings
In the past, whenever I had to generate a string containing a mix of standard characters and variables I just concatenated them with the ampersand symbol. For example: Console.WriteLine("My name is " & strName & ", and my address is " & strAddress) However, now, whenever I see an example in a book or elsewhere, I see them using a different style, such as this one: Console.WriteLine("My name is {0}, and my ...Show All
Visual C# file properties - security
Hi, I have a web application which a some point "formats" a csv file. Is there a way to add programaticly an user name with full control for the respective file "ids.csv". Please help, i have no ideea how to do it. Any input is appreciated. Thank you. While it might be possible to do this using C#, I would strongly suggest looking at some of the Windows Shell (WSH) scripts that are available to accomplish this. I'd also question whether t ...Show All
