eshashishekhar's Q&A profile
Visual Studio Tools for Office How to add SmartTags in Outlook
Hi, I wrote a SmartTag assembly for Word that searches some article numbers and shows some details. Now I want that functionality in Outlook. For example when a customer sends me an email within some article numbers it should be found by Smarttags. How I can do that Outlook supports SmartTags only when Word is the email editor, and thus uses the same tags as Word. Note, though, that Word can be the editor for received items only when they are in rich-text format, which is unlikely for mail coming from outside. ...Show All
Visual Studio Team System Building project which referring dlls from other project
We have Framework which is used in several our Team Projects. Framework is a Team Project itself When I generated build for one of the client Team projects (and build files obviously belong to the this client Team Projects) looks like the Build engine is not aware of those referenced Framework DLLs. It tries to look for them in the client project root folder, can't find it and obviously fails to compile. This build is automatically generated with no targets added or removed so i would expect that this minimal build script would work but not. Any suggestions how I can fix it Can build pickup files from different Team Projects I didn't mean that storing your framework code in source control was o ...Show All
Smart Device Development how to report a bug in .NET (WM5) to MS?
thanx, alex You could use product feedback: http://connect.microsoft.com/Main/content/content.aspx ContentID=2220 Please make sure to include complete and compliable repro code along with description of expected and actual result as well as all relevant software (e.g. NETCF and OS versions) and hardware (e.g. device make/model) information. Thanks. ...Show All
SQL Server updating central database over the internet
Hi, I've spend quite a bit of time on this but no luck. so any help is really appreciated. I'm writing a class library dll that would pull data from a central db to offsite comps, manipulated then updated it back to the central db, much like systems salemen would use. Please keep in mind that i'm talk about LARGE amount of data. I want downloaded data to be manipulated on the client computer(without direction connection to db server) with EXCEL or something of the likes then upload changes back to the central DB. Is there anything in SQL Integration Services that would help me please keep in mind that data are distributed to computers over the internet, not on the same LAN. Please be as specific as possible i'd really appreciat ...Show All
Windows Forms pasing message between forms
Hi, I am designing an application where I have a main form.Before I show the main Form, the user sees a form for connections, which in turn may load another form for a new connection. The problem is: While I am loading the form for connections, I may encounter an exception/or I will need to pass information to the main form. I need to know how I can do this in a simple manner Any help is very much appreciated! Hi, The try catch will be helpful in case of errors but when everything is going fine then the second form needs to inform the main form of the various connections and display of controls on the form. I am still sorting that part out :-) Thanks for the help ! ...Show All
Visual Studio 2008 (Pre-release) Scalability of WPF element collection
.NETters, The application that I am designing displays hierarchical items in a scrollable Canvas. The information on items comes from a database. Potentially, there could be millions of items to display. In Win32 and WinForms days, As the user scrolls through the displayed control, I would get a OnPaint request and I could fetch data for the "invalid" region and paint it. In WPF, the concept that is promoted is to just populate the element hierarchy and let WPF deal with displaying it. Questions: 1. If you add millions of UIElement objects, does WPF automatically pages the elements in and out of memory Otherwise, how would you get the scalability. 2. What are the design guidelines for designing hierarchically i ...Show All
.NET Development Having issue retreving the EventID from an EventLogEntry that Matches EventViewer.
I am having an issue getting the EventID that matches the Windows Event Vewer Event ID for All Cases. I have read some posts as well as read through the Class Help files and serched the web. The information I read stated to Mask the top 2 bits of the InstanceID but this did not acctually retrieve my desireed results. It always made the EventID property match the instanceID but this did not match all cases in the Windows Event Viewer. I tried masking the top 2 bytes of the instanceID and it seems to work. the Event ID in Windows Event Viewer Matches the masked Result in my sample app: My problem is I have not found any Documentation online to justify matching the Event ID in this manner. And I need to do this for the Event View ...Show All
Visual C# anyone have a simple exmaple to map all instances of CPU in performanceCounter
Does anyone have a quick example of creating performanceCounters for each Processor on a machine,all the ones I have send are complex and I'm sure there must be a simple way. I know how to list all the CatergoryNames, it the listing of the instances within the Catergories that I am having trouble with. Cheers Hi, No problem, this example is useful to enumerate the instances: PerformanceCounterCategory Cat = new PerformanceCounterCategory ( "Processors" , "YourRemoteMachine" ); string[] Instances = Cat.GetInstanceNames(); CPUs = new PerformanceCounter [Instances.Length]; for ( int i = 0; i < CPUs.Length; i++) { CPUs[ i ] = new PerformanceCounter ( "Processor" , "% ...Show All
Visual Basic finding a certain process
i'm wondering how to find a particular process that is associated with a certain folder. My issue is that In my program when I go to delete a folder that I have created for a temporary workplace I use Directory.Delete(tempPath, True) to recursively delete the folder and all of its sub-folders and files. But sometimes I get an exception stating: "The process cannot access the file "C:\temp\compress\dest2\0\source\2006.9.22_28" because it is being used by another process." i can see through other tools that process 1932 is associated with that lock, but how can I find that out through code and kill that process Dim procs As Process() = Process.GetProcesses Dim theproc As Process For Each theproc In procs thepr ...Show All
Commerce Server Who is using Commerce Server 2007?
I am looking for companies using Commerce Server 2007 One of my clients, wants to move to Commerce Server 2007 but I am not sure how successful it is. Any help is appreciated! -- Salim Hemdani Thanks Max for the reply, I know Costco has not implemented Commerce Server 2007 yet, they are still on 2000.. Can you please confirm if others you listed here have version 2007 I am really looking for CS 2007 implementation not 2000. Thank you. -- Salim Hemdani ...Show All
Visual Studio 2008 (Pre-release) BmpBitmapEncoder lock files on disk after reading Bitmap from file
I have Image Control in xaml file: <Image Height="100" Source="file:///c:/imageShape.bmp" Margin="184,288,0,0" Width="100" HorizontalAlignment="Left" Name="image1" VerticalAlignment="Top" /> I load this xaml file by XamlReader .Load. After that I try to save bitmap into another file: System.Windows.Controls.Image imageControl = .... BmpBitmapEncoder bmpBitmapEncoder = new BmpBitmapEncoder (); BitmapFrame bitmapFrame = BitmapFrame .Create( imageControl.Source as BitmapSource ); bmpBitmapEncoder.Frames.Add(bitmapFrame); MemoryStream stream = new MemoryStream (); using ( FileStream fs = File .Create( "t:\\out.bmp&qu ...Show All
Windows Forms Retrieve Object from ListBox
I've got a OleDBDataReader object whose values I want to store in a ListBox for user interaction. The values I'm storing in the ListBox are the users first and last name (this is the displayed values). And I'm storing in the ListBox the users Social Security Number. I have done this by way of creating an object: class ListBoxStorage { public object data; public string display_string; public ListBoxStorage(object data_stored, string display_val) { data = data_stored; display_string = display_val; } public ListBoxStorage() { display_string = "Empty String"; } public override string ToString() { //MessageBox.Show("User " + display_string.ToString() + ", has the SSN of: &qu ...Show All
Visual Studio Problems installing Workflow Extensions (RC5)
Has anyone had any problems installing the workflow extensions (RC5) for Visual Studio I have this installed however every time I try and run Studio it displays the splash screen and then hangs using 99% of the cpu. If I run Studio in safe mode then I can get in fine and the workflow options appear in the create project dialog however if I create one of them then I get the error message: --------------------------- Microsoft Visual Studio --------------------------- The project file 'C:\Documents and Settings\gordon.NT\Local Settings\Temp\w42cddt1.gwy\Temp\WorkflowConsoleApplication1.csproj' cannot be opened. The project type is not supported by this installation. --------------------------- OK Help --------------------------- ...Show All
Audio and Video Development How to use fullscreeen mode?
Hi. I'm trying to use Full screen mode in my player. I called IMFVideoDisplayControl::SetFullscreen(TRUE) while playback was running, but it will blackout screen and doesn't show any picture. My player creats topology below. source->decoderMFT->EVR decoderMFT uses DXVA2.0 and MFT_OUTPUT_STREAM_PROVIDES_SAMPLES flag on. What should I do to show picture on full screen Thanks. kasumi. It looks like we are seeing this bug that you're reporting, and it's most likely driver-specific. So I know this isn't a great answer, but you might want to avoid Set/GetFullscreen for now if you're having problems getting it working. ...Show All
Windows Forms ICustomTypeDescriptor vs. Remoting
I am using System.Windows.Forms.PropertyGrid to display the properties of some custom objects. To enable dynamic modification of those properties (and its attributes) this class hast to derive from ICustomTypeDescriptor. Now I want those objects to be marshalled (by reference) across process boundaries. So they can be viewed in a propertygrid on a remote machine. Unfortunately ICustomTypeDescriptor contains several types that are not serializable and not marshalbyrefobjects. So types derived from ICustomTypeDescriptor can never be serialized. Do you see any way how to support dynamic properties in propertygrid AND being able to remote those objects you can try deriving from the said types and implement ISerializable and provide your ...Show All
