Gorav's Q&A profile
Internet Explorer Development How to detect tab-change in IE7?
Hi I'm wondering if anyone knows how to detect when a tab changes in IE My toolbar has to detect when a) A tab changes site (This I already do by Navigate and DocumentComplete) b) When you change between tabs (this I have no idea how to do). I know there is a DWebBrowserEvents2::WindowStateChanged I maybe could use but I have no idea how to use it The only thing I've been able to even think about up until now is to create a thread that runs every second and checks what tab is visible, if it's not the one that was visible last check then fetch the document URL location from that, not that I've even gotten that to work very well... So I was hoping someone might be able to help me out, maybe show me some code on how to achieve knowing when th ...Show All
Visual Studio Team System Can this error message be improved?
This is the error message you get when the design-time validation database needs to be specified. (It was captured by using Shift+Ctrl+C, which captures the text in the error dialog instead of capturing the error dialog as a graphic image.) --------------------------- Microsoft Visual Studio --------------------------- Database projects require a connection to a local instance of Microsoft SQL Server 2005 for design-time validation. To perform this operation, you must open the Tools menu, click Options, and specify an instance of SQL Server 2005 that is running and to which you can connect. When that is corrected, you must then refresh or reload the database project. --------------------------- OK ------------------------- ...Show All
SQL Server Condensed Type vs Data Type
In the database diagram, it used to be that Data Type was int, varchar, char, etc. and Condensed Type was int, varchar(30), char(5), etc. Why was this changed in SQL 2005 Is this a bug My assumption is that it's because of the new data type "xml". The help says as follows:- Condensed Data Type Displays information about the field's data type, in the same format as the SQL CREATE TABLE statement. For example, a field containing a variable-length string with a maximum length of 20 characters would be represented as "varchar(20)". To change this property, type the value directly. ym ...Show All
Smart Device Development place a permanent quick launch button on the tray
is there a way to cause to a permanent quick launch button of my application in the tray thanks Oren. Why not to say from the very beginning that you are talking about smartphone The set of items at the top of the home screen is an MRU list provided by MRU plugin. You can edit the home.xml file used by you theme to add a permanent shortcut to your own app. The permanence is relative. It will be there after restart, but launching some applications will eventually push it out. For the other approach PocketPlus allows you to create a plugin with app shortcuts of your choice ...Show All
Visual Basic IF statement returns different result in vs03 vs vs05
Hi, All, I am running into a problem that could use some helps. I have two programs running side by side against the same data. The vs05 version is converted from the vs2003 version. The vs03 behaves as it was designed, but vs05 has a different result on the IF statement. When no data from the field, vs03 goes into ELSE part, but vs05 does not evaluate the If Not Is "" the same way, and goes into JobID line. But, WHY I know I probably shouldn't use IF IS, but neither = or == will work here. Basically, this is happening in datagrid double click event, the JobID column (col 4) could be string ("12345"), empty or null. The code tried to test if it is empty or null, if it is not, reset global JobID, else cl ...Show All
SQL Server SQL Exception: Login Failed for "SQLServername/username"
Hello Everyone, I developed an application using c# that accesses MS SQL server 2000 for records. It works perfectly well on my development machine. However, when I tested it on another machine, I get the Error "Login Failed for SQLServername/username". When I started developing this app, I got this same error on my development machine and I solved the problem by making the 'aspnet' account an administrator in control panel - user accounts in Windows XP. This however doesn't work on the other machines i've tested on, and i get this same error. Here's my connection string: "data source=SERVER\\VSDOTNET;initial catalog=MedicalCenterDB;integrated security=SSPI;persist security info=False;workstation id=SERVER"; Pl ...Show All
Visual C++ Inefficient code generated for SSE intrinsics
VC++ 8 does some pretty good optimization in general, but one area in which it seems to struggle mightily is the optimization of SSE intrinsics. I don't know if it's the case for all the intrinsics, but for the ones i am using i am seeing some pretty bad code being generated. for example, i have coded this function which calculates a fast square root approximation: __declspec(noalias) float rsqrtss_intrinsics( float number ) { float temp; __m128 reg1 = _mm_load_ss(&number); __m128 reg2 = _mm_rsqrt_ss(reg1); __m128 reg3 = _mm_mul_ss(reg1,reg2); _mm_store_ss( &temp, reg3 ); return temp; } which i call in this loop: ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Where are these "assets", "samples" and "starter kits" etc?
I bought my annual subscription to the XNA Creator's Club yesterday. I've just read this on the Creator's Club description: "Both subscriptions provide aspiring game developers with access to thousands of game assets from Microsoft and key partners such as Turbo Squid Inc., as well as white papers, specialized starter kits, samples and technical product support to help turn Your World, Your Game into a reality." Can anyone tell me where I can find these "assets", "white papers" and "starter kits" etc redneon wrote: Can anyone tell me where I can find these "assets", "white papers" and "starter kits" etc On developers machi ...Show All
Visual Studio Team System TFS Dual Server Installation
After a great struggle, compeletd the installation of SQL 2005 SP1 & TFS in a dual server environment. The setup worked for a while. As soon as the warehouse adapter kicks in I get the following error Event Type: Error Event Source: TFS Warehouse Event Category: None Event ID: 3000 Date: 5/25/2006 Time: 8:02:06 PM User: N/A Computer: BOLTFS02 Description: TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 5/26/2006 12:02:06 AM Machine: BOLTFS02 Application Domain: /LM/W3SVC/3/Root/Warehouse-1-127930753135918895 Assembly: Microsoft.TeamFoundation.Wareho ...Show All
Software Development for Windows Vista How to get(set) cursor position in my service before logon?
Hello, I noticed that an interactive service cannot run in vista any more. This issue is good to security, but bad news for me using an interactive service. My service is simple and needs only 2 functions - one is getting cursor position and the other is setting cursor position. These 2 functions can be implemented through one other user application after user logon. But before user logon, how can I do this job Thank you in advance. Sweating Egg;; Hello, Matthew. win32_userdesktop has 2 members - one is win32_useraccount and the other is win32_desktop. win32_useraccount and win32_desktop class do not have any member to indicate the current cursor position. Thanks f ...Show All
Smart Device Development How to turn on/off flight mode on smartphone
Hi, all: Can I turn on/off flight mode on scheduled time by code Is there any APIs to turn on/off flight mode Thx! Hi Yes, there is: use the extended TAPI API lineSetEquipmentState (hLine, LINEEQUIPSTATE_MINIMUM) The API CeSetUserNotificationEx can be used to implement the scheduling. ...Show All
Software Development for Windows Vista Official Release Date?
I am currently working a project where I am using Windows workflow and also .net 3.0. But in order to be able to actually release the project I have to be able to show on microsofts site the official release dates, whether they have passed or are still comming can anyone help. Thanks Thanks for the quick response. The issue here is I cannot release software with beta products. What I am after is a the actual release dates where I can show a microsoft page link on: Windows Workflow .Net 3.0 Thanks ...Show All
Windows Forms How to allow user to edit DataGridView column HeaderText
I would like to allow my users to edit in place the column header text of columns in a DataGridView. Is this possible or do I have to simulate it with something like a separate textbox that I superimpose over the column header Check out http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=224323&SiteID=1 . ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Not totaly sure.
I have never done any C++ or C# programming. (quite a bit in HTML) anyways I look for a few tutorials and wondering if you could give me some good links to ones that would be more helpfull with XNA, I DL'd and watched a 5 hour one but that was more for windows aplications in C# express. Anyways just a few links and a quick sentence on what the tutorial is about would help me alot. Thanks If you want to learn C#, then get the book "C# in a Nutshell" by oreilly. If you want to learn XNA then you need to learn Direct3D concepts, and the programmable pipeline specifically. I recommend you get "DirectX9 Programmable Pipeline" from microsoft press. If you just want to find more tutorials, try google . ...Show All
Visual Basic Problem in Filling Datatable using tableadapter (2ndTime)
I am using tableadapter to populate datasources. i wrote a sub and written the code to fill tables in that sub. and called it onload event of form. data is loaded in controls as form is loaded. i change data , add new records and whatever. but now updating using tableadapter . rather i have my own layer to write data into database. the problem is when i close the form and then i come back to this form no change(i just made last time) is available but it is as it was on first time. (But Database is updated ) All i want is to fetch the fresh data from data base when tableadapter.fill is called Please help me in this regard. Your single word may take out of this situation it would help if you can show us the code for this : ...Show All
