tonn's Q&A profile
Visual Studio 2008 (Pre-release) Error message: New transaction is not allowed because there are other threads running
I used the same code in ADO.NET vNext CTP sample "WinAppSample" in Windows Presentation Foundation. I am able to retrieve data in WPF but when it comes to save changes e.g. ObjectContext.SaveChanges() in WPF I am getting following error message "New transaction is not allowed because there are other threads running in the session." Any help Thank you in advance. Thanks Looking a little further at the exception in general, this kind of problem can occur if you have a reader open at the time when you attempt to call SaveChanges. SaveChanges will begin a new transaction (so that all of the changes made to the context commit or rollback together), and with SQLServer 2005 you cannot start a new transaction while a read ...Show All
SQL Server Need HELP Determining version
First off...I have NO experience with SQL. I need to determine the version we are running. I am not even sure if we are running MSDE or full blown SQL Server. It was installed as part of our accounting software. When I go into services, there are several MSSQL services running. They are... MSSQL$JURIS MSSQL$SOPHOS MSSQLServerAdHelper Can someone please help me figure out WHAT we have installed and the VERSION Thanks in advance! Dave G. hi dave, you can connect to them using sql server enterprise manager or querry analyzer using windows or ISQL or OSQL at the command prompt for 2005 you can use management studio or SQLCMD at the command p ...Show All
Smart Device Development MSMQ writing to remote queues in Windows Mobile 5.0
I have a Dell Axim x51v upon which I'm trying to get MSMQ working. According to this article , there were previous limitations on remote queues which were probably going to be fixed in the final release. My ultimate goal is to have my mobile device be able to send messages to a queue residing on my server (Windows Server 2003) when it is not necessarily on the same internal network. Below is a summary of what I've tried and what my issues have been: MSMQ didn't come pre-installed on my Dell, so I installed it using msmq.ARM.CAB, which was part of the Optional Windows Mobile 5.0 Server Components ( available here ). I followed instructions on Mark Ihimoyan's blog to register, install, and test local queues. I tried t ...Show All
Software Development for Windows Vista WDK is still not ready for Prime Time on Vista.
Latest and greatest WDK 5483 has numerous problems installing on Vista Beta 2 build 5472. - It appears that DTM studio is not included in the package. - If even Framework 2.0 is installed, WDK doesn't recognize it. - Bundled MSDE is not supported on Vista. Comparing to HCT 12.1, WDK has more features but definitely more setup issues and not so user friendly. ...Show All
Visual Studio Express Editions Reports/graphs etc in VB express?
Hello All, Is it possible to display graphs based on data is the functionality in vb express or do you have to tap into the excel COM objects Any info would be great, thanks! Thanks nobugz, Im guessing I can use the system.draw class to manually draw say a rectangle dependant on the values of my data and let my data change the sizes at runtime, its nothing too extensive as far as reporting goes so would this basic funtionality work do you think Thanks ...Show All
Visual C# Prevent ComboBox DropDown Under Certain Conditions
I would like to display a messagebox and prevent a ComboBox dropdown from opening under certain condiitons. I attempted to set the "DroppedDown" property to false in the "DropDown" event but it seems that the actual drop down occurs after the event is exited. Any ideas/suggestions Unforunately, I need the user to be able to edit the text in the box, but, if it's being edited, not allow them to select another item. That's why I can't just set it to disabled. It's odd I know but that's what's being requested. I guess I can temporarily change the style to simplelist but I hate that it loses the dropdown look. ...Show All
Visual C# System.Web.Mail - missing ????
Hi, does anyone knows why I can't add "using System.Web.Mail" to my projects It just work if I download a project called anonymousMail and create my project over this one !!! Any solution for that Thanks ...Show All
.NET Development I wanna develop Client/Sever Voice Communication Application
Hi, I wanna develop a Client/Sever voice Communication application.The problem is that , i don't know how to capture sound, can anyone guide me that how can i capture the sound from microphone. what are the alternates of sound capturing. Thank You (in Advance) Muhammad Akhtar Shiekh hello there ; I looking for a solution to implement a voip application for over a month or soo ....and now i just read your thread here . Please bielive me i realy realy need a little help on this ....i'm not much of a programmer ...but i'm somehow "forced" to complet an voip application for a diploma workpaper and it has some "drastic" conditions like : it has to be developed in C# and it has to work on Vista as on ...Show All
.NET Development How can I create Images from a URL?
I am developing a native application running on a machine with an internet connection. At the other end of the world, I know there is a web server running with pictures. I would like to load pictures from that web server and display them. Would be awesome if the following would work: Image image = Image.FromFile(”http://www.webserver.com/directory/pictureFile.jpg”) ; But unfortunately, it doesn’t … what is the proper way of doing this. Thanks, Dom. Peter Ritchie wrote: BTW, I'm not sure why one method is quicker than the other, they're essentially doing the same thing. I am pretty sure they do same thing. I used Reflector to check OpenRead method of W ...Show All
Visual Studio Express Editions Ugh....Driving Me nuts....
I am in the middle of writing a prog that takes a file within a directory on a HD renames it to the directories name and then places the newly named file on the root of that HD. Here is the code. and I am not getting it.....I would really appreciate your help. Thanks Imports System Imports System.io Imports System.IO.DirectoryInfo Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim dlg As New FolderBrowserDialog Dim FileNamesSelected() As String Dim SelectedFolder As String 'Dim FileFound As String SelectedFolder = Me .FolderBrowserDialog1.SelectedPath FileNamesSelected = System ...Show All
Visual C++ How to access a program ported from C from other .net project?
Hi, I am pretty new to C++ .Net and I need help on how to let my .Net programs accessing functions ported from a C program. What I have now is a solution that contains two projects. The first is a C++ .Net class library project and the second is a VB.Net project (doesn't have to be VB, it can be any other .net languages). What I need is to have the VB test program call functions from the C++ program. The C++ project is created by porting an existing C program. What I did was that I created a class library project using the C++ wizard. Then I added my existing C program (without any change at all), MyLib.c, into the project and removed all those generated files that I don't need. After fixing some issues, now I have the project co ...Show All
Visual Studio Express Editions Form printing in landscape mode for new PrintForm tool
-Visual Basic Express 2005- I just downloaded and installed the PowerPack tool PrintForm to print a VB form just like in VB 6. I also read the article that goes with the tool installation but cannot find any reference to or information on printing in landscape mode. Has anyone figured this out yet I'm trying to design a form that prints envelopes but haven't seen any intellisense reference to envelope for printing (I'd prefer to print in envelope mode, 8.5" x 11" rather than landscape) Any help would be greatly appreciated Hey Tall Dude...you obviously didn't try this yourself. DefaultPageSettings is a ReadOnly property. Anybody else have any thougths on this I've got some forms that need to be printed ...Show All
Microsoft ISV Community Center Forums Help finding the next similar cell using VBA
I am working on an Excel worksheet that has the word "TOUR" listed throughout the spreadsheet. How can I find the next "TOUR" and insert rows to make sure it is in the row I want it in Thanks for the information, but I need to know how to look for Tour and verify that it is in a certain cell. If it is not in a certain cell, I need to insert rows until it is in the cell that I want. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Multi threading in a game (using XNA)
Hello. I am able to create thread and make them exchange information through common objects they know (server / each other reference) Now I would like 2 threads to update a server. Each of those threads takes for inputs a keyboard for one, a mouse for the other one. However, it seems that the thread that listens on the keyboard do not detect events from it. Seems like it is the parent thread that is able to listen to a keyboard event and only that parent thread. How would you do so that a children thread is master over a device even if it does not have the focus Regards, Chryso It is more like separating code. The keyboard / mouse is just a start. Using gamepad is what comes next. And if I want to push it ...Show All
SQL Server Variable Length Procedure Arguments
Is there any way to have variable length arguments for stored procedures - kinda like how there is in C/C++ For example, if I wanted to send 2 arguments at one time, and then at another time send 7 to the same procedure, is that possible Will this mean that I have to create a list of arguments ahead of time My problem is that I do not know ahead of time how many arguments the procedure will be sent. So if, I create a list of 10 arguments, and then the procedure is called with 15 it will break. Is there any other way of doing this Does TransactSQL have an array data type Maybe an array will be better for this, but I can't find anything on that. ...Show All
