bpeikes's Q&A profile
Windows Forms A Memory problem related to Window size
After my program (a WinForm app) started, it cost about 70MB memory(from statistic of Task Manger). However, after I minimize the main window, it changed to 5MB, then I restore it to maximized state, it cost about 17MB memory. In all situation, the virutal memory cost is the same. Could anyone explains this Thanks! Hi Lei, The behavior you're seeing is actually true for all Windows applications, not just .NET applications. You can find a decent overview of what's going on here: http://www.itwriting.com/dotnetmem.php -Shawn ...Show All
Visual Studio Different behavior between .sln and .sln.proj file
Hi I just discovered an interresting issue. I have created my own targets file that are called from my project file called Testproject.proj. I have changed the import line in the proj to look like this <Import Project="$(SolutionDir)..\MyCustomTask.targets" /> The interresting thing is that when I run my Msbuild command on the solution(Testsolution.sln) that contain the proj file it does not resolve SolutionDir correctly. But when I run MSBuild on the generated Testsolution.sln.proj SolutionDir does resolve correctly. Here is the output with the command: MSBuild Testsolution.sln Microsoft (R) Build Engine Version 2.0.5 ...Show All
Visual Studio Team System Error 28100.Error loading Event web service.
Hi, During installation I got "Error 28100.Error loading Event web service.". Any idea what is going wrong TFS is being installed on a Virtual Machine. Please feel free to contact me if you need any more information. Thanks, Bart ps. Is it possible to upload the setup log I went back to some lessons learned when installing tfs beta 2, one of which was to install wss before sql server (even though the install guide says to do it after). I installed wss, stopped the default web site, set the sharepoint site to port 80, then installed sql server. Then I manually configured report ...Show All
Visual Studio Express Editions Trouble with the avalon 2005 ctp release
I installed the Visual Express C# beta 2 recently, with it I installed the .Net Framework Beta 2 (v2.0.50215) Then when I tried to install Avalon from my cd it said I needed to install the v2.0.50110. So if I uninstall one .Net Framework one product wont work, I would really appreciate any help with it, because I need to start working with Avalon as soon as possible. Danke! No - the last release of March 2005 CTP of Avalon ONLY works with the February 2005 CTP of C# Express which installs the February 2005 Release of .NET Framework 2.0. If you installed the April 2005 CTP of C# Express and the .NET ...Show All
.NET Development Problem using SSL with httpWebRequest
I am getting the following error while trying to call a SSL enabled site using httpWebRequest. Exception Details: System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure. Source Error: Line 83: Line 84: Response.Write("<font color=blue>Remote response goes here :D </font><br><hr width=100% color=red>"); Line 85: WebResponse wrs = wr.GetResponse(); Line 86: Stream strm = wrs.GetResponseStream(); Line 87: StreamReader sr = new StreamReader(strm); The code is as follows HttpWebRequest wr = (HttpWebRequest)WebRequest.Create( http ...Show All
.NET Development How to transfer an object between two .net app?
I've two app that have been written in .net (server and client). I wana send a command to server via client and in response server returns an object ( e.g. OleDbDataReader). Is there any way sir, i am new to .net and vs2005.but i am doing my final year project in .net. in my project i want to create two application (client and server ) to communicate. so, i need ur help. how to create those two application and how to make a communication between them. please help me. code snippets are welcome. hope i will get reply. thx, kamaraj. itkamaraj@gmail.com ...Show All
SQL Server Adapters in SSIS?
Are there adapters available to connect to SSIS for 1. Siebel 2. IBM MQ Please let me know what are the alternatives if they don't exist. I am still struggling to understand the core functionality difference between BizTalk and SSIS Thank you. Not out of the box but I believe a company called Attunity build adapters for other systems so you might find them useful. Core difference between SSIS and BizTalk That's an incredibly open question. At a very very high level BizTalk is for interactive real-time integration typically on small data packets whereas SSIS is batch and works on much large ...Show All
Windows Forms UserControls Adding at Runtime Into Panel do not display
I have a simple user control that has an image and 3 labels. My Goal is to add these to a Panel control stacked vertically ontop of eacher to make a list. When I add these at design time everything displays properly no problems what so ever. here is the method that is called on the Form Load Event: (Note the values in the method are test values) private void PopulateBuddyList() { BuddyLineItem. BuddyItem buddyItem1 = new BuddyLineItem. BuddyItem ( Directory .GetCurrentDirectory() + @"\Images\S.jpg" , Color .Black, "User Name1" , "Out of Office" ); buddyItem1.Location = new Poin ...Show All
SQL Server Database Mail Fails For SQL Server Agent Jobs
I'm having a problem with database mail in SQL Server 2005. I have set up a default profile and been able to successfully send test emails. The problem occurs with notifications for sql server agent jobs. I've set up email notifications for when certain jobs fail, but the emails aren't being sent. The following errors show up in the sql server agent log: "Message [264] An attempt was made to send an email when no email session has been established" I tried re-starting the sql server agent and the following message appeared in the log: "Message [355] The mail system failed to initialize; check configuration settings" B ...Show All
Visual Basic Cursor in a textbox window
I have a complex class full of controls including a Rich Text box and a regular textbook. The class is designed as a tab page to be added once or multiple time to a tab control. This class inherits Windows.Forms.Form. When the page is added, I want the cursor to be in the ordinary text box. It isn’t. There is a prescribed way to do this: To programmatically click the right mouse button 1. Create a MouseEventArgs whose Button property is set to the System.Windows.Forms.MouseButtons.Right value. 2. &n ...Show All
SQL Server How to delete the uploaded files in Report Manager
Hi, Is there a way to delete uploaded the report projects in http:/Localhost/ReportServer Thanks, Zixing Wang Note: the Detail view is only available in report manager (.../reports), not through the /reportserver virtual root. -- Robert ...Show All
SQL Server Bad performance of ReportViewer control while first call to ReportingServices-DB
I try to render & process my ReportViewer Control under .NET C# with method RefreshReports(). This works fine except if the Control makes the first connection to ReportingServices-DB. It takes nearly 1 minute til the method call returns and the Control is indicated! For information: I use Windows Authentification and SQL Server 2005. Any suggestions to solve this problem ...Show All
Visual Basic How to access SMTP IP of a message using CDO (1.x)
Hello I would like to know How to access SMTP IP address of a message using CDO (1.x). I can access SMTP Header of a message using CDO but i want only IP address. Chaitanya ...Show All
Visual Studio 2008 (Pre-release) stream media problem
I use wpf to create a smart-client application like mediaplayer. But I hope it should play musics which are stored on a server and should be played as a stream, that means the music files should not be downloaded/cached on client machines before they are played. How can I deal with this Try to set the source of the mediaelement to the file located on the server. If you can access to the file, it should work :) ...Show All
Windows Forms Collections and Properties
Quick question, right now if I wanna say change all the columns in my datagridview to notsortable, I am itterating through them, but what I am wondering is if there is anyway to set a property on collections of the same items without itterating. I have no idea if this is possible but if it was, I would have to think it would be more efficient. Just interested thanks Arrays and List<T> support ForEach() which can do that. Collection and Collection<T> do not support this operation but you could create wrapper classes (if possible) to do it. Ultimately though it'll still boil down to a ...Show All
