Bruce M's Q&A profile
Visual Basic [VB.NET] How to merge many GIF Files into one file
I need to create a software that it merge many GIF File into one file container. My application has this form I want that when i click "Add File" it shows an OpenFileDialog and that add file's path in the ListBox And when I click "Merge File" It merge all GIF file present in ListBox And when I click "Split File" it split all GIF File present in a File Container and that It save GIF Files in the same directory of the File Container I tried to write the code but it change any bytes of the GIF Files when I merge :( and i don't know how to use Split Function in VB.NET [Off-Topic]I'm new in VB.NET and i don't know fine this new programming language Best Regards Flash That is the ...Show All
Visual Studio 2008 (Pre-release) In CurrentStateInvalidated handler, get the object the Storyboard was started with?
I have a ListBox with a bunch of styled items. On each item, an animation can be run, triggered by a mouse event. This is done in procedural code like this: private void OnRunMyAnim(object sender, RoutedEventArgs args) { Storyboard sb = FindResource("theStoryboard") as Storyboard; sb.Begin(sender as FrameworkElement, HandoffBehavior.SnapshotAndReplace); } The storyboard itself is defined as a resource with a CurrentStateInvalidated handler: <Storyboard x:Key="theStoryboard" CurrentStateInvalidated="OnAnimStateChanged"> Here's my question: In the handler, a ClockGroup is passed in. How can I get from there to the actual item that was passed to Storyboard.Begin() before Getting the name is ...Show All
Game Technologies: DirectX, XNA, XACT, etc. "Casting" Image to Texture2D for proper use in spritebatch
How can you make a Texture2D from an Image type Without saving it to a file and then loading it - that would be just too sad.. You can't just cast it like (Texture2D)SomeImage. It's really giving me a headache, especially since in assembly it wouldn't at all be necessary to change one type of image to an other - it would just work. If you must use System.Drawing, then create a memory stream, write your bitmap to it, reset the stream's position to 0, then hand the stream to Texture2D.FromStream(). ...Show All
Windows Forms Panel Opacity
Is there any way to make the background on a panel have 50% opacity so I can use it as a custom border http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=593219&SiteID=1 This might help. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Flash Movie in C# Direct3D game
In VS2005, i need to embed a SWF flash movie in a fullscreen Direct3D 9.0 based game. I have successfully added my swf(which was painful) and played the movie without problem. But, when I tried to switch the display from SWF flash move to Direct3D device. It failed! The followings illustrate the general flow of my problem: 1. load and display the SWF 2. user press space to start game (SWF get focused and read space bar), set SWF invisible by AxShockWaveFlash1.visible = false 3. start game, render Direct3D 4. game ended, stop rendering Direct3D 5. show the SWF movie again, set SWF visible by AxShockWaveFlash1.visible = true, focus SWF Problem raised from Step 4 to Step 5. This problem do not exist when I am not using the f ...Show All
Windows Forms Strongly typed DS and Dataview
Apologies for posting this here. I read through http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=350861&SiteID=1 which points here for strongly typed DS... Is that correct I'd never look for DataSet / View issues in Windows forms, really. --- For my work, I really like to use strongly typed DS and the functions generated for the relations. This makes it very easy to navigate through data, the code will look somthing like this for example: drCustomer.GetOrdersRows, returning an array of Order rows for the customer row I call it on - really easy to understand and use. However, sometimes you want the orders to be sorted - that requires a dataview... which cannot be set up the filtered rows array. So I end with ...Show All
SQL Server Installation Error
to I keep getting the following error "SQL Server Setup was unable add user NT AUTHORITY\NETWORK SERVICE to local group SQLServer2005DTSUser" everytime i try to load SQL 2005. How can i stop this to be able to complete the install Here are a couple of things to try: 1. Check the installation log files, located at %Program Files%\Microsoft SQL Server\90\Setup Bootstrap\LOG\Files for more details on the error. (Search for the text string "value 3" to get to the failed log) 2. Try to add the service manually to the local groups using the Computer Management Admin tool. Then re-run setup. Thanks, Sam Lester (MSFT) ...Show All
Visual Basic Someone please help! I keep geting this error when trying to use sql
Someone please help! I keep geting this error when trying to use sql in my program. I don't know what to do and it always shows up when I am using sql in my program. Why An attempt to attach an auto-named database for file C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\CID.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share. at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConn ...Show All
Visual Studio GlobalModPath
in VS 7.1 there was a registry setting for GlobalModPath. it was located here: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\NativeDE\Dumps You could use it to specify the window symbol server to download binary modules. This helped when analyzing memory dumps or remote debugging since it could get the binaries (and elminate the "matching binary not found" message) and then continue to download the symbols. in VS 8.0 this key does not seem to be used anymore. Now in VS 8.0 I have to set MODPATH under the command arguments for each project which is annoying. WinDBG uses the environment varaible: _NT_EXECUTABLE_IMAGE_PATH but that doesnt work with VS. Is there anyway to set the MODPATH globally via the en ...Show All
SharePoint Products and Technologies WebPart Sample
I am new to MOSS 2007 and webparts development. Does anyone have a sample webpart code developed in VS2005 for MOSS 2007 that renders actual controls(textbox/dropdown for input and command buttons) The sample web part articles out there just do simple writer.Write(). They are not really practical examples to build off. A website reference will be fine was well. Thanks in advance. The following is a link detailing development for SPS 2003, it should give you the information that you need... Developing Web Parts for SharePoint Portal Server 2003 in .NET http://www.devx.com/dotnet/Article/17518/0/page/1 ...Show All
Windows Forms dll.config file
In my Visual Studio 2005 VB Solution I have three projects. A Windows Service, a Class Library, and a Setup and Deployment Project I have a config file for my Class Library project, but I cannot seem to properly get it to be included in the setup without either manually including the file or by including the source files and then applying a filter to it so that only the config file is included. If I set the App.Config file to be "Content" and then add the content, it adds the file as App.dll.Config instead of <Project>.dll.config. (It actually seems to work correctly using the Source Files option, however I am concerned that if the dll project is expanded, some source files might accidentally get added to the setup proje ...Show All
Microsoft ISV Community Center Forums autocomplete
Hi all, I have a form with several combo boxes. I would like the users to be able to start typing in the field and it automatically completes the box. Can someone tell me how to get my form to autocomplete Thanks Where's the autocomplete property. I right click on the properties of the form and field and I don't see it. Thanks ...Show All
Visual C# Where are the messages going to?
hi everybody I've already successfully implemented a globally low level keyboard and mouse hook and it seems that this is all .net managed code could provide in global hooking. But after I got the message by the hook, where is this keyboard or mouse message going to the parameters and structures of hook event don't contain that information. any idea thanks in advance thanks Peter, but isn't it that when a message is posted to the message queue, the handle(hwnd) will be specified I mean in both SendMessage() and PostMessage(), the hwnd is in the parameter ...Show All
Windows Live Developer Forums MSN MESSENGER
I am using Visual Basic 2005. I would like to make an application which can control some options of MSN Messenger like sending an instant message. I would like to know which dlls I need (if any) and any references (if any). I would like someone to show me hiw it must be done. Thanks GlennZarb wrote: When I try to run it i wont mork because the application has failed to start because rtl70.bpl was not found. What can I do Really Would you like to tell me what's application name you run ...Show All
Visual Studio Debugging Addins
I've been working on an addin for a few weeks now, and the debugger has stopped catching unhandled exceptions in my addin code. The "Break when an exception crosses an AppDomain..." option is checked; I mention this because I found information (somewhere; I've forgotten the source now) that this option would solve the problem. It did originally, but... Anyone else have this problem Ben More information: The problem seems tied in some way to exceptions thrown within the context of a ShowDialog() operation. In my addin's command handler, if I cause an exception to be thrown outside of my own UI (ie: on the first line of the command-handler), the debugger catches it and displays the ...Show All
