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

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

davidg12

Member List

r3zonance
Timwright2006
Horst Klein
johndog
Jason Stangroome
Angry Coder
DavidCeder
oag_hboyce
Vonny232
tenchyz
James Miles
Tryin2Bgood
OzerK
leclerc9
OfF3nSiV3
fiaolle
AksaiGora
Cryo75
mamrg
winprock
Only Title

davidg12's Q&A profile

  • SQL Server error_line() not accurate?

    Hello, I'm just trying out this new try-catch stuff in sql server 2005.... Using the example from the help, " Using TRY... CATCH in Transact-SQL" , it shows how things are done in the adventure works database.. loggin the error to the errorlog table and all that... looks great.. but I notice that when I implement this code in my project.. and tested by putting in a line that causes a divide by zero error... that the line number reported by error_line is acutally not the line at which the divide by zero code resides.... Any suggestions as to what would put the error_line out of whack I have comments and some string literals in the code..would they be throwing it Thanks ...Show All

  • .NET Development ObjectDisposedException

    In the load event for my main form in my C# Windows Forms app, there is a case where I need to call this.Close(); When this happens, I get the ObjectDisposedException thrown. My main routine in program.cs looks like this: using (Form1 frm = new Form1()) { Application.Run(frm); } Any help at all is appreciated!! Your "using" statement is unnecessary, Form.Close() already calls Dispose(). That's however probably not the source of your exception. Be sure to not touch any of the form's properties and controls after you call Close(). If necessary, set a breakpoint on the Dispose method in the Design.cs file and single-step to find out what your code is doing after disposing the form. ...Show All

  • Windows Forms how can i import excel data to a datagridview

    Hi all. I've been searching around for a easy way to import a excel file to a datagrid. I have tried a few of these examples, but nothing works. Why don't this work: private void button1_Click( object sender, EventArgs e) { DataTable test = getDataFromXLS( "c:\temp.xls" ); if (test != null ) dataGridView1.DataSource = test; } private DataTable getDataFromXLS( string strFilePath) { try { string strConnectionString = "" ; strConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + strFilePath + "; Jet OLEDB:Engine Type=5;" + "Extended Properties=Excel 8.0;" ; OleDbConnection cnCSV = new O ...Show All

  • SQL Server Report Server Windows Service

    Hi everyone, I am not able to access my report server. Here is the message i get when i try to configure it. System.InvalidOperationException: Cannot start service ReportServer on computer 'Machine-9JP5R91'. ---> System.ComponentModel.Win32Exception: The service did not start due to a logon failure --- End of inner exception stack trace --- at System.ServiceProcess.ServiceController.Start(String[] args) at System.ServiceProcess.ServiceController.Start() at ReportServicesConfigUI.Panels.ServerInformationPanel.StartStopServiceTask(Boolean start) It says log on failure but i dont know how to change the settings... Please let me know.... Thanks!! SqlNew The Report Server S ...Show All

  • Visual Studio 2008 (Pre-release) Getting Relationship Schema Data from CdmEntityType

    OK, So I'm using CdmEntityType to crawl a type, but I can't seem to find the relationships. Is there a simple way of getting the list of relationships within a given type Thanks! Mike There is no simple way to do this, since a same entity type could be re-used in various ways and the different instance of the entity type can take part in different relationships. I would love to know the use case for this scenario. There's a bunch of ways to do this, but the best way to do this would be to find out all the relationship types in the workspace and see if the one of the ends is same or is an ancestor (one of the types up its base class chain) of the given entity type. public static void FindRelationshipType( ...Show All

  • Visual C# Cannot access a disposed object?

    Hi, all In my program, there are 2 forms -- Form1 and Form2 On Form1, there is a button "Start", when I click on it, Form2 will appear and start plotting, and the text on the button will be changed to "Stop"... When I click on "Stop", Form2 will stop plotting, and the text on button will be "Start" again. However, when I close "Form2" and click on "Start" again, the following error will be shown: Cannot access a disposed object(object name: "Form2") So I can not open a form again if I closed it... Is there any way to solve this I hope I can start "Form2" again by clicking "Start"... Now, I just know to disable the "Cont ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. What am i working on MDX-1.1 or MDX 2.0 or anything else........?

    Well all i know is i installed the DirectX Aug2005 SDK...update..........and i have installed Visual Studio 2005......and i found references for microsoft.directx and microsoft.directx.direct3d and now i am developing directx CAD app in VB.net and problem is i have been reading on many sites and forums that....MDX2.0 is dead. what am i developing stuff on am i using MDX 2.0 or MDX 1.1 or this new XNA.... i have installed .NET Framework 2.0 in my system. Actually August still had MDX 2.0 in it, though we are expecting it to be missing in the October SDK. If your app runs then you are on 1.1, 2.0 has a timbbomb that expired yesterday so you will get an error about expiration. Check the version number ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. I want to learn how to draw sprites with C#!!!!

    I need help drawing sprites in C#!!!!!!!!!! Any Help..... Any Code..... ...Show All

  • Visual Studio 2008 (Pre-release) How To Get ParserContext?

    Currently I am writing a custom MarkupExtension, and I am running into an issue that I want to access all xml namespaces to clr namespaces mapping dictionary under ParserContext.XmlnsDictionary property, in the ProvideValue method I do something like this: ParserContext context = serviceProvider.GetService( typeof ( ParserContext )) as ParserContext ; if (context == null ) { throw new InvalidOperationException ( "ParserContext is null" ); } the code always run into an exception, so how can I reference the ParserContext within a MarkupExtension should I manually parse those mapping info myself Sheva Very good sample Mike, but ... how can I use the MarkupExtension from code For example I have a Dictionary pro ...Show All

  • Smart Device Development Signature to bitmap

    I am trying to convert a signature to a bitmap on a pda. I was using HoodCanalSystems control, but it isn't working on the new Palm Windows PDA and they are no longer in business. It returns a bunch of coordinates which it writes to a text file: 56,14,57,16 57,16,60,21 60,21,73,34 73,34,79,39 79,39,88,51 etc... I am using the following code: http://www.codeproject.com/netcf/Signature_Capture.asp Thanks, Aaron Version 1.4 of the OpenNETCF framework has the Signature class under OPENETCF.Windows.Forms the download link is here http://www.opennetcf.org/PermaLink.aspx guid=3a013afd-791e-45ef-802a-4c1dbe1cfef9 But remember this one only works in 1.0... no 2.0 version yet. I do ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Detecting a double click

    I've tried writing some of my own code and I've also tried the "Input Component" tutorial on XNA Spot, but I can't seem to recognize the second click in a double click. My application just reacts as if there was a single click. I'm looking for either a way to recognize it as 2 clicks, or have some flag that tells me it was a double click. Either one would be fine. Any help would be greatly appreciated. Besides this little issue, I have been very impressed with XNA so far. Bill The first way that springs to mind is you use a timer variable. The first click sets that timer to increment automatically every update. Next time you detect a click, check to see if the timer is any value above zero and if it is, then ...Show All

  • Visual C++ Pass a delegate from VB to C++

    Hello, I want to pass a function pointer from my VB GUI code to my C++ class. The function is a callback, now defined as a delegate (as I understand it), where the C++ code would call the callback function located in the VB code if triggered. I have seen lots of examples of passing callback pointers from managed code to an old Win32 DLL, but nothing of passing a callback pointer from VB to C++, both managed. Please let me know if there are any examples I could reference. Thanks. Thanks for the sample. I am getting a compile error (value of callback cannot be converted to Class.CallbackDelegate), so let me try to fix that and I will ask if I need more help. Thanks again. ...Show All

  • .NET Development HttpUtility.UrlEncode(str) How to?

    Can anybody tell me how to implement this correctly I have tried using it directly, but although HttpUtility is initially recognised, it does not hold any methods other than '.ToString()' and 'GetType(); etc... Also I have tried declaring it in many ways in the code but I just cannot get it to function. The closest I have become is generating it as a 'public sealed class' and inserting the method in there; unfortunately this didnt come off. I am having real trouble defining this so please any help in any way would be great.   Thanks alot   JWH. See this post please: Edit: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=937059&SiteID=1 I hope this will help! ...Show All

  • Visual C# Error message about string

    if (comboBox1.SelectedItem.ToString() == "Circle") thats the errenous code this is the error Possible unintended reference comparison; to get a value comparison, cast the left hand side to type 'string I originally had just selected item, so I thought the fix would be .ToString(), but as I found out, apparently not.. well generally the equals is used to compare objects/strings as the operator is really for numeric (but can also be overridden like the equals operator) the == operator is really for value types, the equals() method is used to compare objects take a look at this: http://www.andymcm.com/csharpfaq.htm#6.7 ...Show All

  • SQL Server Installing Express2005 SQL

    I am trying to setup a new server for a non-profit i donate my services to. I want to have SQL for an intranet based program that will be converted from a currently used Access database. I can not get Express (any version to install). Below are the specs of the server and the log from the install. Any suggestions and thanks in advance, Lynn Operating System System Model Windows 2000 Advanced Server Service Pack 4 (build 2195) COMPAQ PROLIANT 800 Processor a Main Circuit Board b 500 megahertz Intel Pentium III 32 kilobyte primary memory cache 512 kilobyte secondary memory cache BIOS: 12/31/99 Drives Memory Modules c,d 27.05 Gigabytes ...Show All

©2008 Software Development Network