EddyA's Q&A profile
Windows Forms BackgroundWorker thread problem
Hello, I was using a backgroundworker to load some data into a datagrid, so it does a select query, and I set the datasource of a datagrid. But I got an error saying that the backgroundworker was working on the same thread as the application: Cross-thread operation not valid: Control 'dgvData' accessed from a thread other than the thread it was created on. How do I establish the backgroundworker on another thread Thanks. ...Show All
Visual Studio How do I make C++ for e.g. as a startup?
Hi, When I installed visual studio for the first time it asked what I will be using the most or something and I picked web devolepment. But now I want to change it to C++ is this possible take a look at my blog: http://blogs.msdn.com/quanto/archive/2006/01/06/510328.aspx ...Show All
Visual Studio 2008 (Pre-release) "yield enumerate"...
(Slightly off-topic, but it at least deals with enumerations.) Lately, I've found myself using the following pattern: public IEnumerable<T> Foo(IEnumerable<T> values, IEnumerable<T> moreValues) { foreach (T t in values) { yield return t; } foreach (T t in moreValues) { &nb ...Show All
SQL Server Prompt for user input in criteria field of view
In Access, I use [Enter Date] in the Criteria field of the Query. I tried the same thing in SQL Server in the Criteria field of the View and it does not recognize this. Is there a comparable command in SQL to get user input into the Criteria field of a view Hi Jens, I was able to find out how to do what I needed using the @ sign (i.e. @Date Required ). In the criteria field of the SQL view, this generates a ...Show All
Visual Basic Algorithm Benchmarking
I have Googled this and can't find a good answer so, lets say I have two bits of code that do the some thing (my actual program is far more complicated). Dim numIsOdd As Boolean = ( num And 1) And Dim numIsOdd As Boolean If num Mod 2 = 1 Then numIsOdd True Else numIsOdd False End If How can I benchmark these different ...Show All
SQL Server VS.NET 2005 and CLR stored procedure permission sets.
VS.NET 2005 automatically deploys a CLR stored procedure when you start a project with debugging. However, if the CLR stored procedure attempts to access external resources you will get a message stating: System . Security . SecurityException : Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed . I've isolated this to ...Show All
Visual C++ DLL and distribution files
If I compile a DLL with an /MD switch and I want to distribute it (say with a VBA code that makes a call to the DLL), what are the other files that I also need to distribute so other people can run it I suspect the same answer applies also if I distribute .exe file compiled with /MD. Thanks, Bumbrlik Take a look at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=398802&SiteID=1 for deploy ...Show All
Visual Studio Team System Fxcop Custom Rule to check for Custom Controls
Hi, In my project we are using custom controls instead of normal ASP.NET controls. We have build an architecture on .NET and are using its controls. Example of custom control used in prj: xyz. ABC.WEB.CONTROLS.Label Now I need to write a custom rule to check for naming conventions like label name should start with lbl. Can anyone please help me out with code I hope the poblem is clear ..... in case of any further clarifications ne ...Show All
Visual C++ binaries compiled using VC8 not running on IA64
As VS 2005 is not supported on IA64 platform i had to use cross-compilation on 32bit machine. i did vcvarsall.bat x86_ia64 for setting the build environment. after building the application i tried running it on IA64 machine but it is not running. D:\samples>exercise.exe The system cannot execute the specified program. manifest info is embeded in the application and in its dependency dlls. on checking C:\Windows\WinS ...Show All
SQL Server I don't remember how it was...
Using this system function (::fn_log(null,null)) you can find out how many transactions have been confirmed in your .LDF. Although by means of another system function you can see further information, such as statitical. Any help would be very appreciated. Thanks There isn't a function by that name. There's a similarly named undocumented and unsupported function (that I'm not going to discuss) for use during troubleshooting by Product ...Show All
Windows Forms IssueVision Middle Panel
Is it possible to "extract" the IssueList control of the IssueVision app, and include it in other apps Thanks Basically you have to write the databinding code so that you object only cares for datasources that implement the following&nb ...Show All
Visual Basic Same problem
Yes I got the same problem too. Can type any character but back space, ctrl-z doesn't work. I have tried to repair the VS 2005, but the problem still exist. A. Jason, Do you have any tool windows set to autohide There is a known issue with autohiding toolwindows in Visual Studio Beta 2. Here is a Product Feedback link: http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx feedbackid=3 ...Show All
Microsoft ISV Community Center Forums Hyper link Macro
I am new to this stuff. I want to add hyper links to a series of numbers.eg 100 101 102 103 etc There is a number folder for each hyperlink in excel. So the 100 hpyerlink will open the 100 folder and so on. I can do i Macro to do one folder. How to i get it to do hundreds without repeating myself. Thanks for you help, cheers Boots Below an example First create workbook with one sheet named ...Show All
Visual C++ AssemblyInfo.cpp
I need help, When I create a console app the AssemblyInfo.cpp does not load. All the other source files loads except that one, what should I do Alright, I had a enough. I just added the AssemblyInfo.cpp and now I get TWO C1190 errors. Anyone know what I could do to fix this. Here is my code: #include "stdafx.h" #using <mscorlib.dll> using namespace System; int _tmain() { Console::WriteLine("Hel ...Show All
Smart Device Development Hide File
hi, could any body tell me please how to set the hidden property of a file to true using c# thanks If you mean file attributes including "Hidden", please look into FileInfo class. ...Show All
