Sergio Silva's Q&A profile
Smart Device Development Problem in using OpenNetCF soundplayer class
please help me. i want to play a .wav file added to my solution's resources (file name is "start.wav" ). i used the following code-- private void button1_Click(object sender, EventArgs e) { System.IO.Stream mystream = Properties.Resources.start; OpenNETCF.Media.SoundPlayer myplayer = new OpenNETCF.Media.SoundPlayer(); myplayer.Stream = mystream; myplayer.Play(); } but error messase i get is " Cannot implicitly convert type 'byte[]' to 'System.IO.Stream" . is there any method to play a resource sound file. please help I can guess that "start" variable is a byte array, and you are trying to assign a ...Show All
Visual Studio Tools for Office Code execution problem?
I have a VSTO 2003 solution that is giving me a problem when deploying. If I point the workbook to an assembly on a network share as follows... _AssemblyLocation0 = \\servername\directory\subdirectory _AssemblyName0 = assemblyname The solution works just fine. However, when I change from using a shared network location to an http address as follows... _AssemblyLocation0 = http:// servername/directory/subdirectory _AssemblyName0 = assemblyname The Excel workbook opens just fine, does not display any errors, but the code does not execute. I have granted Full Trust to both the network share and the http address i ...Show All
.NET Development About strong naming
I am a beginner in strong naming. I have read that strong naming is done in command mode when the assemblies are ready to deploy. However, I have an application which involves over 80 assemblies. What are the proper steps to do strong naming for the application What I will going to do is: 1. In VS.NET, switch to 'Release' mode and compile. 2. Use command window in VS.NET, do strong naming one be one. Am I right If I need to recompile the solution frequently, should I repeat the whole procedure That seem very troublesome... Thanks Hi Kennon, Thats correct. If you strong name an assembl ...Show All
Windows Forms Changing Flexgrid to Datagrid during Migration from vb to vb.net
I have used a flexgrid in one of my vb application and i have migrated the same to vs2005.But it is not able to migrate flexgrid. I would like to know how do i change the flexgrid control to datagrid or any other equivalent control. Can anybody please help me. Thanks ...Show All
Visual Studio Team System TFS Crash
Hi all! We are using single server installation of TFS beta2. Last week it behave just fine, today, when we return from the weekend we found it in the state of total crash. Any atempt to connect to server from any client results in exception: Event Type: Information Event Source: ASP.NET 2.0.50215.0 Event Category: Web Event Event ID: 1309 Date: 8/28/2005 Time: 6:28:08 PM User: N/A Computer: RAFUL2 Description: Event code: 3005 Event message: An unhandled exception has occurred. Event time: 8/28/2005 6:28:08 PM Event time (UTC): 8/28/2005 3:28:08 PM Event ID: 87b1be80a15647fa815cf2568 ...Show All
Windows Forms Word Viewer
Not sure if this is the right forum for this but here goes; I was wondering if anyone knew how(if possible) I could store bits and peaces of a word document(including images, in a blob for example) in a database and then fetch it from there and view/edit in a winform, not in ms word. Hello, I am using Visual C++.Net 2003. I would like to run Msword 2003 as a part of the windows form. I added a reference to Ms word 11.0 object library. It gets updated in the solution Explorer but when I try to code Microsoft::Office::, there is no other option except Core i.e. Microsoft::Office::Core; How ...Show All
Visual Studio Security diff between ReportViewer & ReportManager
I can access my reports fine with the web browser, but via the viewer control I get a 401 error. I know the control is using SOAP and a web service as opposed to the straight http of the - where should I check for permissions Thanks Are you setting the Credentials property on the generated SOAP proxy If not, I believe it will use anonymous access by default. ...Show All
Windows Forms How would I create a control that looks like this?
Hi. Here is an example of something I want to create graphically: Now I think I can handle the content (i.e. get a datagrid and populate it :P) but want im after is information on how I would create the item. It needs to have the little button in the right to collapse and expand the 'mini-form', it needs to have the heading (table name) and it needs to be drag-able. Another criteria is this has to be able to go into a form... specifically PART of a form (so im not sure if i can inherit from the windows form class as i only know of normal forms and mdi forms, not something inbetween!). So how do I go about doing soemthing like this Ive cr ...Show All
Windows Forms Synchronize scrolling in 2 richTextBoxes in C#
Dear All , I have 02 richTextBoxes in a form and there is a correspondance in the content of one RTB to another. So I need to synchronize the scrolling of these 02 RTB s. Hope anyone of you all may know a way to do this in C#. Thanking in advance. Hi! I tried both versions, each of them has a drawback. The first version includes scrolling with mouse wheel, but (you have said) the confinement is the triggering at SB_ENDSCROLL. Your new version fixed this, but you can not scroll the rtb2 through mouse wheel anymore. Furthermore if you click at the scrollbar up/down arrows at rtb1 I've got ...Show All
SQL Server Seperate SQL 2K Publisher, SQL2K Distributor, SQL2K Subscriber
Hi, We are about to alter our replication architecture from SQL 2K publisher/SQL 2K5 distributor/subscriber to SQL 2K publisher, seperate SQL 2K distributor and SQL 2K5 subscriber. The subscriptions will be pulled from the distributor and pushed to the subscriber. Basically, all the work will be done by the distributor (in the hope of improving performance). Has anyone had any experience of a similar architecture All SQL servers are running with the latest service packs. While the configuration you proposed (2KPub\2KDist\2K5Sub) is supported, you will not benefit fr ...Show All
Visual C++ Problem with friend overloaded operators in Vicual C++ .NET 2003
I have a problem when overloading the operator << in some versions of visual C++ and not others. The code attached builds without error and warning in VC++ 6 and express beta 1, while it fails in .NET 2003. Errors are : test_friend.cpp(15): error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'tutu' (or there is no acceptable conversion) test_friend.cpp(20): error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'int' (or there is no acceptable conversion) If you put the definition of the friend operators outside of the class, or if you comment the member op ...Show All
Visual C++ Can symbols from an .exe file be imported into a DLL?
I would like to create an executable which uses multiple DLLs. I want to load the DLL's manually depending on execution. There is common code which resides in the .exe, which I would like to use in the DLLs. When I try and compile the DLLs I get unresolved symbol errors during the link. Is there a way for me to share the common code, residing in the .exe, with the DLLs Thanks. Omar Canon You could pass a function pointer to the DLL but that's kinda nasty. There shouldn't be a reason why this common code couldn't live a DLL, what kind of linker errors are you getting ...Show All
.NET Development XmlDocument and Namespaces
Hello all ! I need to generate an Xml File like this : < xml version="1.0" > < mso-application progid="Excel.Sheet" > <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html=" http://www.w3.org/TR/REC-html40 "> <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office" /> <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel" /> < ...Show All
Visual Basic Collapsible Text Outline...?
When I collapse a #Region area the collapsed text shows the entire region name inside of an outline box. When a sub or function gets collapsed, it cuts off most of the right side of the text and shows the leftmost x characters inside the outline box with ... (three dots). Anyone know a way to show the whole line of the sub or function. Actually I don't care for the outline box. Thanks, dbProgrammer No, I do not think that you can do that but maybe XML comments could help you. If you type ''' before the Sub or Function you should get the following XML Comment added ''' <summary> ''' ' ...Show All
Windows Forms TableLayout help needed in setting up.
I am trying a simple Usercontrol and I would like to use the tableLayoutPanel,but Cannot work it out how to make the various Columns resize accordingly. the control (Folder Browser Locator) consists of (Label- text- Button) You can already immagine how it should work The label should be allowed to autosize and it's column grow accordingly but fixed otherwise The text should grow in length only if the user tries to resize the control The button should stay the same size all the time but move along with the rest I have added a TableLayoutPanel with 3 columns 1 Column (label) 2 column (textBox) 3 column (button ) I have trie ...Show All
