hrubesh's Q&A profile
.NET Development how to open frontpage programmatically
hello i want to know if there is any way to open frontpage programmatically.i want to open frontpage and then open an html file in frontpage. i know it is possibe with Msword.but i can't use the same method here. i am using Micorosoft.office.interop.frontpageeditor library but i can't find a method to launching frontpage. any infromation is appreciated. Regards Somayeh to further customize the process launch, take a look at the ProcessStartInfo class: http://msdn2.microsoft.com/en-us/library/system.diagnostics.processstartinfo(VS.80).aspx ...Show All
Visual Studio Express Editions Controlling items with a loop.
I am trying to accomplish something like this. Dim i As Integer = 1 Do GroupBox(i).Visible = True i = i + 1 Loop Until i = X Obviously this isn't working. After much searching I haven't been able to find an answer. It is probably because I am asking the wrong questions. But I need some help. Any assistance is greatly appreciated. Dim X as integer = 5 For I as integer = 1 to X SetVisible( "GroupBox" + cstr(i), False) Next Private Sub SetVisible(byval Name as string, byval Visibl as boolean) For each c as control in me.controls if Typeof C is Groupbox and C.name = Name  ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX10 only on Vista?
I've searched everywhere but all I can find is rumors, rumors and even more rumors. Will the final version of directX 10 run on windows XP The only announcement I have seen so far was from the Wine project. The talked about the possibilities to port a future D3D10 support for Wine to Windows XP. I had a short conversion with one of theses guys some time ago. At this point they have still worked on D3D9 and haven’t even started with D3D10 for Wine. Therefore I would not bet that munch money that we will see result’s very soon. Additional Wine uses an D3D to OpenGL wrapper. Such a solution could never be 100% perfect as both APIs have some differences. ...Show All
Software Development for Windows Vista How to run a workflow in a WPF application
I have tried adding the following references into a WPF project and got the error (shown below the references): References: System.Workflow.Activities, System.Workflow.ComponentModel, System.Workflow.Runtime Error: Unknown build error, 'API restriction: The assembly 'file:///C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\System.Workflow.Activities.dll' has already loaded from a different location. It cannot be loaded from a new location within the same appdomain.' What am I doing wrong Can Workflows be run in a wpf application Thanks in advance, Marko Vuksanovic. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. End users shouldn't have to rewrite XNA math functions in order to improve performance.
The overhead of passing a 64 byte Matrix by value is significant. Most especially when you are comparing two matrices for equivalency (==), or performing a Vector*Matrix multiplication (Vector3.Transform(Matrix)). The following matrix comparison function performs 5-10 times better than your built in == comparison. If the matrices are equal, then it is about 5 times faster. If they are unequal then it fails fast, and is about 10 times faster. public static bool Equals(ref Matrix a, ref Matrix b) { // i check the diagonal first for quick fails return a.M11 == b.M11 && a.M22 == b.M22 && a.M33 == b.M33 && a.M44 == b.M44 && a.M12 == b.M12 && a.M13 == b.M13 && a.M1 ...Show All
.NET Development Web Service Performance Questions
hello there i am developing a smart client application which will retrieve reporting data from web services when online. im concerned about performance issues here as some of the reports can contain lots of information so the encrypted data being output by the web services might get quite large. 1. should i be worried about performance when using web services for this task and if so is there any techniques i can consider to increase performance 2. i was considering using strongly typed datasets. i realise they are more bulky than their counterparts, but there are also advantages for me. will the performance difference be negligable over a web service or should i be wary of using strongly typed datasets thanks a lot. ...Show All
SQL Server how to combine two different SQL server data instance into one db?
Hi I'd like to know how I can combine two tables from two different sql instances ito one db thanks. Volkan, can you provide a little more info Are you trying move the data from sql instance 1 and sql instance 2 into a new database on sql instance 3 Are you asking how you can query the data from two different instances You can query separate instances by using a four-part qualifier if the instances are defined as linked servers. select * from [servername].[databasename].[schema].[tablename] Example: server = MySQL1, database = MyDatabase, schema = dbo, table = MyTable select * from MySQL1.MyDatabase.dbo.MyTable ...Show All
SQL Server SQL Server General Network error.
Hi, I am using .Net framework v 1.1 and SQL server 2000. I got the following output on firing "SELECT @@version" in my sql server. ---- Microsoft SQL Server 2000 - 8.00.2039 (Intel X86) May 3 2005 23:18:38 Copyright (c) 1988-2003 Microsoft Corporation Enterprise Edition on Windows NT 5.0 (Build 2195: Service Pack 4) I am getting the General Network error when i try to select, update or insert data from / into sql server. This error is randomly generated and some times just disappears. But i am sure that there must be some problem bcoz, now or then the same error is thrown. I am firing these queries from a windows service. Since it would be automatically working in background i want that a sure shot solution be imple ...Show All
Windows Forms MDI Child Forms are Flashing@!!!
Hi all. Has anyone encountered the following annoyance while developing an mdi application. I have a simple mdi application that has sizeable child forms. In the parent window, there is a menubar with a 'Window' menu. I've set the 'Window' menu MDIList property to true so that it will display a list of open child windows at runtime. When I run the program to test its functionality, I create several child& ...Show All
Microsoft ISV Community Center Forums Trying to write a VERY VERY simple routine BUT GOT STUCK !! ::) = Brain Ache !!
Hi, I'm affraid I bit off more than I can chew and It's a while since I programmed. 1/ The routine is set in an open Excel worksheet which has 5 fields/columns per row 2/ The routine reads 1 row at a time, splits 1 field, does some ifs and appends 6 new fields per row 3/ I'm stuck with the Loop 4/ I'm stuck with the IFs especially bracketing 5/ I'm stuck with the output writes I'd really appreciate if you could just wiiiizzz through it and ellimate the mistakes. For you 5 mins for me 5 days. Here it is .... Sub TeamPerformance01() ' TeamPerformance01 ' Name Fields in open worksheet ActiveWorkbook.Names.Add Name:="Date", RefersToR1C1:="=Sheet1!C1" Columns("A:A").Select ActiveWorkbook.Names.Add Name:="T ...Show All
Software Development for Windows Vista User drawn ConnectionPoints
Hi! I'm rehosting the WF designer with a root activity inherited from FreeformActivityDesigner. What I am trying to do currently is to draw the ConnectionPoints by myself (I want to draw a bitmap with an arrow instead of small squares). I didn't find any method to override which draws these ConnectionPoints. How can I accomplish that Thanks! Hi Jon! I believe that GetConnectionPoints only returns a collection of ConnectionPoints. I thought I'd be able to write an own class inheriting from ConnectionPoint but the ConnectionPoint class doesn't have any method for painting which I could override in turn. I'm a bit stuck now, is it intended to allow custom drawing of the ConnectionPoints at ...Show All
Visual Studio Express Editions LINK : fatal error LNK1104: cannot open file 'user32.lib'.
Hello, I've tried everything to get ANY program to work and they won't. Not even "Hello World" or code copied directly from help. Always the same: LINK : fatal error LNK1104: cannot open file 'user32.lib'. I've read all the suggestions here, followed all the directions including from the websites: 1. Uninstall beta versions Before installing, you must uninstall any previous versions of SQL Server 2005, Visual Studio 2005, and the .NET Framework 2.0 (this includes Tech Preview, Beta, or CTP versions). 2. Download and install Visual C++ 2005 Express Edition!! 3. Register 4. ...Show All
Visual C# Multi Interface inheritance
Lets say you have two interfaces: interface IA: IComparable { int A {get; set;} } interface IB: IComparable { int B {get; set;} } and a class which implements both IA and IB class C: IA, IB { } class C now has to implement CompareTo, but the problem is that CompareTo should do different things if being used to compare this object to another IA, IB or classC. How do you implement the CompareTo function For instance lets say there is code like this: C c1 = new C(); C c2 = new C(); IA ia = c2; int comp1 = c1.CompareTo(ia); int comp2 = c1.CompareTo(c1); In this case, comp1 should equal 0 if c1.A == c2.A, and comp2 should equal 0 if both c1.A and c1.B are equal to c2.A and c2.B. Since you can only have one CompareTo method on class C how do ...Show All
SQL Server Error creating Report Model based upon Oracle Database
In MS Visual Studio, when creating a new Report Model Project, after defining a datasource to an Oracle database (and successfully testing it), and a simple datasource view (1 table), when I click "Run" in Report Model Wizard, I receive the following error: "ORA-02179: valid options: ISOLATION LEVEL { SERIALIZABLE | READ COMMITTED }" It does not appear that one can create Report Models from an Oracle database (since the SQL being used to query the Oracle database cannot be edited and contains syntax errors ). Is this the case Thank you. Has anyone been succesful getting this to work on SQL Server 2005 Service Pack 2 CTP (November 2006) ...Show All
.NET Development Remoting Crashing
And I have no clue why. That is the stack trace: 'aspnet_wp.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Transactions.resources\2.0.0.0_de_b77a5c561934e089\System.Transactions.resources.dll', No symbols loaded. System.Transactions Critical: 0 : <TraceRecord xmlns=" http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord " Severity="Critical"> <TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier> <Description>Unbehandelte Ausnahme</Description> <AppDomain>/LM/W3SVC/2/Root-2-127914708270468750</AppDomain> <Exception><ExceptionType>System.NullReferenceExcep ...Show All
