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

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

ku19832001

Member List

howyue
Leo Mathew
Cathie 64
JasonG271009
Zia Khan
Ben Vanik
Alessandro Ferreira
Dave Robinson
Apathy
Dietz
Mandragon
perica
LasseDK
YewMing
Tovdb
Dietz
PersonalBushido
Patrick.I
Jack Hoxley
Jabber
Only Title

ku19832001's Q&A profile

  • Visual C++ CListCtrl - ReportView - Selecting a row

    I have a CListCtrl and I want a particular row selected, this this example row 4. int row = 3; SetItemState(row, LVIS_SELECTED, LVIS_SELECTED); This does select the row and treats it as selected, BUT it does not look selected (it is not highlighted in the view). How do I highlight a particular row so that it looks selected Viorel - Thank you very much, it would have taken me forever to figure that out on my own. I was just not connecting those two pieces. I am satisfied with those results. Just out of curiousity if you know, a regular selected line appears with a black background and white text, where this shows a grey background with black text. Do you know why there is a difference ...Show All

  • SQL Server Moving Database Diagram 2005

    Hi everyone,in sql server 2005, can anyone please tell me how to move a database diagram between 2 databases on the same server . Both database have the same data structure. I found this article on MS http://support.microsoft.com/default.aspx scid=kb;en-us;320125 ... which works for SQL 2000 but in SQL 2005 the SQL line 'select * from dtproperties' is not recognised. Thanks for any help I'm still confused. As far as I can tell dtproperties table no longer exists in SQL 2005. http://www.codeproject.com/dotnet/ScriptDiagram2005.asp looks interesting. It is a tool to import and export SQL 2005 database diagrams. I have not used it yet. But the article does say: One of the first upgrading i ...Show All

  • Smart Device Development Device Emulator Crashes after getting connected to Active Sync 4.5 Beta

    Hi, Following is the description of the problem. 1. We've installed Device Emulator from http://www.microsoft.com/downloads/details.aspx FamilyID=c62d54a5-183a-4a1e-a7e2-cc500ed1f19a&DisplayLang=en location. 2. We are using ActiveSync 4.5 for connecting this device emulator. 3. The moment we connect it, teh device Emulator crashes. 4. In other scenario, the Device Emulator works fine but after some time it crashes. Can anyone help why this may be happening Thanks Mukhtar Can you send me some specifics about the crash A register dump plus callstack would be great. If you're not sure how to do this, please let me know. Also, to get unblocked, you might try the V2 Communit ...Show All

  • Visual Studio Team System TF.EXE difference command and versionspec

    I am trying to determine the difference between my workspace and latest and am using the following command from inside the workspace folder >tf difference /version:W~T /format:unified I get the response TF10100: The option version is not supported. That does not seem right. Or am I doing something incorrect -mark I don't know of a really good answer here so let me try and break down what some options are: 1) the unusably slow diff recursive diff method (which includes all files, not just changed ones) 2) performing a: "tf get /preview /r" - this will identify those changed items. You could write a script to iterate over those and print out the diffs if you still want them. 3 ...Show All

  • Internet Explorer Development How to control a explorer bar in extension?

    I wrote a IE extension include a toolbar and a explorer bar, how to control the explorer bar from toolbar show or hide it, set URL, etc ... Hi Search msdn for showbrowserbar method (IWebBrowser) If you want it to be displayed when the browser starts, regardless of the user preference, use this method in a satelite BHO. If you want your toolbar to be dispalyed after a web installation, take them to a page on your web server where you can call the showbrowserbar with javascript. (the client will need to have enabled scripting of the web browser in their security settings). A more universal approach would be to just give them instructions on using the toolbar context menu to select the toolbars they want to display. ...Show All

  • Windows Forms create an exe application in vb.net2005

    I want to create a tredictional Program file.exe that installs under programs. like we used to do in vb6 I have a module app I want to call from scheduled tasks to run at given times I have only figured out how to do the one click deployment. well firstly, in order to run your .NET developed application, the computer that will be running the application requires the .NET Framework (the correct version) otherwise the app will not run, this is why ClickOnce and the full setup installer is recommended for distributing and installing apps as it will do this for you. Next up, you simply create the task in Windows and point to the exe file. The exe file, if not using the ClickOnce/setup and deplo ...Show All

  • Visual Studio Express Editions MFC Dialog & CButton

    Hello, i am getting an Assertion error, in my application, trying to do the following thing. I am programming a properties dialog for multiple files in a custom windows file explorer. The dialog allso contains the readonly chechbox (Tristate properite of checkbox is set to true). I created a CONTROL member variable (CButton). Before running the dialog with DoModal() i would like to set the Check on this button into one of the three states. Unfortunately i get an assertion error when calling m_chxReadOnly.SetCheck(BST_INTERMEDIATE); How could i set the value of checxbox before calling doModal Thank you in advance. You should attatch the control to a data member variable , or save your choice in a data mem ...Show All

  • SQL Server Limit table size

    Is there a way to limit a tables size in a database Davids Learning you can define a stored procedure, and perform deletetion if there are more rows then you like to be stored, or, a trigger FOR INSERT.. both methods as SET NOCOUNT ON; USE tempdb; GO CREATE TABLE dbo.TestLog ( Id int NOT NULL IDENTITY PRIMARY KEY, Data varchar(10) NOT NULL ); GO CREATE PROCEDURE dbo.Add2Log ( @Data varchar(10) ) AS BEGIN INSERT INTO dbo.TestLog VALUES (@Data); DECLARE @r int; SELECT @r = COUNT(*) FROM dbo.TestLog; IF @r > 5 BEGIN PRINT 'Deleting older data'; DELETE FROM dbo.TestLog WHERE Id NOT IN (SELECT TOP 5 Id FROM dbo.TestLog ORDER BY Id DESC); END; END; GO PRINT 'controlli ...Show All

  • Visual Basic Threading and Events

    Hi folks, Just want to double check my understanding is correct... Got a windows service that fires of a series of scheduled tasks. My ScheduledTask base class has an event called TaskComplete which also passes back the result of the task (ie success/fail) The idea was so that we can start the task and then just listen for the TaskComplete event to be fired, however... If the windowsservice launches the ScheduledTasks Start method on a seperate thread, If my understanding is correct, the TaskComplete event will not be picked up by the windowsservice that called it (because its on a seperate thread.) Now I know that for the senario above, I could just use the provided background worker and its provided methods but I need to kno ...Show All

  • Visual C# exportin to excel from datagrid in vs2003

    Hello,everyone,i think my problem is a beginner,maybe many programmers have faced this: i have a datagrid ,it shows the data from sql server,and i want to export the all data to an excel file,and open a savefiledialog to ask you where to save to: now i have put a savefiledialog and have set the filter and the default path,how can i achieve this Mamush wrote: SaveFileDialog saveFileDialog = new SaveFileDialog (); saveFileDialog.Filter = "Excel Files (*.xls)|*.xls| All Files (*.*)|*.*" ; if (saveFileDialog.ShowDialog( this ) == DialogResult .OK) { string FileName = saveFileDialog.FileName; if (FileName.Trim() != "" ) { CurrentD ...Show All

  • SQL Server Create database permision denied in database ' master' (MS SQL SERVER, ERROR 262

    Cn not do anything with my sql server, everything i trt to do i get this message, user does not have permision, etc, , I am running windows Vista Business, SQL SERVER 2005 so what going on here Have a look at this article: http://msdn2.microsoft.com/en-us/library/bb326612.aspx Thanks Laurentiu ...Show All

  • Smart Device Development Is it possible to host a managed control in the Mobile Internet Explorer or Webcontrols?

    I would like to do the same as described in the posting below: http://www.codeproject.com/dotnet/CSharpApplet.asp but use the webpage/control combination on a Windows Mobile 5 device. Is this possible It is not a problem implementing it for the full .NET framework, but I cannot find a decent page that describes the process for mobile devices (and the Compact Framework). Thanks in advance, Peter Vrenken Hi Peter No, a pure managed solution is currently not possible. This would require CLR hosting and other functionality which the .NET CF does not support at the moment. You might be able to implement this using some native (C++) code. A sample of such a project is available here: http://msd ...Show All

  • SQL Server cannot convert between unicode and non-unicode

    I keep getting the error message below when attempting to import a text file (flat file) to an SQL Server Destination using SSIS. This database has recently been migrated from SQL Server 2000 (where I used a DTS Package that worked fine). I plan on doing further manipulation to the file after importing but have so far tried to keep one step at a time. I have tried using a smaller files and different tables but still get a similar response. I believe that the encoding of the text file is ANSI. If it is relevant the database collation is Latin1_General_CI_AS (the same as it was when 2000). Any help anyone can provide will be greatly appreciated!!! TITLE: Package Validation Error ------------------------------ Package Validation Error ...Show All

  • SQL Server Encryption problem

    Hi All, Currently for a project for the company I work for, we are looking to migrate from SQL Server 2000 to 2005. As part of the investigation I am looking at the some of the new features in 2005. Looking at the encryption facilities which we are looking to use I have come across a problem (or perceived problem) I have the following test table (where in production we will replace CardNo with the CustomerID) //----------------------------------------------------------------------------- USE [Encryption2] GO /****** Object: Table [dbo].[Cards] Script Date: 11/13/2006 11:42:44 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[Cards]( [CardNo] [nvarchar](50) COLLATE Latin1_General_CI_AI NU ...Show All

  • Visual Studio Debugger Does Not Run

    I am running Visual Studio 2005. With some projects, when in the Designer mode, I select "Start Debugging". The status bar indicates, Ready, then "Build Started", and then back to designer mode. I can't get it to be in the debug mode (or to get the program to run). There are no compile errors. I can run and debug other programs fine. I can also run and debug this problem program fine on other machines with Visual Studio 2005 and express versions. What is going on with my version of VS In case this is related, on other programs I am writing, when in debug mode, when I am single stepping through the code, if I pause stepping for more than a few moments (less than a minute), the debugging process ...Show All

©2008 Software Development Network