Lawrence 007's Q&A profile
Visual Basic Forms and Arrays
Hi, I was wondering if it's possible to do what I' am trying to do. Though I' m sure it is and I' am just not doing it correctly. Here's the code: Dim Whisper(strNick) As frmWhisper Whisper(strNick).Show() strNick is a string variable, which contains the nickname. I 'am trying to set this up as an array so you can control each whisper by the users nickname. Because the code that I tried did not work. ;\ Try something like this: Public Class frmWhisper Private mNickname As String Private Shared mLookup As New Dictionary(Of String, frmWhisper) Public Shared Function FindWhisper(ByVal nickname As String) As frmWhisper If mLookup.ContainsKey(nickname) Then Return mLookup.Item(nickname) Dim f As New frmWhisper(nickna ...Show All
Visual C# Managed Code Vs Unmanaged Code?
I have read a lot on managed code and unmanaged code,now what I could understand is that any code that targets the .net framework is Managed code (right ),which inturn means its under the control of the CLR @ runtime. Assuming the above as true, I suppose unmanaged code does not target the framework or it does not come under the control of CLR @ runtime Can somebody explain this if possible with code example so that I can undersand the difference...thx. Managed Code Managed code is code that is written to target the services of the managed runtime execution environment (like Common Language Runtime in .NET Framework). The managed code is always executed by a managed runtime execution environment rather than the oper ...Show All
Game Technologies: DirectX, XNA, XACT, etc. uninstall problem
Hi i need some help. I installed xna beta 2 and didnt unstall it before i installed the regular xna. Big screw up on my part. Luckily it all worked fine. but i dont want them any more on this particular computer so i uninstalled xna studio one but now xna beta 2 wont uninstall. the controll panel has no uninstall button.Is there anyway to uninstall beta 2 manually. if not is there any way to get beta 2 so i can reinstall it. hopefully that will fix the issues and then i can uninstall again with all the files there. thanks kindly for the assist if anyone can help me. thanks ill hold on to that link but it says last resort toool so is any one else offering any help all advise would be greatly apreciated before i screw this up mor ...Show All
SQL Server TEMPDB Grew to 118 gig
I have one sql server 2000 that the log file grew to 118 over weekend I have since shrinked it.... I am monitoring it and now the MDF is at to 16 gig.... It seems the MDF and LDF are grewing at increasing rates. If i look in current activity i see locks/objects I always see tempdb.dbo.##lockinfo65 Lock type Tab Mode X owner xact But im not sure that means anything to me. This seems to have only started happening. Its almost like the checkpoint is not happening...(I was under the impression that tempdb does the checkpoint once its finished) How ofter does checkpoint occur how can i determine if it working or not Tracey Most likely you have a long running transaction that generates ...Show All
Visual Studio Tools for Office New Inspector Event does not fire in MS-Outlook 2007
I am trying to execute 2 Addins in MS-Outlook 2007. AddIn1 : Made using AddInExpress AddIn2 : Made using VSTO AddIn1 makes a folder in mail items of MS-Outlook 2007 and when we select that it starts functioning. Addin2 works starts functioning when a contact item is open in new inspector window. It displays a CustomTaskPane that executes a standalone application. I have tested the following scenarios. 1) AddIn2 fires New Inspector Event when MS-Outlook 2007 is started and first contact is opened in new Inspector. 2) AddIn2 does not fire New Inspector Event when contacts are opened after closing the New Inspector window 3) ...Show All
SQL Server Error 15185: There is no remote user 'sa' mapped to local user '(null)' from the remote server 'DTS_FSERVER'.
I am trying to add a linked server from a AMD x64 server (Windows 2003) with SQL Server 2005 64 bit to a Server running SQL 2000. These are not in the same domain. I can create a linked server using the option "Be made using the login's current security context" but can not when trying to specify the security context, i.e. sa and the sa password. When I try I get the following message: Msg 15185, Level 16, State 1, Procedure sp_addlinkedsrvlogin, Line 98 There is no remote user 'sa' mapped to local user '(null)' from the remote server 'DTS_FSERVER'. I have several other x64 server that I have no problem creating a linked server and specifying sa and the sa password. The problem with using "the login's current se ...Show All
Visual C# Writing to excel using C#
I know there is a simple answer to this, but I just can't find it. I am able to create an excel file and write to it, but I can only write to the first column. I would like to be able to write data to the second column in excel as well. Is this possible Use the Interop.Excel, you can do everything http://msdn.microsoft.com/library/default.asp url=/library/en-us/vbaxl11/html/xlhowConstants_HV01049962.asp http://www.c-sharpcorner.com/Code/2002/Jan/CreateExcelSheetGAG.asp ...Show All
SQL Server How to supply config file to Exec Package Task?
How do I do this Or is there any way to bundle Package with Config file so that they both are deployed in MSDB Fahad349 wrote: SQL Based configurations Whats that Any page to read about it There are plenty of resources on this forum, BOL, and other places. This should get your started: http://msdn2.microsoft.com/en-us/library/ms141682.aspx ...Show All
Visual Studio Express Editions how can we analyze the contents of datagrid view into excel?
how can we analyze the contents of datagridview into excel like in ms access...after query we we can analyze it in excel how can we do that This is not exactly simple, but it's probably not any harder than setting up a report. Try the Microsoft.Office.Interop.Excel COM control. Set up an Application object and open a Workbook, which will open up a number of default Worksheets (usually 3, unless you changed a property within Excel to default to a different number). Create nested loops of datagridview rows and columns, and copy the contents of each cell to its corresponding Excel position (normally 1 higher than its datagrid row and column indices, or 2 higher if you also want to insert datagrid headers). If desired, loop through ro ...Show All
Software Development for Windows Vista Event cannot be delivered
We have developed a workflow application similar to the order workflow sample we get this error "Event \"RequestApproved\" on interface type \"RequestLocalServices.IRequestService\" for instance id \"8ce3ae0f-a8f5-4c15-826d-59dfbadf2515\" cannot be delivered." Can any one plz help Thanks Tom for such a quick reply We have been using Beta2. hosting the state machine workflow with a web application Could you please give the location and line of code to be put in the code Pasting my code here using System; using System.Collections.Generic; using System.Text; namespace RequestLocalServices { [ Serializable ] publ ...Show All
.NET Development halt a databind in progress?
I have a very large query, and I'd like to present the user with per-page results. I have no interest in using the datagrid to do this, and have written my own paging object. For various reasons I want to halt a databinding operation once a certain condition is met. I do NOT want to use e.Item.Visible = false; which solves only the display problem and yet iterates unecessarily when really what I want the code to do is "stop binding, and exit gracefully". Ideally I could use the SqlDataReader object and set some sort of bounds (which it doesnt currently have) that could tell it to "jump to record X, and close out at Y records". This should not be confused with the SqlDataAdapters ability to fill within bounds ...Show All
Visual Studio Express Editions System.Net.ConnectStream?
I am new to .NET and have been going through the video series for beginning C#. I am working on the RSS reader that is the project. I have been researching the Classes and Methods that connect to the internet. I have used the MSDN and Object browser to learn about the items being used. I am at the point where a System.Net.ConnectStream object is being returned from the HttpWebResponse.GetResponseStream() method. I have tried to find documentation about this object. It does not show up in the object browser or the MSDN (local or online). I have searched and only found problems where this object was referenced but not documented or explained. <p>A ConnectStream is a Stream and should be treated as one. You can use the StreamReader ...Show All
Visual Basic Can Anyone add control in TreeView Control?
Hey all .net programmers.. I am thinking about Tree View control which contains controls. any idea You can customize the treeview by overriding the behavior of each node (to add additional properties, for example) or render it in a certain way, such as the Outlook 2003 Folders treeview. It's highly extensible: you could add all sorts of 'objects' to a node. I'm not sure what you are really asking: can you do it (add user controls) I'm sure you could. Should you do it I don't know - sounds like an end user nightmare. A link or a button could be rendered in a node if that's what you want. Suck it and see, that's what I say :) ...Show All
Software Development for Windows Vista How to re-initialize the security parameter of DCOM ?
Hi, everyone. I'm in troble about DCOM security in Vista. When the client called CoInitializeSecurity twice with calling CoUninitinialize & CoInitialize , it failed by error "RPC_E_TOO_LATE". (*like following code sample) This error occurs only in Vista OS. The program works correctly in Xp and 2003ServerR2. ------------------------------------------------------------------------------------------------------ CoInitalize(NULL); CoInitializeSecurity( ...some settings for authentication.. ); HRESULT hr = CreateInstanceEx( ..some parameters... ); if(FAILED(hr)) { CoUninitialize(); CoInitialize(NULL); CoInitializeSecurity( ..another settings for authentication.. ); ----------- ...Show All
SQL Server Comparing strings in MDX
Hello gurus, Is there an equivalent to the TSQL LIKE '%mystring%' function in MDX e.g. to filter a Product dimension to only those products containing 'IPOD' or whatever Thanks Not in straight MDX, but it is possible to use stored procedure to do that. There is a open source project to build library of sprocs that few of us participate, and it has the implementation of Like function. Check it out here: http://www.codeplex.com/ASStoredProcedures/Wiki/View.aspx title=StringFilters HTH, Mosha ( http://www.mosha.com/msolap ) ...Show All
