detzX's Q&A profile
Windows Forms How to determine a control design mode?
Hello, how can I determine whether my control is in a design mode or not Let's say I want to have the background color blue in designer and red when my application is running. I know there is a "DesignMode" parameter for Component objects, but for Control Hey, you could obviously use the DesignMode of the parent form of the control. Otherwise you could create a custom control and with its code define its behaviour in DesignMode by calling this.DesignMode. ...Show All
Windows Forms I cant open application manifest with IE
Hi, When I try to open the application manifest with IE, it does nothing. MIME types are OK, and in headers i can see the correct content-type application/x-ms-application. If i double click application manifest from explorer files it works, so the file type is well mapping. Could it be something in my IE explorer settings Thanks Jesus ...Show All
.NET Development Max pool size reached exception when trying to open a new connection
hi all, i am working on a asp.net web app and using ado.net 's SqlClient Data Provider to connect to sqlserver 2005. I am getting the exception " Timeout expired . The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connection s were in use and max pool size was reached." . Internally i am using a sqldatareader to fetch data from database. The dispose of both the reader and connection has been called wherever they are being used. The pool size is set to default i.e. 100. I have tried to analyze the issue by using the sp_who2 stored procedure in database and checking the count of connections to the database.What is happpening is that sometimes the pool size li ...Show All
Visual Studio Document Explorer takes 2-3 minutes to load
When pressing <F1> inside Visual Studio .NET 2005, it takes about 2-3 minutes for the Document Explorer to load (when it not was opened before). (See image: http://magerquark.de/data/misc/vs-document-explorer-01.png ) This seems to happen since I installed the .NET Enterprise Library and those December 2005/January 2006 Beta blocks. I uninstalled it, but the slow load behaviour consists. Seems to me as if Document Explorer is trying to "recompile" some help files each time it is opened, like it does for the first time. These are the contents I have currently loaded: (See image: http://magerquark.de/data/misc/vs-document-explorer-02.png ) Question: Does anyone know how to speed up document explorer again Thanks Uwe Can yo ...Show All
Visual Studio 2008 (Pre-release) Reporting Services/ReportViewer question
Hello, We are working on a WPF/.Net 3.0 based application with some reporting needs and we are hoping to use Reporting Services 2005. Is it possible to host the WinForms ReportViewer control in WPF context I have learned that WinForms controls can be hosted using WinFormsHost, but I wasn't sure about ReportViewer control sicne it's not really part of the .Net framework (I could be wrong about this). If ReportViewer is not possible, are there any other options for report integration (any other tool) at this point Thanks for any help/advice. Murthy I cannot answer for ReportViewer in particular, because I haven't tried it myself. But in general, for a full trust app, there is no restriction on the WinForms control bein ...Show All
.NET Development Authenticating client using SSLStream
I have seen the MSDN sample code for implementing SSL in a TCP client/server application (http://msdn2.microsoft.com/en-us/library/system.net.security.sslstream.aspx) I then wanted to add the 'optional' client authentication piece to this sample by changing the client to use: I Added: X509CertificateCollection X509Coll = new X509CertificateCollection(); I Added: X509Coll.Add(new X509Certificate(@"c:\Projects\SSLStreamClient.cer")); I Changed: sslStream.AuthenticateAsClient(serverName, X509Coll, SslProtocols.Tls, false); it originally was: s slStream.AuthenticateAsClient(serverName); I created SSLStreamClient.cer using makecert.exe and placed it in CurrentUser.Personal and in CurrentUser.Trusted Root Certi ...Show All
Visual Studio Express Editions How can I get the current Browser URL?
I have the need to automatically get the current page's URL for the user, how can I do that in VC++ 2005 express please DOSrelic wrote: I have the need to automatically get the current page's URL for the user, how can I do that in VC++ 2005 express please I don't understand the use case here. 1. Describe where there is a "current page." The user is at the PC and has attention on a current web page somehow. What is the user operating and what is the "current page " 2. Now, you have a program that you want to build in VC++ 2005 Express Edition. What is the user doing with this program and what do you have in mind for the program knowing the URL of the current page the user is viewing. What act ...Show All
Smart Device Development Developing a pictures cab
I am working on developing a cab file that will deploy all of the pictures that the system uses. This will allow the user to put the pictures on the storage card as required. The only thing i am adding to this cab file is a bunch of .jpg images. I am getting an error Windows CE CAB Wizard Error: File c:\docume~1\u4eevjas\locals~1\temp\wiz853.inf contains DirIDs, which are not supported ERROR: The Windows CE CAB Wizard encountered an error. See the output window for more information. ========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ========== I have looked and the qiz853.inf file does not exist. Can anyone inform me of what is happening and/or how to fix it. I think I have learned that t ...Show All
SQL Server SQL 2005 Service Pack 2
Can anyone tellme when SQL 2005 Service Pack 2 will be out It is a big problem when I can't look at an existing role and see what permissions are for a group of objects. I found this in forums: http://forums.microsoft.com/TechNet/ShowPost.aspx PostID=605425&SiteID=17 quote user="Bill Ramos"] Actually - we have a "fix" in for our service pack 2 that will be available in CTP form later this summer that will list all of the securables for a given principle that have been explicitly set. You may need to use the "Effective Permissions" button to see if the principle actually has permissions on the securable. Thank you, Bill Ramos, Lead PM, SSMS I've been checking the site above fre ...Show All
.NET Development Help with TripleDES and RC2 cryptography.
I have 2 questions - 1) I get the following Exception when I try to decrypt data using TripleDES. - "An unhandled exception of type 'System.Security.Cryptography.CryptographicException' occurred in mscorlib.dll Additional information: Specified initialization vector (IV) does not match the block size for this algorithm." How do I make things right The code is as follows - /* Provides TripleDES encryption and decryption using classes in the .net Framework 1.1 */ public class TripleDES_Cryptography { public static string Encrypt(string plaintext, string key, string IV) { TripleDES des3 = new TripleDESCryptoServiceProvider(); des3.Mode = CipherMode.CBC; byte[] by_plaintext = Encoding.ASCII.Ge ...Show All
Windows Forms Drawing line on Forms
Hi All, How do i get a vertical line on a Form Is there a control to do that or do i have to draw line using graphics Please let me know.. Thanks Jith using Windows.Drawing public void Draw() { Graphics g = this .CreateGraphics(); Pen p = new Pen( Color.Red, 5.0f ); g.DrawLine(p, 10.0f, 10.0f, 20.0f, 20.0f); } Try this in your form ...Show All
Visual C++ help needed to create flicker -free animation
hello !!... i need your help to create a flicker free animation with visual c windows application...i am a newbie..no MFC please....APIs would help...thanks in advance thnx for the post....but I hav tried it out already..if we indeed repaint the screen simply ( we have set 'bErase' to 1)...it would create flicker..... ...Show All
Visual Studio Tools for Office Can't get most basic VSTO 2005 SE Outlook Add-In to load
I have crawled all over the web to no avail. I have VS 2005, with VSTO 2005 loaded, and loaded VSTO 2005 SE. I try to run the basic 2005 SE Outlook Add-In template in debug mode from the IDE. I have not added ANY code, not even Hello World. On run, Outlook starts with a dialog box, Office document customization is not available. An add-in could not be found or could not be loaded. Clicking on the Details button gives no additional information. In Outlook under COM Add-ins, Load Behavior for the add-in states "Not loaded. A runtime error occurred during the loading of the COM Add-in." There are no other COM Add-ins (I don't have Newsgator or anything like it - already read that answer). I manually checked CAS, everything looks fin ...Show All
Smart Device Development Smart phones supporting wm 5.0's cameracapturedialog feature?
Hi, I want the device names that support the cameracapturedialog. I m having O2 XDA mini, it would be better that i have such device names that support this, so that i can further proceed for that. any one can suggest me the link for that particular. thanx Thanx alot Ilya. But wht u meant by "properly signed" I have made the app using cc dialog, and now dng testing on the devices, the main thing i want to test that many r facing the prob of lingering cc dialog after the app is closed. I want to check this, which is of high priority for my app.Thanx again, ya i hav SP5m and trying to get the other devices tht u told. thanx once again. ...Show All
Visual Studio Team System TSD301: The multi-part identifier could not be bound
I have this error: Error 188 TSD301: The multi-part identifier ".BO.BOID" could not be bound. D:\Work\Database1\Database1\Schema Objects\Stored Procedures\dbo.RFB_OrganizationReportReceiver_Sel.proc.sql 30 1 Database1 in this code CREATE PROCEDURE RFB_OrganizationReportReceiver_Sel AS declare @ActorRoleReportReceiver int, @ActorRoleGCJS int, @ActorRoleDelegat int, @ActorRoleProvider int, @ActorRoleServiceSupplier int, @ActorRoleEIRC int, @ActorRoleDez int, @ActorRoleMilitaryOffice int, @ActorRoleOVD int, @ActorRolePassportOffice int set @ActorRoleReportReceiver = dbo._GetEnumID('ReportReceiver', 'ActorRole') set @ActorRoleGCJS = dbo._GetEnumID('GCJS', 'ActorRole') set @ActorRoleDelegat = dbo._GetEnumID('Delegat', 'ActorR ...Show All
