hotsauce's Q&A profile
Visual Basic datagrid select
I have a combobox that fill with primary key and a datagrid that show the primary key and other data I want when i choose a value in combobox, the resulting row in the datagrid will be selected.......how can i do that thank you... Private Sub [Your ComboBox Name]_SelectedIndexChanged( _ ByVal sender As System.Object, ByVal e As System.EventArgs) _ Handles [Your ComboBox Name] .SelectedIndexChanged [Your DataGrid Name].UnSelect( [Your DataGrid Name].CurrentRowIndex) [Your DataGrid Name].Select(sender.SelectedIndex) End Sub ' Your DataGrid and ComboBox would just need to be in the same order and the same size. ...Show All
Software Development for Windows Vista how to pass data between two activites
Hi, I am new to WF. In my workflow scenario, there are more than one activity. I want to pass data from one activity to next activity. Is it possible in WF If so, could you please tell me the way to pass data between two activities. Thanks & Regards, Chakri. There is an ActivityBind sample that ships with the Windows SDK and shows precisely this. You can download the Windows SDK here: http://www.microsoft.com/downloads/details.aspx FamilyId=C2B1E300-F358-4523-B479-F53D234CDCCF&displaylang=en Chapter 3 from Dharma Shukla and Bob Schmidt's book also explains Activity Execution that you may find useful: http://www.dharmashukla.com/EWF/Shukla%20Schmidt_ch03.pdf If you still have que ...Show All
.NET Development dll files
where can i get detailed information about infrastructure of a .net dll file, and how runtime loads and starts to execute it. I would disassemble both binaries to IL assembler source files with Ildasm.exe, then compare the source using a textual diff tool (like WInDiff). ...Show All
Visual Studio Express Editions Get text from a Textbox.
This is going to sound like a very stupid problem. I'm trying to get a string out of the textbox (using Windows.forms) then parse that string into a double. double payment = Double .Parse(ConsoleApplication1. Program .Monthly.Text. ) I cant seem to get it to work.. and what I get is that the string I'm trying to parse is being passed in the inccorect format. Help however be sure that the value you are trying to retrieve is actually a double value otherwise you will get an exception. you could use the TryParse method... double result = -1; if (Double.TryParse(this.textBox1.Text, out result)) { //value was converted/parsed successfully } ...Show All
Visual Studio Tools for Office Add-in doesn't show up in Outlook after msi-install, but shows up in Outlook while developing, why?
Hi, I have made an Outlook 2003 add-in in VS 2005 using VSTO 2005. When developing, both building debug and release builds, the add-in automagically shows up in Outlook when starting Outlook. The problem though is that when I (after removing the add-in in Outlook) run the add-in-installer (the, by VS2005, autogenerated msi-file) everything seems ok and the add-in is even listed under Add/Remove programs but when I start Outlook it doesn't show and when I go look for it under add-ins it's not there. This is on the same computer so all prerequisites like .Net 2.0, Office 2003 Pro PIAs and VSTOR are all there. Under the add-in:s setup-project the following detected dependencies are shown: Microsoft .NET Framework Interop.ADODB.dll Microsoft.O ...Show All
SQL Server Not Allowing Remote Connections
TITLE: Connect to Database Engine ------------------------------ Cannot connect to FRI-0503\SQLEXPRESS. ------------------------------ ADDITIONAL INFORMATION: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.) (Microsoft SQL Server, Error: 10061) For help, click: http://go.microsoft.com/fwlink ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=10061&LinkId=20476 ------------------------------ BUTTONS: OK ----------------------- ...Show All
Microsoft ISV Community Center Forums Automatically attaching a txt file to a sent form
I've got a form put together in Outlook 2k3 for our helpdesk. We use the Cerberus ticketing system, so having a form the customer can fill out and automatically e-mail to Cerberus just made sense. The only problem is, Cerberus doesn't see the fields from the form. (Click here to see a screenshot of the Form in question) There are two options I'm seeing that would fix this problem, unfortunately I'm not knowledgeable enough in VBA to do either. I'm hoping you all could help. Here's my current script for the page: Sub Sysinfo_Click Item.GetInspector.ModifiedFormPages("Message").Controls("IPaddress").Text = GetIP() Item.GetInspector.ModifiedFormPages("Message").Controls("Hostname").Text = WshNetw ...Show All
Visual Studio Team System Strange Error - TF53005 Unable to retrieve the Team Foundation Server installed UI culture
I am at a loss as to what to do to fix this error in the event log. Has anyone seen this I seem to find no real search results on it either. Any help would be appreciated. TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 7/13/2006 7:56:08 PM Machine: SPOBMIBO01 Application Domain: /LM/W3SVC/3/Root/services-1-127972941651875000 Assembly: Microsoft.TeamFoundation.Server, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727 Process Details: Process Name: w3wp Process Id: 1544 Thread Id: 3544 Account name: domain/username & ...Show All
.NET Development Help with TripleDES and RC2 cryptography.
I have 2 questions - 1) I get the following Exception when I try to decrypt data using TripleDES. - "An unhandled exception of type 'System.Security.Cryptography.CryptographicException' occurred in mscorlib.dll Additional information: Specified initialization vector (IV) does not match the block size for this algorithm." How do I make things right The code is as follows - /* Provides TripleDES encryption and decryption using classes in the .net Framework 1.1 */ public class TripleDES_Cryptography { public static string Encrypt(string plaintext, string key, string IV) { TripleDES des3 = new TripleDESCryptoServiceProvider(); des3.Mode = CipherMode.CBC; byte[] by_plaintext = Encoding.ASCII.Ge ...Show All
.NET Development Error 80110428 on installing an application proxy
server: win2003 com+ application: our own client: xpsp2 The COM+ application is a C# ServicedComponents running as server. The component runs fine on both server and client when installed directly. What we need is to have our client machines have proxy to the application running on the server. steps to replicate: Install the application on the server with a standard deployment package installing a server application COM+ and registering it on the host's gac. Test the application by starting and stopping it Export the application using the COM+ application export wizard specifying a proxy application Copy the MSI file to the client and run the COM+ application import wizard. The error occurred dialog appears "Compo ...Show All
Visual Studio 2008 (Pre-release) Using UserControl's
Hi, I just noticed that the WinFX Extensions for Visual Studio adds a template for creating a WPF UserControl. So in order to experiment with it I created a new UserControl. Lets say the UserControl class has a namespace myNamespace , and the class itself is called myUserControl I then went into my main windows XAML and added a mapping element above the root like so... < Mapping XmlNamespace="ns" ClrNamespace="myNamespace" > After that I added an extra attribute to the main Window node like so... xmlns:ns="ns" So basically my main windows XAML looks like... < Mapping XmlNamespace="uc" ClrNamespace="myNamespace" > <Window x:Class="MyWindow.Window1" xmlns= ...Show All
Software Development for Windows Vista CardSpace Without Certificate
Hi. I would like to make a website with a cardspace authentification, but I don't want to use certificates. I want a single autenticacion mode, like any forum or community. My question is, if i can do it and how . Somebody know if there is a sample in the web because i have not been able to find anything. Thanks. Hi Caleb, Apologies for not replying to your excellent response yesterday, but I wanted to give it some time and thought. I'm aware that I've been hijacking threads slightly to try and establish some debate on this issue, but none of the threads I've started have attracted responses, so I'm forced to adopt other methods. I'd like to deal, if I may, with Amadrias 's point first of all. ...Show All
Visual Studio 2008 (Pre-release) Discover running services on the local pc/network using service name or interface?
Is that possible Thereby the services shouldn't be restricted to be deployed as web services but may also be "WCF" services with e.g. the NetNamedPipeBinding. My usage scenario for this functionality: I would like to configure in a workflow (WWF) some wcf service calls. Though service endpoint information shouldn't be neccessarily provided at design time or in config files but rather should this info discovered at runtime using a service interface or an unique name. This would give a lot of service deployment flexibility e.g. services may be transparently moved around different hosts. I looked already through this forum and the wcf help but could not find the answer. I'm new to wcf so I'm sorry if this question was already heav ...Show All
Visual C++ Changing a constant with a pointer?
[code] #include <cstdio> using namespace std; int main( void ) { FILE *out; fopen_s(&out, "test.out" , "w" ); const int a = 100; *( int *)(&a) = 200; fprintf(out, "%d %d\n" , a, *( int *)(&a)); fclose(out); return 0; } [/code] The code above prints 100 200 . Is that normal If so, why does it do that dgfilimon wrote: const int a = 100; *( int *)(&a) = 200; fprintf(out, "%d %d\n" , a, *( int *)(&a)); The reason for the same is the constant values will be replaced by the compiler at compile time . So whenever compiler sees “a” it will be replace ...Show All
Visual Studio Express Editions popuplist
Hi everybody. How do I retrieve all the data from a popuplist (I know the handle of the popuplist) and write it to a file. I don't have access to the program that owns the popuplist. Thanks i am sorry. it is a combobox ...Show All
