C#Architect's Q&A profile
Visual Studio 2008 (Pre-release) WinFX beta 2 is there
Go and get it http://msdn.microsoft.com/windowsvista/downloads/products/getthebeta/default.aspx I've downloaded the runtime and Visual Studio extensions, but when click the link to go to the SDK download page I get the following error: "The download you requested is unavailable. If you continue to see this message when trying to access this download, go to the "Search for a Download" area on the Download Center home page." ...Show All
Visual C# How do I enable Drag Drop Events for the Designer of my Control?
I have a ControlDesigner derived class and I set the EnableDragDrop to true and I never receive any drag drop events on my designer. What's up with that You mean you're not receiving anything after you've set EnableDragDrop to true and overriden OnDragDrop, OnDragOver, OnDragEnter, OnDragLeave of your designer What version of .NET you're using -chris ...Show All
Visual Studio Team System Getting Constructor Passed Parameters
I've cast an SqlParameter Newobj opcode's Value parameter to an InstanceInitializer class. I'm trying to find out if the second passed parameter in the constructor is of type HttpContext. I could do this by walking the IL around the Newobj instruction, but I'm wondering if there's a simpler way using the Parameters collection of the Instance Initializer class. I have tried: InstanceInitializer createdObj = methodInstructions //emoticons/emotion-55.gif" alt="Idea" />.Value as InstanceInitializer; // Some checking of number of parameters, etc here if(createdObj.Parameters[1].Type.DeclaringType.Name.Name == "HttpContext") { & ...Show All
Windows Forms Can't get the actual width and height of control?
I have a picture box. It was a container under it. When I access the height of the picture box it gives me the height including the container that is below it. Is there a way to get just the picture box height Thanks in advance, Devin ...Show All
SQL Server Parent Expression
I have created a Report that has many Datasets and they each link to an individual table in the Report. I need the tables to only show the Data that relates to a Parent field on the Report. E.G. John Smith (parent) Tasks 3 Task1 Task2 Task3 Appointments 10 ... etc Joe Bloggs (parent field) Tasks &nbs ...Show All
Visual C++ Adding bitmaps
How do I add bitmaps to a Visual Studios 2005 C++ program without using The Windows Forms interface or express edition. After adding a bitmap as a resource is there a way to insert the bitmap. Use Bitmap::FromResource() to load the bitmap from a .NET resource, then use Bitmap.GetHbitmap() to create a bitmap you can use with GDI (BitBlt etc) . Cast the IntPtr returned by Bitmap.GetHbitmap() to a HBITMAP handle. ...Show All
Windows Forms I need to run an exe as part of the install
I need to run an exe that installs an ODBC driver for an odd database. How can I get ClickOnce to see this as a prerequisite and run it if the driver isn't installed If you really want to make it a ClickOnce prerequisite, i.e. place it in the ClickOnce manifests, you'll probably need to use Mage to edit/update the manifest. If the ODBC driver doesn't show up as a project reference, then I don't think we can get it to show in the Application Files dialog. Another approach would be to use the bootstrapper. You can build a bootstrapper package that installs your driver, and when the user does the install, t ...Show All
Windows Forms how do u get frequency of the monitor???
i would like to set the resolution of the monitor for a game i know how to do that, and also how to set the frequency, but not how to get it in the first place! i want to keep the freq the same, so i have to know what it is to start with thanks a lot for all your help in advanse found it: Private&nbs ...Show All
Visual Basic Reproducing a File.Copy ArgumentException
Hi, I'm trapping System.IO.File.Copy exceptions and cannot reproduce a ArgumentException when 'sourceFileName or destFileName specifies a directory.' as documented. Does not Work: Catch argument As ArgumentException When IsDirectory(sourceFileName) Or IsDirectory(destFileName) ... error messages Catch argument As ArgumentException ...error messages Does: Catch io As IOException When IsDirectory(sourceFileName) Or IsDirectory(destFileName) Any suggestions on how I could correctly recreate the ArgumentException - thanks Hi, ...Show All
SQL Server DTS Mail task breaks after SQL 2005 uninstall/install
When I try to add a Mail Task in my SQL 2000 DTS, I get a message "Please make sure semmap90.dll is installed. When I try to register that dll using regsrv32.exe, it says the entry point is not found. Any ideas on how to get my e-mail task back I should point out that I've installed, uninstalled, and then reinstalled SQL 2005 on this machine. ...Show All
Visual C# System.Net.Mail problem
I seem to have a problem with System.Net.Mail. I am trying to send a email using smtpClient.SendMail() but it wont actually send the email until the app is closed. I cant find anything on the net about this and im not sure what the issue is. I tried it a similar app using System.Web.Mail in VS 2003 and it worked fine. Any suggestions Thanks Shane Sure here it is: private void SendEmail( string SMTPServer, string SentTo, string SentFrom, string Subject, string Attachment, string Body) { SmtpClient Mail = new SmtpClient (SMTPServer); Attachment attach; MailMes ...Show All
SQL Server Restore database from Yukon June CTP to September CTP
Hello: I am trying to restore a database that was created with the June CTP version of Yukon to another box that has the September CTP installed. However, I am getting the following error: ---------------------------------------------------------------------------- "The database was backed up on a server running version 9.00.0852. That version is incompatible with this server, which is running version 9.00.1314. Either restore the database on a server that supports the backup or use a backup that is compatible with this server. RESTORE DATABASE is terminating abnormally, (Microsoft SQL Server, Error: 3169)" ---------------------------------- ...Show All
Visual Basic Visual Basic 2005 (2): Won't let me delete stuff?
Just recently I've been having this problem where I will be typing in something and if I've typed it in wrong it won't let me hit backspace to delete it. Almost as if it freezes. I can type new stuff, but not able to delete it. Any ideas on this or is a re-install needed Thanks, Chris D. This is still a bug in the VS2005 release. Backspace and control functions will not work. A work-around is to go into the toolbar's Edit | Quick Find to retrieve the functions. ...Show All
Visual Studio 2008 (Pre-release) SVCUTIL.EXE Error
I am trying to get a very basic WCF service to work using the helloworld example described at: http://windowscommunication.net/collateral/pages/howto.htm I've built it exactly according to the instructions at that location using exactly the same code. (The only modification I made was to run it on port 8080...if I try to run it on port 80 as the orginal code, I get an IIS error that says that port is being used by another application. Here's the code I'm using: [code language="c#" ] using System; using System.Collections.Generic; using System.Text; using System.ServiceModel; namespace HelloService { class Program ...Show All
Windows Forms maskedTextBox 00/00/0000
when mask format is like 00/00/0000 it is not accepting the date 01/01/1982 it is taking as 1/1/1982 and it is raising exception Hi Have a looksie here http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=334434&SiteID=1 ...Show All
