RichardM_UK's Q&A profile
Visual Basic DataGrid cursor change
Hello, I've a DataGrid on a form and I need to change the cursor from Default to Help when a user moves the mouse over a certain column of the DataGrid. I've the following code but is not working: Private Sub DataGridView1_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataGridView1.MouseHover If DataGridView1.CurrentCell.ColumnIndex = 7 Then DataGridView1.Cursor = Cursors.Help End If End SubThe error message that I receive is: "Object reference not set to an instance of an object" Can annyone help please Thanks, Joao Pinto How do you know the mouse is over the current cell I would do it like this &nb ...Show All
Visual Studio C#/Crystal Reports Application Deployment
Setup program with merge files (created exactly as it is described in MSDN and many aricles) successfully installes my program on my development computer and on two other computers but failed to install on any other computer Setup process is interrupted with the message: Unable to get installer types in the C:\Program Files\...\MyAplication.exe assembly. --> Unable to load one or more of the requested types. Retrieve the LoaderException property for more information. All steps I do are have carefully checked against tens of articles. There is a difference between three computers which allow installation and all other which do not allow. Before to start develop the application I used those three computers for ...Show All
Visual Studio Team System New TFS VersionTree addin
All, I just wanted to let people know that a new TFS version tree addin for Visual Studio is available from the wesite below http://www.cupithome.com/foundationtree/home.html Please feel free to download and try it out. Jem Steve, Using your product code here is a fully registered license code which expires 27-Oct-06 vHSn6aRKi1OKZ6psai7eqJxwjD0M59DO/J9k+Ix7WWR+d2jjG7Pw637ASsuqw7VZ Paste this code into the License code field and click "register now" I hope this works, while I come up with a better licensing solution. Jem PS. Can we move this discussion to the FoundationTree forum, cheers. ...Show All
Visual Studio 2008 (Pre-release) Mouse event ...
Hello I've a rectangle and over there it's a TextBlock. I want to move a window when the left mouse button is pressed and drag on the rectangle. But If I press over the TextBlock the window doesn't move. I can't remember the method to say to the Textblock to cancel the events. Thanks a lot !!! If you simply want to stop the event from bubbling further what you can do is write a click event handler for your textbox and within the handler set the Handled property of the EventArgs to true. ...Show All
SQL Server Inserting Datetime through OLEDB
Hi, I was working on some code using OLEDB parameterized command to insert a row into sql server. The code failed with “Conversion failed when converting datetime from character string .” I Here is my scenario. My code reads a date from a source database (SQL Server 2005) using OLEDB rowset and then writes the date into a destination database (also SQL server 2005) using OLEDB parameterized command. The same problem applies to SQL Server 2000 too. I intercepted the command using profiler and found the error was raised when the code was inserting N'2006-07-21 11:00:02.310000000' into a datetime column. OLEDB returns N'2006-07-21 11:00:02.310000000' when reading in the data (note the 9 fraction digits). ...Show All
Visual Basic Tough one, Share a Socket?
Hello All, I have an off the shelf Windows app that is capable of calling a dll. Actually it calls a C++ wrapper which calls my VB.NET dll ( a VB.NET function ) and all is working fine. The VB.NET dll is designed to open a socket to a server and send messages using System.Net.Sockets. The VB.NET dll also starts a timer to send regular messages to the server in order to keep the socket open and displays a simple UI to handle additional messages that the user might want to send. All this is working fine...but here comes the problem. When the Windows app wants to send more messages it calls the dll that has previously created the UI and opened the socket that is now sending regular messages. That is to say the socket is already open an ...Show All
Visual Studio Team System Where are the icons?
Where are the free icons Part of the the registration confirmation email says "Icons — Professional, royalty-free icons for use in your applications " but it doesn't say where they are. Is this some sort of intelligence test Maybe a case of "If you are not smart enough to solve the BBC Mystery Theater and Microsoft Icon Search then you aren't smart enough to make use of the resources " Look into the "c:\Program Files\Microsoft Visual Studio 8\Common7\VS2005ImageLibrary" folder. There should be a zip file, containing icons and other graphic files. Andrej ...Show All
Visual Studio Tools for Office NEWBIE question about Excel within VSTO
I know this may be a relatively stupid question, but if I don't ask, I'll never know..... I have just installed vsto 2005, got the book vsto 2005 by eric carter/eric lippert, and notice that in trying to work with vsto that I am desperately missing some items.... When I do file... new project..... per all instructions I've seen before says..... "in the list of project templastes select excel workbook" I'm going crazy trying to figure this out.... the excel workbook icon that is shown in all examples is NOT an available template within the office sub-folder... I have browsed for most of the day today through this forum, as well as both the Eric's blogs, and have found nothing that will help... The only selection ...Show All
Visual Studio Express Editions ReneeC I need your Help.....
Well...there comes a time in almost where a choice in the past makes for a difficult (or at least uneasy) future...I have made such a mistake. Now I need to correct it and since you (ReneeC) helped me with it in the very first place I beseech you to help me correct it..... I am not sure it you remember the following program: ----------------------------------------------------- Imports System.io Public Class FolderRenamer Protected Const ext As String = ".vob" Protected gbFd As New GroupBox Protected gbTb As New GroupBox Protected Friend WithEvents TextBox1 As New TextBox Protected Friend WithEvents Fdb As FolderBrowserDialog Protected FilesMoved ...Show All
Visual C++ How can I capture WM_DEVICECHANGE message in my consle program?
How can I capture WM_DEVICECHANGE message in my consle program I mean the program has no window an is not a service.I find out some code in msdn,but it's win32 program which shou window.I build consle project inin .net 2005,how can i do this Do i have to use hook thank you ! Hi, I think that you are forced to use Window because a window receives this message through its "WindowProc" function, so you have't alternative way to do that. Regards. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Unable to load p1_wedge following first Starter Kit tutorial
Hello all, My first post. I've done a search for this problem online with no joy, so thought I'd post here in the thick of it. I have this exception when trying to build and run the tutorial: {"Error loading \"\\Content\\Models\\p1_wedge\". File not found."} With this as an Inner Exception: {"Could not find a part of the path 'D:\\Content\\Models\\p1_wedge.xnb'."} The p1_wedge.fbx is in the correct directory, and all my code is copied correctly from the tutorial. Can anyone tell me what's up - I had a problem with mscoree.dll a few days ago, and didn't really know what I was doing trying to recover it... (I'm no Windows programmer - I'm an ActionScript guy by trade...) Thanks in advance! pseudo Heh, n ...Show All
Visual Studio 2008 (Pre-release) How to open a new xaml with a button click
Hey all, thanks for the help. Okay, I have made a new xaml that is initially set to Hidden. It has a StoryBoard for animateIn and animateOut. Lets call the xaml popUp. How can I make a button on another xaml page run popUp's animateIn StoryBoard Thanks, Victor There is a example in WPFSamples, WPFNotepad, maybe a help for you. FileAssociationsDialog(defined in file FileAssociations.xaml), opened in function DoFileAssociationsCommand(): void DoFileAssociationsCommand(object sender, ExecutedRoutedEventArgs e) { FileAssociationsDialog fad = new FileAssociationsDialog(); fad.Owner = this; fad.ShowDialog(); } ...Show All
.NET Development opening a word document from ASP.Net
can any one tell me how to open a rtf/doc type files from asp.net page actually i followed one way in which open/save box appears . i dont want it because i should not allow the user to save content so want to open in ie itself . ...Show All
.NET Development check if object being initialised
Hi, Does anybody knows how to check if an object has been initialised I'm currently using the harder way that set the IsCreated value to true when the object is being initialised. Thanks. Thanks for the answer but the object is not nothing when i declared it.For example: Dim obj as TestObject when step through in the debugging mode, the obj is not nothing. Thanks. ...Show All
Visual Studio Team System Use 2 TF-servers at same client.
We have TFS running on a test server and a production server. I want to be able to switch between the two without having to disconnect and reconnect, so I just started VS twice and connected to the test server in the first IDE and to the production server in the second IDE. However this does seem to cause some problems, when working with work items, because the test server and production server have different work items and workflows. Is this configuration supported It sometimes happen that I'm unable to save a work item because the TFS server reports "There may be a problem with the workitem type definition" or "Not supported field or not enough permissions" (these are not the exact m ...Show All
