GLA's Q&A profile
Windows Forms Serialization of custom colors (and other types)
I have defined some custom colors (and fonts, etc.), and would like to be able to have designer serialize these as the custom types rather than numeric values. Here is a psuedo snippet: // Implemented as a singleton... details are excluded public class MyColors { Color _myGray = new Color.FromArgb( 42, 42, 42 ); public Color MyGray { get { return _myGray; } } // ... exclude other details ... } I apply MyColors.MyGray to the BackColor property of my custom control. Designer serializes the value as... BackColor = Color.FromArgb( 42, 42, 42 ); Instead ...Show All
Visual Studio Alternating the BackColor for Detail Rows in a Report
Is it possible to alternate the BackColor for every other detail row, similar to a DataGrid in a Report If this is a simple table, you could use something similar to this: =Iif(RowNumber(Nothing) Mod 2, "PaleGreen", "White") (see also: http://msdn2.microsoft.com/en-us/library/ms157328.aspx / Formatting section) If this is a matrix, you will need to follow the approach discussed in Chris' blog: http://msdn2.microsoft.com/en-us/library/ms157328.aspx -- Robert ...Show All
Visual C# Decompile,modify and recompile?
Hello! I would like to know if there is a software who can decompile,modify and recompile an assembly. I ask this because i create a software protection. If you any idea or suggestion! thanks, Wavemill Directly there is nothing... however if you use Lutz Roeder's .NET Reflector ( http://www.aisto.com/roeder/dotnet/ ) and Denis Bauer's Reflector.FileDisassembler plugin ( http://www.denisbauer.com/NETTools/FileDisassembler.aspx ) you end up with the source for an assembly. Throw in some Visual Studio to build a project out of it, make your modifications and hit build. Sure it’s a little roundabout, however ...Show All
.NET Development Computed Columns in TableAdapters
Hello, I'm very frustrated with the TableAdapter created by the dataset designer in Visual Studio 2005. Here's my problem: My select statement is just a select * from X. Some of the columns are computed columns, and should not be included in the update or insert commands. However, they are. I can't seem to get it to not include these columns in the update and insert commands without removing them altogther. This problem did not exist in 2003. Any advice Thanks, Bryce Bryce, Okay I'm not sure where exactly are your columns computed - as a part of the SQL Statement, or as Expression on the d ...Show All
Visual J# performance difference in .NET 1.0 and .NET 2.0
I recently upgraded a sockets application from .NET 1.1 to .NET 2.0. I found that the getByName method on the INetAddress class takes several times longer to execute under .NET 2.0 than it did in .NET 1.1. That is INetAddress.getByName("10.0.0.1") is a MUCH costlier operation under 2.0. Any suggestions on how best to go about 'recovering' the lost performance would be appreciated. Currently, I am caching the resolution, but it seens silly that a dotted IP address would take up so much time. In fact, any solution where I can convert a System.Net.IPAddress to a java.net.INetAddress trivially would be great. ...Show All
Smart Device Development GetServiceHandle in Mobile 2003 (VS2005)
Hi Alls, I try to use some functions like GetServiceHandle, ActivateService to manage service in Mobile 2003 but there is the complier error : error C3861: 'GetServiceHandle': identifier not found The <service.h> is included in project Thanks It seems like the GetServiceHandle API only compiles with the WM 5.0 SDK. I'm not sure why but I can try and find out if there's a workaround. Is your project targeting only WM2003 or 5.0 as well -- Mel Sampat Program Manager, Microsoft This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All
SQL Server Download December CTP?
I've got an old package that I need to take a look at in SSIS, but it was built in the December CTP. Is there anywhere I can download this version Yep, I tried it with the latest CTP and it opened OK. Thanks Kirk! ...Show All
Visual Studio Team System Load test report error
I got the load test to run and save its results in the database. When it's done, I clicked on the "Report" button to view a report, and I get this error: Cannot access reporting service 'http://mycomputername/reportserver/reportservice.asmx' (ListChildren Web Service method name is not valid.) I have reportserver installed on my machine, and the service is running. Sorry Jonas, this feature is not wired up for the beta, and has been cut from v1. We will make available sample Rosetta reports and Excel spreadsheets that report on the load test data in the database. You can still view the counter da ...Show All
Windows Forms Colors & performance
Hello, I'm working on a colordialog for my application. I would like to display a simple, grid-like array of colors to the user. I do it kinda simple. I add a FlowLayoutPanel to my form, and at runtime, I loop through my array (currently of 215 colors) and then add a PictureBox for each color to my panel. I simply set the BackColor of the PictureBox, to make it look like a grid. I could paint it all manually, but that makes it much harder to get the selected color, painting which color is currently selected and so on. Doing it this way, I can simply assign a method of my own to the OnClick event of the PictureBox. However, this seems to b ...Show All
Windows Forms How to add the items from one list box to another
I have to listboxes listbox1 and Listbox2 Two buttons Add and AddAll When I clcik Add button The Item selected in the listbox1 should get added to the listbox2 and it should be removed from listbox1 If the Item is not selected it should give error message When I click AddAll button all the items from lsitbox1 should get added to listbox2 and should be  ...Show All
Smart Device Development Read phoneBook of a SIM card on a Smartphone
Bonjour, j'essaie de lire le repertoire d'un smatphone, voici mon code : ------------------------------------------------------------------------------------- <StructLayout(LayoutKind.Sequential)> _ Public Structure SimPhoneBookEntry Public cbSize As IntPtr Public dwParams As IntPtr Public dwAddressType As IntPtr Public dwNumPlan As IntPtr &n ...Show All
Visual C++ changing the name of a file
I had a file named Node.h in my project. I renamed it to List.h and built the project again but dont see the name of the file being changed in the dsp file and I guess because of this I also dont see the new name in the editor. Thanks, KarthikR Make sure to clean you solution and try again. Thanks, Ayman Shoukry VC++ Team ...Show All
Visual Studio Refresh some objects to trying?
Hello Keith, - I'm trying to open a project by standalone exe but can't refresh a some objects(eg: word, excel and image) into active report. - Can I zoom in and out a image which insert into report at design time I's been trying to use GDI+ to redraw the image. Can you help me I look forward to your relay as soon as possible. Thanks Starfo Hello Starfo, As a first step you will need to ensure that the Visual Studio development environment is shut down. In your code you will need to ensure that you are closing the report document that you are binding to the viewer. You can do this by calling the .Close() method. So the steps ...Show All
.NET Development Can you make dlls that...
Is it possible to make a dll in Visual Basic .NET or Visual C# .NET that other programming languages can access and use Hi, The Regasm exposes the DLL for COM Interop - so any language which can work with COM such as Delphi can use it. I am not sure about BlitzBasic and if it supports COM. Regards, Vikram ...Show All
Visual Studio Msbuild skipping web projects
We have a solution that comprises of a number of assemblies and web site that compiles fine in the Visual Studio 2005 IDE, but not from msbuild command line. When we run msbuild for the solution the web site is skipped: Target http://localhost/Server/:Rebuild : Skipping because either precompilation is not enabled for this web project, or the "Debug" configuration is not supported for this web project. To enable precompilation for this web project, go to the "MSBuild Support" tab of the property pages for the project. I'm really confused what's going on here, can someone help Thanks, Chris Ward Have y ...Show All
