lakshmiy's Q&A profile
Windows Forms where is the closing?
i wanted to know where is the closing event i need to run a code when the user closes my application using any way of close, e.g. X button, my exit button and terminate from task manager. Hi, Goto Form events there will be an event with name FormClosing... This is what you are looking for. Double click here... write any code that needed to be executed before application close. More you can stop closing application by doing e.Cancel=true ...Show All
Visual C++ How to do copying files?
Hi, I am writing an MFC program that can copy files (let's say: *.chm) from one directory to another by using API. Any idea Thanks. vcboy Hello vcboy, You can check out Boost.filesystem library which provide many operations on files and directories. file:///D:/Downloaded/3D%20Programming%20Related/c++Libs/boost_1_33_1/libs/filesystem/doc/operations.htm#copy_file Good luck. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX: Where to get mesh data and textures?
I'm just starting to play around with Managed DirectX. Can anyone recommend a site to get free mesh data (.X files) or textures Or maybe free tools to model (simple) 3D objects Yea Milkshape is the way to go. I am not a "great" modeler, but Milkshape has tools to generate a nice terrain as well as basic 3d meshes like a torus, box, plane, etc... ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Releasing - does the DirectX version installed matter?
Hi there. I have just finished a game and I would like to know the following. Currently I have only DirectX SDK February 2006 installed, but lets say the user has another version of DirectX installed, will it be able to run the game This is a 2D game. Do I need to install all the SDK versions so the game will work on all 9.0 version or what Do I have to do something like that so I can be sure the user only has to worry if he has DirectX 9.0 ins ...Show All
SQL Server Upgrade worked. Thanks.
Hi, I am trying to make some stored procedures that take in lists of well sites and well ids and find the wells in the sites except for those in the list of well ids. I have a stored procedure like this. ALTER procedure sp_wellSelect (@criteria ntext) as DECLARE @hDoc int --Prepare input values as an XML documnet exec sp_xml_preparedocument @hDoc OUTPUT, @criteria --Select data from the table based on valu ...Show All
Visual Studio Express Editions Database connection to sql database
Hi how can i can conncet to the a database based on an other sql server in my lan. for example in web developer i can choose the the sqlserver in visual basic i can only chose a mdf file. thank you By design yoou can't do this...Sorry to tell you this but you might look at this thread and try the code on it...from SJW http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=177171&a ...Show All
SQL Server SQL Server Express install on 4 CPU Machine?
I've read that SQL Express will only use one CPU, can you install on a machine with 4 CPU's and have it only use one Yes, you can install it, but it will only utilize one CPU. Same is you can have 4 Gb of physical RAM, but it will only use 1Gb maximum. http://blogs.msdn.com/euanga/archive/2006/03/09/545576.aspx ...Show All
.NET Development Closing windows form with SendMessage
Hi all...I'm trying to shell an external application, then close it using sendmessage. I was unable to make the application close, so I started searching the web. I found several examples, but have been unable to make them work. I've even tried opening/closing just notepad on my local machine, but have been unsuccessful closing that too. I'm including the test code, as you can see, it's very simple, but won ...Show All
Windows Forms Databinding to a combobox... strange
Hey, I want to bind some data from my sqldatabase to a combobox in my form. When i try this, it doens't work; i get this exception: System.NullReferenceException: Object reference not set to an instance of an object It's strange, because I use the same code for a toolstripcombobox (other names, other table) but the code works. This is my code, if someone can tell me what wrong... thanks! query = "EXECUTE getToBeSolvedIn" ...Show All
SQL Server How to Insert One Row with Multiple time depding on Source Column value in SSIS Pacakge
Hi ! I need help for SSIS Pacakge. using condtional Split How to insert One records with Multiple time depending on Source column value .Is there possible to wrtie the condition in Conditional split. For Exmaple : Source Table Name : tbl_source following Column Name: col_Name1,Col_Name2,Col_Name3, col_Id,Col_Descrip table contain only one records:GRD1,SRD1,FRD1,100,Product I want Insert the Destiantion table the F ...Show All
.NET Development Server GC in VS 2005 Beta 2?
I've recently been reading up on the garbage collector in .NET and discovered that there is a workstation version of the gc and a server version. Earlier versions of Whidbey apparently allowed the server gc to be enabled via an app.config item that looked like this... <runtime> <gcServer enabled=“true"/> </runtime> I tried this with no success, so I looked into the schema for ...Show All
Visual Studio 2008 (Pre-release) Holy sweet sauerkraut, Batman!
We have the new CTP for you on the LINQ home page . There is one combined MSI for VB and C# developers that contains plenty of goodies: lots of features that you had requested and we had planned in VB, C#, System.Query, DLinq and XLinq. New component - LINQ over DataSet. New samples, visualizers. I will leave it to you to explore the details and give us feedback. Thanks for your interest and excitement since last PDC. This is what keeps ...Show All
Visual C# using ExecCommand to copy in MSHTML
I am working on an editor using mshtml. I just cannot get cut / copy / paste to work with ExecCommand. All other command identifiers seem to be working well. Here is my code: public partial class Form1 : Form { private static HtmlDocument htmldoc; private bool fireonce = false; // fire previewkeydown only once public Form1( ) { InitializeComponent( ); } private void Form1_Load(object sender, E ...Show All
Visual C# bubble sort
I am kinda new to programming and need some help in completing an excercise I'm on. I have two bubble sorts to sort an array of structs into ascending or descending order on the users prompt. ie. the users types "A" for ascendng and "D" for descending then the data is displayed. Once this data is on the screen is there a way I could then toggle between the two (A & D) This is all being done in a Console App by the way. Thanks ...Show All
Smart Device Development How can I do this in .NET CF1? Is this possible?
Anyone got a c# class that has autocomplete added Thanks! The instrinsic controls in CF do not expose the OnPaint event. As Ilya mentioned, you can try to sublcass the control, but let me tell you, it is not easy, because you will need to draw everything yourself. IMO it would be easier just to use the OwnerDrawn list from SDF. ...Show All
