Nasir_khan_persistent's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. cloud of dust like in battlefield 2 : mc
does anybody know how the developers from battlefield 2 : modern combat did the cloud of dust effects did you know what i mean I played BF2 on a ps2 a good number of months ago so I'll admit that my memory is a bit foggy (yes, that was a pun). But if I'm not mistaken, the effect you're talking about is the smoke grenades right When I played it, I seem to remember them just being a particle system with big sprites. With the alpha blending, it did a good job of partially obscuring the other players in the smoke ... a sniper with a straight shot could still pick them off, but it wasn't easy. Is that what you were referring to ...Show All
Visual C# Windows Service Install and verifying help
Dear All, I am creating a windows service. So I have put my supposing code in the protected override void OnStart( string [] args). The problem now is how can I verify if my code is working or not because I tried to use MessageBox.show but is not available. So how to run my windows service base on interval of every 20 minutes. I dont how to go about installing it and testing it. Any help please. Thanks. Dear Henock, I am really sorry I am very new to .net technology in this terms. So I dont know to create an installer and eventlog using the installer. I am using visual studio 2005. I manage to locate the InstallUtil.exe but when I double click it just open and close imme ...Show All
Visual Studio Express Editions Adding more than one record
I can't seem to add more than one record at a time. If I want to add another record after the last record added, I have to go out of the programme completely and re-run my programme. If I don't, an exception is thrown, any ideas why this is happening Here's my code below: Private Sub btnSave_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click Dim newVenueRow As WhiteboardDataSet.VenueRow newVenueRow = Me .WhiteboardDataSet.Venue.NewVenueRow() newVenueRow.VenueName = txtVenueName.Text newVenueRow.description = txtDescription.Text Me .WhiteboardDataSet.Venue.Rows.Add(newVenueRow) Try Me .Validate() Me .VenueBindingSource.EndEdit() Me .VenueTableAdapter ...Show All
Windows Forms What is the difference between Click and MouseClick events?
When trying some codes on a treeview I have found that when selecting a node by mouse events occur in such order: 1 - MouseDown 2 - Click 3 - MouseClick 4 - MouseUp 5 - AfterSelect When I look at the definitions of the events in the Event Borwser, the default explanations are: Click: Occurs when the component is clicked MouseClick: Occurs when the control is clicked by the mouse. Since there is no other opportunity than clicking by a mouse, what is the difference between Click and MouseClick events according to the compiler (Not that the " one occurs for component but the other occurs for control " answer please) Regards. MouseClick will fire when you click with the mouse. Click will fire when yo ...Show All
Visual Studio Express Editions XML DataSet
Hi Everyone, I have just finished watching a few videos that a friend sent me about VS.Net (not 2005) and I found them informative but I can't seem to get the final XML file into a DataSet. I have written a Schema and got that into my XML file (which is nice) but I now want to use one of the elements in a combobox and put the other info into two textbox's So my XML node have: < aaa > < aa > < value > a </ value > < meaning > meaning1 </ meaning > </ aa > < aa > < value > b </ value > < meaning > meaning2 </ meaning > </ aa > </ aaa > So in the video it said just select "Create DataSet" but I can't find i ...Show All
Visual C# Whats the equivalent of __LINE__ and __FILE__ in C#
Whats the equivalent of __LINE__ and __FILE__ in C# I thought this hot-button issue would have been answered by now. But no one seems to have a good answer for this. I would love to see a solution which presents no runtime overhead. What about C# 3.0 does it address this issue They are instructions to the compiler to replace these "constants" with de line number and filename at the place where the compiler finds these constants. Sort of a compiler directive. Usefull for debugging. Personaly I don't think they have much use in c#. ...Show All
Visual Studio Express Editions How to create a event handler?
If I have an option.For example: Reading.Stopping() -> C# tells me that this is a event handler. How I can use it like Mouse_Over I hope you understand me... place the eventhandler/delegate after the class declaration: public partial class someClass { //event/delegate goes here //then perhaps in some initialization method or if its on a form, on the formload create the event: public void DoSomeInitialization() { this.OnEventSomeEvent += new someDelegate(someClass_OnEventSomeEvent); } } ...Show All
SQL Server ORDER BY efficiency
Hi, I'm using a table with about 5 million records, i'm preforming a select query onthe table. I retrieve from that query about 2-4 million records when i'm not sorting the data the query return very fast. If I'm sorting the data (ORDER BY timestamp - when timestamp is a BIG_INT with an index) the query takes a long time to return about 30 seconds. I tryed to do the same thing with access DB and i get better results: the query with ORDER BY takes about 1 second. I dont think it's possible that access DB have better performance then SQL server, does any one have any idea what can be me problem thanks ishay. What's the definition of the index on the timestamp column Is it the clustered index ...Show All
Visual Basic VB .NET app - control box doesn't close app.
I have created a VB .net MDI application, all is fine EXCEPT the control box cannot close the application. (i.e. clicking on the 'x' at the top right of the window does nothing). I have got a menu item called file | exit that calls Application.close. but this is the only way I can close the application. The 'x' top right used to work. Why has it stopped Do I need to add a handler for it - but where is the event for it thanks in advance Martin Unless of course someone knows how to put code to intercept the "CloseBox Click" (or whatever it's called) - then I can code around the whole thing. cheers Martin ...Show All
SQL Server SQL Server 2005 SP2 CTP1
The word is that a public download of SQL Server 2005 SP2 CTP1 is available. Does anyone know whether this is true - and if so, where can it be downloaded The reason for my interest in this service pack is that significant changes around the behavior of subcube queries in AS should have been made, and I would very much like to test this. Subcube queries present a significant challenge when combined with certain types of calculated members. See: http://sqljunkies.com/WebLog/reckless/archive/2006/03/08/18601.aspx http://sqljunkies.com/WebLog/reckless/archive/2006/07/05/22106.aspx http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=282896&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=488496&S ...Show All
Visual Basic Problem With Automating Outlook
I was having a problem, but I am wondering if there is a an alternative to CreateItem... I should tell you that I am using the 2003.net Standard Edition which may not have all the bells and whistles of the professional... Now here is what I want to do... Public Class Form1 Inherits System.Windows.Forms.Form # Region " Windows Form Designer generated code " Public Sub New () MyBase .New() 'This call is required by the Windows Form Designer. InitializeComponent() 'Add any initialization after the InitializeComponent() call End Sub 'Form overrides dispose to clean up the component list. Protected Overloads Overrides Sub Dispose( ByVal disposing As Boolean ...Show All
SQL Server full outer join
Hi, i want to replace a full outer join statement . how do i i am more in control with '=' thanks/ Hrubesh: If what you are asking for is syntax similar to the old *= and =* for left and right outer joins I think that there was never a Transact SQL equivalent for the FULL OUTER JOIN operator; moreover, the *= and =* syntax are no longer available in SQL Server 2005. Is this what you are looking for Dave ...Show All
Windows Forms MULTISELECT ON OPENFILEDIALOG
I have an open file dialog on a form, and have the multiselect set to true, but I can still only select one file at a time. Any ideas Larry Hilley Are you sure you have multiselect property set to true Can you post some code The typical use would be: string [] files; using ( OpenFileDialog dialog = new OpenFileDialog ()) { dialog.Multiselect = true ; if (dialog.ShowDialog() != DialogResult .OK) { return ; } files = dialog.FileNames; } foreach ( string file in files) { // Process files here } Andrej ...Show All
SQL Server Linked Server
I have an oracel linked server that I use openqueryset statements to read the oracle tables. However, I want to update some data in a couple of these oracle tables. The linked server is setup using a readonly user. I'd like to be able to call an Oracle Set Role to grant me update capability and then perform the update. Can anyone help me out with some possibilities In case anyone needs to do this... or something similar... I have figured it out: On Oracle server, create the Oracle Package and Procedure: create or replace PACKAGE BODY Call_SEC_ROLE_Package AS PROCEDURE sec_roles (ReturnVal OUT SqlReturnTbl) is begin dbms_session.set_role('apply_security identified by secure_pass'); ReturnVal(1) ...Show All
SQL Server SQL Server 2005 - SQLagent Log message
We are seeing the following in our SQLAgent log every minute. I cannot find any information anywhere about this error message. [298] SQLServer Error: 599, WRITE: The length of the result exceeds the length limit (2GB) of the target large type. [SQLSTATE 42000] (LogToTableWrite) DO you have a job that runs every minute HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
