raceirolg's Q&A profile
Visual Studio Special Installation
I have created some custom controls for Dot Net WinForms. Besides installing the DLL files I would like to find out how to make the installation process add the controls to 1) a New Tab of the Forms toolbox (Most desired) 2) in the Forms toolbox Can anyone either tell me how to accomplish this or direct me to guidelines that will show me how. Thanx Much Hi, I'm trying to do the same thing with VS2005 RC1, and it does not work with the code given on CodeProject. Does anyone have some code that works with the new IDE Morten ...Show All
Visual Basic Getting the last number of a column
How can I get the last number of a column in a certain table of my database.I had a form that was bounded to this table that has an autonumber field.To be able to add another record and automatically add the autonumber, I want to get the last value in the table to be able to increment it by one when i click the add new button.thanks.... An identity column adds itself, by definition. You can do a select TOP(id) to get the highest number there, or if you were to write your insert as a stored proc, you could have it return @@IDENTITY, which would be the value you inserted into the identity column. ...Show All
Windows Forms Code Groups: What am I doing wrong?
Folks, Ive created a enterprise level code group for the intranet zone with certain SQL Client and security permissions . I take this out of development onto a production server where I have the same code group set up. I still get securtiy exceptions when I try to run the assembly from the server. When I check in caspol the only code group that&n ...Show All
SQL Server Execution of Package failed
I am trying to design package which would copy all tables and stored procedures from one server to another. It used to be simple task in SQL 2000, there was wizard. However the new wizard does not work... I wrote SSIS package, but when I execute I get the following error: "Can not apply value null to property Login..." Any idea It seems to me that this new SQl2005 is not that simple to use like 2000. 2000 was a great product. I am considering to rollback to 2000. Very frustrated with the new one... There should be more to the error message than that. Please can you copy the ...Show All
Visual Basic How to determine the SERVER.TRANSFER'ing aspx page.
Hello, I'm wanting to know how to determine the page that was just transferred away from. For example given three web pages; CallerA.aspx, CallerB.aspx, and TargetC.aspx. Both CallerA and CallerB can perfrom a 'Server.Transfer' to TargetC. TargetC.aspx which needs to appear differently based on where the transfer came from. TargetC also uses properties from the calling page in order to retrieve information from that page. In VB2003 we used code such as this: If Not IsPostBack Then If TypeOf (Context.Handler) Is CallerA Then 'Get a reference ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problem with "PlaySound()" Function????
When ever I used to Play a .Wav file through "PlaySound" Function it is stopping the Previous sound and Playing the new one. I want to Two files to be Played Simultaneously. Is there any other function in VC++. or How can we use the PlaySound Function to play the multiple .Wav files simultaneously.. Thanx Aarkay PlaySound is not capable to do this. You can try it with DirectX. Try another newsgroup for this from http://msdn.microsoft.com/newsgroups/ ...Show All
Windows Forms CONTEXT MENU WEIRD BEHAVIOUR
There is a weird behaviour in the context menu. PROBLEM: In windows forms application add a context menu. add a menuitem called samp add events Select and PopUp for menuitem samp. In Select event of menuitem samp add a new menuitem say "Test1" When you run the application and when your m ...Show All
Visual Studio Team System Hot to plus two numbers in DOS-Command?
There is needed for an auto-incrementing version number in my software build process. I want to place the version number(like 2.0.3.6) in a .txt file, and the txt file just has one row. Now i want to know whether it can plus two numbers in DOS-Command and return result Thinks! No, you cannot do this using DOS command. You will need to write a Task of your own. There is Math.Add at http://msbuildtasks.tigris.org/ which may do what you are looking for. BTW, there is MSBuild/Team Build sample task for managing assembly versions. Check out my blog at http://blogs.msdn.com/gautamg/archive/2006/01/04/509146.aspx Thanks. ...Show All
Visual C++ Asynchronous event
This is C# code: public delegate void MyDelegate(int n1); public event MyDelegate OnMyEvent; ... OnMyEvent(1); // invoke synchronously OnMyEvent.BeginInvoke(1, null, null); // invoke asynchronously The same in C++/CLI: public delegate void MyDelegate(int n1); event MyDelegate^ OnMyEvent; OnMyEvent(1); // invoke synchronously OnMyEvent->BeginInvoke(1, nullptr, nullptr); // C3918 Surprisingly, I solved the problem removing eve ...Show All
.NET Development Import Data From an Excel File
I'm looking for the most efficient way to import data from an Excel file into a DataSet at runtime using managed C++. Do I use OLE or ADO.NET or ODBC or are they related I'm a bit confused as to how simple or difficult this should be. I believe I should be able to just link to the xls file with just a few lines of code. Any ideas Thank you very much, George Several threads here already: http://forums.microsoft.com/msdn/ShowPost.aspx PostID=85514 http://forums.microsoft.com/msdn/ShowPost.aspx PostID=69866 http://forums.microsoft.com/msdn/ShowPost.aspx PostID=58201 these are from sear ...Show All
SQL Server Using TRY...CATCH with RAISERROR
Hi, I am trying to write a trigger in SQL 2005 and am running into a lot of issues. Here is my code BEGIN BEGIN TRY DECLARE @count int --check for timeon which is greater than timeoff SET @count = 0 SELECT @count = count (*) FROM IVRCONFIG . dbo . C_GROUP_HOURS a WITH ( NOLOCK ), inserted i WHERE a . XFER_GROUP = i . XFER_GROUP AND a . DAY_OF_WEEK = i . DAY_OF_WEEK AND a . TIMEON = i . TIMEON AND a . TIMEOFF < a . TIMEON IF @count <> 0 RAISERROR ( 50001 , 16 , 1 ); END TRY BEGIN CATCH RAISERROR END CATCH END The error ...Show All
Visual Basic Drawing images to a picture box?
I'm trying to draw multiple images to one picture box (for a map editor) so that I can save the picture created as a file. I've been looking around but I can't find any help on it, so I'm posting here. It uses ONE picture box for the map and you can load one tile at a time, so I can load from the filename, from a hidden picture box, whatever I need to do. Thanks for everyone's help. It's fairly simple to do... If you're going to be making 2Danimation, you may want to consider directx. i have made 2d engines with the graphics object, and it looks 'twitchy'... There was nothing wrong with the code, just didn't refresh correct ...Show All
Visual Studio Express Editions an array of Objects?
Hi, I'm trying to get back into programming and I'm using Visual Studio 2005 and I need some help. I've create a DataTable and want to use the LoadDataRow method to add to the DataTable. I want to use this method because it will check for a duplicate entry. However, the LoadDataRow function requires an array of Object files and I can't seem to create one. Object^ objectArray = gcnew Object[3]; But the compiler doesn't like it and gives a message saying: "a native array cannot contain this managed type, Did you mean 'array<System::Object>" Does anyone know how to solve this Thanks in advance ...Show All
Visual C# C# .NET Profiler
Greetings ! Does Visual C# offers somesort of Profiling feature I made an application but something makes one of my "Use-Case" very very very slow !!! I would need to profile my code in order to generate a report that would show me exactly where the code is taking time to complete ! Thanks Acoquinar A free profiler is Nprof , nice, free and easy. When you want a full profiler with just some extra compared to Nprof i suggest ANTS Profiler . Here is a full list of available tools: NCover NDepend ANTS Profiler .NET Memory Profiler AQtime .NET Edition 2 - Automated Profiling and Debugging Compuware DevPartn ...Show All
Windows Forms Possible bug in transparent forms
I am working on an app with a transparent window. I do the standard things such as create a background image, set the transparent key to match the background, set no border, etc. If I set the BackgroundImageLayout to be "Center", I no longer get a transparent window. If I leave the image as "Tile" then I do get a transparent window as expected (i.e. the window is non rectangular and looks just like my image file.) I don't know why it should not work if the background image is "center". So far, the best I can do is set the image to "tile" and then size the window, but this does not work if I want to be ...Show All
