chris441962's Q&A profile
Software Development for Windows Vista U3 USB Drives
Hello Everyone, As the title suggests I'm having issues with my 1gb Verbatim U3 Smart USB key. Vista detects it and installs the drivers correctly. Clicking on the removable storage icon that appears in Computer brings up the following msg: "Please insert a disk into drive H:" All my other USB drives that are non-U3 have no issues. There is a feature when you right click that says 'open as removable storage' but you cannot drag or drop anything into the folder that is opened. Anyone else having issues getting their U3 drives to function correctly I have the 2GB U3 and Device Manager shows a yellow icon, but Vista still is using it for readyboost and it seems to make a differen ...Show All
Visual Basic Change a Windows Service Account Password using VB.NET
I am trying to connect to remote computers and update a service account password using VB.NET 2005. I have found samples of starting and stopping services but nothing on modifying existing services account information. Does anyone have a sample of this that isn't vb script Thanks for the link. It looks like it should be supported for Xp and Windows Servers 2003 but there isn't a sample...it just provides sample for script and C++. ...Show All
Windows Forms Guide on how to migrate from UAB to Clickonce?
I have UAB 2 and would like to move to ClickOnce for a smart client app. Is there a guide on how to migrate or are we left to fumble in the dark I would appreciate pointers on what to do. Is there a really good guide on ClickOnce The MSDN pages are quite poor. regards, Mark Hi Mark, ClickOnce is user specific but what is the problem for each user installing it If you really dont want to use ClickOnce I would write your own update mechanism I did for one project. But I think Clickonce maybe the way forward in the future. James ...Show All
Visual C# How to Insert Only the newest row added to the dataset
I have a dataset that contains some 3 rows....when i add a new row and I want to insert that new row it inserts all three rows again so i end up with seven rows the 3 that were there already, a copy of the 3 that was there and then 1 for the new row.....when i just want it to insert the newest row that i added to the dataset...Is there anyway to get this done foreach (System.Data.DataRow currentRow in _dsContacts.Tables[0].Rows) { currentRow["CustomerID"] = this ._CustomerID; currentRow["TypeOfContact"] = this ._ContactType; string sql = System.Configuration.ConfigurationSettings.AppSettings["ConnectionString"]; using (SqlConnection connect = new SqlConnection(sql)) { using (SqlC ...Show All
Visual Studio Multiple Domains in Visual Studio AddIn
I have created a Visual Studio AddIn. I am trying to reflect through files in different directories. So, I do the Loading and Reflection of DLLs in different Domains. My code works fine in my test environment where i have this usercontrol in a WinForm. However, when i try to run this UserCOntrol as an AddIn to Visual Studio, it breaks at CreateInstanceAndUnwrap with this exception System.IO.FileNotFoundException crossed an AppDomain boundary Could not load file or assembly 'DCS_ASM_Addin' or one of its dependencies. The system cannot find the file specified. DCS_ASM_Addin is my Addin assembly. Here is my code: " string exeAssembly = Assembly.GetExecutingAssembly().GetName().Name; string callingDomainName = Thread.GetDomain().Frie ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What games or applications are allowed?
Hellos I have a few questions regarding the content of the games: Is it allowed to put out advergames sponsored by 3rd party commmercial companies (Either games that feature sponsored splash screens in menu etc or even product placement in the game) Then what about adult content Like how much Blood, Gore, Drugs, Nudity is allowed Do games have to be politically correct cheers Nils I say Go Microsoft! This is obviously a win-win scenario for them. They get access to a wide variety of amatuer programmers who love gaming and making games. The window amatuer development community is massive Their 360 Customers get access to a lot of free content, making the XBox more attractive XBox Live becomes more att ...Show All
Windows Forms Setting STAThreadAttribute
I have an application with an event handler that waits for HW events and then reports them to a server via the WebBroswer.navigate() method. I am getting an error when I invoke WebBroswer.navigate() saying: ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment." Looking though the documentation, and Googling for info, it seems that I shoud be setting the thread to "STAThreadAttribute". I am confused because it says to do it in the main() function and I don't have one. I have two classes and I set both of them to <System.Serializable()>. Does that have the same effect I also went through and set every Sub to Public Shared just to b ...Show All
Visual Basic Import, Export Access Database Files ???
Hello! I am new to Windows Forms. I am using VB.NET as the language for an application I am writing. I have searched around trying to find some documentation on this and have not found a solution. ****************************************************************** The application that I am using, uses an Access database to track trainee data. Every now and then the database needs to be exported and sent to me. Also, users will need to have the ability to overwrite a previous database with a new one sent to them from me. I have looked into the OpenFileDialog and SaveFileDialog controls and cannot find a way to do this using these controls. If someone could please help me with selecting an .mdb file and saving it to a specified location on th ...Show All
Software Development for Windows Vista Distributed Transaction problem
Hi, I'm having problems getting transactions to work correctly in a state machine workflow. Within the TransactionScope activity I have a Code activity that does a couple of database writes, another Code activity that sends out a notification email, and a SetState activity, which I want to be executed only if the rest of the code executes correctly. The WF runtime and DB are hosted on different servers. After fixing a "The partner transaction manager has disabled its support for remote/network transactions" error by enabling the MSDTC stuff on both machines, I'm now getting a new error: "The transaction has already been implicitly or explicitly committed or aborted (Exception from HRESULT: 0x8004D00E)" A ...Show All
Visual C++ Convert LRESULT to LPCWSTR in c++
I am working on windows mobile 5.0 ,compact framework I want's to show a LRESULT in the message box. But as message box can only show LPCWSTR. So please provide me a routine to convert LRESULT to LPCWSTR so that I can show it in the message box. LONG lr = RegSetValueEx(hKey, NULL, 0, REG_SZ, (LPBYTE) wszValue, (lstrlen(wszValue) + 1) * sizeof(TCHAR)); wchar_t buf[20]; _itow_s(lr, buf, 20, 10); MessageBox(0, buf, L"Register 2", 0); ...Show All
Visual C# How can I prevent usercontrols from all projects loading into the toolbox?
I have made a few tries at googling for this, with no luck. The problem is that we have a large solution with dozens of projects, most containing 1 - 3 usercontrols. Every time I open the Toolbox, every project displays on its own tab. Each tab is open to show an item for each usercontrol. This not only takes a long time to load, but it makes it difficult to find the tabs I actually want to use. I have tried removing most of the tabs from the Toolbox, but it doesn't seem to stick. After I once close both the Toolbox and the solution, the very next time I open the Toolbox, it again brings up an open tab for every project. I guess what I really need is a quick easy way to put the control or component I need on a form (if there is a ...Show All
SQL Server Can SSRS 2005 Handle Stored Procedures or SQL Subqueries that Rreturn Rowsets Based on Multiple SQL Updates?
Hello, I have a stored procedure that creates a temporary table, and then populates it using an INSERT and then a series of UPDATE statements. The procedure then returns the temporary table which will contain data in all of its columns. When I call this procedure from SSRS 2005, the rowset returned contains data in only those columns that are populated by the INSERT statement. The columns that are set via the UPDATE statements are all empty. I read (in the Hitchhikers Guide to Reporting Services) that SSRS will only process the first rowset in a stored procedure that generates multiple rowsets. Is this true Is this why SSRS does not retrieve data for the columns that are populated by the UPDATE statements Here is the stored proced ...Show All
Visual Studio Express Editions invalid exception " "Invoke or BeginInvoke cannot be called on a control until the window handle has been created."
Hi all i have a project in vb.net some times at run time this message appear InvalidOperationException was unhandled {"Invoke or BeginInvoke cannot be called on a control until the window handle has been created."} i don't know why and i didn't find any logic when it's appear because when i run my project some time its appear and some time it doesn't appear. i read alot of articals all of them talk about thread and UI but i didn't use thread in my project , i used alot of select statments, insert and update to the data base , for loops , show forms and show dialogs . please how can i fix this problems and how can i know where is the problem. this is the details of the exception System.InvalidOperationE ...Show All
Smart Device Development Sequence of Installing Visual Studio 2005
Hello All, Please anyone help me in setting up the Visual Studio 2005, I installed Visual Studio 2005 before. But still it shows some Exceptions while running it in emulator. I think there is something missing in my installation. Plese share with me the sequence of installing ActiveSync,VS2005 & Windows Mobile 5.0 SDKS. Is there any need for installing the VS2003. Thanks & regards Rupesh I don't see how "some Exceptions while running it in emulator" are relevant to the installation order. It’s running, so you can compile OK and exceptions are normal in applications. They won't disappear until you fix your code and/or add exception handling to your application. ...Show All
Visual Studio Reportviewer not rendering properly
I am using Visual Web Developer Express 2005 and SQL Server 2005 Express. I have downloaded and installed the Report Add-in controls. I have added a reportviewer to and webform and configured a dataset for the report viewer to use. When I run reports in my application, the XML content of the .rdlc files are rendered in the browser -- rather than the report itself. Anyone have any suggestion on what I may be doing wrong ...Show All
