Software Development Network Logo
  • Windows Forms
  • SharePoint Products
  • Smart Devicet
  • .NET Development
  • IE Development
  • Visual FoxPro
  • VS Team System
  • Visual Studio
  • SQL Server
  • Visual C#
  • Windows Vista
  • Visual C++
  • Game Technologies
  • Microsoft ISV
  • Visual Basic

Software Development Network >> adel james's Q&A profile

adel james

Member List

bombfrog
Kenny Grant
Bapa
KristianSv
AshishGupta
DellS
陛下
laboremus
machina
Gnagy84
RussP
Romantic_touch
Grant_csi
dan59
nightchaser
Wint
VinceExtense
NeilBerry
Mike Norman
JonesAtl
Only Title

adel james's Q&A profile

  • Visual Studio 2008 (Pre-release) Selector.IsSelected in RC1

    I have an ItemContainerStyle on a ListView witch has a trigger on Selector.IsSelected, but it seems to have no effect in RC1 Best regards, Thomas Andersen Thanks for your detailed example. But for several reasons this approach doesn't fit very well into our application design. So I would prefer if I don't have to change the entire ListViewItem template. It seems to be a bug as it use to work fine pre-RC1 just changing the "Background" property in the trigger Best regards, Thomas Andersen ...Show All

  • .NET Development Asynchronous Receive Method and Threads

    Hello All, I have Asynchronous method to read bytes from the network stream. I wrote below code 2 months ago, now when I come back, I wonder why I used "while(true)" for backgroundWorker. Are there any alternative method to use asynchronous read method with backgorundworker Or the method written below is OK receiveBackgroundWorker.DoWork += new DoWorkEventHandler(Receive); private void Receive(object sender, DoWorkEventArgs e) { while (true) { dataTransfer.Reset(); clientStream.BeginRead(receiveBuffer = new byte[socket.Available], 0, socket.Available, new AsyncCallback (AsyncReceiveDataCallback), clientStream); dataTransfer.WaitOne(); } } private void AsyncReceiveDataCallback ...Show All

  • SQL Server Simple Select

    Hi all, for some reason (stupidity maybe) I can't solve this problem... I have a table with this information: ID SerialNumber Result 1 123 Pass 2 125 Fail 3 234 Pass I just want a select that shows how many pass and fail... Like this: Pass | Fail 2 | 1 Thank you Try SELECT * FROM ( SELECT Result FROM Results ) r PIVOT ( COUNT ( Result ) FOR Result IN ( [Pass] , [Fail] )) AS PVT ...Show All

  • Visual C++ CaseSensitive Keyboard Hook

    Hi, i made a programm. it displays the entered keys in a console window. But all letters are in "caps lock"! How can i prevent that eg. if i enter: aBcDeFg it displays: ABCDEFG [code] __declspec(dllexport) LRESULT CALLBACK KeyEvent (int nCode,WPARAM wParam,LPARAM lParam) { if ((nCode == HC_ACTION) && ((wParam == WM_SYSKEYDOWN) || (wParam == WM_KEYDOWN))) { KBDLLHOOKSTRUCT hooked = *((KBDLLHOOKSTRUCT*)lParam); DWORD dwMsg = 1; dwMsg += hooked.scanCode << 16; dwMsg += hooked.flags << 24; char key[16]; GetKeyNameText(dwMsg,key,15); std::cout << key; } return CallNextHookEx(hKeyHook,nCode,wParam,lParam); } [/code] You'll have to dete ...Show All

  • Visual C# How To Copy To Clipboard Like MSPAINT

    Hi, I would like to be able to copy a bitmap to the clipboard using a method similar to that used by Paint. If you use a program like ClipCache Plus (a free version 2.9 is still available), it will keep copies of items that have been sent to the clipboard. If you use Paint, it will copy to the clipboard in such a way that ClipCache can see it. If you use the Visual Studio 2005 Clipboard.SetDataObject(ObjectName, true); It does copy to the clipboard. But it is not available to ClipCache. I have also tried Clipboard.SetData and so on. It doesn't work. Does anyone know how to do it. In Delphi I used var AFormat : Word; AData : THandle; APalette: HPalette; fBitmap.SaveToClipboardFormat(AFormat,AData,APalette); Clipboard.S ...Show All

  • Visual Studio 2008 (Pre-release) Tooltip on a GridViewColumn?

    I want to be able to apply a generic template to a gridviewcolumn, so that a tooltip appears when I mouse-over each cell. The way I'm doing it now is by making a datatemplate for EACH column, to be able to bind to the right property. Example: < DataTemplate x:Key = " PostalCodeStyle " > < TextBlock ToolTip = " {Binding Path=PostalCode} " VerticalAlignment = " Center " Margin = " 2 " Padding = " 2 " Text = " {Binding Path=PostalCode} " /> </ DataTemplate > < DataTemplate x:Key = " CityStyle " > < TextBlock ToolTip = " {Binding Path=City} " VerticalAlignment = " Center " Margin = " 2 " ...Show All

  • Visual Basic Dim a VB.net form?

        I have an app that has a main form, a module that I use to hold my functions and my global variables and two secondary forms that I am passing information to and from.   I gave my app and forms names that make sense to me, like “File Manager 2.0” and SweepWindow (shows files that are programmatically moved). The problem is that when I pass a variable from the main form to a list box on another form, I am using this huge referencing sentence:       File_Manager_2._0.SweepWindow.ListBoxSweepWindow.Items.Add(FolderFound)   I’m sure there is a way to Dim a new name for these forms so that I can drastically shorten the wiriting, plus make the code more readable, but I wasn ...Show All

  • Visual Studio Team System TFS (RTM) Setup Errors

    Hello All, I have tried unsuccessfully to install the Workgroup RTM of TFS over the last few weeks. I've seen a variety of errors and have rebuilt the W2K3 virtual server image a number of times. I have followed the installation guide (v60711) carefully with no luck. I have scanned the 2 log files and have found a few errors which I have seen posted in this forum before: System Error 0 while trying to start service "SPTimer". You might need to manually restart service. The Commandline '"C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\Bin\Stsadm.exe" ...' returned non-zero value: -2130246864 I would appreciate any ideas on this one. I can email the error logs if required. Than ...Show All

  • Windows Forms Automatic scrolling in Datagrid view

    Hi I'm developing application in windows forms . and I'm using a datagridview control in my form. I'm filling it with data. I'm running a thread in the application which will modify the content (ex Status) of the Grid. I want to scroll the datagrid automatically, depends upon updation. Thank u Thanks Gavin But I'm not adding at run time I'm modifying already filled rows. while modifying in other thread, it should automatically scrollled. Thanks in advance ...Show All

  • Visual Studio Express Editions How to create a service

    Sir, I have tried a lot my hands in creating a Windows service after reading a lot of articles. But couldn't succeeded. Kindly send me a code in VB.NET to create a service and how to incorporate my application in the service alongwith the installer. By default, the express edition does not have a service project template. To create such a thing, the easiest way is to upgrade to Visual Studio. I'm not certain that the Standard edition of Visual Studio has this ability but the Professional edition does. I strongly suggest you upgrade. ...Show All

  • Visual Studio 2008 (Pre-release) SQLMetal runtime error : Looking for GAC assembly System.Data.DLinq

    NOTE : I am running SQLMetal.exe from a different directory than the installed directory. I installed the May CTP for Linq, compiled samples, but still have a problem with SQLMetal. With the command line: sqlmetal /server:MY_SERVER\SQLSERVER /database:NorthwindCTP /namespace:nwind /code:nwind.cs /language:csharp I get the error: Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Data.DLinq, Version=1.0.2319.19044, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. File name: 'System.Data.DLinq, Version=1.0.2319.19044, Culture=neutral, PublicKeyToken=null' at SqlMetal.Extractor.GetClrType(SqlDbTyp ...Show All

  • Software Development for Windows Vista How to register COM component?

    Good day all! I need to register a COM component (IE bar) in Vista. I do this in the following way: regsvr32.exe mycom.dll Of course, I get error "0x80070005 ACCESS DENIED". After some investigation I add to manifest file next strings: <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> <security> <requestedPrivileges> <requestedExecutionLevel level="requireAdministrator" uiAccess="false"/> </requestedPrivileges> </security> </trustInfo> I am logged in like user with "Administrator" account type. When I try to register DLL I am always get access denied error. I go thru code, and found a trouble: ::RegSetValueEx return 5, when add ...Show All

  • Visual Studio 2008 (Pre-release) Change combobox items background color

    Hi I want to change background color of combobox item in my WPF application.I can change background color of combobox but I can't change it's items' background color. Here is my sample code. ************************************************************* < ComboBox Background = " Gray " Name = " cmbMain " Width = " 100 " Height = " 20 " > </ ComboBox > And I am adding items in combobox from coding(code behind) side. cmbMain.Items.Add( "first" ); cmbMain.Items.Add( "Second" ); cmbMain.Items.Add( "Third" ); ************************************************************************* The problem is when I Run the application ...Show All

  • Visual Studio 2008 (Pre-release) Wrapper interfaces and duplicate proxy types

    Hi, I have two contracts that use the same schema type: In MySchemas.dll: [DataContract] public class KnickKnack { private int _number; [DataMember] public int Number { get { return _number; } set { _number = value; } } } In MyContracts.dll: [ServiceContract] public interface IServiceA { [OperationContract] void Modify(KnickKnack k); } [ServiceContract] public interface IServiceB { [OperationContract] void Modify(KnickKnack k); } If I host the two contracts as services as then generate client proxies, I get duplicated types (search the forums for 'duplicate proxy types' to see similar posts). I realized that my two contracts are actually part of the same application; it doesn't make sense ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Managed Direct3D 10

    Since XNA only supports DirectX 9.0 Where is Managed Direct3D 10 I hope there will be Managed wrapper for Direct3D 10 thanks I think it would be a good idea for Microsoft to lay out a definitive road-map for the future of Managed DX, so that developers can have a sense of certainty that investments in development time along these lines are not a wasted effort. Hand-waving and deferrals to future SDK releases don't exactly inspire confidence.  Anyway, having ported much of my native C++ engine to MDX, I can say with confidence that MDX is definitely up to the challenge, as long as you do vector intensive graphics related stuff on the GPU (e.g., skinning), a ...Show All

©2008 Software Development Network