UKOK's Q&A profile
.NET Development Need Help in purchasing .NET 2005 with MSDN
Hello everyone, I am new to .NET.Can someone let me know what version of Microsoft Visual Studio(2005 or later) will support the latest .NET features along with MSDN Thanks in advance, SK All 2005 versions are 2.0, and support all language features. AFAIK, all versions apart from Express come with the MSDN CDs. ...Show All
Windows Forms Determining max size of Image in PictureBox (.NET 2.0)
I have a PictureBox with Docking set to Fill. I would like to find the dimensions of the rectangle that the PictureBox "Fills". In .NET 1.1, pictureBox1.height and pictureBox1.width properties define those dimensions. In .NET 2.0, I find that the the height and width properties of the PictureBox defines the height and width of the image itself. In other words, the height and width properties no longer reflects the maximum space availiable to display the image. How do I find those dimensions in .NET 2.0 It can't be the height width of the parent control, as Anchoring instead ...Show All
Windows Forms Need tool addin to VS.Net 2003 generate source code
i need a tool addin to VS.Net 2003, it can generate source code property in C# Can you help me thanks Your request is totally unclear. What sort of source code are you hoping to have generated for you Most add ins generate some sort of code, to speed things up, and most have facilities similar to code snippets in VS2005, if that's what you want to reproduce. Whole Tomato Visual Assist X, and Resharper are two that spring to mind. ...Show All
Visual C++ XML Comments
When I first heard that Visual C++ 2005 was going to support XML documentation I was very excited to try the beta. One fo the things I expected was the XML documentation experience to be identical to that of C#, but here are some of my experiences. The triple slash (///) before a function header doesn't automatically generate some blank xml comments for me When I place XML comments above a function header and specify information about its arguments, the intellisense doesn't seem to pick that up when I start filling in the arguments of a function call (like it does in C#) While I do see the XML comments within the intellisense before I ...Show All
SQL Server BEGINNER'S QUESTION: SORTING IN ALPHABETICAL ORDER
Hi I am trying to convert an Access back end into a SQL Server back end and cannot work out how to convert a query that sorts addresses that start with numbers into alphabetical order. In Access I defined a function that converted the full address to one without the initial numbers eg: 66 Acacia Gardens to Acacia Gardens I then used this function as an expression in the field column of the query and set it to sort by this field. This put the rows into alphabetical order. (A second function was used to return just the number which was used as the second sort). I am converting the Access query into a stored procedure. I have success ...Show All
Visual Basic treeview question
i have here a treeview control wherein it contains a root node named "Receptions", it has a child node named "Orders".Orders has a child node also named "Records"..I have also a panel named panelTransaction...I want to show the panelTransaction when i clicked the Records node..can someone please show me how thanks... You can call panelTransaction.Hide() to hide the panel and panelTransaction.Show() to show the panel. To detect that a node in the TreeView has been selected you can handle the AfterSelect event for the TreeView control. Inside the event handler there are a couple of ways you can fig ...Show All
Visual Studio Express Editions Indexing rows programatically or automatically
Hi all, I have a question regarding indexing rows in a VB database. Basically i'm starting off with a blank database that will be used to store client details such as name, address, phone etc. I have set up my first column as my identity column (and set as my primary key) that is simply the index number of the current row. Since im not sure of the best way to put the row index number into my identity column i have set up something as follows. 'Saves the new client information into the database for futher reference Private Sub SaveClientButton_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handl ...Show All
Visual Studio Express Editions How do I delete or remove projects and files from visual C++ express Edition
How do I delete or remove projects and files from visual C++ express Edition mveeravagu wrote: How do I delete or remove projects and files from visual C++ express Edition Projects can be managed using the Solution Explorer. If you can't see the Solution Explorer, you can reveal it by choosing View menu -> Solution Explorer. Here, you can right click on your file and choose Remove. "Remove file" removes the file on the project, but keeps it on your hard disk. "Delete" removes the file from both the project and your hard disk. ...Show All
Visual Studio Team System How to reverse a check-out (force check-in)
Is there a way to reverse a checkout from an admin tool. We have two situations. 1. A developer checks out some code but forgets to check it in. They then leave for the weekend, but a situation arrises where another developer needs to fix an issue. We need to reverse the checkout of the first developer. 2. A developer upgrades to a new machine and names it something different than a machine that had some source checked out. The developer thought they had checked everything in, but there were some files not checked in. We need to override the checkout of that developer as his original machine is now gone. Thanks in advance. ...Show All
Smart Device Development PictureBox Dispose Problem
Hi all, I have a application run in O2 Xda IIi Pocket PC (speed 520MHz) where I will update the image of the picture box every minit. My code is like below: void DisplayMap() { Bitmap MyImage1; if(picCar.Image!=Null) picCar.Image.Dispose(); MyImage1 = new Bitmap("C:\car.jpg"); picCar.Image = MyImage1; } My problem is sometimes the application will hang! I have debug this and find out that when reach 'new Bitmap', it will just hang, or sometimes pop out System.IO.FileNotFoundException:FileNotFoundException where actually the file is exist! Can anybody help me on how to dispose a pict ...Show All
Visual C# count number of objects crated in runtime
hi in my application there r many classes and runtime so many objects r created of diff. classes. and i want to know how many objects r created at runtime.is there any utility in c#.net to know number of objects created at runtime. plz help me thanks and regards kavita You can run your application with the CLR Profiler attached. ...Show All
Visual Studio 2008 (Pre-release) LINQ functionality for C# 2.0 (...and others)
So far I'm encouraged with all the help I've received on this forum, so here is another problem. What is the best way of providing ad-hoc querying capabilities in C# 2.0 (the same techniques might apply to Java 5.0...but I won't mention that here :) ). By ad-hoc I don't mean parsing quries written by end-users, then operating on existing data structures (think a winforms application where a user types in something like SQL on an IEnumerable). Several people have already shown how to do a Where clause: class Operators{ IEnumerable Where(IEnumerable source, predicate_function) //I don't remember the syntax for delegates } This method ...Show All
SQL Server Dynamically positioning the Columns Based on User input.
Hi, i donno how to dynamically place coloumns based on the user inputs. i m having a coloumn and that column should be appear in different places according to the report parameters selected by the user. now i m doing this by putting the same column in different places and by contrlling the visibility i m acheiving this. it would be better if i can change the coloumn position according to the user input, instead of having the same column twice in the table. can anyone provide me solution for this. Note: i m using table and grouped all the fields. no drill down is enabled. Thanks in advance Prasad.k. ...Show All
.NET Development How to get the name of SQL Server in a local PC?
What is the proper way to get the name of SQL Server in a local PC(like the pull-down menu in VS.NET when you add a connection) I am using .NET programming. Thanks. Hi, The names of all SQL Server instances on a computer can be found from the InstalledInstances value which is located under the following registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server You would need to use the namespace Microsoft.Win32 for accessing the registry in .NET Regards, Vikram ...Show All
Visual C++ public global functions
Hi dammy! How do I specify that a global function has public visibility Right now visibility is always assembly. What is a global function If the function should be used in other .NET-Languages, you need to declare this function inside a class: namespace MyNamespace { public ref class MyClass { public: void static MyGlobalFunction() { } }; } To prevent the class from beeing instaciated you can declare an private constructor. To prevent inheritance y ...Show All
