marco.ragogna's Q&A profile
Visual Basic With Statement
All right this is a performance question. I know that in VB6 all of the tips and techniques suggested that when you were setting a lot of properties in an object that you use the with /end with statement. The benefits were stated as performance and readability. I think the readability is obvious but I am wondering about performance. In this still the case in vb.net There can be a performance benefit, ...Show All
Windows Forms Global Right Mouse Click at Design Time
Is it possible capture the right mouse click popup and add items to it I saw the DesignerVerb, but that's only for that particular control. Basically, if it's possible, I'd like to capture anytime a System.Windows.Forms.Control is clicked on. &nb ...Show All
Visual Studio Express Editions System.InvalidOperationException in System.Windows.Forms.dll
Hello, I use to do programming long time ago, in the DOS era, survived TRS80, Tiny Basic, GWbasic and Quickbasic. Recently I managed to pickup programming Basic style again with Visual Basic Express. After installing it and playing a bit around, I tried to find an initial setup for a Local area network packet sniffer. Google came up with a package called PackMon.NET and Sniffer.NET from v2softwares http://www.1vbstreet.com/vb/scripts/ ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can't build/run managed samples on x64
Hi all, I just downlaoded and installed the Dec 2005 bits. I can build and run the managed C# samples just fine on my 32-bit machine, but no luck with my x64 machine. When I build the default SimpleAnimation sample, it buildes fine, but gives me this error when I run: System.BadImageFormatException was unhandled Message=" is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)" Source="mscorlib" Sta ...Show All
Visual Basic VB & SQL DataRow Question
I have entered the following: drTemp = dsTemp.Tables("TableName").Rows.Find(SomeVar) Question: How do I find out if there was a find or If drTemp has data in it or If my request even worked Thanks In Advance. http://msdn2.microsoft.com/en-us/library/ydd48eyk(VS.80).aspx DataRowCollection.Find Method (Object) Gets the row specified by the primary key value. ...Show All
Visual Basic XML comments
My group is attempting to standardize on XML commenting for all of our classes and methods. We like the "Insert comments" option in VS 2005 but would like to add an additional tag <history> to the comments section. I know that we could probably do this manually each time we add a new class, but I would like to be able to have this new section come up automatically when we insert the comment. Is there a way to modify the XML co ...Show All
Visual C# Is this what you meant?
i want to pass by ref (which i did by adding the ref keyword) now i want to hold the reference to change the value later on. I've tried casting to an object but this doesnt work :-/ also tried a pointer member variable in my class but compiler complains about it. how am i supposed to do this in c# Here's a few examples. A lot of code but all this really clarifies some issues. Just run the tests and you'll s ...Show All
Microsoft ISV Community Center Forums Calendar control issue in excel
I wrote a customized spreadsheet in excel 2002 which uses the calendar control. When I used the spreadsheet on another computer I got an error saying that an object was not available. The error occurs where the calendar control should have been displayed. Since I want to use this spread sheet on many computers in the office how can I get the calendar control to work on any of the computers. Thanks Hi Carl, Here's ...Show All
.NET Development Installing and running IIS in WinXP Home edition
I do not have IIS installed in my Windows XP Home edition. Is there a way to get it Do I have to buy it Is it available free Where Hi romee, check out this articke that talks about a workaround for running IIS on Windows HE. http://www.internet.com/icom_cgi/print/print.cgi url=http://www.15seconds.com/issue/020118.htm Note: Use at your own risk. ...Show All
Visual Studio Express Editions Progress bar
I am currently makeing a web browser in VB express and at the bottem i wish to have a progress bar . i have the bar in place .... but i need a script or the code to get it to tell the user how much the browser has loaded. Also does anyone know how to make a tool bar ... e.g. File | Edit | veiw | Help etc. I would be soooooo grateful ... thanks a bunch Rhys Durham Hi lildotti, look, for the tool b ...Show All
Visual C# How can i insert a file in image column in c#??.
Hi My databse has a column named data of image type.. How can i insert a file in image column in c# How should i pass the paramater(type image) to a sql command Example: string command ="insert into table(id, data) values(1, ); ". SqlCommand com=new SqlCommand(command, connection); com.ExecuteNonQuery(); Thanks!! Here is excerpt from this address in my local MSDN (".NET Data Access Architecture Guide"): ms-help: ...Show All
Visual C++ Registry editing
I'm having trouble creating the code for a button to change a couple of registry keys. I've searched google for hours and hours now, but all the code I can find about registry editing doesn't work in my version (2005 beta 1). I can't even get the code from MSDN to work So my question is simple (I hope): Let's say I want that button to change the value from Username in the map HKEY_CURRENT_USER\Software\Blasoft\3dgame\ to Savarage, how woul ...Show All
Visual C++ Char to char
How can I convert a Char array to char array I am using windows form .net. i've resolved this question with this code: // This is the main project file for VC++ application project // generated using an Application Wizard. #include "stdafx.h" #include <vcclr.h> //#include "String.h" #using <mscorlib.dll> using namespace System; int _tmain() { // TODO: Please replace the sample code below with your own. &n ...Show All
Visual Basic Finding Folder Information when running on Terminal Server
I have a program that reads some ini files in the user's Windows folder. This works great in standard Windows like Win2000 or WinXP. But when the user is running on TS, there are two Windows folders that the user uses: 1. The standard Windows folder that the computer uses, and 2. a Windows folder under the user's Documents and Setttings folder. This folder contains all the Windows stuff that belongs to just this user. I currently use th ...Show All
Visual Studio Express Editions A reference to the "....dll" could not be added.Please make sure that the file is accessible and that it is a valid assembly or
When i add a .dll file as a reference in C# application it shows an error : A reference to the "....dll" could not be added.Please make sure that the file is accessible and that it is a valid assembly or COM component. Willfin David I assume you are working with VS2005. So here is the work around for that Execute "tlbimp <....>.dll" <Drive>:\Program Files\Micro ...Show All
