Jason Weber - Microsoft's Q&A profile
Visual C++ How can I get a notification about a "display turn off" event (WinXP)?
Hi, I would like to write a program that gets a notification for when the laptop display is turned off, either manually by the user or automatically by the system power management. Is this posible, and how Thanks, Osnat What about WM_SYSCOMMAND with SC_MONITORPOWER I don't know no other message. Try to ask in the DDK or other MSDN forum if they know somethingin this direction, I think this is a little bit OT here. http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.win32.programmer.ui&lang=en&cr=US http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.development.device.dr ...Show All
.NET Development EPC translations from UCC data.
i am looking for a .net framework solution that can do EPC translations from UCC.EAN encodings like SSCC, GTIN and GRAI- i also might need to to DoD encodings. does anybody know of any (non-java) solutions out there I think what you are looking for can be found at a company named Apostrophe Systems. They have a really affordable EPC Translator. It will take your UCC/EAN Number and convert them o EPC. We used the software for our Wal-Mart compliance and had great success. you can find it at http://www.apostrophesystems.com ...Show All
Windows Forms How to identify the particular item in a ListBox right-clicked
I want to be able to identify the item in a ListBox a User right-clicks (in order to enable the user to change the name of the item listed). I added a ContextMenu control to the Windows Form, associated the ListBox with it, and have a (stil empty) event handler activated when the User right-clicks in the ListBox, but the problem I have is identifying the particular item righ-clicked. How is this done Thanks in advance. You need to listen\override the MouseDown event of the listbox: private void listBox1_MouseDown( object sender, MouseEventArgs e) { // O ...Show All
Visual J# J# Books & Questions
I'm a new developer and am planning to write an application for church office administration. It would keep track of facility usage, payroll, members, attendees, donations and general accounting. I've looked into a couple different languages and have narrowed it down to J# or Omnis Studio (Omnis.net), which appears to be underdeveloped. However, I'm having trouble finding resources (in print or electronic form) for J# and learning it looks fairly tough. Should I buy a book on Java to learn J# Can I build the type of software that I'm trying to in VJ# 2005 Express B2 Thanks in advance for the timely responses. ...Show All
Smart Device Development Can somebody help me please ? !
I am trying tu run Tom Tom navigator ( navigation software )from the emulator but the emulator doesn't detect my gps device wich is connected to my pc via usb but through a bridge on com 1 (or whatever com i want it to be) In Device Emulator, you can bind Serial Ports on Device Emulator with the COM ports on the PC. May be you want to try to bind to one of the Serial Port on Device Emulator to COM port on PC and then try. (Use Device Emulator->File->Config->Peripherals for binding it). Hope this helps. -Thanks, Mohit ...Show All
Visual Basic Generating WinForms Setup Project to run in Windows 2000
Hi everyone. I've developed an application using VB.Net 2003. I'm using the Oracle Framework which also needs as a minimum the Oracle Client 8i or above. I do have in my pc all this applications. I'm trying to generate a setup project in order to install the application in a Windows 2000 computer. The Framework (1.1 version) is already installed, the same as MDAC, the Oracle Framework and oracle client 9i, all this in W2K computer. I'm generating the setup, I include the Primary Output files to load all the dependencies I need. When I start to build the project, I get the next message: "Error 1706. No valid source could be found f ...Show All
Windows Forms Shortcut keys not working Winforms
I am working on a windows application where a single panel holds multiple user controls. Each user control is a container with different controls in it. At a single point of time, only one of the container (user control) is visible, others remain invisible but are not removed from the panel. Short cut keys are not fired in all instances in this ...Show All
SQL Server Works fine inside BI Dev. Studio, but fails when scheduling it in SQL server 2005.
Hi! We are currently developing a project in SQLIS using the BI dev. studio. The package executes with no problems in the development environment, but when I try to deploy it and execute it using the SQL Server Agent, the package fails. "Work flow" ----------- 01. Build a package deployment utility (Rebuild all). 02. Runs the deplotment utility. 03. Checks that the latest package has been installed. 04. Creates a new job in SQL Server, using the SQL Server Agent. 05. Adds a new step to the job. 06. Sets that it is a DTS package that should be run ("file-based") 07. Sets the location of the package. 08. Saves the job. 09. Starts t ...Show All
Visual Basic shared member and inheritance : how to ?
Hi I have 3 classes : Base, Child1, Child2 Class MustInherit Base Shared Stuff As ... Sub DoStuff for each x in stuff ... next End Sub End Class Class Child1 Inherits Base End Class Class Child2 Inherits Base End Class For now the Child1 and Child2 instances share the same "stuff" parameter. But i want only the C ...Show All
Visual C# Where is best place to declare frequently used constants.
In C++ we often declared frequently used constants in a header file, and then #included that file to use the constants. How are such constants usually managed in C# For the small C# app I'm currently working on, I am considering declaring these constants in a struct within the app's namespace, but thought I would check here first. Any suggestions Thanks, Mike The most common way to do it in C# is define a static class called Consts or something. A static class can only have static members. ...Show All
Visual Basic HTML Editor in Visual Basic - HELP
Hello everyone and anyone who is reading this. I would like to know how to build an HTML editor in Visual Basic. I really dont know where to start. If anyone could tell me how, or tell me what I need to know, any help would be very appreciated and will not go unrewarded. Thank you. wf.service@sbcglobal.net How detailed of an editor do you need Do you want something that just allows users to type in HTML and save it to a file (e.g. a text editor) This could be as simple as creating a single form with a rich edit control on it and save button. There are also many free HTML editors with source code online. For ex ...Show All
Visual Studio Tools for Office YES ITS A BUG! -- Bug Caching Non-DataSet objects in ServerDocument???
Is there a bug with caching objects that are not DataSets in Office 2k3 docs Although the examples state that anything xml-serializable can be cached using the "Cached()" attribute, I have had no luck trying to cache a simple string in a Word doc. My code in ThisDocument.cs is something like: public partial class ThisDocument { string id = string .Empty; [Microsoft.VisualStudio.Tools.Applications.Runtime.Cached()] public string ID { get { return id; } set { id = value; } ...Show All
SQL Server Digits converted to null
Hi, Im loading data from excel source into a table with all the columns as varchar, I found out that rows from excel with digit value are transformed to Null values into the destination table. One workaround was to add single quote at the beginning of the digits from the excel file. Is there a way in the SSIS to do the transformation instead ofmanually updating the excel file any help...tnx.. This type of problem was also applicable to DTS so this article should probably still apply Excel Inserts Null Values (http://www.sqldts.com/default.aspx 254) Allan "DouglasL@discussions.mi ...Show All
Software Development for Windows Vista Lies?
On http://msdn.microsoft.com/windowsvista/downloads/getthebeta/default.aspx Microsoft says: Download the Latest Windows Vista If you are not already a member of the Windows Vista beta program, there are still two ways to obtain the latest public CTP or beta version of Windows Vista. MSDN Subscriptions - If you have an MSDN Subscription (Operating System level or higher), you can download the latest version of Windows Vista. (Read information on purchasing an MSDN Subscription) Windows Vista Beta Program - If you wish to become a beta member, you can do so by registering for the world-wide Windows Vista Beta ...Show All
Visual C# get the next value of identity
Hi how can i now in sql.. what will it be the next value of identity try: SELECT MAX(ID_COLUMN) FROM TABLE_NAME This gives the current max, so add 1 for the next value. ...Show All
