KarimRadi's Q&A profile
Visual Studio Express Editions Linking Forms - Please Help! Im New to VB
How do you make a command button link to another form in the same project Expected end of statement, what exact code to i put in the command button code thing to open the form2 when clicked im really confused ...Show All
Visual Basic Mouse back/forward buttons with webbrowser
I'm trying to set up a WebBrowser control so that it will respond to the user pressing the mouse's Forward or Back buttons and navigate accordingly, regardless of where the cursor is located in the form. The WebBrowser control doesn't have any click event handlers, and I couldn't add one with AddHandler, so I'm not sure what to try. Searching here, I read about GetAsyncKeyState which can be used to get the status of the mousebuttons, but I don't know how I would use this to code an event handler for these buttons. Thanks, ReneeC, that almost got me on track. I added Dim currentPage As HtmlDocument and in the WebBrowser.DocumentCompleted event I added currentPage = webform.Docume ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do I find the collision normal of two rectangles?
If anyone has any idea, please let me know. I'm not entirely sure how to begin on this one. I've got collision detection down, but have no idea how to find the normal. The normal of an object is usually derived from the dot product of the verticies you are checking for collision against. This is usually done more easily through the use of bounding boxes or bounding frustrums. Try looking on http://gpwiki.org and www.gamedev.net both are very useful for finding out about such things. Also have a look at the Farseer Physics engine on codeplex, which has a lot of collision code and should help. Hope this helps Darkside (P.S I'm going completely from memory here as I couldn't find the article I read this from by the way ...Show All
SQL Server no luck w/ execute sql task and assigning variable
Hello, I've asked this question before and I've read the answers before and I still cannot get it to work. My task is simple, I want to use the execute sql task container to grab a value from a database and put it in a variable. I've done all the preliminary stuff such as running profiler to make sure that the package is getting the call to the database, setting up the ResultSet to be "single row" in the general tab, mapped the Result Set correctly, but nothing works. I get the same error every time. This is my sql command: select output_location as output_location from script_master Result Set is set up like this: Result Name: output_location ; Variable Name: User::output_location Here is the error I get: ...Show All
SQL Server Problem in trigger
hiii i am creating a trigger for insert ona table in .net and in that trigger i want that send a mail thrugh that trigger, and when i insert a record in that table in sql 2005 then the error comes this , plz tell me solution for this (14 row(s) affected) Msg 6522, Level 16, State 1, Procedure CalculateResult, Line 1 A .NET Framework error occurred during execution of user defined routine or aggregate 'CalculateResult': System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. System.Security.SecurityException: at System.Data.SqlServer.Internal.ClrLevelContext.get_WindowsIden ...Show All
Visual Studio can't installing
I am follow " Extensibility Guided Tour" article to make my msi file. But, when setup it then have messagebox " This is a VsPackage and Requires Visual Studio to be installed". Please help me.. thanks.. PS: I have PLK. Hi Dmitry Pavlov: Yes, I have PLK and I follow " Adding a Package Load Key " article to setting PLK in my VsPackage. When I run this project in VS.NET IDE, then it open new VS.NET IDE on my screen, then I click [Tool] menu can see it. then I click this VsPackage on the output window show massage to me. Message is: VSIP: Third party package 'no.NPXmlTree.NPXmlTree, NPXmlTree, Version=1.0.2525.17442, Culture=neutral, PublicKeyToken=e2f988878efa8de8' approved to load ( GUI ...Show All
Visual C++ Using Mlan DLL
Hi guys, I am new to using DLLs in VC++. I am trying to invoke the DetectInputCodepage function in the MLang.dll within the System32 directory. Based on some preliminary tutorials that I read, I tried out the following code # include <windows.h> # include "Mlang.h" # include <fstream> using namespace std; typedef HRESULT (*MYFUN)(DWORD , DWORD , char*, int, DetectEncodingInfo *, INT *); typedef HRESULT (*MYFUN1)(LCID ,BSTR* ); typedef HRESULT (*MYFUN2)(UINT ,LANGID, PMIMECPINFO ); int main() { MYFUN pfun; HMODULE hMod; hMod = LoadLibrary("MLANG.DLL");   ...Show All
Smart Device Development Mobile 5 SDK for Pocket PC install hangs
Tried for hours to get Mobile 5 SDK for Pocket PC to install. The original problem was that my McAffe was stopping various scripts from executing. The install hung after McAffe stopped the scripts. Then, after I turned off the McAffe script analyzer, the SDK tried to rollback and attempt another install, but those installs eventually hung. By "hung" I mean the install wasn't using disk or CPU, there was nothing after the word "status" above the "progress indicator", and the "progress indicator" didn't progress. The "remove" option also hangs. Help The install went fine. I dunno, it's just more convincing to me when the install runs clean. I wanted to start ...Show All
Smart Device Development Beta of Microsoft Certification Exam 70-540
Microsoft Certification Exam 70-540 is available in Beta form right now! This is a Technology Specialist exam for application developers in the mobility space. The Preparation Guide is available for the Exam at: http://www.microsoft.com/learning/exams/70-540.mspx . To register visit one of our independent testing providers: * Thomson Prometric: http://www.prometric.com/ContactUs/T...rs/default.htm * Pearson VUE: http://www.vue.com/ms/ Please use the following promotional codes when registering: Exam 71-540: BTA540 Best of luck! Howard Dierking Product Planner Developer and Database Certifications Microsoft Corporation Ahmed Waly wrote: Hi, Thanks for your post, i just en ...Show All
Internet Explorer Development Starting Internet Explorer 7 with multiple url paramters
I need to be able to open Internet Explorer 7 with several url paramaters so that each url will open at the same time. I would like to be able to do this from code (ie .NET Process.Start() command). Any suggestions would be much appreciated. There's no way to do this just using shell execution. You can CoCreate an IE instance and then call .Open on it, passing the new OpenInNewTab constant ( http://msdn.microsoft.com/library/default.asp url=/workshop/browser/webbrowser/reference/enums/browsernavconstants.asp ) to Navigate2 ( http://msdn.microsoft.com/library/default.asp url=/workshop/browser/webbrowser/reference/ifaces/iwebbrowser2/navigate2.asp ) See also http://msdn.microsoft.com/library/defau ...Show All
Visual Studio Team System TF60096: Ghost files in VSS
I am getting hundreds of errors when attempting to migrate source code from VSS to VSTF. It keeps erroring out on files that don't even exist in VSS (from what I can see). I have run a VSS analyze and it states that there are no inconsistencies. How can one remove these ghost files from VSS before I do the conversion ...Show All
Smart Device Development Virtual network not work with standalone emulator
I downloaded and installed the netsvwrap.msi and the stand alone Pocket PC emulator. I verified that the virtual network device is displayed in the network properties. When I try to start the emulator, I get the error: Error. No VPC Network adapters enumerated or no host network adapter with provided MAC address found. I have selected the "Enable NE2000 network..." check box in the configuration but I still get the same error. Is there any thing special I need to do Thanks for the help. Saad Hello, Found a solution. You do not need the virtual network driver. You need to install the Active Synch application. From the Device Emulator manager, use the Cradle option and on the Activ ...Show All
Visual Studio Tools for Office Copy Excel Sheet from one Workbook to Other Workbook
Hi Apurva I am developeing an Excel Application. i get Data File Daily. Based on this data file i need to generate two reports. approach i have taken: have Excel template which has two reports sheets [daily MIS] [OverView] Task pane offers selecting an excel file [data file]. copy a sheet [Daily Dump] from Data file and paste it into the Excel file generate based on template so now new file has two sheets[daily MIS] [OverView] + i copied sheet [Daily Dump] . Query How to copy a worksheet of one workbook into the other workbook i have been trying this long .... not getting answer CODE : ..... private Excel.Worksheet xlWS= null; xlWS holds reference to [Daily Dump] .[a file selected by user but whose visibility is set ...Show All
Visual Studio Integration
Is there any documentation on how to integrate Visual Studio 2005 and Visual SourceSafe 6.0 I need to integrate a project and can't after 2 days of trying. I try to do it from inside the Visual Studio environment and either it doesn't work at all or it puts the projects in the wrong area of SourceSafe. If I first add it to SourceSafe from the SourceSafe environment, then it just gives me a message. At best I'm getting odd messages and at worst crashing of the Visual Studio environment. There are too many messages, but here's one... --------- The project you have chosen cannot be correctly opened from source control. You are attempting to open a solution or project that was not added to source control using Microsoft Visual Studi ...Show All
Visual Studio Express Editions how to use MessageBox in visual stdio c++ express 2005?
How to use MessaageBox in visual stdio c++ express 2005 Are all include and lib files in VC6 fold renewed in the "Platform SDK for Windows server 2003 R2" Yes, Visual C++ 2005 Express Edition has Unicode selected by default, and in the VS 2005 world, MessageBox is a macro that expands to either MessageBoxW or MessageBoxA depending on whether compilation is for Unicode or not. With regard to your first question, not all of the libraries available with Visual C++ 6.0 (and Visual Studio 6.0) are available with the express edition. There is no support for MFC (or ATL). - Dennis ...Show All
