Michael Wright's Q&A profile
Visual Studio Express Editions WH_KEYBOARD_LL
hi i have VC6, VC Toolkit 2003, VC++ 2005 EE, and MPSDK 2003 SP1. when i try to use "SetWindowsHookEx(WH_KEYBOARD_LL,...." ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/winui/winui/windowsuserinterface/windowing/hooks/hookreference/hookfunctions/setwindowshookex.asp ) i get: error C2065: 'WH_KEYBOARD_LL' : undeclared identifier the same code works fine with Dev-C++ from msdn: " ...Show All
Windows Forms Advice Appreciated : Building new Control Similar to TabControl
Hi, I am developing a Control which is very similar to Microsoft TabControl, only it does not have tabs on the top. The control is called PanelControl and contains PanelPages. Looking at the TabControl and TabPage Controls using Reflector, I discovered the inheritance for TabControl and I have created my controls likewise. I am using VS2005 RC1 (Sept.)Whidbey, Please suggest any of the new designer feature in Whidbey.I plan to implement a Panel ...Show All
Windows Forms what cause the blank desktop after logon to windows 2000 pro?
Hi, very often that user in my school gets a blank screen after they logon to windows 2000 pro. does anyone know what cause this problem and how can we prevent or eliminate this problem in the future all the win2k pro have latest service pack and update. Thanks Hi, that can be lot of things. A virus/worm/etc., a problem with some program that loads at startup (could be a drivers' issue or any other ...Show All
Windows Forms How to remove controls at runtime?
I have serveral user controls to show alternatively in my main form.I want to create the control dynamically at runtime and remove it when another should be shown . But after I remove the control from the main form, the main form lost the& ...Show All
Visual C# Questions about Objects in C#
1. Do we need to pass objects by ref, if we want to have the changes made in a calling function 2. And the same question for the objects passed by Remoting 3. Do we really gain performance in calling Dispose method of DataSet while leaving from a function(the dataset is no longer required) If yes, then what does the Dispose do there Is it freeing the memory occupied by the objects If yes, then basic definition of GC itself gone righ ...Show All
Visual Studio How to Install VS2005 Beta 2 in Windows Vista Beta 1?
Is there a version of VS2k5 that will install onto Vista Beta 1 I get an error installing MSXML6.0 when trying the Beta 2 release. Thanks, Matthew A bug reported and workaround was filed here: http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx FeedbackId=2ed1acbc-0c30-4bd1-99de-3dff389fa885 ...Show All
Windows Forms .NET control to use Active Directory Object Selection Dialog
Hi All, I was wondering if there is any .NET windows forms control to show Active Directory Object Selection Dialog. I am refering to dialog which pops up when you try to grant a user permissions to a file. It brings up "Select Users , Groups" and then you can search groups or users in current directory or computer. Thanks, salim This is difficult but there is an article on how t ...Show All
Visual Basic Help: Convert HEX to Unsigned?
i have searched all over the help and tryed all the convert examples but they never convert hex values to the right number, it always leaves them as integer. this is what i want convert 9C to Unsigned -100 i tryed Convert.UInt16(9C) and it just says cannot convert and System.BitConverter if anyone knows a command to easily do this please tell ^_^ I don't know what version of VB you are runnin ...Show All
Windows Forms DataGridViewComboBox- OnIndexChanged change other values in the same row
Hi, I want to hook to the indexed changed event of the editing control to instantly change other data in the same row, e.g. to delete data or set new default values. The standard behavior is just not responsive enough as the user would have to end editing the cell by e.g. leaving the line to see the "side effects". My data source is a list class like this class Test { private string value1 = String.Empty; private string valu ...Show All
Visual Basic textbox selectall not working
Neither of the two code pieces are working for me... Private Sub TextBox1_GotFocus( ByVal sender As Object , ByVal e As System.EventArgs) Handles TextBox1.GotFocus TextBox1.SelectionStart = 0 TextBox1.SelectionLength = Len(TextBox1.Text) End Sub -= OR =- Private Sub TextBox1_GotFocus( ByVal sender As Object , ByVal e As System.EventArgs) Handles TextBox1.GotFocus TextBox1.SelectAll() ...Show All
Visual C++ Debugging with MSDEV2005
I have converted a c++ dll from MSDEV2003 to MSDEV2005 and than when i try to debug this dll throw many exceptions referring to some files of MFC 7 into a strange "F:\\..." directory that isn't present on my PC. What can i do to redirect debugging (& compilation/link) to Framework 2.0 and latest MFC8 Thanks MFC 7 Are you using a foreign library that uses MFC 7 too Load you DLL with Dep ...Show All
Visual Studio Team System Work Item Type Diff between Import and Export
It is interesting that when you use witimport to import a work item type and then export it using witexport that the files are different. This process fully qualifies field names and adds some fields as well. (<FIELD name="Authorized As" refname="System.AuthorizedAs" type="String" />) I can understand the purpose of adding the <HELPTEXT> sections, but why are additional fields being added Correct. This is a core field whic ...Show All
Visual Studio Team System Adding Reference to Assembly in GAC
Studing the Microsoft.Common.targets file i see that the following information on reference discovering: < PropertyGroup > < AssemblySearchPaths Condition = " '$(AssemblySearchPaths)' == '' " > {CandidateAssemblyFiles}; $(ReferencePath); {HintPathFromItem}; {TargetFrameworkDirectory}; {Registry:$(FrameworkRegistryBase),$(TargetFrameworkVersion),$(AssemblyFoldersSuffix)$(AssemblyFoldersExConditions)}; {AssemblyFolders}; $(Outpu ...Show All
SQL Server Mdx query
Hello guys, Assume I have a date dimention in a cube and I want to retrive data based on the StartDate and EndDate value. In short, I want to filter all records between StartDate value and EndDate value which is given by a user. Can any body give a general syntax or mdx query to achive this goal Sincerely, Amde Hey Michael, Thank you for sharing your idea, I know the syntax in reporting service ...Show All
Visual C# Adding controls to a windows from from XML
Hey howzit, i have a method below that loops through an XML document and adds textbox and checkbox controls to a panel based on the xml content. However the performance is not great all at...one can see all the controls are they are being displayed and it looks sloppy...is there not a better way of doing this public void DeSerialize(XmlDocument xmlDoc, int currentPage) { XmlNode rootNode = xmlDoc.DocumentElement; foreach (XmlNode pageNode in ro ...Show All
