papadi's Q&A profile
Visual Studio 2008 (Pre-release) confussed with reliable messaging and transactions support...
Hello from Seville, I am developing a smart client, I have the tipical queue for sending messages to a server using Indigo. When the server receives the messages the database does some tasks. Here there is something that i haven't found in the net: Is there a way to dequeue the message in the client only when the server did things with the database correctly without using distributed transactions In other words, reliable messaging provides us a way to acomplish this Thanks in regards uooooooo, i should talk about that queue and bad communications. The project consists in clients and one server. Clients are smart-client, so users can work with it although there is no communications. The idea is to use a queue for send ...Show All
Visual C# Time
Okay, so I am trying to make an alarm clock program for computer, to familiarize myself with C#. What I need help with, is I have the dateTimePicker tool for setting the alarm, and I have a label for displaying the current time. My coding problem, as it were, is that I cannot figure out how to make the label display the current time, or how to get my program to play the music when the time comes around. I already have the ability to open a file, and have set the file filters for WAV, WMA, MP3, MP4, and MIDI files. so, my program can open files, but of course, at this moment, it cannot use them. Any help would be greatly appreciated. hmmmm, maybe I should check ALL the properties before I ask. Than ...Show All
Visual Studio Tools for Office Can't deploy VSTO 2005 Project
Hi All, I've created Outlook 2003 Add On project in VS 2005. I've followed this guide: http://msdn.microsoft.com/library/default.asp url=/library/en-us/odc_vsto2005_ta/html/OfficeVSTOWindowsInstallerWalkthrough.asp I tried to install it on three different computers in my network (2 Windows 2003 and 1 Windows XP) and the Add On worked without any problem. When I went to the customer I got the attached error http://img182.imageshack.us/img182/1341/errvstofi7.jpg (I tried to install on Windows 2003) In all computers I used Office 2003 SP1 and I was logged as Administrator. I use the "SetSecurity" project in order to run "Caspol". p.s In the begining of the guide I created a "strong nam ...Show All
Windows Forms Concurrency violation at update
Hi I had a working vs 2003 application with access backend. I added a couple fields in a table in access db and then to allow user to have access to these fields via app I did the following; 1. Regenerated the data adapter sqls by running the data adapter wizard and pasting the resulting code into my app. 2. Deleted the data adapter correspond to the relevant access table from the dataset and re-dragged the table to dataset to have the new fields included in the resulting data adapter. 3. Used below code to bind the windows form field to the underlying table field; db = New System.Windows.Forms.Binding("Text", ds, "tblClients.MyField") txtMyField.DataBindings.Add(db) Now when I run the app I can view t ...Show All
Windows Forms how to find the tan inverse in c#
hi, Anyone tell me how to find the tan inverse in C#. thanks gqlu not arc tangent. tan (45 degree ) = 1 tan -1(1)= 45 i want the fuction tan-1 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Effect on Texture
me have create a simple 2D game with Direct3D.Sprite class. me try to make some effect on the Texture like brightness, tint, grow and drop shadow. is there any solution or tutorial thank a lot You could take a look at the samples on MDXInfo.com I hope this helps. Take care. ...Show All
Windows Forms tool windows
I am writing an application for my company and I would like to have a tool window similar to the solution explorer in VS that remains docked on the left side of the main application form. So far, I have created a very simple form called ToolWindowForm and set it's FormBorderStyle to SizeableToolWindow and in the Shown event of the main window I have the following code: private void ManagementStudioForm_Shown( object sender, EventArgs e) { ToolsWindowForm toolsWindow = new ToolsWindowForm (); toolsWindow.MdiParent = this ; toolsWindow.Dock = DockStyle .Left; toolsWindow.Show(); } The window is displayed fine and docked the ...Show All
Visual Studio Team System Synchronizing workitems with 3rd-party defect tracker?
Hello, my previous post on date-time queries was reall part of a bigger picture. I'd like to use TFS workitems as my 'master' issue tracker, but I want to mirror the workitems to another defect tracker. (Initially, in a read-only fashion). I'd like the synchronization to be 'real-time', or at least quick (within minutes). * One solution would be to have TFS raise a flag (and have the other app whatching the flag) or itself trigger the synching program whenever a workitem is saved. * Another solution would be to have an agent frequently polling TFS for changes, asking "has any workitem been saved since last time I checked ". Will TFS support any of these methods Any suggestions are welcome. thanks, /Tomas ...Show All
SQL Server Login to SQL Server Express using Command Prompt
How can I login to SQL Server Express instance(localhost\SqlExpress) using command prompt so that I can query database. Is there any alternative GUI tool for SQL Server Express Manager (I think Microsoft has discontinued SQL Server Express Manager). I prefer using Command Prompt. I am using WindowsXP Professional. You can download Management Studio Express from http://msdn.microsoft.com/vstudio/express/sql/download/ . If you want to use the command line, use SQLCmd as I suggested above. Once you've connected using SQLCmd, you will need to write T-SQL statements to create Logins and Users for the ASPNET user. You should be able to find information about creating Logins and Users in the Books Online at http://msdn2.microsoft.com R ...Show All
Visual C# Problem to Build a project in C#
Hi friends! I have this problem when i try build a project. Error Message Missing partial modifier on declaration of type 'type'; another partial declaration of this type exists But i can't fix the problem :( Woah! What happened there Did you copy and paste some code from a .NET 1.1 project into a .NET 2.0 project or something You've got a bizarre mixture of the two different styles, and that's why it's not compiling. In particular, you seem to have copied the contents of the Formu.Designer.cs file into the Formu.cs file. Here's what you need to fix it. First, do what a few posters have already told you to do: make sure both class definitions have the 'partial' keyword present. Then, you've got an InitializeCompone ...Show All
Visual C++ Calling Microsoft Project from a C++ program
From within a C++ program, I want to run MS Project and open a schedule file. I have included all the classes from the Microsoft Project type library into my C++ project. I am trying to use the class CMSProject for a MS Project file. When I try to #include CMSProject.h I find that it will not compile because there is no definition of class Application . It is not in any of the files belonging to the classes that I have imported from the Microsoft Project type library. Can someone tell me where can I get a definition of it from Or am I going about this the wrong way For such issues, please use the newsgroups at http://msdn.microsoft.com/newsgroups . Folks there will be more familiar with related issues. OTP Thanks ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Alpha Level Question?
Hi all, Below is my programming, ======================= renderer.Device.RenderState.SourceBlend = Blend.SourceAlpha; renderer.Device.RenderState.DestinationBlend = Blend.DestinationAlpha; renderer.Device.RenderState.AlphaBlendEnable = true; ======================= i can use this code set my material Alpha. How to set Alpha level For Example, iwant set alpha 70%. Best Regards, That is not the proper way actually. Frame buffer alpha blending is done with this formula: Final Color = ObjectColor * SourceBlendFactor + PixelColor * DestinationBlendFactor Blend.DestinationAlpha means read the alpha value from the existing pixel on the frame buffer, which is not the right option for setting material translucency.. ...Show All
Visual Basic How to open PDF documents in a RichtextBox ?
I know that the only way to open pdf documents in rtb is the use COM .. but few questions I shud add reference to my project .. but with which dll file .. and do i need Acrobat Reader or Acrobat Professional A few lines code wud help. Right-click the toolbar and select Choose Items. Click on the COM components tab and click Browse. Navigate to C:\Program Files\Adobe\Acrobat 7.0\ActiveX\AcroPDF.dll The interface is documented here... I hope it works for you, it was a bit flakey when I played with it. As an alternative, consider displaying the PDF in a WebBrowser control. ...Show All
Visual C# creating an object associated to a form and implementing a collection of forms of the same type
Hi, 1/When we have an faccount form for example, but the account has an accountEntity object (unique). Do we declare the accountEntity as a property of the form faccount or are we supposed to do it the other way:accountEntity has a form property : faccount 2/ Another question pls: If the MDI allows us to show several account forms. how do we declare those accounts within the MDI so we can keep track of them and show them according the user's selection. Do we declare an accounts collection object within the MDI or an araylist of type faccount or how do we implement that exactly. Thank you Thanks a lot Michael . Can you give me a small implementation for those 2 cases. Or tell me if this is right: 1/ in the form class, do i do this: ...Show All
Visual Basic Starting from Sub Main - not on the menu
In VB6 there was a, in my opinion, very desirable option of starting from Sub Main. That option never apears on the properties of any of my projects, only Form1. I'm now looking at a walkthrough of something on MSDN, that references that option as though it exists in VS2005. Is it possible that I have some other option turned off somewhere that would turn this off Project + properties, Application tab, turn off "Enable application framework". ...Show All
