cmaro84's Q&A profile
Windows Forms event on scaning barcode
hi , i am using vb.net 2003 and i want to scan barcodes with the scaner i want if the scaner completes the scaning doesn't matter what the length is the next textbox is focused i tried it on different events but could not find the proper event can any body help me best regards ali shah The problem appears to be with the&nb ...Show All
Visual Basic Accessing data in a TableAdapter
Hi, I am brand new to using VB to connect to SQL Server. I've set up a small database using Server Solution. I have created a simple form that is intended to take a user-entered name, assign it a code and enter it into a table in the db. To assign the code, I wish to sort my table in descending order by the "code" column, retrieve the value in the code field for the first record, increment the value and use this as the new code. I have successfully connected to my db, created an instance of TableAdapter for the table and used a custom FillByCode() method to fill the associated DataTable. Then I hit a wall. ...Show All
Visual C++ Heap Space
I want to do some thing like this r1 = new BYTE[64000]; r2 = new BYTE[64000]; My first statement works fine, r1!=NULL, but r2==0. I think this has to do with my heap size, can anyone tell hoy can I enlarge my Heap Space (available memory for my program) There is no command to enlarge the heap. It will grow when you request more memory. Give us more details. I just wrote a mini app in VS.NET 2003: int main() { BYTE *r1, *r2; r1 = new BYTE[64000]; _ ASSERT(r1!=NULL); r 2 = new BYTE[64000]; _ ASSERT(r2!=NULL); ...Show All
Visual Basic vb.NET2005 frustration .....'Unable to copy file "obj\Debug\....." to "bin\Release\......"'
Recently, but not immediately, I started to get the above error message almost every time I rebuilt my vb.NET application. The only way I know how to proceed is to rename all the \bin\Release\ files. I'm sure this isn't the normal expectation but why do I get it and how can I avoid it Urgent help required please! Geoff what other programs are running at the time, you dont have a second instance of vs with that project open and running or are running the executable at the same time as trying to recompile the application. Its normally that something is still open or in use and the system will not allow it to ...Show All
Visual Studio Problem creating a DSL project
I have had VS 2005 & VS SDK February 2006 working together, and decided that I wanted to see if the never VS SDK March 2006 had fixed anything in DSL Tools (before reading that there were no updates for DSL Tools). I installed the never version and got the problems opening old projects, which could be remedied with changing the directory mentioned in the Designer.csproj from 2006.02 to 2006.03. So far so good. The only problem is, now I can't ...Show All
SQL Server Distributed data synchronization - Comparing timestamp
Hello, I am designing a distributed application where a central SQL Server 2005 database will need to be synchronized with remote SQLExpress databases via a WebService. Data can be edited at the cental db (by our connected applications) or on the local SQLExpress dbs running on the users machines (by this disconnected application). Now, how can I use the timestamp column to determine the most recent update. The most recent update to me is not the user that most recently invoked the syncing WebService, but the most recent time when the change was made to the data locally vs the change time at the central server. Because a user could mak ...Show All
Visual Studio Team System Task Context mapped into new ms project file in project creation
Prior to VSTS we have utilized MS Project for our project plans and used the built in ability to create a hierarchy/grouping of tasks. For example: +Enhancement #1 +Design - Complete Requirements doc (actual task) - Complete Design doc (actual task) +Implementation - Complete database functionality (actual task) - Complete business layer components (actual task) I have been able to create an equivalent ms project file in an existing Team System project and simply mark the parent items not to publish to team system. The example above would then create 4 work items in TFS with the Task Context field representing ...Show All
Windows Forms App Config file problem w/ No-Touch Deploy
Hello... I have a simple DotNet WinForm app which runs great using No-Touch deployment - with one exception. When I added an application config file - the app fails to run using No Touch. It's unable to read from the config file stating that my "key does not exist" in the file. However - if I run it standalone - all works fine. Is there ...Show All
.NET Development Error: RSA Key container could not be opened
Hi. Not sure where to put this but I'm getting an error with web service when it decrypts it's config file. I'm encrypting my connectionStrings section of web.config file with the RSA provider. But on decryption I get error : "Failed to decrypt using provider 'RsaProtectedConfigurationProvider' RSA Key container could not be opened." As per the link below, I've used aspnet_regiis to give key container access to NT AUTHORITY/SYSTEM, ASPNET, and others but no luck. http://blogs.msdn.com/mohamed_sharafs_blog/archive/2005/11/17/protectedConfiguration.aspx CommentPosted=true#commentmessage Please help. Thank you! ...Show All
Software Development for Windows Vista Rehosting statemachine / freeform designer
Hello, I've seen HOL #10 that demonstrates how to rehost the sequential workflow designer in an application other than Visual Studio. I'd be interested in rehosting the state sachine or free form designer outside of Visual Studio. I expect that most of the work would be the same as for the sequential workflow. However, starting with Beta 2, the layout of the state machine / freeform designer is stored in .layout files. I would be interested in knowing how the layout information stored in this file could be observed by the rehosted designer. Other than the .layout file, does anyone see any additional issues/work to rehost either the sta ...Show All
Windows Forms How to write back changed datagridview row automatically to the database ?
I display a SQL Server database table in a datagridview. Whenever a row in the grid gets changed, it should be updated automatically in the database table. I tried to do this in several events, so far with no luck: 1) DataGridView (this would be the natural choice) Has no usefull event 2) BindingSource_CurrentItemChanged I tried it like this: private void userTableBindingSource_CurrentItemChanged( object sender, EventArgs e) { DataRow ThisDataRow = (( DataRowView )(( BindingSource )sender).Current).Row; if (ThisDataRow.RowState== DataRowState .Modified) { userTableTableAdapter.Update(ThisDataRow); ...Show All
Visual Basic Could not read state file
My projects keep coming up with this error: Warning 1 Could not read state file "obj\Debug\ResolveAssemblyReference.cache". Exception has been thrown by the target of an invocation. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Microsoft.Common.targets 0 0 The help file doesn't exist for it. What am I doing wrong, and how do I cure it please It usually happens after a major edit - moving code around the place or renaming something (as you suggest). Renaming the file worked, but it didn't come back when rebuilding which seems odd. So I don't know if it worked or not. One issue ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Going nuts here.....
Ok...I have scoured the Internet from MSDN to Google trying to find the answer to this one.... As I am new to the whole DirectX scene, I was viewing the Webcast for using C# with DirectX in game development, namely the Star Trooper game, if anybody has seen that one. I originally could not build the downloaded projects without many errors, but I installed the April sdk and now I can build all of them. The Problem is that when I Publish, I can no longer run the program...I get an error in: clr20r3 p4 microsoft.directx.direct3dx exception code 0xe0434f4d FYI I have win xp pro, c# express, Directx9.0c, net 2.0 framework, april ...Show All
Windows Forms Modal form 'hiding' behind another form problem.
Hi all. I have a program where I'm using a wizard style interface for user interaction. This set of forms opens over the main form. They are intended to be modal and retain focus until the user completes the operation or cancels. The form which 'launches' the wizard uses a showdialog() call to the first wizard form. When that has been completed, the form uses hide() and shows the next wizard form using showdialog() The problem is, after the first wizard form which works just fine, the other wizard forms randomly hide themselves behind the non-modal and non selectable launch form. They still have focus, they just appear to be arranged behind ...Show All
.NET Development Making web service on localhost externally visible
Hopefully this is easy... I created a web service (vs 2005 beta 2, IIS 5.0, win xp) that is installed locally in localhost. I can successfully access the web service from a client app I wrote and via internet explorer. my problem is, how do i allow somebody "in the cube next to me" to access the web service He always gets a "page not found" error. He has tried accessing it via my computer name and ip address. e.g., http://MycomputerName/MyServices/MyService .asmx and http://123.45.etc/MyServices/MyService.asmx Any help would be appreciated... Can the person in the cube ping your pc also at the dos prompt, ...Show All
