Hena's Q&A profile
Windows Forms Eyedropper issue
Im creating a eyedropper with a zoom-feature. When the eyedropper is activated a Form showing the zoomed version of the "current pixel" (the pixel at the tip of the cursor) and the surrounding pixels, will follow the cursor. My problem is that I dont want the Form to follow the cursor, I want the Form to replace the cursor. I have tried different things, but when i try it just starts to capture the colors shown on the form instead of those under it. Is there anyway I can capture the colors of the pixels under the Form I have also tried to hide the form when the colors is captured, but it just make some flickering (and it wont be a ...Show All
.NET Development Method to encrypt/decrypt passwords not working
I had a post asking the best way to encrypt and decrypt passwords and I got a great response from David. He said to go to http://blogs.msdn.com/shawnfa/archive/2005/11/10/491431.aspx for help. I did, and came up with the following code (C#): public static string Encrypt( string data, string password) { if ( String .IsNullOrEmpty(data)) throw new ArgumentException ( "No data given" ); if ( String .IsNullOrEmpty(password)) throw new ArgumentException ( "No password given" ); // setup the encryption algorithm Rfc2898DeriveBytes keyGenerator = new Rfc2898DeriveBytes (password, 8); ...Show All
Visual Studio Article : A Workaround to Customizing and Localizing the Microsoft ReportViewer .NET Toolbar
An article link : http://www.codeproject.com/csharp/custreport.asp A Workaround to Customizing and Localizing the Microsoft ReportViewer .NET Toolbar ...Show All
SQL Server DTS 2000 Designer Components
After installing the DTS 2000 designer components from the feature packI get the following error message when trying to open a package: ---------- SQL Server 2000 DTS Designer components are required to edit DTS packages. Install the special Web download, "SQL Server 2000 DTS Designer Components" to use this feature. (Microsoft.SqlServer.DtsObjectExplorerUI) --------- The thing is that I have installed them!! so what's going on here, is there a registry key I need to remove or something , I've uninstalled and re-installed them, rebooted the server numerous times but still no joy, SQL Server just tells me that they're no ...Show All
Windows Forms Permissions required for a DataSet inside a Control
Hi, which Permissions do I need when a Control uses internally a typed DataSet In general I've no problems with User Controls in IE, but I've one that contains a DataSet object and that doesn't get loaded due to a security exception. Jürgen Well, I'm fully aware how to set the permissions for my control and I have it already working ...Show All
Visual C# How to search string in a file?
Hi, I would like to know how to search string from a file. If my filename is "a.txt" and my search string is "abc", how can I do a search for this string If this string return true, I will take some action. Please advise. Thanks hi read the file and store in a variable then search the specified text u want ...Show All
Visual C# How to send an SMS through C#
Hi PPL, Can anybody help me in sending an SMS through ASP.NET. Probably, sample of codes and links are appreciatable. Regards, Vinoraja. Hi have a looksie http://www.codeproject.com/cs/webservices/SendSmsThroughWS.asp http://www.ipipi.com/help/send_text_message_using_csharp.htm http://www.15seconds.com/issue/010327.htm http://www.csoft.co.uk/sms/example_code/index.htm ...Show All
Visual Studio Team System TFS Security Question
I'm using TFS beta 3 refresh . I'm trying to figure out what permissions should the various groups that use TFS should have and how to crate them. I read the help online that come with TFS and found some discrepancies between what the help says and what the TFS actually does. Examples: 1) U nder the "Project-level permissions" ( I take it it same as Project Administrators group) section, it states that we can set permissions such as "Administer a build","Delete test results", "Edit build quality", etc. But these permissions don't exist. 2) The help also sates that "When you create a new team project, Team Foundation also ...Show All
Visual Studio Team System Build Machine on a different domain
Hi, I have TFS installed and running. I've installed the Build Service on a different machine existing on the same domain as the TFS. I performs builds, everything is working fine. Is it possible to run build on machine existing on a different domain That is, to install the build service on that machine and perform a build on it. The machine on the different domain can access the TFS, I've installed TeamExplorer on this machine and was able to connect to the TFS. Thanks, Michael. This should be possible as long as the domains trust each other. See http://forums.microsoft.com/MSDN/ShowPost.aspx ...Show All
Visual C# Debug Compile Problem
Hello! I have a C# project, a Windows forms application. It compiles without any errors, but when I compile it in debug mode, it compiles the application as it was a few hours ago. If I compile without debug it works just as it is meant to do. This is very weird since debug mode worked yesterday. Any ideas on what this could be I don't know exactly, but I think your debug version somehow not overriden by new one. I had something alike in VS6 sometimes, it had a bug - if compile was too fast, then file dates was not changed correctly and rebuild won't work. ...Show All
SQL Server SQL Express Family CTP Now Available
I’m happy to announce the release to public CTP of the following SQL Express Family products: SQL Server 2005 Express Editions SP1 SQL Server 2005 Express Edition with Advanced Services SQL Server 2005 Express Edition Toolkit SQL Server 2005 Management Studio Express (included as part of Express Advanced & Express Toolkit) You can download and install these CTPs from the CTP download page . Here is a brief description of each product: SQL Server Express Edition with SP1 SQL Server 2005 Express Edition (SQL Server Express) is a powerful and reliable data management product that delivers rich features, data protection, ...Show All
Visual Basic Can't install Refactor
OS = Windows XP Pro SP2 Tablet PC edition. VS = Visual Basic 2005 Express Edition Beta 2 with default folder paths etc. VB is working fine. I downloaded Refactor 1040 and executed it with full Admin privileges, but the install stops almost immediately with the error message "Setup could not find Visual Studio .NET 2005. Please install..." Help! What am I missing Tim, VB Express does not support add-ins. Unfortunately, refactor tool being an add-in is not supported on VB Express Edition. You would need VS Standard or higher Skus for it to work. Hope it helps. Thanks, Sarika ...Show All
Visual Studio 2008 (Pre-release) Practical questions
Hello all, For as far as I can see, LINQ offers key features that belong to the data access layer. (Not like the current features from System.Data in .NET 2.0.) LINQ is all about replacing existing data access layer code with LINQ code, I think. So is the true advantage that we don't have to write SQL code anymore If so, would the LINQ code be placed on the database server (stored procedures) or on the application side Would data access layers still exist And in what form Where would they reside On a (for example) SQL Server, or on the application side I could not find any 'best practices' yet on this subject. Hope you understand my issues ...Show All
SQL Server Custom Rendering Extension for HTML Fields
I am using RS 2005, a "comments" field in a database contains HTML content. When rendering the field on the report it displays raw HTML. Does anybody knows about a custom rendering extension that will render HTML content Thanks Fernando Has anyone resolved this I am facing a similar issue. My website has form that takes comments via FreeTextBox. It is probably similar to what is used on this FORUM! The FreeTextBox control returns text with HTML tags throughout. I need to display the same data via Reporting Services. Currently using SQL Server 2000 ...Show All
Windows Forms ListView ColumnHeader.TextAlign can not be set other than Left for Col 1
VB 2005 Beta 2. When editing the columns in the IDE properties page for a ListView control, I am not able to set the TextAlign property of ColumnHeader1 to anything other than "Left" - for example, "Center" or "Right". It also does not work in code: ListView1.Columns(0).TextAlign = HorizontalAlignment.Center Has no affect. Does anyone know why this might be Thank you very much for the link. Additionally, in this link there is a statement on how to implement a workaround for this particular requirement under the "Remarks" section. I have tried that work-around and it certainly does work. ...Show All
