Kevin Ring's Q&A profile
SQL Server SQL SERVER 2005 time mdx queries
Hi, Thank you for your reply.... Just to correct something. Curently there is no number of incoming patients as a cube measure so even if the time mdx query will return the names of the patients that came between 6am-8am in the hospital ,i will be happy. The time dimesnion has times . Thank you... ...Show All
Visual Studio Express Editions ALT+F4
Is there a way to stop ALT+F4 working on a form If possible I would also like to stop CTRL+ALT+DEL working as well. As these are actually system functionality - I think it may not be the greatest of ideas to disable them but if you do want to do this then I'd be doing a web search on keyboard hooking http://www.google.com/search hl=en&lr=&q=keyboard+hooking+%2B+VB This will provide you with some guidance on low level keyboard functions. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Application speed
Hello, Does anyone experience the same problems as me regarding the speed of XNA games It seems like whenever any other dx enabled app does something my XNA app drops to 3/4 fps. Also, when I unfocus the window it also drops. Is it my computer, or ...... I have a problem where the framerate will drop when I move my mouse cursor over the close or minimize button until the tooltip appears. When i then move the mouse back into the window the framerate will be about 10 to 20 FPS lower than before. Nothing i do (short of rerunning the game) seems to recover the lost fps. This happens in both debugging and non-debugging modes. ...Show All
Visual Studio Express Editions changing text color?
I need help changing the color of a certain cout statement. Here is the small code: cout << "Input: " ; cin >> insert; cout << endl; I need to change the text *input: * into a different collor.I hope you guys can help me out. You could type: system("color 0a"); // you can replace the 0a with a different combo. 0a represents a black background with green text. Here is a table of alternate colors: 0 = Black 8 = Gray 1 = Blue 9 = Light Blue 2 = Green A = Light Green 3 = Aqua B = Light Aqua 4 = Red C = Light Red 5 = Purple D = Light Purple 6 = Yellow E = Light Yellow ...Show All
Visual C++ How to trap all exceptions?
Due to bugs in my code, users experience crashes. When this happens, they get a window saying "<MyApp> has encountered an error and must close", and offers to send a report to MS. I want to have my pgm get control when one of these errors (such as an access violation) occurs, so I can create and store my own report. How can I do this I tried _set_se_translator (complied with /EHa), but this did not work, at least when I run the pgm in the debugger. If I run the pgm without the debugger, I get a JIT debugger dialog. Ben - SetUnhandledExceptionFilter looks like what I need. I tried implementing it, and I ran into another problem. On the machines I'm testing it on, JIT debugging is ...Show All
Visual Studio Express Editions Treeview Collapse?
Thought I'd start a new thread for this, Here is what I have in the collapse treeview Private Sub TreeView1_BeforeCollapse(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeViewCancelEventArgs) Handles TreeView1.BeforeCollapse e.Node.ImageIndex = 0 e.Node.SelectedImageIndex = 0 End Sub I load the treeview no problem, C and D drive have the drive icons, if I click plus next to drive C, I get all the folders on drive C (with folder closed icons) If I click the + next to a folder I get the open icon folder, and all the pictures with (picture icons) appear in the Listview. So far So Good. The Problem When I the close the pics folder the icon changes to a drive icon if I then open another folder the pictures tha ...Show All
Windows Forms Is there any way to spin through the objects in a property grid
Hello all, Is there any kind of an items collection buried inside a PropertyGrid I know there is a SelectedGridItem property, but I need to iterate through them and I have been unsuccessful in finding out a way to do that. Thanks in advance for any ideas and/or suggestions! Better late than never I guess.. Here is one way to do it. if the SelectedObect property is not null then SelectedGridItem property will always be valid , even if the SelectedObject contains no browsable properties. The GridItem object contains Parent, and GridItem s properties. This gives you a path to every GridItem on the PropertyGrid. In the code snippet below are two simple static functions. One for get ...Show All
Visual Studio 2008 (Pre-release) Duplicated Web Service Proxy Message Classes
I'm trying to connect to an ASP.NET 2.0 Web Service (ASMX) by using a WCF client proxy generated through the 'Add Service Reference'. The import works fine and the proxy classes are created however all dependency objects that are used as parameters and return values are duplicated in the generated source file. This is due to the the service publishing both SOAP 1.1 and 1.2 bindings apparently and the importer apparently importing the bindings for each of the types repeatedly, so I end up with two partial classes for each dependent type. It looks something liekt his: [System.CodeDom.Compiler. GeneratedCodeAttribute ( "System.Runtime.Serialization" , "3.0.0.0" )] [System.Runtime.Serialization. DataContra ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 2D sprite transparency
Since this kind of falls in the same category I'll post it here as well. I'm trying to make the area around my sprite transparent. I first set the render state of alpha blend enable to true, then change last parameter of sprite->draw to D3DRSCOLOR_COLOR(255, 0, 255, 0). The background color of my sprite is already in pink (255, 0, 255), but now even my sprite is gone. Did I do anything wrong, or did I forget something Any help is appreciated. Hm... ok. I made the following change to the the create texture function call D3DXCreateTextureFromFileEx(pd3dDevice, "shooter.bmp", D3DX_DEFAULT, D3DX_DEFAULT, &nb ...Show All
.NET Development FtpWebRequest and custom commands
Hi All, I've noted all the other entries for this type of question. "How to use custom commands using FtpWebRequest". Has this been resolved yet (cross fingers) Todd To be more specific I need to change the naming format on an as400 connection. Here's the command: "quote site namefmt 1" Thanks for any replies, Todd ...Show All
SQL Server selecting the values with criteria ?
hai , This is my Table . Table TN963 :- Access Allowed. TN963 :- Access Allowed. TN963 :- Access Allowed. TN964 :- Access Allowed. TN964 :- Access Allowed. TN964 :- Access Allowed. TN963 :- Door Not Allowed! Access Disallowed TN963 :- Access Allowed. TN963 :- Access Allowed. i want to select the values before :- in the above table . So that my output will be TN963 TN963 TN963 TN964 TN964 TN964 TN963 TN963 TN963 Cheers, Raghu.G Thanks . But the value of the no may differ . example TN9633 TN9636 TN9636 TN964g TN964eeee TN964w345 TN963ee TN963ffere TN963333rfref Now how to select that ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problems getting XNA working
I've installed all required files for MSFT Game Studio Express to function. I've installed SP1, released yesterday for Visual C# Express. I've installed the XNA framework, .Net 1.1 framework, .net 2.0 framework, the directX December 2006 SDK, and platform SDK (for other reasons). I've found that there's a problem getting the XNA Transport Server started. In this situation, I cannot deploy anything to my 360, which is sitting next to my computer, on the same network/subnet. When I manually run the XNA Transport server (C:\Program Files\Microsoft XNA\XNA Game Studio Express\v1.0\Bin\XnaTrans.exe), it gets further in deployment, and tells me that the 360 has timed out. While doing a packet capture using WireShark, It appears that my machine s ...Show All
Smart Device Development Textbox border not displaying in Smartphone - WM 5.0?
Hi all, I am developing an application to work across different devices including Smartphone WM 5.0, Pocket PC 2003 Second Edition + Square Screen. The problem is that if I put a simple Textbox on the screen it only shows the border on the Smartphone when I select it (Pocket PC displays it always which is what I want). Does anybody know how I can display the border all the time I've tried to draw a rectangle around the Textbox and it does show a border on the right and bottom, but that's about it, and when I select the Textbox it displays the border which is double think on the right and bottom. Thanks in advance. Grant. Hi, That's the problem that I'm trying to solve - I want to disp ...Show All
Windows Forms To establish a button of a "ToolStrip" to the AccepButton of a Form Form
Since it is possible to do None of the ToolStripItem derived controls implement IButtonControl so they can't be used as an AcceptButton. You can easily solve this problem in code. Add this to your form: protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { if (keyData == Keys.Enter) DoAcceptButton(); else if (keyData == Keys.Escape) DoCancelButton(); else return base.ProcessCmdKey(ref msg, keyData); return true; } private void DoAcceptButton() { } private void DoCancelButton() { } ...Show All
Windows Forms Dialog results
Having come from Delphi I am trying to figure out how to use dialog boxes in VS C#. I have created a form MySearchForm containing a listBox but this is a private field. In the main form I wish to call the dialog as such MySearchForm searchForm = new My SearchFoodForm() ; searchForm.listBox.Items = // but this is not exposed as it is private if {searchForm.ShowDialog() = DialogResult .OK) { index = searchForm.listBox.SelectedIndex; } How do I expose the listbox, or am I going about thing the wrong way Seems a bit long winded. One way I got it working was to simple change listBox from "private" to "public" and then I had access to it from the calling form. ...Show All
