simmy's Q&A profile
Visual C# C# 2.0 doesn't allow me to use System.Void?
I love generics in 2.0! What a time-saving feature, less code to write! Plus it allows for more code re-use, and thus fewer bugs. I love generics, pat on the back to Anders and the C# team. I ran into a limitation, however, with C# 2 compiler and generics. I wanted to implement a method that would have a generic return type, for instance: TReturn ExecuteSomeDelegate<TReturn>(MyReturnableDelegate<TReturn> serverMethodToExecute) { // pretend there's lots of error catching & handling here... return serverMethodToExecute(); } This is all fine and dandy: // call some s ...Show All
.NET Development Designed for Windows XP 64 ?
Microsoft have a program for registering a product and then allowing the use of "Designed for Windows XP" logo by that product vendor. It seems that this is also open to products that run on Windows XP 64, but that there is no distinct logo for 64-bit. A product designed for Windows XP 64 or Windows 2003 64, may in fact be unable to run on 32-bit versions, so surely a seperate logo and designation exists So, is there in fact a logo: "Designed for Windows XP 64" or not Thanks Hugh Jochen is correct. There is a "Designed for Microsoft Windows XP x64 Edition" Logo. I would recommend the detailed document ...Show All
SQL Server Fit To Page? or Force Page Breaks?
Hello Using SRS2000 and SQL Server 2000, I have created a report with a graph and a matrix object as well as required headers/footers. The problem we are facing is that the matrix can grow larger than the page can support (graph takes up about 75% of the space between headers/footers) and will continue on the next page. Is there a way of forcing the graph and matrix to resize themselves to remain on a single page (ie, fit to page) If not, is it then possible to make the graph the exact size of the page and then force a page break and have the matrix on a second page (we would perfer not to have 2 page reports if possible). Than ...Show All
Windows Forms Unhandled exception using webBrowser
Hi, I hade unhandled exception using WebBrowser and it is easy to emulate the problem. Just 2 form, and on Form2 a webbrowser component, this code on a button: private void button1_Click( object sender, EventArgs e) { Form2 F = new Form2(); F.ShowDialog(); } When program close unhandled exception: Attempted to read or write protected memory. This is often an ind ...Show All
SQL Server SQLWB.EXE max cpu
SQL Server Management Studio 2005 Windows 2000 when I "Open Table" to view all the records in a table, the cpu goes to 100% and the records are drawn very slowly - about the same speed as you read ! I have re-installed all the software and also tried service pack 1. SQL 2000 worked fine. any ideas thanks John, UK Microsoft SQL Server Management Studio 9.00.2040.00 Microsoft Analysis Services Client Tools 2005.090.2040.00 Microsoft Data Access Components (MDAC) 2000.085.1117.00 built by: (_sqlbld) Microsoft MSXML 2.6 3.0 5.0 6.0 Microsoft Internet Explorer ...Show All
Windows Forms What permission is required for Process.Start()?
If I do a Process.Start() in a medium trust environment, I get a SecurityException. This is not documented in VS .NET 2003. What permission do Process & ProcessStartInfo require Frustrated in launching land. Mark Levison hi all, this is an old post but I would like to add some comment because it puzzled me at first... I found out that you&nbs ...Show All
Visual Studio Dynamic Images
I have a WinForms application that is using the Report Viewer control. The report itself is an embedded resource that contains an image control. Code sets the location of an external file for the image, and then passes the location to the report via a parameter. Code: Dim ImageLocationParm As New ReportParameter( "imageLocation" , FILE_NAME) With Me .ReportViewer1 .LocalReport.EnableExternalImages = True .LocalReport.ReportEmbeddedResource = "Images.Test.rdlc" .LocalReport.SetParameters( New ReportParameter() {ImageLocationParm}) .SetDisplayMode(DisplayMode.PrintLayout) .ZoomMode = ZoomMode.PageW ...Show All
Visual Studio Team System SharePoint Admin Question
Hey guys, I am the local sharepoint administrator here at the office and my dev team just got TFS working on a new box. They would like to add a dev team ad group as contributors to all new team projects that get created. I was browsing around but the permissions handling seems to be very different then standard sharepoint services. Does anyone know a way i can add an AD group to every site that gets created as a contributor level user on the WSS side of things Hi Jonathan, From the Sharepoint Administration Site -Start->Administrative Tools->Sharepoint Administrative Tools Select Set Sharepoint Administrative Group a ...Show All
SQL Server Differences between MSDE and SSE2005
Good Afternoon, Everyone. I know SSE2005 is built on Sql Server 2005 and MSDE was built on Sql Server 2000 so let's not start a thread discussing that. My question is more about the concurrency governor found in MSDE. I've heard people talking about the concurrency governor in MSDE being removed in SSE2005. Instead, performance is limited by the server configuration; one CPU, 1 GB RAM, and a maximum 4GB database. Can anyone confirm this What happens if the server has 2GB of RAM and/or dual processors Will SSE only utilize 1 GB and/or one of the processors Thanks for the help, Scott It will ignor ...Show All
Windows Forms Create listview so that it resembles Outlook Inbox
Can anyone help with any code that would allow me to create a listview in detail mode which allows each item to have multiple lines similar to an Outlook Style inbox e.g. Sender: Joe Bloggs RE: Sales Reports Have you seen Joe's sample that uses the DataGridView http://www.windowsforms.net/TrackViews.aspx ID=203&Type=Samples&Redir=%2fSamples%2fdownload.aspx%3fPageId%3d1%26ItemId%3d203%26tabindex%3d4 You can see a picture of it on the WindowsForms.net home page: -mark DataGridView Program Manager Microsoft This post is provided "as-is" ...Show All
Windows Forms Binding Navigator Problem
Hi, I was wondering how you see the code for the previous, first and delete buttons on the binding navigator. The reason being is I run my application and the user presses the + button which displays a new record but if they then press the previous or first record button the program crashes with an unhandled exception. This is because there are fields in the new record that are required. I have put in a try catch for the Save button click event as I can see the code when I double click the Save button. I can then handle the exception gracefully by displaying the error message to the user via a status strip label if fields are required ...Show All
Visual Basic return a handle?
I want to create a worksheet function that returns a handle to an object. For example the function call will create 1000x1000 matrix that is too large to display on the worksheet, but I want to be able to create a handle in the cell that the function call is made from that refers to this matrix. I can then use this "handle" as a parameter in some other UDF to query the elements. Can anybody suggest a way ...Show All
.NET Development Playing a movie from Memory
Hi, I am trying play an avi from a memory stream to WMP. I am able to play from disk but I NEED to stream it from memory for security. Can any one help me how this could be done My platform is C#, .net framework 2.0, any ver of WMP Thank you, Maple. "play...to WMP", so you want to convert an AVI file to a WMP file Or do you want to play a file with Windows Media Player ...Show All
Visual C++ Basic DLL Problem, I hope...
I just got VS Studio 2005 and upon running my first code for my homework I can't get it to compile and was hoping someone may know how to fix this without having to reinstall VS. Thanks in advance! 'HW5.exe': Loaded 'C:\Documents and Settings\charles gray\My Documents\Visual Studio 2005\Projects\HW5\HW5\Debug\HW5.exe', Binary was not built with debug information. 'HW5.exe': Loaded 'C:\WINDOWS\SYSTEM32\NTDLL.DLL', No symbols loaded. 'HW5.exe': Loaded 'C:\WINDOWS\SYSTEM32\KERNEL32.DLL', No symbols loaded. The program '[964] HW5.exe: Native' has exited with code 0 (0x0). Here's the build log too: Creating temporary file "c:\D ...Show All
Visual Basic receiving email with .NET VisualBasic
How can a .NET VisualBasic application or web app receive email you may try 1. your VB application connect to a Exchange Server using Post Office Protocol 3 (POP3) and Internet Message Access Protocol 4 (IMAP4) protocols as well as support for Simple Mail Transfer Protocol (SMTP) http://www.microsoft.com/exchange/evaluation/whatis.mspx 2. create your own SMTP server http://www.c-sharpcorner.com/Code/2003/Sept/SMTPPOP3MailServer.asp ...Show All
