Glenn N.'s Q&A profile
Visual Studio VSS checkins take an hour over a domain
Hi all, I have lately joined a domain at my work to program against Active Directory. Most of our machines are not on the domain yet, and our VSS machine isnt. Since I have had to access the VSS machine from within our domain, checkins have been taking up to an hour or thereabouts, and quite often I get a 'Invalid handle' error. The files do get checked in in the end, but it is causing me immense pain. I have tried checking in from both vs2005 beta 2, and vss 6 (I was using the new beta vss, but gave up on that quickly), both give me these errors. Does anyone perhaps know what the problem is, and what the solution may be Thanks in advance, ...Show All
Visual Basic VB 2005 Express upgrade from VB6
I cannot upgrade a VB6 project in VB 2005 Express. The upgrade wizard opens and at the point where upgrading starts it thows and exception: "Unexpected exception occurred during upgrade engine operation: Not able to bind to the source (Exception from HRESULT: 0x8004000A (OLE_E_CANT_BINDTOSOURCE))" I tried the upgrade wizard on a simple VB6 project that contains 1 form with 1 command button on and the same message comes up. The VB6 and the upgrade folder are both on C: I can't find any reference to this error message anywhere in the Knowledge Base or MSDN sites Chris I have uninstal ...Show All
Visual Studio Express Editions VB: System.Random not random in For... Loop.
I'm having a problem where each number generated using System.Random is the same when created in a loop. The code works fine when stepping through, or using one occurance of the GenerateRandom Function, but at full run time in the loop, results in the same value. I am trying to generate 132 numbers between 1 and 5, and pass those results to an array. Here is what I've got so far... The random class is not all that random. I use RNGCyptoServiceProvider to create them. There is an example on the vb-tips website . ...Show All
Windows Forms Real-Time Communication between Forms
Hi, This may be a simple question for some but I'm not entirely sure how to approach it. I would like two Forms to communicate in real time, you have Form1 which has a Timer, each Tick it updates (just to put it simple) a Label with the number of ticks the timer has done. I want, say, Form 2, which has already been created and shown, to update with the value of the label in Form 1 every time this label changes value. The only way I know of passing a value from one form to another is through the constructor, but I do not want to create a new form each time the label updates. My guess is that this is done with threads but I'm not v ...Show All
Visual Basic Filling DataGridView with search results
I have created a simple Visual Basic 2005 application for doing word searches on a SQL Server 2005 database using a Button, TextBox, and ListBox to search and retrieve results based on terms typed into the TextBox. The program works, but I think I would like to use a DataGridView control for the search results instead of the listbox to provide more options for how the results are displayed. Here is the code I used successfully for the Listbox: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim ds As New Documents_DataDataSet Dim ta As New Documents_DataDataSetTa ...Show All
Visual Studio Express Editions "Application.UserAppDataPath" before and after a publish
When I run my VBEE app in the debugger Application.UserAppDataPath points to: C:\Documents and Settings\username\Application Data\companyname\.... as outlined in the help file. When I publish my application this path then changes to: C:\Documents and Settings\username\Local Settings\Apps\2.0\Data\BKXYGCXL.... Why does it do this Can I stop it changing the path when I publish the application Thanks for your help Tim You mean you're not going to insist on a screenshot james aka:Trucker ...Show All
Game Technologies: DirectX, XNA, XACT, etc. October 2005 DirectX SDK is available!
The DirectXR Team is pleased to announce the release of the DirectX 9.0 SDK October 2005 Update! The October Update includes the first public release of the XInput SDK. This SDK will allow game developers to fully support Xbox 360 Controller for Windows. To download or learn more about this release please visit http://msdn.com/directx/sdk . Features added in the October 2005 DirectX SDK update - XInput XInput is an API that allows applications to receive input from the Xbox 360 controller for Windows. Controller rumble effects and voice input and output are supported. For a quick start guide to using the XInput API, see ...Show All
Visual Studio 2008 (Pre-release) DLink -- Object DAC
Hi, I am a system architect for fujitsu australia and we have developped something very close to DLINK in a SQL object DAC. I can't discuss the details of our implemetnation online but I would like to suggest a few things. 1- Being able to automatically map an entity to a table while still being able to exclude a few of the fields from being stored... (they may be calculated or even be UI centric) 2- Being able to have an ID inner class that would be stored flat in the database. That allows for the ID class to implement the IComparable for sorting purposes. 3- We have also found that it is important (in hierarchies) to manage the numb ...Show All
Software Development for Windows Vista Cant uninstall WinFX - help
I had the following installed previously on my computer: .NET Framework 2.0 beta 2 (50215 build) Visual C# Express 2005 beta 2 WinFX runtime components beta 1 WinFX SDK beta 1 MSH Now, after Nov 7, I wanted to install VC# Express 2005 (RTM), so I downloaded and ran the auto uninstall utility. It removed the following components from my system: .NET Framework 2.0 beta 2 (50215 build) Visual C# Express 2005 beta 2 After that, I installed the following: .NET Framework 2.0 (RTM - 50727 build) Visual C# Express 2005 (RTM) Now, I want to remove / reinstall MSH and WinFX but the uninstaller is exiting with the message that "a m ...Show All
Software Development for Windows Vista regarding installation
hai when i tried to install winfx runtime 3.0 (january CTP), i couldn't install i got some errors... before i tried to install winfx runtime i unistalled all the previous versions of frame work and SDK. Then i installed the same in the following order Visual Studio 2005 (RTM) windows SDK (january CTP) After this tried installing winfx runtime 3.0(january CTP) but couldn't continue that....i just want to know wheather the order of installations i followed is corect....I also want to know the proper order for installing Windows Presentation Foundation,Windows Communication Foundation and Windows Workflow foundation...need som ...Show All
Visual C# terminate the application
I am using the attached code within the public frmMain() to check if the VistaDB was started or not but i want to terminate the application when it's not started. In this code it's checking but it's continuing with the application.. public frmMain() { // // Required for Windows Form Designer support // InitializeComponent(); // check for VistaDB; ServiceController[] VistaServices = ServiceController.GetServices(); foreach (ServiceController v_services in VistaServices) { if (v_services.DisplayName == "VistaDB Server") { if (v_services.Status==System.ServiceProcess.ServiceControllerStatus.Running) { // conti ...Show All
Windows Forms add customized combo box in datagridview
i have my customized combo box found in the other site. i need this to add in dfatagrid view the combox box have multiple columns which i find it suitable for me.for now, the problem is aading it in datagridview heres the my code public class mycombo inherits datagridviewcomboboxcolumn public withevents columncombobox as mtgccombobox ---this mtgccombobox is mycombobox found on the other site ........ end class then in datagrid when form loads dim col as new mycombo datagridview1.columns.add(col) --- the combox box shows but the data inside combo box does not show any missing code in my c ...Show All
Windows Forms Host Controls in Windows Forms DataGridView Cells
Hi all, I'm trying to create a new cell within the new DataGridView (.NET 2 Beta). For example, I'm trying to create a cell which contain a RichTextBox, I succeed with the appearance of the rich text box controll but there is a lot of irregular behavior. Does someone did it already(not particular with RichTextBox) and can send an example. Unfortunately Microsoft example in the link below doesn't accessible. http://whidbey.msdn.microsoft.com/library/default.asp url=/library/en-us/dv_fxmclictl/html/e79a9d4e-64ec-41f5-93ec-f5492633cbb2.asp 10X in advance, Nir Oren I have successfully created a Calendar Control (after fixing Microsofts ...Show All
Visual C# Timer Event not firing in Windows Service in C#
Hi I am developing Windows service in C#, i used timer control to do some routine works every 10 seconds. It is working in normal windows form, but it not working in Window Service. Please help me how to solve timer event problem in C# Windows Service. Regds Tani. Are you using System.Windows.Forms.Timer or System.Timers.Timer You can't use the System.Windows.Forms.Timer class in a service since it requires a window to function. ...Show All
Visual Basic Error Created when opening beta 1 file in beta 2
How to solve this error i have save the file in beta 1 and when i upgrade to beta 2 I have this following error can some one please help me on this Error 1 Type 'System.Windows.Forms.WindowsFormsApplicationBase' is not defined. Error 2 'AuthenticationMode' is not a member of 'Forms'. Error 3 'ShutdownMode' is not a member of 'Forms'. Option Strict On Option Explicit On Namespace My Partial Class MyApplication Inherits System.Windows.Forms.WindowsFormsApplicationBase < Global .System.Diagnostics.DebuggerStepThrough()> Public Sub New () MyBase .New( Syst ...Show All
