JavaBoy's Q&A profile
Software Development for Windows Vista Blank page after loading an XPS in IE7
Hi I have .NET Framework 3.0 runtime and SDK RTM installed on my machine but after clicking a link to XPS document, blank page is shown and view source gives the following. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD> <BODY></BODY></HTML> Trying to open XPS documents multiple times results in multiple instances of XPSViewer.exe running. Now what gives (XPSP2) i tried using the standalone viewer from RC1 of XPS Essential Pack and it opens XPS documents fine. It's just no opening XPS documents within IE. Any ideas ...Show All
Visual Basic Records Question
Is there a specific way I need to treat tables for record sharing Say if, I was making a PO table and I was depending on the last entry to help populate my next number, is there a chance that I would end up with the same number twice, from 2 different people being on 2 different machines I know access would'nt(very, very, very slight change - a millisecond) Davids Learning Davids Learning wrote: and I was depending on the last entry to help populate my next number, And this is when primariy keys come into play...It is a best practice that every table utilize a primary key. When you do an insert into the db you can use the @Identity method to return the last primary key creat ...Show All
Visual Studio Express Editions help... function keys
help plz.... e.Handled = True If e.KeyChar = ChrW(70) & ChrW(53) Then MessageBox.Show("Sample") End If this code was located at form1_keypress when the user press F5, a message would pop-up. but it does not work... F5 doesn't generate a KeyPressed event, use the KeyDown event instead: Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown If e.KeyCode = Keys.F5 Then MsgBox("F5 pressed", MsgBoxStyle.OkOnly, "nobugz was here") End If End Sub ...Show All
Visual C++ Balloon Tooltip Problem using Win Vista SDK
Hi, I have win32 Api Windows Application, my application goes on to system tray intially and keeps running. I have handled event On Left click on application in system tray in WndProc. In this we call a custom balloon Function. Below is part of code i have in WinMain which Push application to system tray NOTIFYICONDATA structNID; //This is defined Globally Above WinMain structNID.cbSize = sizeof (NOTIFYICONDATA); // sizeof the struct in bytes structNID.hWnd = (HWND) hWnd; //handle of the window which will process this app. messages structNID.uID = IDI_ICON1; //ID of the icon that willl appear in the system tray structNID.uFlags = NIF_ICON | NIF_MESSAGE | NIF_TIP; //ORing of all the flags strcpy_s(st ...Show All
SQL Server Rich TextBox with Picture and Text
Dear All I want to create a RichTextBox, and then i want to show picture and Text at a time, suppose Welcome to MSDN Forum how can i accompalished this task. Thanks Sorry for missplaced thread, this problem is already solved, any one interested can refere to following URL http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=667916&SiteID=1 ...Show All
SQL Server Create HTTP request in Stored Procedure
Hi, I want to know if it is possible to create and execute a http request in SQL Server. I want to run the request in the database as alot of the data in the url would be retrieved from the database. I want to create a stored procedure that runs the request. The stored procedure must be called from a trigger on a table. The reason I want to go this way is because it would be alot faster that to get the data from the database and then execute the http request in the application. Another reason that I want it done on the database side is because the internet connection of my client is not as fast as the one I am using for development so I don't want the pages to load to many times and get the data between the server and the client c ...Show All
Windows Forms Font families
hey, I am trying to make it so that a combobox's items are all of the fonts the computer has, so I tryed this: comboBox2.Items.Add(System.Drawing. FontFamily .Families.ToString()); but that only makes it have one item with the words: System.Drawing.FontFamily.......... but I want it to show all the fonts currently on the computer...how would I do that Thanks :) FontFamiliy.Families property returns an array of FontFamily and you need to add an item to the combobox for each item in the array: foreach (FontFamily family in FontFamily.Families) { comboBox2.Items.Add(family.Name); } ...Show All
Visual Studio Tools for Office Office 2007 Add-in permission problem
Hi, I've written an Outlook 2007 Add-in with VS2005. When I used VS to deploy the add-in, everything was fine. Now I tried to deploy the add-in on a machine where no visual studio is installed. I're read this and I placed the dll file to a folder and got through the granting wizard of .Net 2.0 configuration. But when I tried to add my VSTO add-in via COM add-in browser, I got this message: <myadd-in.dll> is not a valid Outlook add-in. What else should I do Hi, Thanks for the hints, I looked for the original setup project and installed my add-in. However, it was inactivated by Outlook, and I can't find a way to make it active. The program contained no errors so I don't get it why inactivated. The link you gave me says the necess ...Show All
SQL Server SQL Server 2000 to 2005 Migration
I am in a process of migration our current SQL Server 2000 (Standard Edition with SP3 running on 32 bit windows 2000 server) to SQL Server 2005 (Standard with SP1 running on X64 windows 2003 server) For migration does current SQL Server 2000 requires Service Pack 4 Installed ...Show All
Visual Basic Why is it innapropriate to use overloads in module?
I am using a module in a larger project as a way to provide cross-class access to some global objects. I want only to allow access to the variables through properties (so I can do some error checking). It would be handy to overload some of my properties but I get a warning (not an error) suggesting that the use of overloads is not allowed in modules. Why I recognize that properties and methods in a module are treated as static, but I don't understand why that should prevent me from overloading. Any thoughts My property declaration is as follows; Overloads ReadOnly Property getOPCvalue( ByVal tagname As String) as Object ... Code here End Property I'm not sure I understand the reasoning fo ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Custom Vertex Format
I have been playing around with creating my own custom vertex formats in XNA. To test whether it works I am creating a vertex format that is the same as VertexPositionColor. I created a struct with a Position, Color and SizeInBytes property. Creating the vertex element array is also no problem. Until here my vertex format and that of VertexPositionColoris exactly the samen. The only thing that is different is what both return in the GetHashCode method. I believe this value is used to actually use it (in combination with the vertex element array to index this value). In the GetHashCode method I return: this.Position.GetHashCode() | this.Color.PackedValue.GetHashCode(); I got this from this article . Can anyone tell me what I am doing wrong ...Show All
Visual Basic Help with string manipulation in combobox
Hello, I have a combobox in which I populated as follows: John Smith - Count 24 How can I change that string in my combobox to read John Smith - Count 23 after I save a record ... and then John Smith - Count 22 and so on... I'm not sure if I could just grab the number value, and subtract it by 1 and then take the result and concatinate it back to the string... Thanks in advance. Hi Rashar, a possible solution is to create a integer variable and set that variables value as 23 dim countvariable as integer = 24 then set the combobox string as "John Smith - Count " plus the variable's value yourcombobox.text = "John Smith - Count " + countvariable.tostring put som ...Show All
SQL Server Replication error 0x8007000
Hi All ... I am attempting to replicate tables between SQL Server 2005 and a SQL Server CE database that will be loaded on a Symbol Handheld device. I have successfully created the Publication using SQL Server Management Studio. I am attempting to follow the directions in several MS on-line articles to configure IIS. I load the "Configure Web Synchronization Wizard" as directed and step through the prompts. I have attempted both Anonymous access and Integrated Windows authentication (using Administrator and custom built users as the authenticated users). I have the system utilize a virtual directory off of the default web site - I have validated the permissions of this directory to ensure that the assigned user as full rig ...Show All
Smart Device Development Hiding the blue toolbar
Hello, I have an MFC PPC application. I can't seem to figure out how to hide the blue toolbar at the bottom of the screen. I can get rid of all the buttons by resource editing, but the blue bar remains (with the input icon). Any help would be much appreciated! - Brent Hi Brent The following sample hides the menu bar on a Windows Mobile 5.0 Pocket PC device: HWND h = m_pMainWnd->GetSafeHwnd (); // Get the HWND of your main Window int height = GetSystemMetrics (SM_CYSCREEN); int width = GetSystemMetrics (SM_CXSCREEN); int caption = GetSystemMetrics (SM_CYCAPTION) + GetSystemMetrics (SM_CYFIXEDFRAME); // size of the 'start' menu SHFullScreen (h, SHFS_HIDESIPBUTTON | SHFS_HIDETASKB ...Show All
Software Development for Windows Vista Superimposing of text on moving video in DirectShow
Hi All, I m novice to DirectShow application programming and this is my first project in my career.I have to make an application which plays a movie file and superimposes the text upon it.Can i have the sample code please for reference. In this project i m able to run the movie file by using the sample code given in MSDN, after that i dont have any idea to how to display text.please help me Asap. Thanks for your time JD Prasad Thank you ! I looked over those samples and I found the text overlay....but I did not see a logo overlay for live video... Could you please show me how to overlay a logo on running video ...Show All
