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

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

drew_p

Member List

SalmonCreekGames
MortenBE
Michael Bird
white2grey
Henrik Skak Pedersen
forrestcupp
I am Mats
NickUk
Kamii47
lympanda
Jive Dadson
ddoolit
Hansi Henningson
JasonRL
Zeeina
calvin phoenix
Rob Davis38041
Fistandantilus282303
priyananda
Kris Nye
Only Title

drew_p's Q&A profile

  • Windows Forms Setting default values in bound controls on a form

    How do you set default values for bound fields in windows forms There are times when specifying the default value in the underlying dataset is insufficient. The fields are bound to a binding source which has an AddingNew event where you can do something like: e.NewObject = <something>. The something however needs something of the same type or else you get an error message of "Objects added to a BindingSource's list must all be of the same type". I assume this is a DataRowView except I don't don't know how to create one in this context. One way is to use code like this: DataRowView rowView = dsNorthwind.Customer.DefaultView[0] but this implies the row is already in the underlying dataset except it isn't becaus ...Show All

  • SQL Server Converting problem (Stored Procedure)

    I need to link together string (NT-) and integer variable (1). The value of variable2 should be NT-1. I always got such an error message: Conversion failed when converting the varchar value 'NT-1' to data type int. DECLARE @variable1 int ; SET @variable1 = 1; DECLARE @variable2 varchar ( 10 ); SET @variable2 = CONVERT ( varchar , 'NT-1' )+ CONVERT ( varchar, @variable1 );     i tried the code that you posted and do not encounter the conversion error. However, you can simply the code and remove the convert for 'NT-1' as it is a string so you do not need to convert to varchar. And for the @variable1, you might want to specify the varchar size or it ...Show All

  • Software Development for Windows Vista No show on samples

    Ok, IE file version of 7.0.5450.4, .Net 3 CTP (as sandbox instructions), card selector no show on samples, fully able to login to Kim's site, can select and send card to sandbox, but site is "Unable to service my request". Why Luke Um, if it is not setup right, then that's a problem. Steps from scratch: Install XP, IIS (add/remove programs->windows components) Current Security Patches IE7 .NET framwork 3.0 July CTP Unzip the sample, and run the install.bat file. (may require you to manually register CAPICOM.dll using regsvr32 <installdir>\CAPICOM\CAPICOM.DLL) first After that, you should be able to see https://www.fabrikam.com/CardSp ...Show All

  • SQL Server Do I need to reapply SP1 after adding new components?

    Hello, I applied SQL 2005 SP1 and hotfixes to my instance. Now I found the SQL_replication component was not installed. I just installed that component. 1. Do I need to reapply SP1 Then hotfixes 2. Will reapply SP1 or hotfixes cause problems I tried on my test server, the SP1 install failed with some errors the first time. It went through Ok the second time. (I have 3 instances on this test server. I only added new component to one instance. When applying SP1 the second time, the installer forces me to apply on all instances and tools; causing outage to all instances. The installer did not force me when I applied SP1 the first time.) I wonder what is the best practice for handling this case. thanks, ktmd ...Show All

  • Software Development for Windows Vista Problem with Workflowdefinition??

    Hi all I seem to be having a problem with the workflowdefinition. If I add a branch to a parrallel activity to a workflow at runtime from a host, The workflow runs but when I try to retrieve the workflowdefinition to show it in the designer I get the following error: Unexpected end of file while parsing Name has occurred. Line 19, position 16. Could somone help me with this Thanks Mario Hi Tom Thanks for your interest. I am using Beta 2.2 but it is hard to give an example here as it includes a predefined workflow. I am creating a workflow from my application and then changing it from the host at runtime in order to reflect changes in the environment. When I add a custom activity, I seem to ...Show All

  • Smart Device Development Custom Enum Property Does not appear in Property Editor.

    In the release version of 2005 I am developing a control. The control has at least one property that is of a custom enum type. When I attempt to use this control at design time the custom enum property does not show up in the Property Editor. A property that is of a default type does show up in the design time editor as I would expect. Thanks for your help Rob     Hi Rob, I did the following: 1. Create a VB PPC2003 Smart Device Class Library (netcf v2) 2. Add a UserControl to the project. 3. Add the following to the UserControl class: Public Enum MyEnum ABC DEF End Enum Public Property MMM() As MyEnum Get End Get Set(ByVal value As MyE ...Show All

  • .NET Development Strange exception in mscorlib with CultureInfo using code converted to .NET 2.0

    Hi, I recently converted an application that was originally developed in VS 2003 and .NET 1.1 to .NET 2.0 using VS 2005. I've faced many problems with the conversion but was able to resolve all of them except this one. I hope this is the right forum to post this question in. If it's not, please direct me to the appropriate location. This problem is not repeatable because the failure is inconsistent in where it appears. Sometimes the error happens in one place, and sometimes it doesn't, and then happens a few lines later - with the exact same settings, situation, etc. This is the code that generally causes the problem: private CultureInfo DeserializeCultureInfo(byte[] cultureData) { MemoryStream stm = new MemoryStream(cult ...Show All

  • .NET Development Media Center opened once, then no more

    I received my laptop a month ago and was able to use Windows Media Center once. Now, when I click to open it, this is the error message which comes on my laptop. ehshell.exe- .NET Framework Initialization Error To run this application, you first must install one of the following versions of the .NET Framework: v1.1.4322 Contact yur application publisher for instructions about obtaining the appropriate version of the .NET Framework Checked my Control Panel and it says I have .NET Framework 2.0 My Updates History says: Windows XP Windows Media Player 11 (for Windows Media Center Edition 2005) Saturday, February 17, 2007 Other Source Windows XP Windows Media Player 11 (for Windows Media Center Edition 2005) Saturd ...Show All

  • Visual Studio Are MSBuild '/target' command line parameters exposed inside a build project?

    Within a target I am using the MSBuild task and would like to pass the same information as were passed from the command line using the /t option but I can't find that information exposed anywhere. Is it possible to get at which targets were passed from the msbuild command line using the /t option Thanks, Henrik Hello, As far as I know this information is not exposed; you could create a property and update it in each task called and thus identify the order of tasks (roughly - as you need to take into account dependncies between tasks). I wonder, why would you want to do that Regards, Eugene ...Show All

  • SharePoint Products and Technologies WSS3 Search Engine not working

    When i try to search with Sharepoint Version3, I get the following error. The site http://ynd01-svr-015/documentation/ could not be found in the Web application SPWebApplication Name=SharePoint Parent=SPWebService Is this a common problem whould love to have the step by step to tell me how to fix this. Can anyone help me my boss is asking for this. Thanks a lot I believe a colleague of mine Kurt might be able to provide the answers you're looking for, check out his two blog postings about SharePoint search errors: http://home.infusionblogs.com/kguenther/Lists/Posts/Post.aspx ID=35 http://home.infusionblogs.com/kguenther/Lists/Posts/Post.aspx ID=321 ...Show All

  • Windows Forms How to create a multi-selection list view for a touch screen?

    I am currently developing an application meant to run on a terminal with a touch screen. I have a list view and I would like to modify it so that every time the user touches an item it becomes selected. If the user touches the selected item again, the item is unselected. It should also support ‘multi-selection’ meaning that if the user touches items 5, 7, 9 and 10 they should all be selected and then if the user touches item 7 only 5, 9 and 10 should remain selected. How can I modify the list view to achieve that Thanks, Dom. That makes sense. I will try that soon. Still have a question, where could I get the definition of all possible windows message ids I searched t ...Show All

  • Visual C++ Solution Explorer - Where did New Folder go?

    This is posted here cuz, there is no C++ IDE section.  So please don't flame me if it's in the wrong area I did the best I could. It appears that in visual Studio 2005, the new folder feature found in visual studio solution explorer has been replaced with "new filter".  While I find filters fun and nice to use, I find this feature not able to do what I could with the new folder feature in 2003   We basically have a very large project and we want to create "sub-folders" off of that project as to group the different areas.  An example would be something like...  Toy Store Project       Balls   -  In this "sub folder" is all the .cpp, .h, and resx files etc ...Show All

  • Visual Studio There is no editor available for 'FILENAME'.

    I've implemented my own custom editor. I just recently noticed something weird. When I add a new file, save it and close it, it wont open again. I get the following error: --------------------------- Microsoft Visual Studio --------------------------- There is no editor available for 'C:\Code\VSSDK\Test.ext'. Make sure the application for the file type (.ext) is installed. --------------------------- OK --------------------------- The file exists, and other already existing files have no problem. I search for the message and found that .vb files sometimes had the same problem in VS2005 beta1. The EditorFactory works, the editor is created completly, but then ClosePane() is called (can't check from where, call stack shows a [Native to M ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Graphics Adapter - Multiple monitor support

    Hello :) My game has a windows forms front end to allow the user to configure how it runs, including the resolution settings. Being that they can drag this window between monitors on multi-monitor systems like mine, how can I tell what the SupportedDisplayModes are on the monitor(adapter) currently in use...before Game.Run() This seems like it should be simple to do but the answer is eluding me. TIA! Those properties are obvious :)  However, they don't tell me what I need to know...that is: which adapter my application is currently running on.  It may not always be the DefaultAdapter. Picture this: User starts my game which opens a normal Windows Form (initially). User drags the form to their se ...Show All

  • Smart Device Development OpenFileDialog Filter capabilities for specific file names.

    Hi, I'm trying to use OpenFileDialog filter to filter both a group of *.txt files and a specific file using: OpenFileDialog1.Filter = _ "Specific File|SpecificFile.txt| Text files (*.txt)|*.txt" OpenFileDialog1.InitialDirectory() = "TextFileDir" OpenFileDialog1.ShowDialog() In the TextFileDir directory I have a large number of files. I would like to be able to execute the ShowDialog() with a specific file already selected (highlighted). It appears that the Filter only functions with the wildcard (*) for the filename and a specific extention. Is there a way to use OpenFileDialog to have a specific file pre-selected Hello Sab2, W ...Show All

©2008 Software Development Network