MRDPrince's Q&A profile
SQL Server Changing destination database for SSIS Package
Hi, I have a small problem. I've gone through the SSIS wizard and created a dtsx file which imports data from an access file into a SQL Server 2005 database. It has been set to delete existing rows and enable identity insert. I then edited the .dtsx package in SQL Server Management Studio and added an environment variable configuration to allow me to change the destination database. In the script which runs the dtsx, here is what I have (it's an x64 system, so hi have to use DTExec): "C:\Program Files (x86)\Microsoft SQL Server\90\DTS\Binn\DTExec.exe" /file e:\testimport.dtsx /set \Package.Connections[DestinationConnectionOLEDB].Properties[InitialCatalog];newdatabasename and here is the error I get: Description: T ...Show All
Windows Forms Printing Large windows form in VB.net
I have a problem in printing large windows form. I have used following code to print the form. still it's printing like print screen, not complete form. Form is larger than the Screen and Scrollable. Private Const SRCCOPY As Integer = &HCC0020 ' create a printing component Private WithEvents pd As Printing.PrintDocument ' storage for form image Dim formImage As Bitmap ' create API prototype Private Declare Function BitBlt Lib "gdi32.dll" Alias _ "BitBlt" (ByVal hdcDest As IntPtr, _ ByVal nXDest As Integer, ByVal nYDest As _ Integer, ByVal nWidth As Integer, _ ByVal nHeight As Integer, ByVal _ hdcSrc As IntPtr, ByVal nXSrc As Integer, _ ByVal nYSrc As Integer, _ ByVal dwRop As ...Show All
Windows Forms How can I set a label background color with transparency?
Hi, I would like to know if any possible ways to set the lable background color with transparency Like we set the opacity value for the form. I check the documentation to say that we can set this.lable.backColor = System.Drawing.Color.Transparent; Transparent; However, following this way, the whole label will be invisible in the form. Thanks for your help. Sorry about the bad description. Let me make it easy. Is it possible for users to set lable opacity value Hope this is clearer. Thanks. ...Show All
Windows Forms C# converting a "PrintDocument" doc to a "Microsoft Office Document Image writer" doc
Hello! My application creates a document with help of the "PrintDocument" control that the user can than print out. Now my users ask to be able to send the document as an attachment instead of printing it. Preferably it should not be possible to change the attached document and I would like to avoid use of side products such as Adobe. I saw that the user has a possibility to "print" the document choosing a "printer" called: "Microsoft Office Document Image writer". The output is EXACTLY what I had in mind. My problem is that I do not know how to automatically do that (i.e. do it by code, without the help of the user). Is there anyone that knows how to do this ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Microsoft.DirectX.Direct3D.NotAvailableException was unhandled
While coding Microsofts/digipen's webcast class: http://www.digipen.edu/main/Webcast/Introduction_to_2-D_Video_Game_Development Session 5 I get the error below. Yet in session 4 the error does not occur. The only difference between the two is adding more sprites, moving them, and mirroring them depending on which side of the shooter they will appear on. I do not know enough about either the code or c# to figure it out. So I hope others have done this tutorial and found the answer. Also regarding this tutorial, all the sprites show a black box even though they are set to be transparent: Picture trooper01 = new Picture ( "trooper01.bmp" , Color .FromArgb(0, 255, 0)); 255 meaning grn will be/is the transparent c ...Show All
Visual Studio Express Editions help splitting text
I need some help splitting up some text that looks like this BOS DH 34 or other ways like (3 chars) *blank space* (2 chars) *blank space* (1+ chars) the last set can be a single digits or 2 digits. thanks for the advice Like so Dim s As String = "BOS DH 34" Dim textParts As String () = s.Split( New [Char]() { " " c}) -- SvenC ...Show All
Visual Studio Express Editions Open File
I have searched every where for this and I can't find what I need. I made a ListView and it is populating file names based on a certain directory on local hard drive. I am trying to figure out how I can make it so when the user clicks on the file name in the ListView it will actually open that file. This seems like it should be a simple thing to do, but I can't find anything on this. Thanks Okay that did work with most files. For some reason it didn't open pictures and autocad DWGs said they were in use by me and could only be opened with Read Only. Process.Start(My.Computer.FileSystem.SpecialDirectories.MyDocuments & "/" & Me.ListView1.SelectedItems(0).Text, Nothing) Thanks ...Show All
.NET Development Storing a generic class in a dictionary
Is it possible to store a generic class object in a Dictionary If so, how I've got an abstract generic class, Comparison<T>, and several concrete inherited generic classes. The actual types will be determined by a configuration file at runtime. I need to store a collection of any number of any combination of these inherited classes. Since they will all be Comparison types I was hoping to use a Dictionary to store them, but since the actual type T may well differ between them, can I do this, or do I need to revert to a Hashtable Dictionary < string , Comparison<T>> comparisons = new Dictionary < string , Comparison<T>>(); I think I've gotten around it by re-arranging my class structure - Now ...Show All
Visual Studio Express Editions how can i add gradient color to a usercontrol and or panel backcolor from my.settings
Hi i'm new to programing. I would like to know how i can add gradient colors to a usercontrol and on a panel. i woul like to select the colors from the my.settings.topcolor and mysetings.bottomcolor. ahmedilyas helped me to set the forms back gradient color. how can i set the back color on a panel and usercontrol. see sample code below for the form gradient background color. i would like to instead of specifying the colors blue and white i would select them from the my.setting Protected overrides sub OnPaint(ByVal e as PaintEventArgs) Dim theBackground as System.Drawing.Drawing2D.LinearGradientBrush theBackground = new System.Drawing.Drawing2D.LinearGradientBrush(new Point(0, 0), new point(0, ClientSize.Height ...Show All
Windows Forms Documentation / detailed explanation for InitializeComponent
Hi, I'm currently writing my diploma-thesis. I'm coding a C# project and use VisualStudio 2005. I need to describe the InitializeComponent-Method pretty precisely. Where does it come from What does it do and so on Of course I know all this, but I need some "real" reference like a book, article or the original MSDN-Documentation, simply something I can quote from Any suggestions, links or further info Thanks a lot and take care guys! JS P.S.: English or German language would be great Well, that's the point I didn't find anything but everytime the same " This call is required by the Component Designer . InitializeComponent () 'Add any initialization after the InitializeComponent () call" An ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Delay garbage collection?
In managed code, I understand that GC is performed at times which are hard (if not impossible) to predict, which can somtimes damage framerate performance. Is it possible to postpone GC until a time where the programmer would see fit For example, when the camera is not moving. No, garbage collection fires when the GC logic decides that it needs more memory. However it will only happen at a point when new memory is allocated so if you told new any objects (value types don't count) then you will never get a GC a GC level 0 will not be noticable in your game so you should work to only have those happen. This means either having very long lifetimes and very short lifetimes. Search Tom Millers blog and R ...Show All
Visual Basic NO LUCK STILL - ADO.NET PROVIDER NOT AVAILABLE ON MY MACHINE
This has got to do with the fact that the provider is hard-wired to OLEDB1 through the Data Link dialog. Up until now, there was always an option to select SQL SERVER (.NET Default Data Provider for Sql Server). For Some reason I don't have that option and although I can download every other provider, this one does not exist for download. someone help, if you can and good luck as I have tried endlessly to fix. jdonahue1971, In this situation, I suggest you to install the .NET SDK again for the first step. For the second step, could you tell me the version of your .NET Framework and IDE for developing You can also have a try to reinstall the Microsoft Data Access Component for the SQL Server connection. If you are ...Show All
.NET Development DataTable.Load() Generates InvalidOperationException
Hello All: I am having a problem with the following code generating a "InvalidOperationException". The exception is thrown sometime, but not all the times. Does anyone have any idea why this code may be causing DataTable.Load() to throw that exception Thank you kindly. Jerry... p.s. Please forgive the cross-post. I must have inadvertantly posted this to WindowsForms. ***** Start Here ***** public partial class CollectionDetailStatusDataTable { public event TableFillingEvent TableFilling = null; private EventWaitHandle tableFilledWaitHandle = new ManualResetEvent(false); private CollectionDetailStatusTableAdapter tableAdapter = null; public CollectionDetailStatusTableAdapter Adapter { get { if (tableAdapter == nu ...Show All
Visual Studio Team System Team Explorer -> Sharepoint binding
For some reason the link between Team Explorer and Sharepoint appears to have broken and I can't work out how to fix it. I can access my TFS project portal from http://tfsserver/sites/project/ but if I expand the project in Team Explorer the 'Documents' folder has a red x in it and is empty and the 'Show Project Portal' option is greyed out. Interestingly, if I open Visual Studio and do not expand the project in Team Explorer but just right-click on it then 'Show Project Portal' is enabled and links to the correct place. As soon as I expand it it gets greyed out. Any ideas Hello, sorry for the delay in replying I can access http://<server>/sites/<project>/_vti_bin/Lists.asmx OK, and I ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Managed DirectX10 on XP64
Hello, I am porting a C# app which uses DirectX from 32bit to 64bit. I downloaded the Aug 2006 SDK. I looked around and saw that in the folder: C:\WINDOWS\Microsoft.NET\DirectX for Managed Code There are many versions of the DirectX dlls, but there is only one version for x64, and that version is 2.0.0.0, which is DirectX10. I guess this is more of a request for a confirmation rather than a question. Is DirectX10 indeed the only version whose managed code dlls has been ported to 64 bit Or, put another way, if I'm going to use DirectX on Win64, does it have to be DirectX10 Thanks The other MDX dlls do not work when I set the build target to x64. I get a warning telling me they were built for a different p ...Show All
