AaronYoung's Q&A profile
Visual Basic Using a Variable inplace of a Textbox name...
Im writing a piece of software with over 200 text box's in it, most of which are not displayed until certain criteria are met. What im trying todo is be able to use the name of a variable inplace of the text box title in conjunction with visible = true to save myself a heap of code. EG: Private Sub BoxShow() LabelValue.Visible = True <- which dosnt work ofcourse Count = +1 End Sub LabelValue is being set as the name of the text box, ...Show All
.NET Development I need help.....
Hi everybody, I have this problem where when I instantiate an interop COM object I can't destroy it until my program exits....In this case the COM object is an instance of the Access.Application object (Access 97) as found in the Microsoft Access 8.0 Object Library....here's what i'm doing. Imports System.IO Imports System.Runtime.InteropServices Public Class Access97Routines Public Shared Sub RepairCorr ...Show All
Windows Forms how to load resource from resource files
I have created a resource file. The resource file included some strings, images and wav. I wondered how to use them by visual C# 2005. I there any some class defined in .NET Or, some sample in MSDN Yes, there is a class called ResourceManager that will help you access those resources: http://msdn2.microsoft.com/en-us/library/system.resources.resourcemanager.aspx In fact, event WinForms are using ResourceManager class to ...Show All
Visual Studio Express Editions I have an XML encoding problem in C# express
I have created an application for generating XML files for korean friends of mine. The end files need to be encoded iin EUC-KR, but my files seem to be encoded in utf-8, there doesn't seem to be an option to use korean encoding :( I will appreciate any help that anyone could offer. Jason D. Try File->Advance Save Options... to get options for saving the file using a different encoding. Thanks, Luke Hoban Visual C# IDE Program Manager ...Show All
Visual Studio Local Variables invisible to debugger?
Recently the VS2005 C# debugger has been exhibiting strange behaviour. Here is an example: private void Test() { double dd = 2.0 * 3.0; return; } Up until recently, I could set a breakpoint on the return statement and place the mouse over the "dd" variable to see its value. Also, I could open the "Locals" window and see "dd". All of a sudden, the local variables are "invisible" to the debugger. Nothing shows up when I hover the mouse over ...Show All
Visual Studio Team System Data flow analysis across methods
Hi. I've seen the data flow analysis engine rewrite mentioned a couple of times. Will this new engine allow data flow analysis across methods Thanks. No, it will not, but we will eventually support annotations to augment analysis with inter-procedural information. Thanks Nick ...Show All
SQL Server VARCHAR equivalent for FLOAT
Hi I have a variable defined as float data type. I would like to convert this to a varchar datatype without causing any overflow or any errors. How do I define it for varchar data type VARCHAR(53) VARCHAR(40) Regards Imtiaz Assuming the variable can have any value within the range of float.min or max values..what shud be my best bet for varchar length... ...Show All
Visual Studio VS 2005 Crashes Frequently, esp. When Debugging
Frequently when I am debugging in VS 2005, my whole IDE crashes. This happen reliably if I am debugging on a PDA/Smart Device and the PDA crashes. Admittedly, my program probably caused the PDA to crash because of something I did, but even if the PDA crashes, the IDE should not crash. It should be able to recover gracefully. Also, if I select a large block of memory in the memory debugger window and select copy, then the IDE crashes too. ...Show All
Visual C++ \CLR Compilation woes!
Iv compiled my current C++ project as \clr as i want to start putting in some specific C++\CLI code to serialize my MFC objects to .NET equivalents. The program crashes on startup, something to do with the stack frame being corrupted. My first concern is the program has ballooned in terms of the size of the executable image. When it attempts to run it fails and some report about stack frame corruption. Iv noticed any C files have to be conver ...Show All
Visual C# Save Binary file
How do I save a binary file, eg. png, exe. code: byte [] buffer = new byte [255]; int start = readBinary.Read(buffer, 0, 255); while (start > 0) { writeBinary.Write(buffer); start = readBinary.Read(buffer, 0, 255); } That's because you didn't say it was a png, and so he's given you code that saves it as strings, with a new line at the end of each. You should use Environment.NewLin ...Show All
Visual Studio Team System Error adding attachment with work item?
Hi, When I add an attachment with an work item and try to save it, I get an error "The server operation failed. (BackendArgumentException". Why is it so Please let me know the cause and resolutions for it Thanks, Saurabh It happens for all attachments - not any specific attachment. Version is beta 3. Lets know if more information can solve your problem. Thanks, Saurabh ...Show All
SQL Server Transfer Object and Click Once
I have an application which uses SMO to perform various database tasks. When deployed using ClickOnce from a Website and set as a FullTrust application the application has the following behaviour when attempting to transfer database\data: ... transferObject.TransferData ... Error: 'HRESULT: 0xC0011008', ie DTS_E_LOADFROMXML error All other database connections\functionality within the application, which connects to MSDE and SQL Server E ...Show All
Visual C++ Unit testing unmanaged code
Over the last few years we've been writing an application that has a number of modules and DLL to make up the core product - most of the code is written in unmanaged C++ dlls, which use STL - the Wn32 Interface is all C++.NET though, which calls these DLLs. This is done to give us the ability to use the core code under other OSes (eg, MacOSX). Unfortunately, it looks like Microsoft are doing everything possible to make non-C++.n ...Show All
Microsoft ISV Community Center Forums Swap Visual Studio Team Edition for Software Developers for Software Tester Edition
Our company is a Gold Certified Partner with the ISV/Software Solutions Competency. One of the partner benefits we get is a certain number of licenses to Visual Studio Team Edition for Software Developers w/ MSDN Premium Subscription. This is great, but we want take advantage of test case management and automated testing. The problem is this one feature is only available in the Visual Studio Team Edition for Software Testers. The Tester versi ...Show All
Visual Basic Notify Window
How can i use the notify window like msn messenger 7 that appears in the bottom right corner of the screen Hi, There is a freely available NotificationWindow control available as a part of the VB Power Pack. You can read about it and download it here: http://msdn.microsoft.com/vbasic/default.aspx pull=/library/en-us/dv_vstechart/html/vbpowerpack.asp Best, Paul Yuknewicz Visual Basic ...Show All
