Dan Lingman's Q&A profile
.NET Development XML is not visible in Internet Explorer 7
XML documents are not visible when I try to open them with Internet Explorer on my desktop. The same documents are visible in Internet Explorer on my laptop. Why would XML documents be visible on one copy of Internet Explorer and not another. Netscape and Mozilla will open XML documents on my desktop. At this point I'm relegated with using Mozilla to work with and view XML documents when I'm working on my desktop. Mozilla is not my first choice of browsers, but it's the only workaround at my disposal at this point. I've checked the XML settings in Internet Explorer and they seem to be fine. Windows XP shouldn't be the problem, but there is probably some setting in the registry that needs to be changed. Does anyone have a suggestion ...Show All
Visual Basic Executing System Stored Procedure in Windows Forms App
I'm new (very new) to stored procedures and I'm having difficutly executing the sp_addumpdevice system stored procedure to backup a database. I've put the following code in a button click event handler: Private Sub btnDBBackup_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDBBackup.Click USE master EXEC sp_addumpdevice 'disk', 'FIRM_Backup', 'C:\MSSQL\BACKUP\FIRM.Bak' End Sub The problem I'm having is Intellisense is telling me that "name 'USE' is not declared" and "name 'EXEC' is not declared." Can anyone assist a stored procedure novice with getting this working Thanks in advance for any assistance! Tony no worries :-) no idea why ...Show All
Windows Forms Only Allow 2 decimal places in a textbox.
I have a textbox which contains interest rate. (e.g. 89.56, 100.00 etc) How do I disallow user type in more than 2 decimal places. (user cannot type in 89.5678 or 80.876876967896) Thanks! Just found out this solution doesn't work really well. It didn't allow user to over write the text by just hightlight and type it. They need to press delete or backspace first. ...Show All
Visual Studio 2008 (Pre-release) Sylin' a Panel's Navigation UI
Hello Is there a way to style the navigation UI on a panel. I'd like to add more buttons around it. I saw a post about styling navigation ui for the navigation window. But I'm not sure how to style a panel so that its navigation ui would show more buttons. Thanks Houman ...Show All
Visual C++ CoCreateInstance returns E_ACCESSDENIED on local machine
Hi all, I'd like to use an interface provided by a third-party COM component on my local computer. But I failed with CoCreateInstance. Here is the piece of the code: CoInitialize(NULL); IXXX *p; GUID sourceobjID; HRESULT hr = ::CLSIDFromProgID(L"the ProgID of the lib", &sourceobjID); hr = CoCreateInstance(sourceobjID, NULL, CLSCTX_INPROC_SERVER, IID_IXXX, (void**)&p); .... I've tried CoInitializeSecurity, it doesn't work; And I've tried every kind of CLSCTX to fill in CoCreateInstance, only CLSCTX_INPROC_SERVER gives me s result of E_ACCESSDENIED, others give me Class not registered. I can see the type library in oleview. And my OS is XP with SP2. I'm running as administrator. Could anyone help me to ...Show All
Visual Studio Express Editions Table relationship
I have 3 tables I am trying to relate for a music player. I was following the example in the msdn however, my relationships do not seem right. Here are tables i want to relate: Table 1: ArtistID ArtistName: Table 2: RecordingID RecordingName ArtistID Table 3: TrackID TrackName TrackNumber TrackLocation RecordingID So the main idea here is that the foreign keys are recordingId and artistID. So what i did is created the 3 tables and then make a diagram to create the relationships. I then was reading this post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=219696&SiteID=1 What i want to do is use 2 different text boxes lets say and as i move from the records in the Record_table (2) the corresponding artist will change with it. How ...Show All
SharePoint Products and Technologies Please someone get me out of this mess
Hello all, I am new to Sharepoint but have spent a ton of time on this the past 3 weeks. I have gotten one W2K3 Server running with Sharepoint but even that one has issues i.e. I cannot get rid of the search service event log entries that correspond to the gatherer service Event ID: 2424. The 2 new Servers I have installed and configured just do not want to work. When I go into the admin console I immediately get a login box to which I input a domain account with admin priviliges and the login box keeps popping up many times until it finally will stop and display the page I want to see. Then when I click any other link the same scenario happens all over again Why is this happening I did not do anything different with this ins ...Show All
Visual Studio Model Namespace
Hello, is there a default 'value' of a domain model that i can access from within my T4 templates if i need a decent namespace I guess i am searching for a namespace that is build from the folder hierarchy. Just like when a new class file is added to a project; The namespace in that file is updated according to the folder branche the file lives in. I hope such a default value exists somewhere in the depths of domain models (or maybe the template architecture itself). I really dislike accessing ProjectItems to get such a value in the design i am currently implementing. Thanks in advance, Peter Vrenken Peter, I am not sure about the scenario you are dealing with here so my suggestion might not be useful at all but let's give it ...Show All
Visual FoxPro VFP can't display correctly with thisform.line method
Dear all: This problem only happened in XP enviroment. I use thisform.line method in the "form.init" event. when I do this form , moving the mouse focus cross through the from, then all object (button, grid, text box..) will disappear. The same form is ok in the Win2k enviroment. I only write the code as follows in the form.init event: thisform.line(10,100). Create a buttion without any code on this form. Then it will be happened. Does anyone know this kind of sitution Please kindly to help me. Thank you very much! &n ...Show All
Smart Device Development coredll.dll
where is my coredll.dll I'm trying following api function [DllImport("coredll.dll", SetLastError = true)] private static extern bool KernelIoControl(Int32 dwIoControlCode, IntPtr lpInBuf, Int32 nInBufSize, byte[] lpOutBuf, Int32 nOutBufSize, ref Int32 lpBytesReturned); and following is the exception Unable to load DLL 'coredll.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) somebody please help me Ilya Tumanov wrote: From error message it looks like you're running that on a desktop which can't work since there’s no coredll.dll on desktop. If that’s the case you should use API appropriate for desktop. I believe that KernelIO function ...Show All
SQL Server SQL2005 Performance problem with updating subscribers with identities
Since we've upgraded to 2005 we've had major performance problems with updating subscriber tables that contain identity PK columns set to manual or auto range management. If a table has identity range management set to 'None' (the "old" 2000 way), the peformance is fine. Below are sample tables: CREATE TABLE [dbo].[ID_RANGE_TEST]( [ID] [int] IDENTITY(1,1) NOT FOR REPLICATION NOT NULL, [DATA] [int] NULL CONSTRAINT [PK_ID_RANGE_TEST] PRIMARY KEY CLUSTERED ( [ID] ASC )WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY] ) ON [PRIMARY] GO CREATE TABLE [dbo].[ID_NONE_TEST]( [ID] [int] IDENTITY(1,1) NOT NULL, [DATA] [int] NULL CONSTRAINT [PK_ID_NONE_TEST] PRIMARY KEY CLUSTERED ( [ID] ASC )WITH (PAD_INDEX = OFF, IGNORE_DUP_KE ...Show All
Smart Device Development Context menu for File Explorer & iexplorer
I need a help on context menu.Please let me know any of you how to extend context menu for file explorer for Smartphone/Windows CE 5.x and Context menu for Pocket Internet Explorer Samrtphone/Windows CE 5.x. Thanks, Krishna Thanks alot Alex.I have succeeded with Contacts , Calendar and Picture & Videos applications with different Context and Class. But for file explorer (For example Right Soft key in \My Documents) and for PIE I do not know the Context and Class. Can you please help me out how to integrate the context menu in those applications ...Show All
Visual Studio Express Editions illegal else if statement?
Hi. I'm relatively new to programming and I was making a program for class to display a "receipt". This involved the user to input the amount of cashed tendered and I had an if / else if statement for if the amount was less than the amount owed. However, each time I try to compile, it tells me I have a illegal else if statement and I just can't figure out why! Here's the code, hopefully someone can help me out. Thanks. #include <iostream> #include <string> #include <iomanip> #include <stdlib.h> using namespace std; int main() { //DEFINING VARIABLES string itemOne = " " ; string itemTwo = " " ; string itemThree = " " ; ...Show All
SQL Server problems in sql server 2005 installation
Hello everybody Ok the problem is that i have sql 2000 in a computer with windows 2000 professional sp4. i'm trying to install the sql server 2005 in other instance. When the installation begins i don't have any problem, but when it ends, y try to enter to the manage studio and is not in the start menu. Sql 2000 is ok but i can't work in 2005 i reinstall both versions but the problem persist. I delete all the files in the instalation but when i install it again the problem apperas again. how can i install both versions Also the management tools in SQL Server 2005 require that IE 6 be installed, and this is not installed by default on Windows 2000 operating systems. If you could, would you mind posting the contents of the Summa ...Show All
SQL Server Keep fields together in table control
I have a table that display large amounts of text in some fields. The table only has two columns (Field Name and Field Data). If the Field data is too large to fit on the same page as the field above it, it pushes to the next page, and then starts printing at the top of that page (the next page down). I tried setting the "Keep Together" property of the table = True, but this was of no use. Has anyone found a way to work around this, and if so could you let me know what you had to do. It may just be a SQL Server default setting that cannot be changed. I just want to research all possibilities before reporting back to the users. Thank you, T.J. I wish I could share a screen shot of one ...Show All
