Software Development Network Logo
  • Microsoft ISV
  • Visual Basic
  • Windows Vista
  • Visual C++
  • SQL Server
  • Visual FoxPro
  • SharePoint Products
  • VS Team System
  • Smart Devicet
  • .NET Development
  • Windows Forms
  • Audio and Video
  • Visual Studio
  • IE Development
  • Visual C#

Software Development Network >> wino's Q&A profile

wino

Member List

gpoland
frgu
Santos_123
jxl98c
hanguyen
VuaCorona
Jake52
webhead
Fusion54
Dietz
Jim Kansela
RubenPieters
rusty_bone
Tony Abraham
MrZap
AnaC
GrkEngineer
spshah
Kristian Jörgensen
erbere
Only Title

wino's Q&A profile

  • Software Development for Windows Vista Distributed Workflow using WF

    Hi, I have a sequential Workflow which consists of activities say, A B and C. I need to execute them in a distributed environment i.e. Activity A and C on Machine A and Activity B on Machine B. Is there a built in support to realize this in WF and if not, are there ways to realize this using the runtime services provided in WF Rgds Giri GiriKrishna, Yes you can implement such behavior using wait points(delay or handleexternalevent), where after activity A execution WF will be persisted. But you need to update your custom app specific store after completion of your activity A with this information that acitivity A has completed. After this as you said in your point 2), pass the instan ...Show All

  • Visual C# Text Box Display (Without building public interface)

    Hi I have 2 window forms. First form has a text box and a CmdButton. My second form has one text box. Both the text boxes are in Public modifier. My first form will show as default. My goal is whenever I type anything on Textbox1 (form1) and press command button, my first form should be closed and second form should be on visible, on that time, the contents which I typed on the First form’s text box will appear on the text box of my second form. Like this public void BtnSend_Click( object sender, EventArgs e) { SecondForm SF = new SecondForm(); SF.AllowDrop=true; SF.TextBox1.Text = This.TextBox1.Text; This.close(); SF.show(); SF.TextBox1.Focus(); ...Show All

  • Windows Forms Use existing columns in datagridview when binding?

    I'm binding a datagridview in runtime, but i would like to be able to design the columns in designer. Of course thats not possible since the designer does not know what columns it's bound to before the application is running. Is it possible to add unbound columns to the datagridview, and when setting the bindingsource in runtime, make it reuse existing columns if they have same name for instance I'm fairly sure that i have done this before, but i can't remember... If you specify columns with the designer, then the columns in fact exist as objects on the form at run-time and you can assign the database column-name into the DataPropertyName of the object, as in dgvColName.DataPropertyName="mydbcolumnna ...Show All

  • Visual Studio Team System Build Failu AssemblyInfo Task

    We've been trying to automate our builds and have done so successfully using a tool called 'Automaton' and everything has been working fine uptil now. One particular project is building locally but fails to do so on the team server. I don't recognize the error: =================================================================================== Build FAILED. C:\Program Files\MSBuild\SharedTeamBuild.Targets(137,3): error MSB4018: The "AssemblyInfo" task failed unexpectedly. C:\Program Files\MSBuild\SharedTeamBuild.Targets(137,3): error MSB4018: System.ArgumentException: An item with the same key has already been added. C:\Program Files\MSBuild\SharedTeamBuild.Targets(137,3): error MSB4018: at System.ThrowHelper.Thro ...Show All

  • Visual C++ String Table?

    Hello, I have created an empty project, and managed to write some code that will create an empty window... When I was experimenting, I thought that keeping ALL the text within the program in a string table (as a resource)... Would that be good Is that too inefficient Anyways this this the code for the window: =========code============== #include <afxwin.h> class MFC_Tutorial_Window :public CFrameWnd { public: MFC_Tutorial_Window() { Create(NULL,_T("Test Window")); } }; class MyApp :public CWinApp { MFC_Tutorial_Window *wnd; public: BOOL InitInstance() { wnd = new MFC_Tutorial_Window(); m_pMainWnd = wnd; m_pMainWnd->ShowWindow(SW_SHOW); return TRUE; } }; MyApp theApp ; =========code========== ...Show All

  • Visual Basic How to process Large Binary Files

    I'm trying to read Test.bin but I keep getting out-of-memory error The file size is >300MB. I can read smaller files well - but large files are a problem. Anyone has a good snippet fileContents = My .Computer.FileSystem.ReadAllBytes( "C:\Test.bin" ) Thanks. Using file1Reader As New FileStream ( FileName , FileMode . Open ) file1Reader . Seek (0, SeekOrigin . Begin ) Using file2Writer As New FileStream ( FileName2 , FileMode . Append ) While file1Reader . Position < file1Reader . Length - 1 file2Writer . WriteByte ( CType ( file1Reader . ReadByte , Byte )) End While End Using End Using ...Show All

  • SQL Server DrillThrough to Details.... Programming

    Hello, In the article on microsoft : http://msdn2.microsoft.com/en-us/library/aa175980(SQL.80).aspx It explains how to use ADOMD and ADODB to retreive detailed information for the cell returned from the analysis service. For example, detailed information (such as student ID, First name, last name.., etc) about the student that's in location Cincinnati. However, this example is quite old and doesn't apply to the new ADOMD.net (Microsoft.AnalysisServices.ADOMDClient). I tried to find any example on the web, but without success. Is there a way to retrieve underlying detailed information Any help is greatly appreciated. Thank you very much, Annie Finally, I found some resources online and w ...Show All

  • SQL Server SQL 2005 Sp2

    I would like to know the official release of SQL 2005 Sp2. Right now I can see SQL Server 2005 Service Pack 2 - Community Technology Preview (CTP) December 2006. Be patient, this is the last CTP, so it will not take long for the RTm version ;-) HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All

  • SQL Server Debugging DataFlow components

    I'm trying to do design time debugging of a dataflow component that I developed. I'm clearly doing something wrong, but I can't figure out what so I'm looking for suggestions if anyone has had a similar issue. The reason I think I doing the steps correctly is that I can debug other components. However, that set seems to be limited to those developed in C#. My component is developed in VB. Shouldn't matter, I wouldn't think. As a test I tried to debug other VB components from the SQL Server Samples and I have the same problem with them. Last one I tried was ChangeCaseVB. Though I just tried ChangeCaseVS and it didn't stop for me either... The problem I have is when I drop the controls onto the design surface in the second instance ...Show All

  • Windows Forms Appending rows to a bindingsource?

    Bascially, Im tring to catonate to a bindingsource. Im tring to display all rows from two different tables with a very similar table definition. So I want to load all rows from table a, then add all rows from table b ( using a query of course ). How can i do this thanks, -stellar Hi, You should use Merge method from DataTable or DataSet as per your need. Here is an example, private void MergeTwoTableAndDisplay() { SqlConnection conn = new SqlConnection (); conn.ConnectionString = "data source=localhost;initial catalog=Northwind;integrated security=SSPI;persist security info=False;packet size=4096" ; conn.Open(); SqlCommand cmd = ...Show All

  • Visual Studio 2008 (Pre-release) Closing WCF ServiceHost object ?

    Hi, I recently ran into a strange problem that I cannot find anything written about yet. When I run a sample console program with one simple WCF service and call the Close() method on the ServiceHost the following happens - if a WCF client has started a session by connecting and made at least one call to the service): 1) The ServiceHost method Close() gets stuck for about 10 seconds (! ) and then the call returns without any exceptions throw (and the service finally exits nicely). 2) On the client side - if a call to the contract is made while the server side is stuck in the Close method - I immediately get an unexpected System.ServiceModel.FaultException with the description: "The server was unable to process the request due ...Show All

  • Visual Studio Express Editions How to solve AccessViolationException when call matlab function usind C#?

    Hello, I've cretaed a Matlab function and managed to call it out in C++. But, when i convert my C++ to C#, there's an 'AccessViolationException Unhandled' error. Besides, i have successfully import the mclmcr.dll and my function dll in C# by using [DllImport(@"mclmcr70.dll")] method. Below is my C++ codes: [mxArray *imageName = NULL; imageName = mxCreateString("demo1.jpg"); // Call the function mlfVaanalysis(imageName, outputName); mxDestroyArray(imageName); imageName=NULL;] After converted to C#: [IntPtr imgName= VamDLL.mxCreateString("demo1.jpg"); VamDLL.mlfVaanalysis(imgName,outputName); VamDLL.mxDestroyArray(imgName);] where the VamDLL is the C# class i use [DllImport(@"mclmcr70.dll") ...Show All

  • Windows Forms Clicking between forms

    Hi, I' ve got two forms with buttons on both. I need to switch when I want between the forms. Now when I click on a button of another form. The Form gets first the focus. Then I need to click once more for the button_event. Is there a way to click just one time Grtz Annihil8 Question: do you see the button the parent form depress the first time you attempt to click it or does it simply change focus first, then you actually see it depress and the event fires on the 2nd try ...Show All

  • Visual C# Installing and starting Windows Service

    Maybe this isn't the right place for this question but, guess you could help, or let me know where to look. I have a problem with starting windows service. I wrote some small windows service program, compiled it, and that was OK. When I run InstallUtil tool like this : InstallUtil ff.exe it ends with these lines The Commit phase completed successfully. The transacted install has completed. which I guess is OK, but when I type NET START ff I get this error : The service name is invalid. What am I doing wrong here TNX! Glad you got it sorted. You might wish to set this thread as resolved. I am sure there is a self resolved somewhere. ...Show All

  • SQL Server SQL Server 2005 - Lock request time out period exceeded

    I have a updlock on a row using sp1. When I go to update that row in sp2 in the same transaction I get Lock request time out period exceeded. I do have Lock_timeout set to 0 in my sp2. This doesn't happen with SQL 2000. Its only occurring in SQL 2005. Why does lock request time out period is exceeding when I already have a updlock on the row. And it happens only in production environment - may be because of high traffic. Here are the details : Declare @opVar int Begin Tran Exec sp1 @opVar output If @opVar = 0 Begin Exec sp2 Commit End Else Rollback End sp1 : @opVar int output SET @opVar = 0 -- Bunch of selects with updLocks . . Select LastName From Employees (updLock) Where EmployeeId = 1 -- The where clause is indexed If LastName ...Show All

©2008 Software Development Network