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

Software Development Network >> Alan Adams's Q&A profile

Alan Adams

Member List

jack in box
a.stalmokas
cjonbike
Patrick Boyd
Richard114
Sathish C
SathikKhan
HHH MMM
paxa
samb
Anonymous34134
Baryon
kkting
Paul Mestemaker - MSFT
breed
PC Webman
Renze
rw72000
TheHexagon
NewUser06
Only Title

Alan Adams's Q&A profile

  • Windows Forms User Control And Events

    I've go a User Control that inherits from the TextBox class and I've added a ListBox; I needed to create a custom event exposed to the parent form that would fire when the ListBox changed visiblity.  The code below works but I know it's now quite right.  Any help appreciated. Control Code Snippet============================================== using System; using System.Collections; using System.ComponentModel; using System.Drawing; using System.Data; using System.Windows.Forms; public delegate void ListBoxEvent(); namespace TextBoxLookupLib {  /// <summary>  /// Custom Textbox Control  /// </summary>&nbs ...Show All

  • Visual Basic shutdown

    how do i shut down the system when the time is entered to shut down using vb codes This is my code. Only pass the command as argument for the local system or pass systemname or ip and domain credentials for a network system. Public Enum WindowsShutdownCommand    Logoff = 0    Logoff_Forced = 4    Shutdown = 1    Shutdown_Forced = 5    Reboot = 2    Reboot_Forced = 6    PowerOff = 8    PowerOff_Forced = 12 End Enum Private Shared Sub ShutdownWindows( ByVal Command As WindowsShutdownComma ...Show All

  • SQL Server Returns Nothing, But Executes Fine

    SELECT tblWatchInstance.WatchID,tblWatchBrands.Description,tblWatches.Serial_Number,tblWatches.OwnerFName,tblWatches.OwnerLName, tblClients.Name FROM tblWatchInstance INNER JOIN tblWatches ON tblWatchInstance.Watch_Key = tblWatches.WATCH_KEY INNER JOIN tblWatchColors ON tblWatches.COLOR_KEY = tblWatchColors.COLOR_KEY INNER JOIN tblWatchBrands ON tblWatches.BRAND_KEY = tblWatchBrands.BRAND_KEY INNER JOIN tblWatchTypes ON tblWatches.WATCHTYPE_KEY = tblWatchTypes.WatchType_KEY  INNER JOIN tblClients ON tblWatchInstance.Instance_Key = tblClients.CLIENT_KEY WHERE tblWatchInstance.RepairNumber LIKE '%" + txtRepairNumber.Text + "%' AND tblWatc ...Show All

  • Visual Studio Team System Can I extend Source Control to store custom metadata for VersionedItems?

    The project I'm working on will include Team Foundation Source Control in the deployed solution to provide a repository for Office documents. Each document within the repository will have certain summary data associated with it - the sort of data which might normally be stored as Custom Document Properties within the Office document itself (Department, Disposition, Purpose, Status, etc). I'd like to store this summary data seperately from the document (i.e. not in Document Properties), so I can allow users to browse documents using the summary data without me having to actually get a local copy of each, open it via the relevant Office appli ...Show All

  • Windows Forms Insert and Update Command Generation on Calculated fields

    Hi All, I read through the Beta 2 known issues and did not see this, so I am assuming that I am doing something wrong. Using a SQLExpress table with calculated fields (lets assume 2 ints and a calc that is their sum), and then let the IDE generate a DataSet automatically, the code generator recognizes the calculated field as it creates an Update&n ...Show All

  • Visual Studio 2008 (Pre-release) Blinq available for download on ASP.NET site

    Blinq CTP is available for download at http://www.asp.net . ScottGu also demo'ed it at TechEd 2006 in Boston earlier today. BTW, it uses LINQ to SQL (aka DLinq) to generate classes and retrieve/save objects :-) From http://www.asp.net/sandbox/app_blinq.aspx tabid=62 Overview Blinq is a tool for generating ASP.NET websites for displaying, creating, and manipulating data based on database schema. Just point Blinq at a SQL database and it will create a website with pages that display sorted and paged data, allow you to update or delete records, create new records, and follow relationships between tables in your database. You don't need ...Show All

  • .NET Development calling a COM object from c#

    I am calling a COM object from c# using this code: string sProgID = "IData.Update"; // get the type using just the ProgID Type oType = Type.GetTypeFromProgID (sProgID); if (oType != null) { try { Object MyApp; MyApp = Activator.CreateInstance(oType); object[] args = new Object[7]; args[0] = args[1] = args[2] = args[3] = args[4] = args[5] = args[6 ] = true; oType.InvokeMember("uf_run_updates", BindingFlags.InvokeMethod, null, MyApp, args); MyApp = null; oType = null; } catch (System.Exception ex) { MessageBox.Show(ex.Message); } } My problem is this: I am calling a com object that o ...Show All

  • SQL Server How to retrieve data from query and link the data to a data number?

    i'm doing a project on SQL Server 2005, i'm stack in searching the data and can't link the data in the data number.. can someone help mi with the programming code as i can search for the words in the table but i can't link with the data number.. first thing is how to search the keywords from the tables Second thing after u search the result ,how to link the result to a number related to the result ...Show All

  • Visual C# Generic.Dictionary ContainsValue doesnt work

    Problem with Generic.Dictionary and Generic.SortedDictionary. ContainsValue function of both of these classes work with usuall datatypes. But when you make a collection of the objects of a class that you have defined yourself it doesnt work. I know that it requires you to implement IComparable which i have done. And this implementation works fine for the other function - Sort- that demands it. Please help. Problem with Generic.Dictionary and Generic.SortedDictionary. ContainsValue function of both of these classes work with usuall datatypes. But when you make a collection of the objects of a class that y ...Show All

  • Windows Forms windows application without userinterface

    Hi, How can I hide the webform of the windows application I dont want any user interface at all to appear in the application.  I tried deleting the only windows form, but then I could'nt understand where to write the code. My code calls a webservice , gets the data returned by the servie, then calls a DLL and pass the data to the DLL.  I&nbs ...Show All

  • SQL Server Copy tables on remote servers

    Hi all, I'm trying to create a script / stored proc that copies one table from a remote server to another table on a different remote server. The approach I wanted to take was... create a stored proc that can be called remotely the stored proc tests to see if the table exists, if it does it is dropped, if not it is created new table structure and data copied from remote server A to remote server B ...I feel that this should be quite easy, but I must admit I'm struggling. Any help would be really appreciated. Cheers, Jon Thanks for your reply William. I have tried SELECT INTO... se ...Show All

  • Visual C++ fatal error C1083: Cannot open include file 'math'

    I am running VS.net 2003, I need in include the old math.h header file. Now I seached my HD and in fact found the math.h file in the"  F:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include " folder (note I instaled VS.net2003 on a HD NOT my system HD and I also have 'dualboot' with win98 & win2k ). Here is what I have started with: #include <iostream> #include <math> using namespace std; void main() { float userNum=0.0; int workNum=0;     cout << "Enter total amount: ";     cin >> userNum; } And this is the error message from th ...Show All

  • Windows Forms VERY N00b question -Help!

    yeah i know this is probably the most newbish question you will ever hear but ive been racking my brain for days and finally found this forum so you gotta help me. I am in college and my programming in BASIC class gave me a full version of Visual Basic .NET 2003 (even though under [start>all programs] it says its Visual Studio .NET 2003) i ...Show All

  • Windows Forms ListView-Which event is called next

    i m stuck in a problem and want to know which event is called immediately next to AfterLabelEdit( object sender, LabelEditEventArgs e) I want to write listview.LabelEdit=false when the AfterLabelEdit has finished processing. This question is better suited for the Windows Forms forum.  Please reserve the C# Language forum for questions specifically related to the C# language.  I'm moving the thread to the Windows Forms forum where someone should be able to help you. Thanks, Michael Taylor - 5/30/06 ...Show All

  • Visual Studio Team System Project creation failing with error "The identity [Project Name]\Project Administrators is not a recognized identity. "

    Error The identity [Test]\Project Administrators is not a recognized identity. Explanation The identity [Test]\Project Administrators is not a recognized identity. User Action Warning TF30144: The New Team Project Wizard attempted to roll back all of the steps taken to this point but was unsuccessful. Contact your Team Foundation Server administrator for further instructions. Here is what Team Project Creation log file says.... 10/20/2005 1:56:17 PM | Module: ELeadServiceMediator | Team Foundation Server proxy retrieved | Completion time: 0 seconds 10/20/2005 1:56:17 PM | Module: Wizard | Retrieved IAuthorizationSer ...Show All

©2008 Software Development Network