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

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

Thomaschr

Member List

Stephen J.Vanterpool
GMS0012
Paul60
ChandraP
Daniel Coleman
zoujing
jwadew
Jarod.Net
MehrdadDotNetOK
Selectis
Ruprect8696
aliasx
redneon
DazlerD
scompa
nhaas
aureole
Sean McKenna
thedodo
newyuppie
Only Title

Thomaschr's Q&A profile

  • Windows Forms DataGridView "look and feel" question

    I'm using VS 2005 to create a Windows Forms application. In one of my forms, I allow the user to enter some search criteria and click a button to search the database (SQL Server 2005). The search results are then displayed in a DataGridView control. Ideally, I would like to be able to have some control over how the columns in the grid are displayed. For example, when the grid displays the search results, it seems to pick up the column name from the typed dataset and use it for the column headers. I would like to enter my own column headers through code. Here is the current code that I use to bind my DataGridView to my typed dataset: //tie the master binding source datasource to the datatable m_SrcSystemBindingSource.DataS ...Show All

  • Windows Search Technologies WDS 3.0 not indexing Outlook 2007

    I recently installed WDS 3.0 on a Windows XP SP2 machine with Office 2007 Pro. Initially, there were no problems, but recently Outlook seems to have disappeared from my WDS index. I've been trying to figure out why for a while now, and I've tried all the standard things -- I've made sure the correct mail profile is default, I've restored all WDS settings to default and rebuilt the index, I've reinstalled WDS, I've reinstalled Office, I've confirmed that Outlook is my default mail client among many other things. Outlook is running in cached exchange mode. I have even tried rebuilding my Windows profile, without any luck. What seems to be happening is WDS is actually connecting to Outlook and scanning over all my emails during indexing ...Show All

  • Visual Studio 2008 (Pre-release) Type casting to anonymous type

    Hi, I found interesting trick that makes it possible to cast anonymous type returned as object from method back to the original anonymous type (without using the slow reflection), so I thought I could share it here (it works only with the latest "Orcas" CTP, because behavior of May CTP compiler is slightly different). // Method that returns anonymous type as object object ReturnAnonymous() { return new { City = "Prague" , Name = "Tomas" }; } void Main() { // Get instance of anonymous type with 'City' and 'Name' properties object o = ReturnAnonymous(); // This call to 'Cast' method converts first parameter (object) to the // same type as the type of second parameter - which ...Show All

  • .NET Development another timer question

    Hey, I'm developing a program to calculate satellite orbits, and some calculations need to be done each second, others each day. For that I'm using System.Timers.Timer class. This program is going to be running for a long time, sometimes even months. Question: isn't this a bit dangerous I mean, having a timer running for this long time always counting up Any suggestions Thanks I believe you may find some of your objects would be disposed if it is not being used but as well as this, having a timer interval set to every second (1000 ms) would be really bad. If you must, try to make sure the timer interval is set to the true interval you require as close as possible. ...Show All

  • Windows Forms ADD A LIST OF TABLES FROM SQL Database

    Hi Everyone Does anybody know of a way to get a list of tables from a SQL Database using a selct statment or a stored procudre Thanks James Murray Hi, select * from Sysobjects WHERE type = 'U' This works for MS SQL (which is whatI assume you use since you don't mention otherwise). BTW, took me less than a minute to Google for this and find the answer. Luc ...Show All

  • Visual C# How to change the windows Display(Apperance) settings programatically?

    Hi, I want to uncheck the following option programatically. Desktop->Properties->Appearance->Effects->Hide Underlined Letters for keyboard novigation until i press the Alt key. is there any api available to change the same.Please help me out in this.Thanks in advance. ...Show All

  • .NET Development EventLog errors due to events being written whilst I'm reading them

    Overview: I get runtime errors using the .NET EventLog class in very simple traversal, due to event entries being written and overwritten while I'm reading the log. How should I as a developer use this class to query a live event log How do you avoid or handle the exceptions which the simple foreach EventLogEntry iterator throws as things change I want to read all the events in a particular log, which are newer than a certain date. Originally I tried this for (int i=eventLog.Entries.Count-1; i>=0; --i) { EventLogEntry entry = eventLog.Entries ; if (entry.TimeWritten < cutoffTime) return; /* record stuff */ } When I got sporadic errors with that, because of event log entries being written and overw ...Show All

  • Windows Forms Framework and Windows Installer not present

    I am deploying a project on a large number of user machines. On a W2K machine, when I tested the MSI, it of course, did not have the Framework or the correct version of Windows Installer. But I did get the expected error messages. So I am going to issue install instructions that state the order of install is to first install these two items, and then install the application. Do any of you do anything different interesting as in my experience it automatically downloads it! It never redirects me to a page. I'll set up a few VM's for you and get back to you on what happens in my installations as well as the settings used in my setup project. NEVER hardcode the url path as the path ...Show All

  • Software Development for Windows Vista Determining Process Integrity Levels -- windows platform sdk

    Hi, I'm a novice to window programming There are functions in vista-related docs that I'd like to use. eg)  Understanding and Working in Protected Mode Internet Explorer shows how to determine integrity level of a process. void ShowProcessIntegrityLevel() { HANDLE hToken; HANDLE hProcess; DWORD dwLengthNeeded; DWORD dwError = ERROR_SUCCESS; PTOKEN_MANDATORY_LABEL pTIL = NULL; However, the red-colored line produces an error. I found out that you need vista version of windows platform sdk when function information in msdn says that minimum operation systems should be windows vista. eg) ChangeWindowMessageFilter Function Function Information Minimum DLL Version user32.dll ...Show All

  • SQL Server How do you increase the value for: DTS_I_CHOSENMAXEXECUTABLES

    We are getting the following error on an SSIS package: "54 Diagnostic VirtualSQLName Domain\UserName Load Daily 859CF005-CB7F-47D8-8432-AE7C074B343C 1A986F18-343F-4424-ABAB-AC6575187DF3 2007-02-14 10:05:42.000 2007-02-14 10:05:42.000 0 0x Based on the system configuration, the maximum concurrent executables are set to 4. " Basically it is saying the we have reached the maximum amount of executables. How can we increase this value and where Thanks Set that number at the package level. In the properties, there is a parameter titled: MaxConcurrentExecutables. Set that to your desired number. However, note that using -1 (the default) should result in the best performance based on memory, cpu, etc... ...Show All

  • .NET Development How to Sort items in a generic List Collection

    Hi Can anybody tell how to sort the generic list based on more than one column. I'm using fallowing code to sort the Generic List for one column. List<ClassProp> listItem3=new List<ClassProp>(); listItem3.Sort( delegate ( ClassProp p1, ClassProp p2) { return p1.OrderSo.CompareTo(p2.OrderSo); }); The above is for sorting based on only one column,But I need more than one column. How Thanks In advance. How about: listItem3.Sort( delegate ( ClassProp p1, ClassProp p2) { return p1.OrderSo.CompareTo(p2.OrderSo) == 0 p1.SecondColumn.CompareTo(p2.SecondColumn) : p1.OrderSo.CompareTo(p2.OrderSo); }); A sort by a second column makes only sense if the values in the first column ...Show All

  • Audio and Video Development MFCopyImage

    hi all when copying a YUV (nv12) sample from src to dest using MFCopyImage, for some reason it turns out to be greyscale even though though the original image has color. The UV bytes are not being set properly...anyone else have this issue MFCopyImage is basically an optimized version of this: for (DWORD i = 0; i < dwLines; i++) { CopyMemory(pDest, pSrc, dwWidthInByes); pDest += lDestStride; pSrc += lSrcStride; } Are you sure you're passing the right values for the second call to MFCopyImage Other than that, I'm out of suggestions. :-( (btw - Is the image interlaced or progressive ) ---------------------------------------------------------------------------- Mike Wasson, SDK Documenta ...Show All

  • Windows Forms Calling open another form

    Yet another question for you guys: I have created 2 forms in my application. I want a button on Form1 to "call open" Form2 without opening another window. AKA: Sort of like a "Next Page" option. What code would I put in the button event handler to perform that task Panels really are your best option like Figo Mei stated, since it's the only way to make it look like you're in the same form (because you really are). The code supplied by bthumber has bad news written all over it If you do { Form2 frm2= new Form2(); frm1.Close(); frm2.Show(); } This will throw an exception because you created an object (frm2) inside an object (frm1) that you closed... Maybe I'm wrong, but I do think it will happen thi ...Show All

  • Windows Live Developer Forums Windows live messenger error

    I have installed Windows live messenger many times and it won't work the winhttp.dll error keeps coming up. I tried to put in winhttp.dll but theres another error of the same kind and finally the same thing happens again when i tried to put in the final (.dll) procedure Mr.CEO wrote: I have installed Windows live messenger many times and it won't work the winhttp.dll error keeps coming up. I tried to put in winhttp.dll but theres another error of the same kind and finally the same thing happens again when i tried to put in the final (.dll) procedure ...Show All

  • Audio and Video Development DXVA questions

    In DXVA_1.01 specification, there are many structures that should be set, such as DXVA_ConnectMode, but I don't know where to set them and how to pass them to accelerator (overlay mixer). How can I know which accelerator type my graphic card supports, MC only or MC +IDCT or MC + IDCT + VLD Wu Hi Wu, You will provide DXVA_ConnectMode structure from IAMVideoAcceleratorNotify::GetCreateVideoAcceleratorData method and the information will be used to create a video accelerator object. The structure will be initialized as below. typedef struct _DXVA_ConnectMode { GUID guidMode; // set to DXVA_ModeXXX GUID defined in dxva.h WORD wRestrictedMode; // DXVA_RESTRICTED_MODE_XXX defined in dxva.h } DXVA_ConnectMode, *LPDXVA_Conne ...Show All

©2008 Software Development Network