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

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

Dietz

Member List

Chrisull
Ljan
RizwanSharp
François Paradis
Lalit Mohan
Al33327
amselem
Deepthi Rao
maryz
Alagu Thirunavirkarasu
joeydj
kmbarz
hrubesh
Grayson Peddie
Sonnie-Cakes
C. Hunter
TrDmitry
ComPro
davco
PolkaDance
Only Title

Dietz's Q&A profile

  • Visual C# What's the best way to use RegEx to replace strings found in a match?

    (Sorry for so many questions today... this is my last!) Let's say I have a string: Hello, my name is <#NAME DATA="JOHN">. My address is <#ADDRESS DATA="VALUE1">. That's a very rough example (please ignore the actual contents) but you should be able to get the idea. So I'm using RegEx to find <# .* >. This works excellent and I have a nice MatchesCollection object. Well now I call a ProcessTags function for every match and it returns replacement text. So for example, I would call ProcessTags with "NAME, DATA=JOHN" and it would return back "John Smith". Now how do I replace my original <#NAME DATA="JOHN"> with my replacement text Right now I'm just d ...Show All

  • Visual Studio Team System Cannot execute a Build - TF42045

    I am getting "TF42045: A build for the team project: xxx is in progress on build machine: yyy. On each build machine, only one build can be active for each team project. Use a different build machine or try again later." and I can no longer execute any builds for the Team project. I have restarted the TFSBuildService and the build server, enabled tracing on the application server, which again logs the above message and there are no alerts in the event viewer. Can anyone suggest where I can look for this phantom build that is running I have also called the DeleteBuild web method in the BuildController to clean up previous build it that makes any difference. thanks in advance. Buc ...Show All

  • Visual Basic Need help further - How do I use VB to connect to a database in VS2005?

    I heard that data access gets a lot easier with Visual Basic 2005.  Can someone show me a quick code sample illustarating this so I get an idea what's better Can someone pls tell me step by step how to connect my code with the database.Im using SQL Server 2000 as backend. If someone could explain it with the help of a simple example,i would be very thankful. ...Show All

  • Visual C++ DataGridView - Updating record using seperate form

    Hi,   I am currently using VC++/Cli 2005.  In a project, I'm using a DataGridView control to show records from a SQL 2005 table.  Instead of updating a specific item directly within DataGridView control, I would like to open a new form and allow user to update selected record/item within that form.   The reason to update this way is conditionned by the fact that I have 3 levels of detail as following:                    Level 0            Level 1                Level 2   &nbs ...Show All

  • Visual Studio 2008 (Pre-release) UIElement.Focus() and Focus Rectangle

    Hello, Does anyone know how to force focus rectangle always appear on the focused control I would like to have default focus rectangle available i.e. on the StackPanel, after I click it with mouse. Currenty after I click mouse and invoke UIElement.Focus() on the StackPanel I have it focused (IsFocused = True), but focus rectangle does not appear on it. Rectangle appears only after I click TAB key and navigate focus to my control. Any ideas would be very helpful Thanks in advance Edmundas FocusVisual appears when an element captures keyboard focus - set using keyboard device. You can use triggers in styles to customize the look of focused control. ...Show All

  • Visual Studio 2008 (Pre-release) Generated proxy via svcutil.exe for self-hosted service problem

    I was trying to generate client proxy for my self-hosted service using svcutil.exe. But I got some errors and the proxy can not be generated. Can anybody point out what was wrong Thanks! Following is the error message from svcutil.exe: C:\Program Files\Microsoft SDKs\Windows\v6.0\Bin>svcutil http://localhost:7000/OrderProcessing Microsoft (R) Service Model Metadata Tool [Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4312.0] Copyright (c) Microsoft Corporation. All rights reserved. Attempting to download metadata from 'http://localhost:7000/OrderProcessing' usi ng WS-Metadata Exchange or DISCO. Microsoft (R) Service Model Metadata Tool [Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4312.0] Cop ...Show All

  • .NET Development Performance Counters for 32 bit Worker Process on x64 OS???

    I would like to be able view the performance counters for ASP.NET v2.0... on my server running Windows 2003 Server Std x64. I am running the worker processes in 32-bit mode and the performance counters that I see are for the 64-bit ASP.NET v.2.0... When local to the server I can run this command to see the actual values "mmc.exe /32 perfmon.msc" but how do I achieve the same thing from my workstation using perfmon Thanks for your help! That probably would've worked but due to an incompatability with our application we installed a x86 version of windows and this is no longer an issue for me. Thanks everyone. ...Show All

  • Windows Forms Insert a Resourse to textbox?

    Hey, how do you insert a resourse(image in resourses) to a rich textbox I tryed doing this: thisrichtextbox.TextBox.SelectedText = Notebook_Pro.Properties. Resources .theimage; but I got an error about it not being able to convert bitmap to string...so I tryed the code I had gotten from a question I asked when I was progames25 about inserting a image form a file into the textbox...: string strImagePath = openFileDialog1.FileName; Image img = Image .FromFile(strImagePath); Clipboard .SetDataObject(img); DataFormats . Format df = DataFormats .GetFormat( DataFormats .Bitmap); //Check this line, im not sure if (thisrichtextbox.TextBox.CanPaste(df)) { thisrichtextbox.TextBox.Paste(df); } and ...Show All

  • Windows Forms How can i create a xml file from typed dataset - Need Help

    HI, Give me some idea to create a xml file from typed dataset. Let me explain my problem.. I have the xmlschema with multiple parent and two child ). see ex: below < xml version="1.0" encoding="utf-8" > <xs:schema id="XSDSchema2" targetNamespace=" http://tempuri.org/XSDSchema2.xsd " elementFormDefault="qualified" xmlns=" http://tempuri.org/XSDSchema2.xsd " xmlns:mstns=" http://tempuri.org/XSDSchema2.xsd " xmlns:xs=" http://www.w3.org/2001/XMLSchema "> <xs:element name="Information"> <xs:complexType> <xs:sequence> <xs:element name="Name" type="xs:string" /> < ...Show All

  • Visual Studio Team System Trigger

    Importing a database schema using CTP6 appears to save triggers with the name [schema].[TriggerName].trigger.sql. Shouldn't it be [schema].[TableName].[TriggerName].trigger.sql Hi Juergen, We will not be able to include the fix by V1 of the product, but it has been recorded and will be fixed in future version of VSTS-Data. - sachin Kumar (MSFT) ...Show All

  • Visual Studio Express Editions Inet?

    Can console apps have an Inet If so whats code to add and use, or if there is none whats an alternative well VB6 and .NET are different. the other thing I can suggest is to use WebRequest/WebResponse classes to get your stream of data. http:/ / msdn2.microsoft.com/ en-us/ library/ system.net.webresponse.aspx http:/ / msdn2.microsoft.com/ en-us/ library/ system.net.webrequest.aspx   looking at your VB6 code etc... I think this would be what you are after. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XNA 2D Collision Detection using Quadtrees

    I've seen a few posts on collision detection, and though I'd post an article on how to write a collision detection engine for your game. Take a look at: http://mbebenita.blogspot.com/ I'll follow it up with some source code as soon as I get a chance. Michael B. Ultrahead wrote: Ok, I understand that. But I meant using the screen to "cap" the area where you want to test collisions (like when using the frustrum area in Octress and BSP to select the 3D areas to render). Say, in a single player game, the dynamic objects that lay out of the screen could be frozen so as to avoid do some checking on them. And when the player moves so that the objects are back again on screen, these objec ...Show All

  • Visual Basic slow printing..again

    it wasnt the laptops speed as a i thought. if I am VPN'd to a clients site and try to do a print preview in my program it takes 1.5 seconds per. No vpn and it's nice and quick... any suggestions as to how to track down the problem Thanks, Dan i did not add any network related code while i am print previewing. any other ideas or suggesitons Thanks, Dan ...Show All

  • Visual Studio Express Editions Copy image/graphic from panel/drawing surface to richtextbox

    I have the following code which allows freehand drawing using a mouse. It uses a panel as drawing surface. I will add the ability to load background images on the panel so can draw on that bmp. Now after all the drawing, I want to ensure its one image, a bmp, copy to clipboard then paste it into a richtextbox on another form in the program. Now attempting this I have tried several approaches. None have worked at all. The online tutorials or samples to study I can find are many years old and many version of basic ago. None work of course. Here is my base code for drawing. Any advice, or directing me to a tutorial, sample, or a reference book would be greatly appreciated. From what I read, this should work. There wa ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. How do I use IDirect3DDevice9 interface

    I have a DirectShow program. Now,I want to draw some line on my program.So,I have to use" IDirect3DDevice9::DrawPrimitive" to draw soem line.The following code is my program: IVideoWindow * g_pVW = NULL; IMediaControl * g_pMC = NULL; IMediaEventEx * g_pME = NULL; IGraphBuilder * g_pGraph = NULL; ICaptureGraphBuilder2 * g_pCapture = NULL; PLAYSTATE g_psCurrent = Stopped; IDirect3DDevice9 * g_pLineDevice; IDirect3D9 * g_pLine=NULL; HRESULT GetInterfaces(void) { HRESULT hr; // Create the filter graph hr = CoCreateInstance (CLSID_FilterGraph, NULL, CLSCTX_INPROC, IID_IGraphBuilder, (void **) &g_pGraph); if (FAILED(hr)) return hr; // Create the capture graph builder hr = CoCreateInstance (C ...Show All

©2008 Software Development Network