Nitin Khurana's Q&A profile
SQL Server AggregateFunction = None
Hi everibody. I use a AggregateFunction = None for a measure (price for article). When I go in a client Olap, every data is Null. Where I wrong Tank you Sorry Mosha. For first tank you, but..... I read that leaf of a hierarchy take value from Fact table, then the total or subtotal don't exist, but value for leaf must me exist. Instead, I never see data Bye from Florence Marco ...Show All
Windows Forms bad bug
Dear All I have very bad bug in my program as when i press f5 then i trayed error An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in system.windows.forms.dll Additional information: Class not registered in line : CType ( Me .MSHFlexGrid1, System.ComponentModel.ISupportInitialize).EndInit() i convert the visual basic project to vb.net through wizards. in windows application any one could help me please. thanks in advance Yeah. Installing vb6 runtimes should work, but a better route would be to totally redesign your application, using only .NET framework controls. Less hassles in the future. You don't want your users to have to install VB6 and the .NET ...Show All
Visual C# Generics: Test for a datatype
Hello, I want to add special handling for a generic class I am writing. See below: class MyGeneric<T> { private T val; public MyGeneric(int src) { // I want to add customized handling such as this below: if (T is string) val = src.ToString() } } Is this possible with generics The code belos is not exactly what I want to do, but hopefully it gets the point across... I want to have customized handling for cartain types for T. Thank you all, I finally got it to work (I had unexplained dyslexia, I kept putting the cast on the wrong side of the assignment... go figure). I think I might have chosen the wrong library to make into a generic class... I think that, for this one, I am better off imple ...Show All
.NET Development Referencing HTML in an embedded browser
The Help pages for my app is built as html. I've added a folder in my project called 'Help' and put all the pages there. The main page is 'default.htm'. I've tried to navigate to that page : private void howDoIToolStripMenuItem_Click( object sender, EventArgs e) { // webBrowser1.Navigate("Help/default.htm"); <--- fails webBrowser1.Navigate( "file:///Help/default.htm" ); <---- fails } How can i pull up this page in the published application js Thanks for michael, that worked perfectly. I see the htm but the images are missing even though inside the Help folder, I have images ..etc. If i run 'default.htm' in that folder via IE, the pages are fine. But thru the app, ...Show All
Windows Forms Capturing Keystrokes
Is there a way i can capture application-wide keystrokes in my application Basically, i want an event to fire whenever i press Ctrl+Shift+C anywhere in my application. It only needs to capture it if the application has focus i.e. i dont need to capture keystrokes sent to other applications. Is there an easy way to do this, or an example someone can give me for it If only there was a in MyApplication_Keydown in the application events section... Great - thats exactly what im looking for but with a slight problem... Are you able to convert that into vb.net ...Show All
.NET Development CLR Thread Object
I got into a debate with a fellow worker about what will happen to a thread if we set it to null after all the work delegated to that thread is finished. So something on the lines of: Thread go = new Thread(); try { go.Start() // Do Work } catch { } finally { go = null; } As per my understanding, setting the thread to null doesn't specifically "kill" that thread; the GC may be able to free up the space used by that thread object, but what about the actual memory space, stack, etc. that has been assigned to the thread by the Windows OS Because I thought that you can't technically kill a Windows thread without raising the ThreadAbortException Can someone help answer these questions Thanks in advance. ...Show All
.NET Development Shared application setting among saperate applications, How to do it usign new application setting platform ?
Hello, we have 2 saperate application which need to follow each other setting means when athe first application started it read setting from xml file and write data there and when the second application araised then ity need to get the data from the first application setting and change it accrodingly. All the issue strated because we would like to deploy ClickOnce with install and run strategy and we have 2 application runs (saperate applications). how to implement it, i thought the ApplicationSettingsBase can help us but it configure to specific application by unique location and name, so how other application can work with that. Does registry can be an option or its not recomended. Bye regards. Yaron Karni www.att ...Show All
Visual Studio Express Editions Read only property?
i have a bitmap, and i want it to be controlled by the keyboard. my present code is... Private Sub Form1_KeyDown( ByVal sender As Object , ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me .KeyDown Select Case e.KeyCode Case Keys.Left rect.Left -= 25 Case Keys.Up rect.Top -= 25 Case Keys.Right rect.Left += 25 Case Keys.Down rect.Top += 25 End Select End Sub Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim TmpCtr As Control For Each TmpCtr In Me .Controls AddHandler TmpCtr.KeyDown, AddressOf Form1_KeyDown Next End Sub After writing this, blue li ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What's up with deleting posts mech commander downloads?
I just don't get it. My posts have been removed, I mean any <fill in the blank> could just google for the keywords and get a bunch of legit game sites that host the shared source code (since it was released for free) and yet on these forums it's all hush hush untill MS fixes the link What gives MC2 is not intended to showcase or be related to XNA Game Studio Express functionality (it was previously released as a sample for XNA Build, a different XNA technology represented on a different forum), so it isn't relevant to this particular XNA Game Studio Express forum. Amy ...Show All
Visual C++ SAFEARRAY* & COM Interop
I’ve got a C# library that I’ve built into a COM component that will be used from a VC++ 6 or 7.1 application and while the creation of the COM object side of things seem to be working fine, using the object fully is another matter. On the C# side of things I’ve got an object defined like so: [ClassInterface(ClassInterfaceType.None)] public class PID : IPID { private string type; private int number; private PID[] pids; public string Type   ...Show All
Visual Studio Team System how to check who is accesing TFS
Hi , In my team we are having 5 administrators in TFS , all are giving some permissions to users, at some time it goes wrong. so i wan to know is there any way to identify who is accesing and giving permissions to whome in TFS, please help. thanks and regards suresh The first idea which comes to my mind, is create a webservice for subscribing to the AclChangedEvent and keep a log of the changes, check out this article which has project templates for creating the webservice: http://blogs.conchango.com/howardvanrooijen/archive/2006/04/29/3894.aspx ...Show All
SQL Server IE7 script error when opening Infopath forms
Hi, I installed IE7 recently and it is giving me problems when I open Infopath forms to edit documents. I have a sharepoint website which contain links to these forms, when I click on the link it opens the infopath form. It was working absolutely fine when I used IE6. But now when I open the infopath form it gives me an error saying that A Runtime error has occured Line: 38 Error: Object Expected When I open it in the debugger it shows me an error at <body onLoad="onLoad()">. Could someone please advice! I appreciate a quick response. Thanks ...Show All
Visual Studio Express Editions How do I print a form???
-Visual Basic Express 2005- To print a form in the older version 6.0 the line of code was something like form.PrintForm to print that form. I need to know the simplest way to print a form with Express. I figured it would be simple but maybe I'm missing something because I really need help... Please :) here is a better overall solution, which requires some P/Invoke to GDI: import System.Runtime.InteropServices .. <DllImport("gdi32.dll", SetLastError:=True)> public shared function BitBlt(ByVal hdcDest as IntPtr, Byval nXDest as Integer, Byval nYDest as Integer, ByVal nWidth as Integer, ByVal nHeight as Integer, ByVal hdcSrc as IntPtr, byval nXSrc as Integer, byval nYSrc as Integer, byval dwRop as Integer) ...Show All
Visual Studio Express Editions Using Properties
I know that it is good practice to use properties to encapsulate a variable rather than making a variable public. However consider the following code, class myClass { public int myVar { get { return _myVar; } set { _myVar = value; } } private int _myVar; } If a method inside myClass wanted to access the _myVar variable, would it be accessed via the property myVar or directly via _myVar I know the program will compile whichever I choose, but is either way preferable (I hope this makes sense!) Regards, Leo Kent Hello, While I use the same format: pri ...Show All
Visual Studio Team System Request for suggestions on how to set up dependent work items in MS Project's integration into Team System
Hello All, We are looking for suggestions on how to best set up a work item that are dependent on first the completion of another work item in MS project and have that propogate into Team System. Thanks in advance for your help :) Bob Hanson Bob, As Naren pointed out there's no out-of-the-box support for this, but you can try the following one: In MS Project, how do you mark a task as complete By making the %age complete as 100% Or by chaging the state to completed For this solution you've to resort to by changing the %age complete Do the following: 1. Mark "State" field as "read-only" in the form by using ReadOnly attribute of Control element 2. Somehow make the State column in MS Project ...Show All
