Dale Beyer's Q&A profile
.NET Development DDL for Replication ID?
Hello, I am trying to execute a DbCommand that will create a table in MS Access. And I cannot find the syntax for creating a column that has a guid datatype. In Access (when designing the table), you create a number column then change the field size to Replication ID. I am issuing a string with the DDL in it, so it looks like: "Create Table Bob (ID int, Name Text(10))" In the table above, int and Text are datatypes. But I cannot find the keyword for a guid or Replication ID. Thanks! Bob ...Show All
Visual Basic How to work this code?
AUI = 0 UserItems(AUI + 1) = "Steel Sword" Form2.Label (AUI). text = "Steel Sword" Form2.PictureBox1 (AUI). Image = Image.FromFile( "C:\Documents and Settings\bob\My Documents\Visual Studio 2005\Projects\Strong Knight\Strong Knight\Resources\steel.bmp" ) AUI = AUI + 1 In the real out put of the code. This is an inventory, the user buys an item, and based on how many items they haev the new item is added after the latest one, which is a label for the name of it, and the picture of the item. cool, thanks. Sorry for missing your earlier post. final question for a while: Is there a way to disable the red "X" button in a form window the ...Show All
Software Development for Windows Vista How to send SMS to mobile from WorkFlow?
Dear all, I need to send automatic SMS(any country) to the customers(bank) once each task is completed in the WF.How can i achieve this Which is the best way to do this Invoking the webservice or is there any activity like we using SendEmailActivity(for sending mails) or is there any other way If so..please guide me to do this providing some code snippets too. Waiting for your valuable inputs, Thanks in advance, Sunath Hi Sunath You could add the last activity in your workflow - say a code activity - whose handler has the code for sending the SMS. There is no built in activity that has the ability to send an SMS to a mobile device, though thats an interesting request I can communicate to the right person on the product ...Show All
Windows Forms Multiple selection checkbox
Is there a control that list checkbox and support multiple selection I checked CheckedListBox and it doesn't support the multiple selection. How can i do to support it Is there any article out there for it I'd prolly need to check for Ctrl+shift everytime the user check an item. Thanks, Let's say you have 10 checkbox. and the user click on the first checkbox and then press on ctrl+shift then click on the 5th checkbox.... the end result would be that all the checkbox from the 1st to the 5th checkbox will be check. so checkbox 1, 2,3, 4 and 5 will be checked. Thanks, ...Show All
SQL Server SQLEXPRESS instance on SQL SErver 2005 standard edition
What happens when you install a SQLEXPRESS instance on a machine that already has SQL Server 2005 Will the SQLEXPRESS still run in the limited mode or will it sense that an full standard version of SQL Server 2005 is already present and just "upgrade" itself On the otherhand, how do I "upgade" an existing instance of SQLEXPRESS to a full version of SQL Server 2005 standard edition without uninstalling and installing the standard edition. If I have both the instances then will the SQLEXPRESS be freed from its limits Thanks, Vikram Oops! This contradicts with the previous answer where it states that a SQL Express instance can actually be upgraded. Vikram ...Show All
Windows Forms icons in target datagridview
I have 3 source datagridviews, DGVSource1, DGVSource2, DGVSource3. Each is filled with items in a particular category. I have a target datagridview DGVTarget onto which selected items from the above will be dropped. I'd like DGVTarget's column1 to have distinct icons to show which DGVSource the item came from. How can I show one icon for each item (row) dropped from DGVSource1, a different icon for items from DGVSource2, DGVSource3. Do I use DataGridViewImageColumn Appreciate any help. Thanks for that pointer. By datagridview faqs, did you mean the code here ...Show All
Visual C# Object Not returned to pool with methods that uses c# preprocessor
Hello, I am facing a problem with object pooling in windows server 2003. The object contains methods that uses c# preprocessor like #if . I have used JustInTimeActivation TRUE, Autocomplete attribute and set maximum and minimum pool size to 600 and 700.The problem i am facing is here is the object once activated doesnot returns to pool even though the operation is completed. Then after the maximum limit is reached and get the error suggesting COM+ activation failed. So, i request you experts to suggest on it. Rajan Shrestha. ...Show All
Visual C# ProgressBar Dilemma
My user wishes to see visual proof that their app is processing files. I've never used a ProgressBar before and I'm trying to get a test to work before I 'muddy-up' my production app. I've gotten to the point that I can get the Value to display as each record in a file is read; however, when it gets to the final record it displays the following exception: Value of '1894' is not valid for 'Value'. 'Value' should be between 'minimum' and 'maximum'. Parameter name: Value I know what the problem is (there's 1893 records in my test file), I just don't know how to fix it. I've tried to set the record count to it's value +1 ( this . thisProgressBar . Maximum = Convert . ToInt32 ( m_strInputFile . Length / 1024 + 1 ); ), but still g ...Show All
Smart Device Development UDP Client for smartphone 2005 to desktop pc communication
Hi, I developed the socket client application on for smartphone 2005 and socket server application on the desktop pc using the SOCK_STREAM both application commnunicating through active sync . But when i am creating same application for UDP using SOCK _DGRAM the application can not communicate through active sync . in client app sendto function of the winsock is succeeded (not returning any error ) but data not receive at the server end . Whats reasons is active sync not supporting the UDP socket communication how this can achieve Give me any details to make this possible . Thanks in advance We resolved this offline - the emulator was binding to a virtual net ...Show All
Visual C++ Using C++/CLI to develop web apps
Is it possible to develop web applications using VC++ (C++/CLI) in Visual Studio 2005 Standard/Professional Editions I would guess that the answer is 'yes', but I would like to confirm. I checked out the Web Developer Express Edition, but it only includes VC#/VB. I am looking for a way to develop web apps using VC++ (C++/CLI). Thanks, Kumar Is it straight-forward to set unsafe code access for C++/CLI Could this cause any other problems potentially (Since I am not familiar with this, I need to ask.) Also: Would I just be better off just using VC# to develop web apps (either with Web Developer Express, or Visual Studio Sandard/Professional) Thanks, Kumar ...Show All
SQL Server vb code in ssis
HI, I have a function written in vb and want to know if there is a way to use it in an ssis package Is there a task that I can paste this function in and execute it Like the vbscript task or T-sql task The function opens up 2 tables and updates table1 recordset with data from table2 if the (if statement) is correct and It uses 2 do loops. Any ideas Thanks what is the equivalent to this, it doesn't like database,recordset and currentdb. I'm new to the vb.net language. Dim db As Database Dim rec1 As Recordset Dim rec2 As Recordset db = currentdb ...Show All
Visual C++ Compiler Error C3213 in C++/CLI
Compiler error C3213 says: "A type that will be visible from an assembly must use publicly visible base classes." Can anyone explain to me why this is so If another assembly accesses my publicly visible derived class, why must my entire base class hierarchy be publicly visible in .NET nobugz wrote: You're right. .NET also doesn't allow private derivation. C++ doesn't have anything resembling .NET's ability to control accessibility at the compiled unit level. The closest unmanaged analogy to an assembly and public ref class is a DLL and the __declspec(dllexport) attribute. There is however no facility to prevent a DLL client from executing code in base classes that are not exp ...Show All
Visual Basic Where can I find the chr for the arrow keys, backspace, esc, ect..?
I just figured out how to use characters for letters, numbers, and symbols because i found a chart but it doesnt have keys such as the keys I mentioned above. Could someone either give me a link to a site that has them, post the keys themselves, or tell me how to figure it out in vb Start typing "Keys." and Intellisense gives you a list of the keys. Or look here... ...Show All
Visual Basic Windows Service Monitoring Problem On Vista
I've built a small utility to monitor the status of SQL Server Express and start/stop it and it works nicely on Windows XP SP2 and fuctioning great but when I've tested it on windows vista it monitors the service ok but I can't start/stop the service any more unless I use the Run as administrator command to start my tool I've used the folowing code to test my rights on windows My .User.IsInRole(Microsoft.VisualBasic.ApplicationServices.BuiltInRole.Administrator) but it gives me false - note that I've logged as an administrator to windows - is there is any way programtically make the program have administrator rights on windows so I can use all functionality of my little tool Thnak you I di ...Show All
Commerce Server Scriptor
I have added a scriptor component to the Total Pipeline. This code is an offshot out of the book Developing with MS CS 2002. What I basically need to get is the Ship To State so I can determine a tax value etc. CS 2007 seems to have a problem on the line: Shipments = orderform.[shipments] The Event Views states: "Wrong Numbr of Arguments or invalid Property Assignment" 'The following entry points are available (shown in VBScript format): function MSCSExecute(config, orderform, context, flags) Dim State Dim Shipments Dim TaxTotal Shipments = orderform.[shipments] For each Shipment in Shipments shippingAddressId = shipment.[shipping_address_id] shippingAddress = orderform.[Addresses].Value(s ...Show All
