RajaGanapathy's Q&A profile
SQL Server Update for the re-arranging the sequence in the table field
Assume that there are 10 records in a table and i deleted 3 records within it. So probably I will get a ID no. = 11 if I insert a new record. However,can I re-generate the ID field and get a ID = 8 if I insert because I would like to tidy up the numbers up Thx guys. Best Regards, Hans identify fields just take the next value..and dont reuse...if u want to reuse, u'll have to disable this property to put ne other values.....pls refer the post below.. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1010360&SiteID=1 ...Show All
Windows Live Developer Forums Can I change the pushpin text?
I have seen this question asked here before but without a conclusive answer. (Slap me if my search was sloppy). Can I change the Details of a pushpin once the pin was created and added to the map Thanks John, I have a few more question about your app at lookupandsmile.com.au 1)Are pins deleted and aadded with the new details whenever onMouseOver is invoked If so it looks quite good - no disappearing/re-appearing pushipins 2)What about clicking the "next" link on a multiple-event pushpin Does it do the same thing Thanks Fritz ...Show All
Visual Studio Express Editions Reading 2 lines from a file
Hi all! It's me (again). I feel really frustrated, because I know that I'm so near to achieving my goal, and yet it seems so far! Problem: I have a text file with 2 lines (it will always be the same): - Line 1 defines the name of the "Plugin" - Line 2 defines the executable path of the "Plugin" A directory (sampledir1) contains an amount of files structured like this. Is there a way to add the names of these "Plugins" to a listbox, but also assign a value to that item, so that when the item is selected, the plugin will launch. Please don't get mad at me for asking so many questions - I'm still a newbie... Thanks! Johannes Hi Spotty Thanks - that helped me a lot, but now, I also want to put in a cas ...Show All
Architecture UML/Modeling Tools you are using?
One of the problems I have found in VSTS 2005 is the lack of modeling tools for the Software Architect. Jack Greenfield addressed and answered my concerns here . He also said MS is working on some addressing some of the issues. I responded to him here . I needed something today to allow me to continue doing my job which currently is implementing a product line engineering process. I am using UML on this project. In case you are interested, here is a list of the tools we are evaluating from MS and their status. I answered Steve Cook's question as to what UML I would like to see supported by MS here . XDE was out because it is not supported in VSTS 2005. Since no improvements have been made to Visio's UML features for so ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Managed vs Unmanaged, Primitive design and .NET
I actually have three separate questions here. Please bear with me. Managed vs Unmanaged I searched several post and didn't find the answer I was looking for. Simply put, if you are designing a 3D game engine that needs to push 30+ frames a second, would you even consider using a managed language It seems to me that when the garbage collector kicks in your frame rate will/may plummet. What is the concensus on using managed vs unmanaged code in a game engine Primitive Design I have built a rudimentary 3D engine using good OOD where the primitives (points, polygons, lines, etc.) provide methods for their management and transformations. If I have a model with 100,000 points, each point carries the overhead of the virtual function table and ...Show All
SQL Server Externally Accessing localmachine to view reports
How is it possible for others to browse to my localmachine and view the reports They tried browsing to http://machinename/reports and http://10.1.3.123/reports But the message the users get is: You are not authorized to view this page. Then In my localmachine, I changed the IIS setting for the Reports and ReportServer to allow anonymous access. Then the users were able to see the Home page of the reports but not the reports themselves to click on for viewing. Any thoughts please Thanks Have you created role assignments for the remote users http://msdn2.microsoft.com/en-us/library/aa337491.aspx When you enable Anonymous, everyone coming into the Report Server looks like the same user (the anony ...Show All
Windows Forms Problem on access checkbox value in datagridview
I have a datagridview that contains an unbound column named "itemsApprovedCheckBox". I also have a button called ApproveStripButton in my form. I have the follow code for my ApproveStripButton Click event: private void ApproveStripButton_Click(object sender, EventArgs e) { for (int i = 0; i < myItemsDataGridView.Rows.Count; i++) { if((bool)myItemsDataGridView.Rows[ i ].Cells["itemsApprovedCheckBox"].Value == true) { //whatever } } } But everytime I clicked on my button, I get an NullReferenceException was handled error - Object reference not set to an instance of an object on if((bool)myItemsDataGridView.Rows[ i ].Cells["itemsApprov ...Show All
.NET Development SetIlFunctionBody. How to free memory of old body
Hi, Do I have to free the memory, where the method body have been located after SetIlFunctionBody I have the Profiler that rewrites the body of some methods. Earlier I've freed the old method bodies' memory using code: Hi, Sergey! You do not need to (and should not attempt to) free the memory you get back from a call to GetIlFunctionBody. This memory can be mapped directly to the module containing the function and is therefore unfreeable. The general rule of thumb regarding freeing memory is this. If you allocated the memory, you can free it (unless the API docs say not to, such as with IMethodMalloc::Alloc). If the CLR allocates memory and hands it back to you, don't free it (unless the Profiling API docs say you should). I ...Show All
Visual Studio Express Editions I have to run a run command
first, with no relation to the question.....run a run command...that just aint right... anyways,i need to run a command usually run with run , the code is the following, Attrib +s "<Textbox1.text>" i have tried to use a bat file,written with a buttton,but the bat file has to write a " before the location and after,but " " " will not work if anyone can please make me a code that actually is done with code without opening bat or anything,just one code that can run Attrib +s " between goes the location localized at textbox1.text " it has to be written that way,obiously except the location which normally could be something like Attrib +s "C:\Documents and Settings\A ...Show All
SQL Server Kirk Haselden New book
Any idea where the quickest place to get Kirk Haselden's new book will be. I've seen a few different dates for the relaase. Amazon has 7/21, but they have fooled me before, getting books to me much later than I could have gotten the elsewhere. Is there anyone I can bribe to get it now I love IS - the complicated stuff is simple and intuitive but the details are driving me nuts. Constant little errors on data types and stuff without any documentation. I'm spending hours and hours figuring these things out by trial and error. Also a thank you to Kirk for his posts to the forum. I've assembled them in a list and have been reading through them. Very helpful. David this link might help: http://www.bes ...Show All
.NET Development Windows Group names
Is there a way to retrieve the computer specific names of the builtin groups like Users and Administrators I'm writing automated unit tests for the NetAPI and want to create new users who are members of the Administrators group. But since I have an English WinXP MCE and a Swedish WinXP Professional, the name of the groups are different. My current solution is to compare Environment.MachineName with the name of my Englih computer, but I would like a more general solution. Thanks Johan This has been answered before: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=457246&SiteID=1 ...Show All
Visual Studio 2008 (Pre-release) Custom Window
I am creating a custom window that looks similar to the Office 2007 UI. I was able to create an appropriate ControlTemplate/Style with dragging and "Close", Maximize/Minimize buttons etc... But here' the question: What's the best approach to have it encapculated in the separate class/component so I can easily re-use this style for other windows in the app >I was thinking about that. Still trying to figure out how to declare XAML for the new window >that inherits from my custom window. This is what I am doing: >[...] Hm, HelpWindow sounds quite strange. If you didnt created it by yourself of course . Here I can't imagine how to help without the whole project to look at. > Not ye ...Show All
SQL Server SSIS Question
I can't find the Watch Window when I'm in the designers view of SSIS. Is there a trick I'm missing Thanks, MM ...Show All
Windows Forms prevent TabPage from getting focused
Hi, All How can I prevent TabPage from gettign focused while selects it programmatically (through TabControl.SelectedTab property) Thanks, in advance. Unfortunately, exactly in this case it is reasonable to prevent focusing. In two words I have next situation: I have the form with TreeView and TabControl controls on it. User can navigate through TreeView by arrow buttons and can select any TabPage in TabControl using predefined shortcuts. Each TabPage contains a piece of information about selected TreeNode in TreeView. I think it is better to get focused on TreeView to allow user to navigate through it continuously. P.S. I suppose it is not good behaviour of control to stealing focus. It is mu ...Show All
Visual Basic Storing variables outside of RAM?
I'm writing a program that stores values in variables, but I need those variables to hold their values after the program closes, as I am making an organizer for things. I was thinking of writing them to a text file then retrieving them, but I know there's a better way. Thanks. Okay, how would I use Application Settings then I'm trying to use a database, but if Application Settings is easier, then I will. But I need someone to explain them. Thanks. ^_^ ...Show All
