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

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

jdonahue1971

Member List

Jon Watte
Tanmaya
Soumya B
Tihomir Ignatov
dct-val
Deza
Leonard Lee
mikej409
LievenI
B. Chernick
dfgdrf
David Turner
cdx1
Norbert Thek
petersoftware
&#169&#59; Ţĩмό Şąļσмāĸ
Dan Mikkelsen
krhoover
danilomunoz
cedubose
Only Title

jdonahue1971's Q&A profile

  • SQL Server Drop down list for columns

    What is the best practice to build drop down lists for a database You're asking about the best practices for the UI on the client side, then I think that depends on a coulpe of different things. If the query to generate the list is very simple, then I'd probably write code to retreive the data and populate the list each time the UI is shown. But there are some exceptions. If the data is likely to change (that is, other users are adding or removing things that would show up in the list) I would end up adding a "Refresh" pushbutton next to the dropdown. That way, the user can refresh the content of the list without leaving and re-opening the form or dialog where the control lives. If the con ...Show All

  • Visual Basic Making a window appear at the mouse

    But I want the bottom-right hand corner to appear at the mouse popint. How would I do this Ok .. is this what you were after Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim pt As Point = Windows.Forms.Cursor.Position Dim size As Size = Me .Size Me .Location = New Point(pt.X - size.Width, pt.Y - size.Height) End Sub Richard ...Show All

  • SQL Server SQL Server Connection Problem.

    Hi, I Have installed SQL server 2000 on a windows 2003 server.Client version of SQLServer 2000 is installed some of the client machines. I'm also able to register the SQl Server in those client machines. But I am facing the problem while connecting SQL server 2000 database from the client machine through the ASP.net application connection String. But I'm able to connect the SQL Server database on the local machine. So I'm sure there is no mistake on my connection string. The below error I'm getting "SQL Server Doesn't exists or Access denied" Kindly help me to over come this. Thanks in advance. Regards, Are you able to reach the SQL Server box from the machine that has problem conn ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Texture2D.GetData fails on 500x500 texture

    Hi, i am reading of a Texture2D the given colors to extract my height data of a heightmap image. Therefor i use this code: Int32[] data = new Int32[heightMap.Width * heightMap.Height]; heightMap.GetData<Int32>(data); heightMap is a Texture2D object with a width and height of 500, so the data-array gets at runtime a size of 250.000. Fine but it fails on getting the data from the Texture2D by using the GetData function with this error: The type you are using for T in this method is an invalid size for this resource. I found something with google where people switched to Color instead of Int32 but for me it doesn't work it's returns the same error I used a smaller heightmap before with a resolution of 128x128 this works!! D ...Show All

  • .NET Development MemberWise clone of a sealed class (shallow copy)

    Can someone tell me how to create a shallow copy of a sealed class For example, I would like to achieve the equivalent of: OpenFileDialog o2 = (OpenFileDialog) o1.MemberwiseClone( ): - Paul ...Show All

  • .NET Development Transactions and exception handling

    Hello all, I have one method that starts a transaction and passes it to three methods to do an updates. private void A() { int intRecordsAffected; Transaction T = GlobalConnection.BeginTransaction(); intRecordsAffected = B(T); intRecordsAffected = intRecordsAffected + C(T); intRecordsAffected = intRecordsAffected+ D(T); MessageBox.Show(intRecordsAffected.ToString()); T.Commit(); } If an exception occurs in B, C, or D how can I make A aware of it so that it can rollback Thanks, Eisen I was able to achieve this by not using try catch in the method being called, but using try catch in calling the method. private void A() { int intRecordsAffected; Transaction T = GlobalCo ...Show All

  • Visual C++ String to integer

    I am using Visual Studio 2005, C++ and Net 2.0. I want to examine a String and extract an integeral value. Assume the following variables : String^ theInput = "Lat=75"; int lat; I want to examine theInput and store the value 75 in lat. Is there a simple, straightforward way to accomplish this A code sample would be appreciated. Gordon. For the future can you tell me where C++ Visual Studio general programming questions should be posted Thanks, Gordon. ...Show All

  • Internet Explorer Development Unable to type in text box

    This is probably a common problem and an annoying one at that. While using ie7 the user is unable to type in the comment box. Any ideas maybe changing some settings such as phishing filter etc etc will help I know its lame but it makes mozilla look good right about now. Hi Robert, Can you provide more details Are you saying that you have an existing web site with comments enables and that a user cannot post comments when using IE7, but can if they're using IE6 If so, I would look at the code underlying the website and see if anything in the site's design would be targeting IE specifically, such as a web hack or other version detection mechanism, especially if the site is designed to use a strict docty ...Show All

  • Windows Forms Can't disable a button

    I am programming in c#. I have a button on my form that when clicked, it plays a wav file using the PlaySound method from winmm.dll. The wav is about 3 seconds long. The problem is that if I keep clicking the button during the 3 seconds the sound is playing, it queues all of the clicks, and plays the wav over and over. My Button is named btn. So I tried: this.btn.Enabled = false; PlaySound(...); this.btn.Enabled = true; Doing this successfully greyed out the button while the sound is playing, but it still accepts clicks, so it didn't fix my original problem. Is there some way to clear the event queue Or is there something else I'm doing wrong. I just want the button to not work while the sound is playing. I have also tried ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Texture coordinates?!

    How I should define texture coordinates in XNA. There seems to be something wicked going on in following code: ... vertexList = new VertexPositionTexture ; vertexList[0] = new VertexPositionTexture(new Vector3(-1.0f, 1.0f, 0), new Vector2(0.0f, 0.0f)); // Color.Red vertexList[1] = new VertexPositionTexture(new Vector3(-1.0f, -1.0f, 0), new Vector2(0.0f, 1.0f)); // Color.Yellow vertexList[2] = new VertexPositionTexture(new Vector3(1.0f, 1.0f, 0), new Vector2(1.0f, 0.0f)); // Color.Green vertexList[3] = new VertexPositionTexture(new Vector3(1.0f, 1.0f, 0), new Vector2(1.0f, 0.0f)); // Color.Green vertexList[4] = new VertexPositionTexture(new Vector3(-1.0f, -1.0f, 0), new Vector2(0.0f, 1.0f)); // Color.Yellow vertexList[5] = new VertexPositio ...Show All

  • Visual Studio 2008 (Pre-release) Creating a Hyperlink with Databound text

    I would have thought this question would have an obvious answer, but I've been looking for a couple of hours now: How do I create a hyperlink in WPF where the text displayed is DataBound The only way I've found to do that so far is the following: < TextBlock > < Hyperlink ToolTip = " {Binding Details.Description} " Command = " {Binding Details.Command} " > < Label Content = " {Binding Details.Name} " /> </ Hyperlink > </ TextBlock > But that seems very inelegant, and produces a textblock with far too much spacing. I tried putting a Run element inside the Hyperlink, but the Text property of that cannot be databound. Any ideas ...Show All

  • Visual C++ How do I return from a static member function

    I don't know how to return from a function if it's expecting and ADT type. I can't use *this on static member functions. My header prototype looks like this: class Fraction { private : int numerator; int denominator; SignType sign; /******************* Fraction Operators ********************/ static Fraction addFract( const Fraction &f1, const Fraction &f2); } My implementation looks like: Fraction Fraction::addFract( const Fraction &f1, const Fraction &f2) { Fraction::numerator = (f1.numerator*f2.denominator) + (f1.denominator*f2.numerator); Fraction::denominator = f1.denominator*f2.denominator; return * this ; } // end addFract ...Show All

  • SQL Server Attach MySql database via internet

    Hie ! Please, how to manage (attach,connect to) MySql database located on host server http://www.avanti.si from my home PC with Microsoft SQL Server Management Studio Express This " http://www.avanti.si:8080\MySqlDatabaseName,3306 " fail ! Thenks! ooppss... did not notice/intended MySqlDatabase as a "MySql.. database" thank you Mike ...Show All

  • Visual Studio Tools for Office Using VSTO to package/deploy Outlook Add-Ins

    I'm new to add-ins and have not used VSTO before. Can someone pls confirm my understanding of the following with regard to VSTO and Outlook: 1. You can only deploy to Outlook 2003 (and later). 2. You have to ensure users have a number of prerequisites before they install your VSTO-developed add-in: - .NET 2.0 - Outlook 2003 SP 1 - Outlook 2003 Primary Interop Assemblies (redist) - VSOT run time 3. You have to purchase VSOT ($550 for upgrade). So, aside from the loss of backward compatibility with pre 2003 versions of Outlook and the purchase cost (which is very unfortunate given that I've already paid $550 for VS Pro), are there other cons to using VSOT Does VSOT make it very easy to tra ...Show All

  • Windows Live Developer Forums Multi point route

    Hi, Simple question...is it possible to have a route with multiple stops on it. I don't want to just go from A to B, I want to go from A to B to C to D. Is there something I'm missing or is this a fundamental omission Hope someone knows Cheers I too am looking into this functionatily for our fleet. But I would like to make user this is a viable solution before investing time and money into it. Do i need an account to test it ...Show All

©2008 Software Development Network