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

Software Development Network >> Duncan McC's Q&A profile

Duncan McC

Member List

PhuNA
Becker2
krubug
Neotech
crewchiefusa
howco
Yong2k7
Henry_Yang
NoEgo
MichaelChesapeake
constm
Tamim Sadikali
dbdog
Abarca
JoshuaR
Matt_
egomine
Igor L. Kravchenko
Jeff Lynch - MVP
crazyabtdotnet
Only Title

Duncan McC's Q&A profile

  • Visual Studio Express Editions Tab control under Status strip problem...

    Hey, I added a 2nd status strip and it overlaps the tab control.... The tab control's dock property is set to fill and the 2nd status strip is set to bottom dock... I looked thru the properties of both controls to find a option that will keep them from overlapping but I found no option that does that...Maybe there is an option but I did not think it had anything to do with that or something...but I looked thru both lists 2 times... So what should I do to make them not overlap Thanks :) ...Show All

  • Windows Forms MessageBox from worker (Non-GUI) thread

    In a C# (.Net 1.x) application, when a user clicks on the "Run Update" button, I launch a function DoRun() in a worker thread Question 1: I need to bring up a confirm dialog while the function is running based on some condition. That cannot be asynchronous. Is it generally Ok to bring up the Dialog (MesageBox.Show.....) from the worker thread If not, what is the way to do this synchronously on the GUI thread Question 2: I need the command button (btn_run) disabled at some point in the function, and then enabled again at the end of the function. While I know how to define delegates and do this with BeginInvoke, is there a simpler way, since I have a lot of buttons and do want to define a separate function to delegate e ...Show All

  • Visual Studio Uninstall of an addin crashes Visual Studio

    Hi. I have a native C++ addin for VS2003 that registers a bunch of commands and a custom toolbar. As an uninstall custom action I run a VB script similar to the one here: http://support.microsoft.com/ kbid=555322 However during uninstall I'm getting a Visual Studio crash dialog. The script itself works fine. It gets rid of the commands and the toolbar. The only problem is the crash. I reduced the script to just this: Set objDTE = CreateObject("VisualStudio.DTE.7.1") objDTE.Quit and even just this: Set objDTE = CreateObject("VisualStudio.DTE.7.1") But it still causes a crash. BTW, running the script alone causes no crash. Just when it is executed as part of the uninstaller. Any ideas what to do ...Show All

  • Gadgets Attaching a ActiveX event to javascript

    Hi I created some nice ActiveX component and now I would like to use events. To test my current implementation, I tried to sink the event in VB6, which worked perfectly. This was the code I used in VB6: Private WithEvents Test1 As GeizhalsForumWatcher.GeizhalsForumWatcher Private Sub Form_Load() Set Test1 = New GeizhalsForumWatcher.GeizhalsForumWatcher Test1.SetCredentials "4066", "nvhf76jh" Test1.Start End Sub Private Sub Test1_OnGeizhalsForumDataChanged() MsgBox ("sdafsd") End Sub The messagebox fired just as expected. Now I would like to get this behaviour into my Javscript part. If the event fires, I'd like to call some method. My main problem now is that if I use: .... forumWatcher = n ...Show All

  • Visual Basic Long Numbers

    Hi, I would like to write applications, such as calculating pi, generating Mandelbrot Sets, factoring large numbers or prime hunts, which use extremely long numbers. I'm not talking about the measly 32 decimal places of the Decimal variable. I'm talking about two or three thousand decimal places. I've written a couple long number calculators which are, quite frankly, crude, cumbersome and slow. My approach has been to create arrays of byte characters, assign one digit to each byte, and then try to program the whole thing to handle addition, subtraction, multiplication and division; all the while trying to keep track of decimal places and polarities. It seems to me that there has to be a better way. Anyone know if it is possible to ...Show All

  • SQL Server SQL Query Help....

    Hi All, As part of a one time migration activity, we are running into a situation wherein in the old database, there are some records in the transaction tables that don't have a valid reference in the master table. This was because the OLD database was not having any proper constraints in place, and it is suspected that the records in the Master table would somehow got deleted. I now what to write a query which will pick only the valid data and the other non matching records should be marked as not valid or so. Bringing a new status called as Not valid in each n every master table is also fine. Ideally this will be a left join with the master and the transaction tables, but the issue am facing is that the left join is giving only ...Show All

  • Windows Live Developer Forums Can I use same Pushpin for text and picture?

    Am refining my first map and would like to use a custom icon in the default onMouseOver to display text, and use the same icon to display a picture while the left mouse button is held down. Is this possible I already have the onMouseOver and custom icon working and assume I need to incorporate the onMouseDown and onMouseUp events. Any help on combining these events would be greatly appreciated. Bill Try this: on the onMouseOver event, grab the pinID (assuming you've stored it somewhere) and then change the element image url.  I would assume the same to apply for onMousedown and onMouseup.  Something like this code: document.getElementById(pinID); I'll see if I can post some sam ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Can't Compile DirectX Sample Projects in VS 2005

    Hey everyone, I just installed VS 2005 and the ASP .NET 2.0 architecture and now I want to start wrting some 3D programs using DirectX, so i downloaded the directx SDK, but can't get it to compile in VS 2005. It keeps giving me this error Error 5 fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory c:\documents and settings\user\my documents\visual studio 2005\projects\hlslwithoutfx10\dxut\core\dxut.h 91 Can anyone help Thanks a lot! Kent Have you added the include and library directories to the environment Tools->Options->Projects & Solutions->VC++ Directories... ...Show All

  • SQL Server creating and scheduling job for SSIS

    Hi All I want to create and schedule job for my SSIS packages. But I have no idea how to do that. Paarul wrote: Hi All I want to create and schedule job for my SSIS packages. But I have no idea how to do that. Search for SQL Server Agent and SSIS. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Creating VertexDeclaration every frame

    Hi @ll i have a simple quiestion bout examples in xna tutorials why VertexDeclaration is creating every frame using( VertexDeclaration decl = new VertexDeclaration( graphics.GraphicsDevice, VertexPositionColor.VertexElements ) ) {.... Why instead of it just create it once on start and use then every frame it seems this is the only place in docs with this bug   Mitch Walker - MSFT wrote: This is a bug. You shouldn't create a VertexDeclaration each frame. that's what i want to hear, thx for quick reply :) btw, i've tried to use BasicEffect, but seems it's bugged, no vertex color, no lighting (there r light artifacts; edit: ohh, i forgot to define vertex normals ^_^) or maybe i'm doing somet ...Show All

  • Windows Forms Custom Shaped Forms/Controls

    I remember reading different articles regarding this but cannot find them. I would like to create a custom shaped form and I beleive the graphics path is what I am looking for but cannot find any info. Also, I would like to create a custom shaped (rounded) text box. Anybody have any ideas on how I would accomplish these tasks. John I think the following sample is what you want void Form1_SizeChanged(object sender, EventArgs e) { SetEllipseRegion(); // .... } void Form1_Load(object sender, EventArgs e) { SetEllipseRegion(); } void SetEllipseRegion() { // Assume: this.FormBorderStyle = FormBorderStyle.None Rectangle rect = this.ClientRectangle; using (GraphicsPath path = new GraphicsPath( ...Show All

  • Visual Studio Arbitrary project file

    Hi all, I'm looking into implementing some VSPackages to replace a custom Java IDE. My first big question is, is it possible to use an "arbitrary" project file format The project type is sort of like a Web Application, but the configuration file(s) specifies a sub-set of files that are used to provide "content" under a given runtime environment. I'd like to use that configuration file as the project file, instead of trying to synchronize between a .*proj file and the configuration file. I've looked at the MPF samples and it looks like they all end up requiring an MSBuild format project, i.e. the ProjectFactory instance provides an instance of ProjectNode which in turn must provide instances of Engine and Project clas ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Runtime Image loading from filepath

    Hi all. Im building an application that requires image content to be loaded at runtime, from paths that are not known before the solution is built and the program deployed. Because since beta 2 this is something no longer supported for some weird reason by the XNA team, despite its near incredible necessity in a variety of situations, I have built a library that basically performs the MS Build task necessary, as detailed in various forums and blogs. My question is this: My knowledge of MS Build and the Pipeline is limited, especially as far as how it works as opposed to how to use it. The code below seems to work fine and is reasonably fast. Could there be any ramifications Im not aware of Cheers. class DynamicPipeline { str ...Show All

  • Visual Basic change color of only one row

    Is it possible to change the color of Current row of datagridview for eg, when user double clicks on particular record of datagridview, that current record should change again when user clicks on another record, previous record color should be restored and newly clicked record color should change I dont want to use alternatingcolor like thing..... pls help If your asking for the entire row of the datagrid to be selected then you have a couple of choices. Use the selectionmode - full row select. This means you select a cell on the row and the entire row is selected. This may be what you want and is as simple as setting the selectionmode on the datagridview. You may want to implemen ...Show All

  • SQL Server Ongoing problem

    I have been having an ongoing problem that I don't need solved here, but maybe I need some direction. I have a form that I am trying to create that has four different sections (data lists). Each data list can have five different listed categories and these are populated based on a SQL select statement. In the report, I have to have each of these five categories print on the form regardless of whether there is data associated with them or not. My problem right now is that if there is not any data associated with a category, the table just does not print; not the header or the footer of the table. It is just a blank area. I have tried doing a FULL OUTER JOIN in the SQL select statement, but this is also not working. What would I need t ...Show All

©2008 Software Development Network