Software Development Network Logo
  • Visual J#
  • Visual C#
  • Visual FoxPro
  • Windows Live
  • VS Team System
  • Architecture
  • Visual Basic
  • Microsoft ISV
  • Visual Studio
  • SQL Server
  • .NET Development
  • Windows Vista
  • Smart Device
  • Windows Forms
  • Visual C++

Software Development Network >> gdwinslow's Q&A profile

gdwinslow

Member List

MS440
Chris Berg
vb_jonas
LogicalGeekBoy
umuhk
DorD
purpleendurer
John3144123
krog
Joe2007
MAdWizard
master_rigel2
masri
Mike K. Clark
DevDells
Tim Wright
BABSBINI
MoG_WhiteStone
HSS Guido
EDstyler
Only Title

gdwinslow's Q&A profile

  • Visual Basic How to use a Process to run CMD and a DOS utility to send Commands

    Hello, I need some help. I want to write a program that will do the following: 1. Start a process that will run CMD.exe 2. Once in CMD window run the DOS utility (i.e., "C:\utility.exe Command) where Command is the command to send to a device. 3. There are about 5 or 6 commands that I need to send to configure a device using this utility. This utility exits with the "quit" command and returns to CMD window. Can this be done using one process or do I need to use two process and how do I go about this TIA for your help. Hi, you could try writing a .bat file and st ...Show All

  • Windows Forms Datagrid INSERT problem & table with Autonumber

    Hello, I have a datagrid that displays data from the Access table with primary key set as Autonumber. Update and delete functionalities work fine, but when i'm trying to add a new record and than save changes - it fails. Here is the code: ' *** bind datagrid m_con = New OleDbConnection() m_con.ConnectionString = CONN_STRING m_SQL = "SELECT * FROM Users ORDER BY  ...Show All

  • Windows Forms Best practice? Use panels or other method?

    Hi, I'm designing a Windows form that is divided vertically by a vertical splitter. On the left hand side is a TreeView. On the right hand side I want to (ideally) display one of two forms and have the form completely fills the remaining area.  The idea is that if a TreeNode is clicked then the right hand side of the screen displays (read-onl ...Show All

  • SQL Server Passing parameter using .SQL

    Hi all I need to pass parameters when I call a .SQL file. Is there a way to do this in SQL Server thanks!!!! How do you call the .SQL file Do you use a command line utility, like bcp I need more details to figure out what you want to do. ...Show All

  • Visual Basic What is the best means to FTP files?

    Hello, I am wondering what the best means would be for me to FTP a file using VB. Don't suppose there is a quick easy command that I am missing. Thanks, Aludaan I hope I have some better news for you this time. I don't know whever you are using VS or an Express release but if you are using VS Beta 2 and I hope you are because it's beautful.... There is an FTP example in basic very close to you. If you look in <Your Disk>:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\LateBreaking\Networking There are two FTP examples in there. There is also an example at: ms-help://MS.VSCC.v80/MS.MSDNQTR.v80.en/MS ...Show All

  • .NET Development Switch from .NET Remoting 1.1 to 2.0 problem

    Hello, Recently i switched to .NET Remoting 2.0 (before used 1.1) and ran into the problem with something related to lease expiration. With CLR 1.1 all works fine. I override InitializeLifetimeService() method to have unexpired lease time as it is below in snippet code: public override object InitializeLifetimeService() { return null; } But although it exeptions like: Unable to connect to the remote server No connection could be made because the target machine actively refused it ocurr after some interval of time. I didn't change my code so perhaps there is some new tune for 2.0 that should be made to get all this w ...Show All

  • SQL Server Add Temp Parameters to a function

    I am writing a set of functions and then a stored procedure to allow me to view some data in Reporting Services. I have written the first part of the function as shown ; set ANSI_NULLS ON set QUOTED_IDENTIFIER ON GO ALTER FUNCTION [dbo] . [fnWTRTerrierData] ( @vch_site_ref nvarchar ( 3 ), @dt_src_date datetime ) RETURNS @WeeklyTerrierRSPI TABLE ( Areacode varchar ( 2 ), siteref nvarchar ( 3 ), estatename nvarchar ( 100 ), Securitised nvarchar ( 255 ), unitref nvarchar ( 15 ), unittype nvarchar ( 30 ), unittype_count int , tenantname nvarchar ( 100 ), tenantstatus ...Show All

  • Windows Forms UserControl Terminate, Close, Exit, etc.

    Does anyone know of a way to determine when a UserControl is being closed by the user in C# There used to be a Terminate event in VB6 that you could capture. I can't find anything like that for UserControl. UserControls exist on a Form. There is no way to close UserControls. You close the containing Form. Or is that what you're asking How a UserControl can detect when its parent form is being closed If so, the UserControl can just subscribe to its parent's Form.FormClosing event like this: namespace FormCloseCapture { public partial class UserControl1 : UserControl { public UserControl1() { InitializeComponent(); ...Show All

  • Windows Forms Treeview Drag-n-Drop

    I've got a treeview control that accepts a filedrop from Windows Explorer. The drag and drop events work fine except that when I drag the file over the treeview it does not highlight the nodes as I mode over them. Therefore the only way to add a file via drag and drop is to select the node first then goto explorer and drag the file over the treeview control. I've tried enabling HotTracking on the treeview in the dragenter event, but it makes no difference. Hottracking is the auto-selection of a node when the cursor hangs over it. However for this to work the treeview has to have access to the mouse. With ...Show All

  • .NET Development GUI thread, memory leak and Garbage collection

    Hi all, I seem to be chewing up memory at a nasty rate when my app runs. It has a polling loop and not surprisingly this is the part that keeps doing it. I think I've located the line that is my main offender and its when I marshal to get back onto the GUI thread so I can update my controls. private void KPI_ScreenUpdate( KPI KPIType) { if ( this .InvokeRequired) this .Invoke( new KPI_ScreenUpdateDelegate (KPI_ScreenUpdate), new object [] { KPIType }); else { DPL_Units_Through.Value = myKPI_Shift.Units_Through; DPL_Shift_Time.Value = tmpElapsed.ToString(); // blah blah ...Show All

  • Visual C++ _tcscpy_s corrupts the heap

    I have the code below. If I compile it as is it works fine. If I change to using _tcscpy_s the heap is corrupted when I copy the string. Can anyone spot an obvious error here Thanks Mark void CRokuPage::AddDeviceToObject(HKEY hKey, LPCTSTR lpszClsid) { //Add the device into the new clsid devices key if (_tcslen(lpszClsid)>0) { HKEY hKeyDevice; if (ERROR_SUCCESS == RegCreateKeyEx(hKey, m_szDeviceUDN.Mid(5), 0,NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS,NULL, &hKeyDevice, NULL)) { DWORD dwLen = 0; DWORD dwType; LPTSTR lpszBuffer; LPTSTR lpszOffset; size_t nChars; if (ERROR_SUCCESS == Reg ...Show All

  • Visual Basic Efficient Threading

    Guys, Creating an app that's essentially a Telnet server. At the moment, I've got two threads: 1) Listens for connections and accepts them 2) Checks to see if any clients have sent data that is waiting to be read. Is that enough for a basic Telnet server, considering that I may have up to 2000 connections online at once Or should I have a thread for each client Cheers, everybody! Will WIll everyone here is not a guy. There is an advanced technique called connection pooling You don't keep 2000 connections you create just enough connections to handle what is actually transpiring at the moment. ...Show All

  • SQL Server Unable to connect to Analysis Services as a client

    Hi, I got SQL SERVER 2005 SP1 installed on a server and is running fine. I've installed BI studio on a client computer and I can access the database engine. On the client computer, while deloying my cube I get the following error : the project could not be deployed on the server "server_name\instance_name" due to connectivity problems. Verify that the server is running I've checked the project properties and in the deployment section I have the right server : "server_name\instance_name" and the right database : "database_name". I can access the server since i've created the datasource using the sqlclient provi ...Show All

  • Visual C# Why can't I accept a socket?

    I'm trying to set up a listener. I've confirmed that the port we are using is not blocked, the IP address is correct, I am sending data to the server, the server is replying to my message requests (verified via ethereal). My problem is that in attempting to grad that data from the server, I cannot accept the socket. Here is my code for my listener class: using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading; using System.Windows.Forms; name ...Show All

  • Visual Studio Express Editions hooking Word.Quit event to handler not working

    I'm trying to exercise the code from http://msdn.microsoft.com/office/default.aspx pull=/library/en-us/odc_of2003_bk/html/officeinteroperabilitych2_part2.asp It's a simple Form with a StartWord and QuitWord button.  Everything works fine with the buttons.  Word 2003 opens and closes correctly.  But when I try to close Word via File/Exit, it doesn't call out to the QuitHandler method.  This is the case when testing under VC# 2005 Express Edition Beta 2.  Someone else tested the same code under Visual Studio .NET 2003 and the handler was called correctly. Can anyone assist //Code using System; using System.Drawing; u ...Show All

©2008 Software Development Network