Melchior'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 Search/find a string on a webbrowser kind of custom editor
Hi, I've implemented a custom editor for my xml files, which are displayed in a webbrowser control within the EditorPane However I am not able to find a way to implement IvsFindTarget interface such that I can highlight search string on this webbrowser control. Imagine i have a nice table on the webbrowser control which represents my nodes in XML. Now if a user does ctrl+f and searches for a string in "current document", I am not sure how to implement this in a webbrowser control, which doesn't have textspan and stuff like we have in RichTextBox. I want to replace the default RichTextBox editor that is autogenerated while creating ...Show All
Visual Studio Express Editions Vb Express 2005 How do I select a paper tray and/or select a paper size
I would like to print an envelope. How do I select the manual feed tray and envelope size I have a new post that may or may not be useful. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=543293&SiteID=1 ...Show All
Smart Device Development MAPI
Hello guys, i am using Mail API on Windows Mobile 2003, i'd like to know which function is used to send a mail (when i use MAPISendMail it throws the NotSupportedException i think the parameters are wrong) can anyone help please Thanks in advance ps: isn't there any Logoff function (when i call MAPILogoff i get an error saying there's no entrypoint in cemapidll.dll for Logoff) Does anyone have a C# ( not C++ ) sample that uses cemapi.dll on Windows Mobile 2003 Thanks in advance ...Show All
Visual Basic Visual Basic 2005 express edition beta
after i download and installed Visual Basic 2005 express edition beta, i couldnt able to create new project to test it out, Is it the way it supposed to be . i cant see anything in the dialog box... Hi, You should see something in the File->New->Project. What Items can you see in the dialog box can you provide us with a screenshot I guess this is a result of a dirty installation. What type of installation did you do manual or through the internet Was there any previous VS Beta versions that you installed prior to this cheers, Paul June A. Domag ...Show All
Windows Forms Windows App over Terminal Serices
Hello, I have developed a small Windows Forms application using C# 2.0 that is monitoring an PBX phone system and it pops-up a screen when a call comes in to the monitored extension. The extension to be monitored is saved in the app.config XML file. The environment that the application has been installed in is a bit special. All users within this company access the same Server machine through Terminal Services through their own credentials. One application installation per user has been performed, application beeing installed on a separate user folder for each user. When the first application is started, it runs per ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Packaging a DirectX Game
Hi, I've recently started programming using DirectX and C#. I created a game and it runs fine on my development machine (.Net 1.1, DX SDK). But when I compile the game for a release, and move it onto a machine that only has the DirectX runtimes, it fails to find any of the neccessary libraries and will not start. I've tried telling to to "include resources" when it compiles, in which case it copies a bunch of .dll's to the release directory, but that still wont work on regular machines. It works fine on any machine that has the SDK installed. The regular machines are all running Dx9.0c and .Net 1.1. Any idea how to package a release ...Show All
Visual Studio Team System Centralize suppressions (no more attributes) in VS2005
Using VSTS, how can we avoid having to suppress violations all over our codebase I'm aware we can suppress things at an assembly or module level, but that's not my intent. I want to have fine-grain control, yet don't want my codebase polluted with all those attributes. This is the only reason we can't use the built-in Code Analysis in VSTS -- it screws with the code. I just want a separate analysis file that can store all the information it needs to, and stays completely separate from the source, but still get the benefits of VSTS and Team Build integration. Is there a way to hack the teambuild/msbuild stuff to use .fxcop project files but ...Show All
Visual Basic How to Count Files and Folders in a directory
Please post your code to count files in a folder and how to get the folder count in a directory. Thanks. Hi Kamal, Sorry about the delay getting back to you. Here you go: string s = @"C:\PathAndFolder" ; System.IO. DirectoryInfo d = new System.IO. DirectoryInfo (s); int folders; int files; folders = d.GetDirectories().Length; files = d.GetFiles().Length; Console .WriteLine( "The directory " + s + " contains " + folders.ToString() + " folders and " + files.ToString() + " files." ); Hope it helps. ...Show All
Visual C# Writing to File Properties (Like from Windows Explorer Properties)
I am trying to write a property (specifically the "Comment" property) of a file programmatically. This would be the same as opening the file properties in Windows Explorer, and changing the field. If I reference the shell32.dll, I can read the properties using objFolder.GetDetailsOf(objFileItem,14), but I cannot figure out how to write to it. Any help is appreciated. James Comment is a property of a shortcut file (LNK) and not a normal file. As far as I'm aware .NET doesn't expose shortcuts at all. You'll have to use interop to set the value. Alternatively you can simply op ...Show All
.NET Development Q: Using .NET 2.0 with VS.NET 2003
Hi, Does anyone know if it is possible to use .NET Framework 2.0 Beta with Visual Studio.NET 2003, meaning instead of .NET framework 1.1 can i use only SQLServerCE 2005 library from CF 2 in CF 1 i need to use the feature of the ResultSet instead of DataSet in VS2003 and i cannot use 2005 beta because it doesnt target CE4.2 , it only target CE5 ...Show All
Visual C++ conversion never gives up
This is on standard edition (Not express). After I convert a project, the .dsp and .dsw remain in the directory. If I open it later with the .dsp or .dsw (by accident) it wants to convert again. If I open the .vcproj or .sln first, it still sometimes wants to reconvert. I tried renaming the .dsp and dsw, but VS8 gets all confused. Are these 2 files supposed to hang around forever What is the best practice for converting from VS6 If/when you get all of your projects converted, is there a way to blow away all the old files to avoid confusion After converting you can delete th ...Show All
Visual C++ STDMETHODIMP
I am trying to compile some VC++ 6.0 code on VC++2005, and I get the following error: error C4430: missing type specifier - int assumed. Note: C++ does not support default-int The line of code is simple: STDMETHODIMP Func(WORD Index); Knowing that STDMETHODIMP boils down to " LONG __stdcall ", what's the problem here The same compiler error is generated for STDMETHOD. Any clue Thanks, Mo Try replacing STDMETHODIMP with LONG __stdcall your self and see if you still get the error. It looks like STDMETHODIMP is getting defined to nothing. Could you preprocess the file in questions ...Show All
Visual C# Formating question
Hi, all. I have a wee problem with string.Format. I'd like to write something like int data = 10; string formatedData = string.Format("Data = {{0}}", data); Console.WriteLine(formatedData); and have it output Data = {10} It doesn't of course, because string.Format is getting confused by the nested braces. Instead it outputs Data = {0} How do I best achieve my desired formating Regards, Angus Hi! Console.WriteLine(string.Format("Value={{{0}}}", 10)); {{ will be treated as { {0} is place for data }} will output as } result: {10} ...Show All
Visual Studio Team System ExceptionException Attribute message argument ignored
Correct me if I’m wrong here, but I have reason to believe that the “message” argument on the ExceptionExceptionAttribute constructor is ignored. Here’s my proof: I have a class I’m testing: Public Class Class1 Public Sub Foo() Throw New ApplicationException( "kaboom!" ) End Sub End Class And a unit test class: Imports Microsoft.VisualStudio.TestTools.UnitTesting Imports ClassLibrary1 <TestClass()> _ Public Class Class1Tests <TestMethod()> _ Public Sub FooTest() Dim target As Class1 = New Class1 targ ...Show All
