howard dierking - MSFT's Q&A profile
Windows Forms MS Access parameters C# sql
I want to be able to use parameters to pass data to an Access database. I'm pretty sure I know how to do this with SQL Server, but I'm having some trouble w/ Access. Here's my code. Please give me some pointers: try { string propStreet = dataSetWS1.tblProperty.Rows[0]["Prop_Street1"].ToString(); string propCity = dataSetWS1.tblProperty.Rows[0]["Prop_City"].ToString(); string& ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Frame buffer vs Frame buffer
I want to read the pixels directly from the frame buffer, i-e whatever is on my screen, I want to read that. Now I have been using glReadPixels, it read pixels from the frame buffer of opengl... i-e whatever I render myself, I can capture it only... I am trying to access the graphics card buffer and read pixels from there using opengl... what should I be doing Just in case, this isn't an OpenGl forum and I doubt that questions from another planet are appreciated here. http://opengl.org/ is where you should start your adventures in OpenGL. While you are there don't ask questions about DirectX Since I just saw an article re ...Show All
.NET Development How can I edit values in an XML document?
Hi, I am working on a project in Visual Studio using VB.NET and want to use an XML document to store some of my information. I can easily read the values I have pre-written in a well-formed XML document with code like this: doc = New Xml.XmlDocument reader = New Xml.XmlTextReader(infoAddress) doc.Load(reader) TotPayments = doc.Item("KioskInfo").Item("PayInfo").Item("TotPayments").InnerText My question is, how do I write back and edit these values Most of the examples I see are only concerned with creating entirely new documents or adding elements. I just want to edit the nodes to hold updated val ...Show All
Visual Studio 2008 (Pre-release) WPF Nov 2005 samples hit-rate
With November CTP of WinFX and VS2005 RTM, I'm having roughly a 50% success rate running the various WPF samples - mostly due to compilation errors. Does this sound about right, or is it more indicative of some problem with my system setup Thanks - that looks interesting, and it does answer another question I posted about the demise of the VisualOperations class. On a related note, I've just noticed the readme file for my installed WinFX SDK has 'september' in it, despite having installed the November CTP SDK and 'reinstalled' it as well. Time for an uninstall, manual delete, and reinstall... When I uninst ...Show All
Visual C# Possible to disable Control-Alt-Delete buttons?
First off, I have searched on google and have not found any answers, and all of the folks who have asked in the archives basically got a "why on earth would you want to do that " or, "Only reason to do that would be to spread a virus!", etc responses. So here's the background: I'm an instructional designer/developer tasked with implementing a certification program for my company. This includes a series of examinations, similar I would imagine to Microsoft's cert exams and other companies. However, unlike Microsoft and others, my company is unwilling to spend the $70k minimum per year to contract a testing center network t ...Show All
Visual Studio Error 25015 while installing .NET Framework 2.0
Hi, I have a problem getting NetFX 2.0 installed. While installing the framework with Elevated Rights I get : Error 25015: Failed to install assembly 'C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Microsoft.VisualBasic.Vsa.dll' because of a system eror: Access is denied. If I give the user admin rights the installation works fine. Is there a way to get around the admin rights, I really dont want to get it to all 2000 users on our site :-) /// Johan You need to be an admin to install the framework. If you're deploying the framework via SMS or active directory, follow the ste ...Show All
Windows Forms WinForm Class Library and AppUpdater component
Ok I have an app that I put the AppUpdater component on (http://windowsforms.net/articles/appupdater.aspx). This worked just fine and I'm really happy with the results. I then decided that I wanted to make a project to display an About Dialog Box. I decided to make it into a Class Library so that I could reuse it across multiple projects. I&nb ...Show All
Visual Studio VS. Net Add-in Installer doesn't load on another machine
Hi All, I am really having a hard time with Visual Studio loading a project using VS. Net I have a simple add-in that shows a message upon launching Excel. The add-in works fine on my machine, which I used to create the add-in. But when I try to load it on another machine using the .msi that gets generated by VS .Net, I don't see that message! :( I have made sure of the following: that I see the registery getting created on the other machine (with load value set to 3). I have also made sure that my add-in is available to all users. The add-in doe ...Show All
Windows Forms Whidbey BackgroundWorker component fails in Form Load event
I'm trying to use the new BackgroundWorker component (Whidbey) in a sample VB.NET WinForms project. I've followed the examples on MSDN and can successfully recreate and run those examples. All of those examples though have the background process kicked off from a button on the form; i.e. the RunWorkerAsync method of the BackgroundWorker object is called from the click event of a button. If I do this same thing but instead try to kick off the background process from the form's LOAD event handler, I get a "Cross-thread operation not valid" exception when trying to update the UI. Putting in some debug code reveals that when call the RunWorke ...Show All
.NET Development Pressing "Enter" key on a text box, causes webform to reload.
Hi , I am facing a strange problem with the ASP.NET (with VB.NET) user controls. My user control contains only one text box web control and some other controls (but one and only one text box). I put this user control on a webform (web form also does'nt have any text box control) and request that web form through "http:// " request. Now, when i put some text in the text box and press the "Enter" key (while the cursor is still in the textbox ) the webform reloads i.e. Page_load event is called again for the webform and subsequentally for my user control. This initializes my user control to blank state. There is als ...Show All
Visual Studio Unavailable View Code/Design menu entries for linked project items
Hi I followed the SampleDocViewEditor VS SDK example to have View Code /View Design options in the menus. It worked, but... they don't appear on project items that are links to files (tipically outside the project sub-tree). Is this a bug on the VS2005 extensibility or is there a work-around I realy need to have linked files in my project type... Joao Gouveia Perhaps what you are seeing is that View Code/View Designer doesn't work in Miscellaneous projects. The way the view designer menu item gets there is via the project system - for example, notice that the CSharp project system registered under HKEY_ ...Show All
Visual Studio how to find common script folder
Accessing common build scripts, We have a couple projects those are checked into source control, generally people use vs.net to do development and build. I want to enable use of msbuild along with that I want to simplify project files so that it imports common properties. It will enable future changes esier. Issue is how I find the common script folder which in build sub folder under root source folder (which may be different for different users), I don’t want to declare it in env because user may have more than one . Any solution how can I traverse part folders to import a commo ...Show All
Visual Studio Team System Error Publishing Test Result
Hello, I have Team Build installed and the builds are working fine. However, when ever we try to publish a test result to the build we always get the following error: Status: Failed Error Message: Publish operation failed. What does that mean How can I fix it I can't seem to locate any logs or items in the event log. Thanks, Cindy The root cause of the failure you were seeing is the fact that the build service and application tier accounts are different. This is a known issue that will be fixed for RTM. The failure occurs when we try to set the permissions on the test results directo ...Show All
Visual Basic RTC Client API
Hi experts, Please help me in following code. i am not able to register my profile in SIP server. ============================ Private g_objRTCClient As RTCClient Private Sub Form_Load() Set g_objRTCClient = New RTCClient Call g_objRTCClient.Initialize ' ' Start the process by getting a profile. ' Dim pProv2 As IRTCClientProvisioning2 ' Receive the provisioning interface from the ' main client object. Set pProv2 = g_objRTCClient Call pProv2.GetProfile("123456", _ "123", _ & ...Show All
Windows Forms How to keep the decimal separator the same regardless of culture
Hello, I have a vb.net2005 application that was developed in the en-US culture and uses . as the decimal separator. When this application is run on a machine in which the culture has a . as the decimal separator, it runs without error. However, when it is run on a machine with a culture that uses a different character for the decimal separator, a System.InvalidCastException occurs. My application requires the user to input decimal numbers. Is there any way to force the code to recognize . as the decimal separator regardless of culture I have to tried to force the decimal separator to be . through code u ...Show All
