Tony Yu's Q&A profile
.NET Development Deleting databound combobox item in database
Hi, I have been searching for answers everywhere with no luck. I know that comboboxes are kind of buggy and alot of people seem to have problems with them. My problem is trying to remove a row from the database while it is databound to a combobox. Here is my situation: a form loads a databound list of unique usernames. The user can select usernames and choose to edit, create new, or delete usernames. I have gotten edit and create new to work how ...Show All
Game Technologies: DirectX, XNA, XACT, etc. VB.NET/Direct X 3D object selection using the mouse click.
I realize that I'm in the wrong forum, but there dosn't seem to be one for non-game applications that use Direct X. I'm not a C++ programmer. I've used Visual Basic and VB.NET to write applications that display objects in 3D. I want to able to allow the user to select one of several 3D objects via the mouse. Can someone supply some sample code in VB or VB.NET that does this. Thanks in advance. The Pick sa ...Show All
Visual Studio 2008 (Pre-release) Problem with Cider and Sparkle on Vista Build 5342
hi there. I just got Vista Build 5342 and tried to build up a designer toolset on the new OS with Visual Studio, Cider and Sparkle. After a hard time fixing installation of WinFX RunTime Components (Feb CTP), Visual Studio 2005 Team Suite, Windows SDK, Sparkle March CTP, I got all works done useless. XAML Designer in Visual Studio doesn't show anything without any error neither ExprID.Exe shows up even a single pixle and just allocates som ...Show All
Visual Studio How to get the Type of a class in a project?
I tried to use DynamicTypeService's ITypeResolutionService. But it can't find the type of classes in the current project. The code model might be useful to you - EnvDTE80.CodeClass2. HTH - Sirkku ...Show All
.NET Development Going Left to Right
Guys I have a table like: Id name cgpa -- ---- ---- 01 I 4.0 02 U 1.0 03 He 2.0 04 She 3.0 I want to show this thing in DataGrid as: 1 2 3 4 Id 01 02 03 04 Name I&nbs ...Show All
Visual Studio I want to add additional documentation to VS help system.
I have VS 2005 installed and it comes with a set of documentation which you can filter via drop down box, which is great. But I am doing some sharepoint development and I really don’t want to switch between the two systems or more if I have other SDK docs I need to look at, can I add the sharepoint SDK or any .chm file to the VS help system which should be automaticly searched via dynamic help also. I think I am asking for the impossible. ...Show All
Windows Forms DataGridView and TabControl bug?
I've come across some odd behavior involving DataGridView controls and TabControls. Have I stumbled across a bug, or is there something I don't understand about these controls My app uses a TabControl with five TabPages. Each TabPage has its own DataGridView, which I bind to DataTables in the main window's FormLoad event. I set the HeaderText property of each column of the DataGridViews at run time, because I don't know in advan ...Show All
.NET Development Problem in Hosting & Cosuming .Net Web Services
Hi, we have developed an enterprise web site which consumes web services, these web services works fine in LAN(IP) but when given WAN(IP) International IP the webservices didn't expose its services, as these services will be consumed by both Web and DeskTop application these services must by accessable via Internet in different locations. please, let me inform how to host web services on IIS; to be accessed/consumed via Internet. if any ...Show All
Visual Studio Team System Team Build & Visual Source Safe - Creating build type
I am assuming you do not need Team Foundation Source Control to be able to use Team Build. We’d like to stick with SourceSafe for now. In Tools->Options I have chosen Visual Source safe as source control. I have also created a sourcesafe database. From here I do not understand how to map solution and the solution to the team foundation project so that I can select the solution in the Build Type Creation Wizard. This is what I’ve done: 1. The ...Show All
SQL Server Does anyone have a script to reset SQL login passwords?
We are doing a consolodation whereby we are pulling 2 servers into one big one. We have a problem with duplicate logins and differing passwords. I want to be able to cursor (or tran ) through a list of logins resetting their passwords to a default. This will currently run under SQL 2000, but I may want to do it on our 2K5 server at some time - I feel the second part may be more difficult though. Does anyone have a script lying around in th ...Show All
Visual Studio Team System Source Control - default working Path
Hi! Is there a way to set the default local working path If someone opens the project, he has to set the working path, but I want to set a default path! regards Simon Sort of. If you have a workspace you want other people to mimick, they can create their workspaces using the command ‘tf workspace /new <WSname> /template:<templateWS>;<username> /server:<server>’ ...Show All
Windows Forms Listview and VB.Net
I am a newbie to programming with Visual Basic and I am developing a windows app. In this app I am using a listview to display the data. From this data I would like to get two items and pass them to another routine. I am trying to figure out how to get the row data of specifice items that are checked in the listview. I had it working but found a bug and had to edit the code. What should I do Thanks. Can ...Show All
Windows Forms Accessing component from another form
Hi all I'm totally new to Visual Studio , coming from Delphi . My question, I'm sure is pretty trivial. I'm using C# I have a component class (Project/Add Class/Component Class). In this component class, I drop an ImageList. Now, in my main form, I put a button. I would like to define the ImageList property of my button to be the one created in the component class. I can achive this by code but I want to define visually (at design time) the prop ...Show All
SQL Server SQL Server 2005 Standard on 2 nodes of a 4 node cluster
My question is, I'd like my actual cluster to have 4 servers. The virtual server that will be running SQL 2005 will only be installed on 2 of those nodes. Will this work or do I have to split my cluster in to 2 to meet the SQL Server 2005 2 node failover limitation A basic config for the cluster would be like below.... ClusterSQLNode Active SQL 2005 Server ClusterExchNode Active Exchange Server ClusterAppNode Active Application Serv ...Show All
Visual Basic VB Express 2005
Hi all, I just downloaded and installed VB Express 2005 Bata 2. When I ran it and select "New Project" and "Window" app, I get 5 dialog boxes that says: Title: Package Load Failure Package 'Visual Studio common IDE package' has failed to load properly (GUDI - {6E87CFAD-6C05-4ADF-9CD7-3B7943875B7C}). Please contact package vendor for assistance. Application restart recommended, due to possible enviroment corruption. Would you like to disable load ...Show All
