Wilton Kwok's Q&A profile
Windows Forms Data binding
Could any one tell me my data grid form says that data1.recordset is not a member of system.form.windows what would be reason for this error compiler error Answers would be appreicated Hi! What it is telling is right it doesn't recognise recordset and there is no such thing in .Net. Well I can tell you are vb programmer. But Anand .Net there is nothing like recordset. It has similar object that do almost same things. My suggestion to you is to read the following topics: 1) ADO.NET 2) Connection 3) DataAdapter 4) Command 5) BindingSource 6)BindingNavigator Sohail. ...Show All
Visual Basic Workbooks.Open(fileName): Cannot fix Overload Resolution Error
Okay, I have searched and searched, read and read, and every solution I have found is simply not working. Here is the problem: I have assigned an Excel File name to the variable 'fileName' (as String). Everytime I utilize the following code, I get an error. ___CODE FOLLOWS___ Dim xl As New Microsoft.Office.Interop.Excel.Application Dim xlWkbk As Microsoft.Office.Interop.Excel.Workbook xlWkbk = xl.Workbooks.Open(fileName) ___END CODE___ The error is "Overload Resolution failed because no accessible 'Open' is most specific for these arguments..." I have loaded the Excel Object Library, added it to my project, and as far as I can tell, I have done everything right, but no matter what I try, I keep getting ...Show All
.NET Development OleDbException was unhandled by the user code in a website of VWD 2005 Express
Hi all, I executed a website (named "AccDataSource" with the Order.aspx, Order.aspx.vb, Product.vb in App_Code, and Halloween.mdf in App_Data - see the attached items below) in my VWD 2005 Express via the local host. I got no error or warning, but during debugging the following appeared: "OleDbException was unhandled by the user code - The Microsoft Jet database engine cannot find the input table or query 'Product'. Make sure it exists and that its name is spelled correctly " pointing to the code line "ddlProducts.DataBind()". /////////--Order.aspx.vb--///////////////////// Imports System.Data Partial Class Order Inherits System.Web.UI.Page Private SelectedProduct As Product ...Show All
Visual Basic Need help exporting VB.Net variables/data to VBA macro
Hi I'm using VBA AutoCAD for drawing, but instead of defining parameters in VBA, I would like to take those parameters from VB.Net codes. Here is an example Sub CreateCylinder() Dim CylinderObj As Acad3DSolid Dim center(0 To 2) As Double Dim radius As Double Dim height As Double ' Define the cylinder parameters center(0) = 5#: center(1) = 5#: center(2) = 0 radius = 10#: height = 20# ' Create the cylinder in model space Set CylinderObj = ThisDrawing.ModelSpace.AddCylinder(center, radius, height) End Sub This VBA code will create a cylinder at co-ordinates (5,5,0) with radius = 10 and height = 20. I would like to know how to link or export these parameters from VB.Net to VBA AutoCAD for plotting. Many t ...Show All
Visual Studio 2008 (Pre-release) Can't Access Cider
I installed June CTP .net 3.0, window SDK June CTP, vsextfxnet3 "orcas" with Cider June CTP, I used the un-installer to clear previous installation, removed WIC and installed the required WIC. EID,EGD are installed the last June CTP available there is no Cider in VS 2005 1- any help where is cider located within VS2005 2- where is the introduction tutorial located on using Cider within VS2005 to construct application thanks for the help. There are not currently any tutorials for Cider - there are walkthroughs - see http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=533837&SiteID=1 and http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=495507&SiteID=1 When you start VS 2 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. xna express question
Hi everyone, I have a question I saw that XNA is only working with C# express, it will be released an XNA frameworks for visual studio 2005 pro, if no, it is possible to develop an video game and sell it with the VS Express licence Thanks for your reply and your help :) Read the FAQ . ...Show All
Visual Studio Team System Uninstalling Evaluation version of Team Explorer
Hi, I installed the evaluation edition of Team Explorer on my machine, and when I'd finished, I uninstalled it (through Add/Remove programs) The problem I have now is that although it does not appear inside VS on hte menus, it does appear as an installed element on the splash screen, and I get a blank form displayed when I start VS which appears to be the dialog that used to prompt me for a user name and password. (I had to specify these to connect the the TFS server because if network problems). Any ideas on what might have been left behind that could be causing the problem Cheers, Bill Thanks for the error report. So we can help investigate this further, can you tell us a bit more ...Show All
Visual Studio vss & vs2005: error when check in, check out, read last version...
hello world, i'm using vss in vs2005, but when i try to check out, check in a file or make any operation involving source control i get this error: help!!!!, i realized that i should reinstal jet db (Windowsxp-KB829558-x86) and register oledb32, but the problem is that i can't install it because a messagebox prompt me that the verion on my pc is more recent ...Show All
SQL Server Converting Latitude/Longitude to Cartesian Coordinates
Hi All, I'm trying to find a way to convert LatLon coordinates (for example the LatLon of several cities around the world) to cartesian XY coordinates in order to plot geographical information on a two dimentional plain. Now I know this must be a doddle for the mathematicians among you but I'm having difficulty in getting the right results. I've based my attempts thus far on standard geometric equations that can be found at http://mathworld.wolfram.com/SphericalCoordinates.html but I must be missing something when I attempt to convert these into SQL functions etc... :/ If anyone has done this or could explain to me in words of two syllables or less I'd be forever grateful! :) Rob. Please take ...Show All
Visual Studio 2008 (Pre-release) Adorner cannot show upon WindowsFormsHost
Hi all, I have two questions: There are two ways to display Adorner upon a WPF UIElement. One is to call AdornerLayer.GetAdornerLayer() function to get AdornerLayer for the visual element and then add a custom Adnorner to that layer. The other one is taking advantage of Cider extensibility and add an AdnornerProvider. My problem is Adorner cannot show upon WindowsFormsHost using either of above ways. In SDK, I was told that any UIElement can have adorners on it and WindowsFormshost is of course a UIElement. Actually I find another description about WindowsFormsHost, which is this control is drawn on top of any Adorner. So I just post this topic to comfirm my understanding that WindowsFormsHost can not have any adorners on ...Show All
Visual C# Create program to run before windows startup -- Floppy Disk?
Can I create a program to run before windows starts up, like when you insert a floppy disk before startup, you can, say, erase your harddrive Thanks, Not in C# as it requires the .NET Framework which requires Windows. In theory you could strip down a CLR such as Mono or Rotor... however making it that small might take a fair bit of work. ...Show All
Visual Studio Future Functionality - Views, Drill-down, Printing, Copy/Paste
Hi, We are looking at the possibilities of using DSL in our Factories and we'd like to know if the DSL Team are considering implementing the following features. I know some of these have been discussed somewhat in other threads, but there doesn't seem to be any answers as to whether they are being seriously considered. Creation of multiple views/diagrams for the same store Sharing of elements between diagrams and stores Nesting of elements (visually) as well as a "drill-down" feature for nested elements Print Preview and printing of selected items Copy/Paste across DSLs and across applications I understand the underlying model supports most of this, but it is simply not possible with the current UI. Any comments on th ...Show All
Visual C++ Error message PSAPI.DLL
I am getting a error pop up saying Get Process Image file name w. could not be located in the dynamic link library psapi.dll What should I do to fix this. April I get the feeling that you are not a software developer using Visual Studio... Can you give us the steps you're using that gives you this error i.e. What kind of application are you trying to run Also, check out this blog link , which I found by searching the net on keywords psapi.dll and GetProcessImageFilenamew. Brian ...Show All
Visual Studio Tools for Office VS.NET 2005 - Professional and Office Tools version..
after looking over these two versions, i was wondering what the deal was w/ the Office Tools version. it looks like it's ~only~ the part of VS.NET that deals w/ MS Office. is this the case, or am i mistaken what does the Office Tools version deal with (when compared to the professional version). thanks :) :) :) Don't forget, though, that VSTO is available as a stand-alone, full version of Visual Studio. If you buy the VSTO edition of Visual Studio you get most of the features that are in the Professional edition--the main differences are VSTO includes only Visual Basic and Visual C# (not C++ or other languages), VSTO doesn't include support for mobile device development, and there are a few other things. You can see ...Show All
Visual Studio Tools for Office Outlook add in: how to get selected text
I need to implement outlook add in. The add in will modify context menu, which appeared when user selects some text in the mail and clicks right button. I can add the menu item, but I can't find the way to get currently selected text. I've seen one solution - with WINAPI get Richedit control and get the selected text. It works only for text mail messages, but for HTML mail messages it doesn't work. How to get the selected text from HTML mail message Hi, May you please add the piece of code that works I am having the same issue too. Thanks in forward. ...Show All
