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

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

dougnoel

Member List

Mostafa Hafez
Thiru_
Alexey Orlov
rajgz
isaacc
Boulderdude
AgusPac
Jolting
GlynP
Kirill Osenkov
clint440
David Bishop
Mandana
MattH2
Ashish Nayyar
gav135
Shiku
timesscar
Change2
KasperDk
Only Title

dougnoel's Q&A profile

  • Visual C# Scheduled Tasks in Windows

    Hi, I want to be able to disable / enable my windows scheduled tasks by code. How can i do it You can stop or start windows scheduled, starting or stopping windows service associate to it, the code to do it. The first add System.ServiceProcess to project references, the code are this: using System.ServiceProcess; int i; ServiceController [] servicios; ServiceController servicio; servicios =( ServiceController []) ServiceController .GetServices( "127.0.0.1" ); for (i = 0; i <= servicios.Length - 1; i++) { if (servicios .ServiceName.CompareTo( "Schedu ...Show All

  • Visual Basic reading text from a document and displaying it

    I have TextBox1 (to enter what you want to search), TextBox2 (to display the results), and Button1 (when you press it, it does the whole process thing). I was given this to go by: ================================================================== Theres a couple of steps in a possible approach here. One is to be able to read the contents of a file. If your using VB Express / 2005 this is possible using dim sContents as string = My.Computer.Filesystem.ReadAllText("c:\foo.txt") the next is to be able to find a match on your textbox entry you can use the instr meth ...Show All

  • Windows Forms windows xp update files

    does anyone know if windows xp stores the update install files anywhere in the pc  i have 4 pc that need to be updated and it seems pointless to download the same thing 4 times. sorry for the inconvenience. You're kinda in the wrong forum but since it's an easy answer.... Yes and no.  How's that for easy   :) The files are&n ...Show All

  • Visual Studio 2008 (Pre-release) How should we submit bug reports?

    For now I'll send my findings directly to Mr Bailey Thx NickNotYet I have loaded VISTA Beta 2 on to my systems and here are this items that I have noted after the first day: 1. Microsoft Keyboard with Fingerprint Reader: 1. Driver having Issues 2. Digital Persona software fails to load 2. INTEL 536EP Modem Driver Failed 3. NVLDDMKM.SYS Version87.98 causing performance issues. 4. TERMDD.SYS causing performance issues. 5. MOUCLASS.SYS causing performance issues. 6. Linksys WUSB54GS driver and software not available. The issue with the modem is a ...Show All

  • Windows Forms App won't close and cannot click on listbox

    I have two listboxes on my form.  One is bound to a dataset, the other is not.  I have buttons in between them (<< and >>) which allow you to select items in the left-hand list and then copy them to the right-hand list, then I want to print the items in the right-hand list.   However, as soon as I select an item&nbs ...Show All

  • Visual Basic Can't understand delegate function

    I'm reading Wrox's Professional VB 2005. I'm just at the beginning of delegates. It has us open a module1 and put in the following code: Public Delegate Function Compare(ByVal v1 As Object, ByVal v2 As Object) As Boolean Public Sub DoSort(ByVal theData() As Object, ByVal greaterThan As Compare) Dim outer As Integer Dim inner As Integer Dim temp As Object For outer = 0 To UBound(theData) - 1 For inner = outer + 1 To UBound(theData) If greaterThan.Invoke(theData(outer), theData(inner)) Then temp = theData(outer) theData(outer) = theData(inner) theData(inner) = temp End If ...Show All

  • Windows Forms Overriding TextBox.WndProc problems

    I've written a custom textbox which only allows numerical input.  I overrid the WndProc method so i could validate the clipboard contents if the user pasted data into the textbox as shown below: protected override void WndProc(ref Message m)  {     switch (m.Msg)     {         case 0x0302:             if&nbs ...Show All

  • Software Development for Windows Vista Lost collections in Visual Studio 2005[english] after Installation Windows Workflow Foundation[german]

    Does anybody know how to get back all "collection mains" i.e. starter kits and so on, after the installation of WWF(WF) A repair of Visual Studio 2005 did no effect. Hi Paul, thanks for reply. Collection main: if you make a new Project, you can select the kind of the project you want to develope. In the standard installation of Visual Studio 2005 you have there many possibilities to select from. After I've got installed Windows Workflow Foundation 2005[german] Visual Studio has "forgotten" his standard list of project kinds. Now I can nearly only select WF(WWF) projects to build. I ...Show All

  • SQL Server Framework 2.0 changes - TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.

    If you connect to a server and open a query in SQL Managment studio (2005) and looses connection and then regain the connection, when you try to run the query it gives me a "TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host."   This happens against both 2005 and 2000 servers.   If I re-run the query it works.   However, this happens in our VB.NET app as well for clients with Wireless connections.   So, something has changed in Framework 2.0 regarding this, does anyone know how to tell the client to not throw this error and just try connecting the server instead which will work ...Show All

  • Visual Studio Setting up overnight build

    We're going to move our overnight build system to a new server so I thought it might be a good time to evaluate msbuild. Currently, this is done with a combination of cmd scripts and makefiles. I wonder if msbuild is the right tool for such kind of task. Our overnight build consists of following steps: Check out latest code from SVN Clean previous build results Build C++ libraries in a particular order (list of solutions) Build C++ applications Build .Net stuff Run NUnit tests Run FXCop on all assemblies generated by step 5 Compose and send an email with summary on steps 3-7 Does it make any sense to use msbuild for that or should I stick ...Show All

  • Visual Studio 2008 (Pre-release) How does Client/Server comunication will work

    As we know that in WBAs application download in part and run in sandbox. So how can we specify that what type of data will not go to client and what type of data will go, means if a client access my application and transit between pages go forth and back so where in this transition server is involve and how it comunication to server.  When a user navigates to a WBA, all the application bits are downloaded** and cached.   Then the app is launched from the client.   Navigations between pages are within the app and don’t require server contact.   So, no server/client communic ...Show All

  • SQL Server Dynamic loading of a file

    I've been told by Kirk that it is possible to load a file whose metadata is unknown at design-time by using bulk insert along with a file (not a flat file) connection. He didn't elaborate though. Can anyone explain -Jamie Jamie, Bulk loading to several different tables with known metadata is simple. I don't know how one could load to a table with completely unknown metadata. The file connection works fine with the bulk insert task. If I remember this discussion, you were asking how to put a load into a foreach loop. If you had flat files with several different schema, you could name them accordingly and load into the table with the ap ...Show All

  • SQL Server Stored proc & transaction log size problems!!!!!

    For some reason, my stored procedure which is kicked off by VB.NET is growing the log file for the database in question by gigs, very fast. Why is it doing this The code: Sub Main() objConn.Open() Dim cmdSql As New SqlClient.SqlCommand("IT_sss_Collector_D otNet", objConn) cmdSql.CommandType = CommandType.StoredProcedure cmdSql.CommandTimeout = 1000 Dim reader As SqlDataReader = cmdSql.ExecuteReader() Dim ppa_rowcount As Integer ppa_rowcount = 0 If reader.HasRows() Then ' test to see if there is any data in the reader reader.Read() ppa_rowcount = Convert.ToInt16(reader("pcount")) End I ...Show All

  • SQL Server Is this a silly way to use SSIS?

    I have typically done any ETL style manipulations I needed to do to data stored in SQL Server in VB.NET. I would use the IMPORT EXPORT DTS wizard to import flat files, or mabe something from ACCESS every now and then. I am looking at a situation in my current contract where I will be pulling flat files from a mainframe and quasi relational stuff from a DB2 instance via an ODBC connection. I will be using this stuff to build a datawarehouse for a manufacturing client. My question is this. Is there really enough good stuff in SSIS for what I will be doing to justify my learning it or if I'm comfortable doing the manipulations in VB.NET ...Show All

  • Visual Studio C++ express edition and JIT debugging

    I installed Visual C++ 2005 express edition (+ the SDK) on a computer which already had the Visual Studio 2003 installed. Now if my program crashes the JIT debugger which is available is the 2003 version. It appears to have problems with the version8.0 dlls ( ) so I would like to invoke the express edition debugger here. Is this possible, or is it something only available with VS 2005 pro I noticed that C:\Program Files\Common Files\Microsoft Shared\VS7Debug contains some relatively new files (coloader80.dll etc) which makes me some what hopeful that I would be able to somehow solve these problems. Edit: While writing the text above I conti ...Show All

©2008 Software Development Network