ShaunP1989's Q&A profile
Visual Basic Some Questions
how on earth do you make a color transparent I'm not tlaking about a button color, not a 'textbox color', but a color on Paint. I painted a picture on Paint. I loaded it on VB, now there's a big black area behind it. i want the black area to go away. I want to make the color 'black' transparent, so that when you move it over something, the black area is transparent. Tu comprende Not comin' to ya How about, how do you make a certain color on paint transparent like, i put a graphic on paint (a 'character') and want him to appear on a terrain ('grass') without having an enomrous, squa ...Show All
Visual Studio Tools for Office Help deployment Microsoft.VisualStudio.Tools.Applications.Runtime error '8004040a'
i have a web site that enables users to upload excel workbooks and on the server i am adding a new sheet of mine(custom) and attacing a manged code behind to the work book this managed code is some kind of tool that opens in the action pane. 1) it works on my development pc - of course after configuring each end user pc 2) deploying it on another server, well that is impossible. my application is devided to two: the call is from an asp page in vbscript the vbscript creates a com visible object and calls its init this is how init looks like ExcelPricingHelper pricingHelper = new ExcelPricingHelper (workBookPath, demoEx ...Show All
SQL Server Execute a SSIS master package through an ASP.NET web app
I am trying to execute a SSIS package via a web application built in c#. I found a sample to read the output of a data flow task, but I'm stuck. If I build the command line syntax for the package, create a DtsConnection object and set the connection string to the syntax, what else do I need to do Thanks. Clay A call to the Variables collection with an index or name will return a Variable object. You modify its Value property. ...Show All
Visual C# Accessing Network Drive with Credentials
Not sure exactly how to go about doing this. I need to access a network drive programatically, but with set of credentials different then the ones the application is running under. Any ideas hmm, that seems weird. Accessing a secured resource with credentials seems like something that should be pretty standard. Just not sure if I need to use a WindowsImpersonateContext or PermissionPrincipal. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. LoaderLock was Detected?
I'm alittle stumped here... I'm trying to play an MP3 file with directx in vb 2005 express, it worked fine in vs 2003, but seems to not want to work in this version of VB :/ Heres what it says... DLL 'C:\WINDOWS\assembly\GAC\Microsoft.DirectX\1.0.2902.0__31bf3856ad364e35\Microsoft.DirectX.dll' is attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang. heres where the error occures: Dim tempAudio As Audio tempAudio = New Audio(fileOpen.FileName) That code is being executed when you click ...Show All
Visual C++ Browse feature now missing from property pages "additional include directories" etc
Previous versions on the project property pages, C==, General, additional include directories line had a ... box which allowed to browse to directories to find an include folder. (and at other places too ) The ... box is still present but it seems no longer to allow browsing, but it possible to type the address in still - MUCH less convenient and error prone. This is a valuable feature and it would be nice to have it back. Thanks Paul Hmmm... that's strange. I can click "..." and get the standard directory picker from that same dialog in Beta2. Are you using Beta2 Thanks, Tarek ...Show All
Windows Forms howto set "display" text of dg Column headers @ design time?
hi, I have a datagrid that pulls data from the database. the fields in the db are as follows: 1) companyId 2) companyName etc This casues the headers to appear as: 1) companyId 2) companyName etc ...not very neat :-( I want the column headers in the datagrid to be: 1) Company ID 2) Name etc IOW, I want to be able to assign the text for the column headers, via the&nbs ...Show All
Windows Forms Autocompletion in the command window problem
Autocompletion in the command window is not working for me. In Tools-Options-Environment-General I have Enable Command Window autocompletion checked. Any ideas Thanks ...There's autocompletion in the command window just kidding. Normally, it works fine for me as long as the objects are in scope. I tend not to be bothered because I always& ...Show All
Visual Studio sgen.exe exit with code 1
hi folks, can you plerase help me with the above error! I've reviewed the comments in a similar thread and carried out all the actions to no avail. My solution is made up of a Winform project which accesses a Web service in the solution. I've removed/added the web service and the problem project, to no avail. Please help. Thanks Was this a project that you upgraded from Visual Studio 2003 Have you tried 1) Removing the web reference and re-adding it to the project 2) Removing the project and re-adding the project to the solution Thanks. Faisal Mohamood | Program Manager | V ...Show All
SQL Server Time Series - Key Time and Missing Value Substitution
1. I am using datetime as the Key Time column and if I leave the parameter Missing_Value_Substitution (MVS) blank, it complains there are missing values. I have stripped the data down to a single sample series which *definitely* has exactly 1 row with each month (e.g. from 2003-01-01, 2003-02-01 ... 2005-07-01) and it still gives this error. 2 . What happens if there are multiple Key Time values, e.g. 2003-01-01 Bread 100 Shop1 2003-01-01 Bread 200 Shop2 2003-01-01 Milk 100 Shop1 2003-02-01 Bread 100 Shop1 Where Shop1/2 are treated as Inputs but Bread/Milk are in the Case Key column. I do not want to add the Shop ID to t ...Show All
Visual Studio Express Editions Visual C# Express Edition not installing behind a proxy
Hi, I connect to the internet via a proxy.But when i run the Visual C# 2005 Express Edition setup , it tries to download the Visual C# 2005 edition files and results in a runtime error. I tried installing BitTorrent(Background Intelligent Transfer Service) 2.0 ... It still does not work .. i am sure the setup uses the proxy settings. Please help! Bye Go to http://msdn.microsoft.com/vstudio/express/support/install/ for an explanation on how to download a CD image and install from it. Eric ...Show All
Visual Studio 2008 (Pre-release) No Designer View in VS
I have just recently tried to load up Cider in the VS 2005 RTM, but for I do not see the Designer Tab anywhere. I do see the DataGrid view when looking at the xaml. I have the latest January Orcas CTP release and see the new templates installed when I create a new WinFX project. The WinFX Runtime Components - January (CTP) are installed and the WindowsR (SDK) January 2006 WinFX Runtime Components (CTP) are installed as well. I am running the new Sparkle release and it seems that everything is installed ok, since I can use that program. What am I missing here Thanks for the help. Try launching ...Show All
Visual Basic VB vs C#. How capable is VB compared to C#?
I need some clarification please. I am learning VB.NET right now and have a co-worker who has a very strong technical background and feels very strongly that learning VB is a "waste of time in all respects" compared to C#. I don't understand this point of view. Since VB is a .NET language does it not posses the same capabilities as C# Am I on the wrong track I really enjoy the VB.NET syntax and am picking it up quickly. Here's my background ( being totally honest ). I am self taught, I learned C++ back in the late 90's. From there, I moved to C# because ASP.NET is the best platform availabl ...Show All
Visual Studio Express Editions Menubars on a panel with scrollbars
Hi, I have a form with a panel on it, with a menubar set to dock fill in vertical overflow mode on it. The menu is being generated automatically (in this case I am using it for a list of contacts). When it becomes to long for the windows form, i lose any new items. I need a scroll bar (like in outlook, on the list of current emails). Any ideas out there Try setting the menustrip.canoverflow = true ...Show All
Visual Basic How do I calculate the appropriate font size to fit a string within a given area?
I'm working on an application that displays multiple buttons that resize themselves when their container size changes. I've added a handler (AddHandler MyButton.Paint, AddressOf PaintMyButton) In the PaintMyButton routine, I'd like to paint a text string on the button that fills the button face regardless of the size of the button. I'm using the e.Graphics.DrawString(). The problem is calculating the appropriate font size as the button size changes. Is there a function or (efficient) algorithm that will will return a font size appropriate for the rectangle. I'm envisioning something like ... Function CalcFontSize(FontName, Displa ...Show All
