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

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

kevinwebster83

Member List

Andrew Beery
R.Tutus
LeahC
ZeroSerenity
Lars E.Nes
Chernomor
troy2000
leonidv
ahmedilyas
HPEvju
DanHockley
ferrarirosso
Nick Palmer
Johnny Ashcan
ultek
haploidus
bird.tw
Juan Carlos Ruiz Pacheco
andret1802
Helio D
Only Title

kevinwebster83's Q&A profile

  • .NET Development NullReferenceException when enumerating on Synchronized Hashtable?

    Below is the code- Executing it generates a NullReferenceException on the "foreach" when trying to get the enumerator. I'm at a complete loss here- Running the "Enumerate" method on the Hashtable named "tmp" works fine. Anyone what's going on here is this a known bug, or am i not using Synchronized collections correctly Thanks =) -- Herk using System; using System.Collections; namespace TestSyncHashtableEnumerator { class Program { static void Main() { Hashtable tmp = MakeSampleHashtable(); Hashtable sync = Hashtable.Synchronized( tmp ); Enumerate( sync ); } static void Enumerate( object someCollection ) { ICollection collection = ( ...Show All

  • Windows Forms How to Wrap text in a text box column of datagrid in windows application.

    I have a datagrid column in which I want to wrap the text in one column. private DataGridTextBoxColumn dgcComments dgcComments = new DataGridTextBoxColumn() dgcComments.TextBox.Multiline = true dgcComments.TextBox.AcceptsReturn = true dgcComments.TextBox.WordWrap = true I have set the WordWrap property to True and Multiline property to True, but it doesn't seem to work. I am able to see the wraped text only when I manually increase the size of the row and click in the cell containing value. Anybody has any idea how to wrap text in a text box column of datagrid Regards Hemant datagridview is a upgrade control of datagrid in vs2005. If you want to use datagrid in 2003, Probably u can do this, but even then i feel that t ...Show All

  • Windows Live Developer Forums how to:-

    Hi I want to know how can we show the map Based on XML data, and also how we can save/restore the status of map please reply me as soon as possible Thank you Bhavya thnaks for replying, actually i have all my data in XML format like <adds> <add loc="Newyork,US"/> .............. </adds> and i want to read these location from the file also want to show the locations, Thank you Bhavya ...Show All

  • SQL Server Merge replication foreign key problem

    Hi there. I'm somewhat new to merge replication, and I've been having an issue with one of the scenarios that I've been trying to get working. I am using SQL 2005 on the server, with 2005 express on the client. I have 2 tables: Photo - which has a PhotoID primary key PhotoData - which has a PhotoDataID primary key, and a PhotoID foreign key both primary keys are int, and set to identity. I only want the Photo table to replicate for the merge, because I want the data in the PhotoData table to only be called by demand through a web service (since the images in that table are too large to be included in the normal replication). However, when a client adds a photo to his local database (which adds a record in the photo table, ...Show All

  • Visual Studio Team System Confusion with UrlToTest Attribute

    I'm a little confused about the UrlToTest attribute. According to the documentation the attribute "Specifies the URL that should be requested to give context to the test. This class cannot be inherited." but according to this post http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=226558&SiteID=1 running the unit tests always starts a new instance of the web app with a dynamically selected port. If so, it seems the test agent or whatever is doing the requesting of the url will not get a response. Unless of course one is lucky enough to guess the port. What I'm I missing about understanding the UrlToTest attribute Cheers, Aeden Hi Aeden, the     &n ...Show All

  • Windows Forms Rotating Pictures

    I have an application written in C# with a PictureBox with an image loaded. Is there a way I can create some type of method where the image in the box can change with a mouse click Thank you! Hi, the following code will rotate the image in PictureBox on each click: private void pictureBox1_Click( object sender, EventArgs e) { pictureBox1.Image.RotateFlip( RotateFlipType .Rotate90FlipNone); pictureBox1.Refresh(); } I hope this answers your question. Andrej ...Show All

  • Windows Live Developer Forums The Driving Directions script does not work.

    Hi, I am working on the script that displayes the "RouteItenary" Class and whenever I implement it the map does not display. I searched for Javascript errors but there was none. How do I fix this Thank you so much. The script works now! I just have one more question. How can I manipulate the alert(routeinfo); script so that it does not appear in an alert, but something like the Mapquest layout ...Show All

  • Visual C++ winuser.h error

    Everytime i try to include winuser.h i get this: C:\Program\Microsoft Visual Studio 8\VC\PlatformSDK\include\winuser.h(42) : error C2146: syntax error : missing ';' before identifier 'HDWP' C:\Program\Microsoft Visual Studio 8\VC\PlatformSDK\include\winuser.h(42) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Program\Microsoft Visual Studio 8\VC\PlatformSDK\include\winuser.h(42) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Program\Microsoft Visual Studio 8\VC\PlatformSDK\include\winuser.h(43) : error C2146: syntax error : missing ';' before identifier 'MENUTEMPLATEA' C:\Program\Microsoft Visual Studio 8\VC\PlatformSDK\include\w ...Show All

  • SQL Server Add as many Where's as possible

    Hello, This was my first query. This is a subquery in a join, the date used for the DaysalHead table is specified on the on conditions and is not a part of this sample. SELECT COMPC_START, COUNT(DSH_ID) PERFORMANCES FROM TS.DAYSALHEAD DSH INNER JOIN GEN.COMPLEX_DATES CD ON CD.COMP_UI = DSH.COMP_UI AND CD.COMPD_DATE = DSH.DSH_DATE INNER JOIN GEN.COMPLEX_CALENDAR CC ON CC.COMPC_UI = CD.COMPC_UI INNER JOIN NATF.MOVIESLINKING ML ON ML.MOV_UI = DSH.MOV_UI WHERE ML.NMOV_UI = DSD.NMOV_UI AND DSH.COMP_UI = 168 GROUP BY COMPC_START HAVING COUNT(DSH_ID) > 3 It runs fine and when i watch the executionplan it is using the correct indexes to scan, the most 'un-used' rows come from the complex_dates, ...Show All

  • Visual C# How to diplay HTML data from DB in grid view ?

    I have saved data in sql server 2000 table with HTML. Like this: <a href=’abc.apx’>ANY TEXT</a><br/> But when I bind dataset to Grid View server control, text appears same as it is in DB. What is the solution Please note that requirement does not allow me to set columns(template) at design time. If you are developing asp.net application, it also works to add Hyperlink field. reference to: http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.hyperlinkfield.aspx Thanks ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Is XNA the tool for serious game developers.

    I'm trying to make the decision if our game development team should use XNA as the technology solution. The question is, if XNA is capabale, or is intended to be, a commercial game development tool set for serious game developers. Reviewing the majority of the posts here (XNA vs. C++/DirectX) It is a very powerful and fast development environment, however at the moment its range is limited to the Windows and Xbox 360, meaning that (at the moment ) you cannot develop as easily as you can with C++/DirectX for alternative next-gen platforms (Macintosh (hah, as if), Wii or PS3). I, however, haven't seen many remarks on the possibility to opening this to other platforms. ...Show All

  • SQL Server Build a xml doc from parameters passed to sp

    I have a sp with some input parameters and i would like to build an xml document with the elements name of the parameters with the proper value. ie: declare @par2 datetime; set @par2=getdate(); exec spTest 'test',@par2 create procedure spTest(@par1 nvarchar(50),@Par2 datetime) as ...do some job i would like to obtain: <spTest><par1>test</par1><Par2>10/20/2006 10:00:00</Par2><spTest> or, btw the same result i could get querying with the forxml clause. I need to create this Parameter/ParametersValues to xml in many sp that have different parameters. Thank you very much Maybe something like one of these Code Snippet declare @par1 varchar ...Show All

  • Visual Basic How to Link Crystal Report 8.5 with Remote SQL Database using VB6.0

    In the past, I'm using MS Access Database in my program, and I design my Crystal Report (CR) with setting the fix database to my master database (.mdb) , and when I run my VB6.0 program , I will assign the designed CR database to another path using .... CR.DataFiles(0) = "C:\MyDatabase.mdb" But the problem here is, now I using remote access to MSDE2000 SQL database, no more MS Access database. And i want to change the database path like using above concept, Is there Possible, or other solution . After Change it, Maybe I need to change the connection Server Name, Connection Server Database Name or event the Server IP address (I mean Location of the server). And I using VB6.0 in my program, And CR version 8.5 .. ...Show All

  • .NET Development retrieving last entry

    i have a table ID. so how can i retrieve the ID immediately of the last entry after inserting the data into the table Like if your table is: Table1 Field: IID - identity, not null , int and primary key Name- varchar(50). Then Insert Statement Should be Insert Into Table1 (Name) Values ('LPlate'); SELECT Scope_Identity(); ...Show All

  • .NET Development Error when accessing shdocvw.dll (SHDocVW namespace)

    Hello: I'm attempting to use SHDocVW namespace to obtain an instance of Internet Explorer. In attempting to attach to an IE instance, I'm using the ShellWindows class inside the SHdocVW namespace. Trying to create a new instance of ShellWindows, I get the following exception: Retrieving the COM class factory for component with CLSID {9BA05972-F6A8-11CF-A442-00A0C90A8F39} failed due to the following error: 8007000e. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.OutOfMemoryException: Retrieving the COM class factory for component with CLSID {9BA05972-F6 ...Show All

©2008 Software Development Network