Sohailsoh's Q&A profile
Visual C# DoDragDrop causes COMException
Using Microsoft Visual C# 2005 Express Edition Beta, the following code ====================================================== .... label1.Text = "Please Drag Me"; .... private void label1_MouseDown( object sender, MouseEventArgs e) { label1.DoDragDrop(label1.Text, DragDropEffects .Copy); } ====================================================== sometimes causes --------------------------------------------------------------------- System.Runtime.InteropServices.COMException was unhandled Message="Invalid FORMATETC structure (Exception from HRESULT: 0x80040064 (DV_E_FORMATETC))" Source="mscorlib" &n ...Show All
Visual Basic Load Gif on Key Press up
How do I load a gif I want to load from specific gif on my computer... I have an empty picture box and I want a transperant Gif to load (and play) when i press key up. I also want to know how to move a picture with key up, my background picture down 1 pixel. when i press and hold key up. Easy stuff but i don't have the knowledge Alright this is the code I wrote...it works fine all alone but when its with my RPG code i get 2 errors TextBox1.KeyDown and Charcter.Image Private Sub TextBox1_KeyDown( ByVal sender As Object , ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown Select C ...Show All
SQL Server Lookup Transform with Variable Parameter
Is it possible to use a VARIABLE in the Lookup Transform I am setting the cache mode to partial and have modified the caching SQL statement on the advanced tab to include the parameterized query, but the parameter button only allows me to select columns to map to the parameter. I need to use a variable instead. I see the ParameterMap property of the transform in the advanced editor, but don't see how I can use this to map to a variable. Can this be done, or do I need to use a new source, sort and left join component to accomplish the same thing Thanks! Brandon Brandon I don't believe this can be do ...Show All
Visual Studio Exporting a report to pdf
Hi, I am getting the following error when I try to export a report to pdf. The process we are following is - 1. First we generate a report and store it in DB as a Document Blob. 2. When we want to view it, we write this DocumentBlob to the disk. 3. We then export this rpt to a pdf on disk. This process is working fine until we change the layout of the crystal report. I added a fake page header to the sub report, removed the already existing header from the sub report and am using the existing fields and not added any new fields. When the layout is changed and a new report is generated, export to pdf is working fine. ...Show All
Visual Studio Team System How many days left?
How can I tell how many days we have left before the 180-trial edition expires Trying to plan our upgrade and don't want to be left with a version that is expired. Marc would know, and he says that there is no easy way to tell: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=441447&SiteID=1 ...Show All
Visual Studio Express Editions Express install lockup
Hello! I've downloaded the visual c++ express installer only to find that it locks up during its "Setup is loading installation components, this will take a minute or two" part. Keep in mind that I have no proir 'beta' versions installed on this machine. In fact it's a fresh install of winxp pro with all the updates. Machine: Amd64 3000+ 1024meg ram ATI Radeon 9800 Pro and a pathetic keyboard w/out the space bar :) Let's keep this one going and see if anyone comes up with a solution. I'm getting exactly the same problem with both Visual Basic AND C++ Express installs. Basically, the progress bar gets as ...Show All
Visual Basic Web Hosting problem
Hello ; I have completed a small asp.net application and wnat to test it remotely on a server, but when i click on web hosting link on the startup page, the following message appear: " This feature requires that you have connected to the internet previously or are currently online." although my connection to the internet is working fine. Any help to this problem Thanks Hasan ...Show All
Visual C++ Tracking Reference (%), value, ref??
For a while now I have been reading the documentation, for Visual C++ 2005, in an attempt to migrate from native code to managed. I find it hard to understand how to use the different types, and what the equvivalent in native code is. Look at this code: ref class rc{}; value class vc{}; f1(rc^ c1){} f2(rc^% c1){} is rc^ myrc = gcnew rc; equvivalent to rc * myrcN = new rc; in native code And is " Handle to Object on Managed Heap " the same as " Pointer to Object " What is the difference of ref and value If i want a object on managed heap do I use the "ref" keyword, and value keyword if I want it on ...Show All
Visual Studio changing crystal reports conn string dynamically using auto attach feature of SQL Express
I need to switch between the databases at runtime for my crystal reports in .NET 2.0.We know that it is possible to change the crystal reports connection string at run time in .NET 2.0 and my question is related to SQL EXPRESS 2005 auto attach feature. Is it possible to implement the above scenario using the auto-attach feature of SQL’05 with Crystal reports. We are attempting to move the database from a full install of SQL'05 to a SQLEXPRESS with an AUTOATTACH. Please provide me any sample code which illustrates dynamically changing the connection string of crystal reports at rune time. Thanks, vaishu ...Show All
Software Development for Windows Vista How do you access serial ports above comm9
When trying to use the win32 api for serial communications there seems to be a limit on accessings serial ports. We have a system with 20 comm ports. Using BuildDCB we can only access ports up to 9, as in comm9:baud=1200... How do you configure the DCB to access ports 10 and above http://support.microsoft.com/kb/q115831/ ...Show All
Smart Device Development out of range exception
To all vb developer i have a label which use to store an address,however it is impossible for me to retrieve the address from database to store in the label. The error message show that out of range exception....., i check my label and the max length is enough to store for the whole address. So do any one know whats wrong with it Your information is incomplete so it's impossible to help you. Please see this for information you need to provide: http://www.danielmoth.com/Blog/2005/03/please-read-before-posting-to-ng.html ...Show All
Visual Studio Tools for Office Why VSTO doesnt work on WinXp and it does work on Win2k?
This is on open question So any ideas are welcome in order to get a VSTO solution working in WinXp that works on Win2k. 100% sure it has to do with the dlls, but which ones and can they be updated manually The two main errors HRESULT x800A03EC or COM object that has been separated from its underlying RCW cannot be used You have to be more specific in your question, don't hesitate to give more details on what you try to do.... Did you install all the prereqs What is the VSTO version you are referring to ...Show All
SQL Server Create DTS Package in SQL server 2005 (Ver:9.0.1116).
Hi, I am using SQL server 2005 (Ver:9.0.1116). I am unable to find how to create a DTS package from Sql Server Management Studio. It is showing "DTS 2000 Packages" in the "Object Explorer" of the Sql Server Management Studio. I want to know how to start a Integration services in Yukon. As,the DTS 2000 Packages in the Services tree does not Open nor can Import any package. Thanks! TechFreak You need to use the "Business Intelligence Development Studio" to build SQL Server Integration Services (SSIS) packages, not SQL Server management Studio. Go to: Start-->Programs-->Microsoft SQL Server 2005-->SQL ...Show All
Visual C# (407) Proxy Authentication Required.
Hi, I am trying to write a winform application that needs to access internet with or without proxy. the code is: string rssURL = "http://msdn.microsoft.com/rss.xml" ; // Begin the WebRequest to the desired RSS Feed System.Net. WebRequest myRequest = System.Net. WebRequest .Create(rssURL); System.Net. WebResponse myResponse = myRequest.GetResponse(); Resuts: 1. without proxy like home, the above works well. 2. with proxy like company, the above return error at the last line. i searched the issue online, a lot people talked about this, but i can not find a working solution yet. Any help is ap ...Show All
Visual Studio 2008 (Pre-release) Canvas, Rectangles, ClipToBounds slowness
We are thinking about starting a new moderately complex graphical application in WPF. But before committing to the platform, we are testing features to see if WPF can handle it. >:) One test application so far has a Canvas with ~800 Rectangles (added with C# using “canvas.Children.Add(..)”. These rectangles are movable by dragging them… implemented with Canvas.SetLeft(rect, newLeft) and Canvas.SetTop(..) from the MouseMove handler. I need some tips on how to speed this up. Currently dragging a single rectangle around causes 100% utilization with 20 FPS on a Xeon 2.8GHz… even turning down to 50 rectangles seems ...Show All
