doveshack's Q&A profile
Visual Studio Express Editions Set two methods to the same button_click
I have a problem to set two methods to the same button_click: One method is called 'grabber' and grab a picture from a video stream and display it to a picture box. The other method simply save the picture from the picture box. They both work if i use two buttons. If a click to grab the picture and then click to save it...no problem . If I use 1 button to do both methods (first grab and then save) it doesnt work , and visual shuts the window form and a yellow arrow appears on line saving command line. If someone had this problem before or just know the answer to my problem, a little help would be great. Thank you. private void Detect_Edge_Click( object sender, EventArgs e) { grabber(); //saver ...Show All
Windows Live Developer Forums Creating MSN&Windows Messanger add-in
Hello, I want to develop messenger add-in and I am not sure what to use. My main goal is to be able to run this add-in not only on MSN Messenger but also on Windows Messenger. I tried to use Activity SDK but is not running on Windows Messenger. I also tried to write some assembly using VS 2005 as described here http://blogs.msdn.com/katieblanch/archive/2006/05/11/595765.aspx but the article says that I need to edit some registry key - HKEY_CURRENT_USER\Software\Microsoft\MSNMessenger\AddInFeatureEnabled But unfortunately I wasn't able to find this key. I looked every where. So my question is: Is there any way that I can develop my application in a way that is going to make it possible to run on Windows Messenger as well as M ...Show All
Visual C# Need to make my own COM server with C#
Hi. I've tried to search, but search results on word COM at microsoft.com are amazing. Tell me please, where can I find any tutorial or example to build COM server in C# (.NET 2.0) I've found this http://my.execpc.com/~gopalan/dotnet/classic_com/com.net_quoteserver.html but it not helps to me. A COM server is simply a COM class that provides services to another component (the COM client). You create a C# COM class by creating a normal class and attributing it with at least ComVisible . You should also use Guid to specify a unique identifier. Furthermore you should create a COM-visible interface to expose to COM. The class must implement this interface and the interface can not expose non-CO ...Show All
SQL Server Copy Database Wizard - Error on Execute SQL Server Agent job
I am trying to copy a database from our company's external SQL Server(production) to our local SQL Server(development). The Copy Database wizard fails on the step "Execute SQL Server Agent Job". The log gives me the following info... Could this have to do anything with the SQL Server Agent not being able run the SSIS package created by the Copy Database Wizard Please advise.. #Fields: event,computer,operator,source,sourceid,executionid,starttime,endtime,datacode,databytes,message OnPreValidate,SERVERDEV,NT AUTHORITY\SYSTEM,CDW_MARATHONSQLHA_SERVERDEV_SQL2005_5,{D5E55BA7-919C-42F7-BA6D-8ACA0078417E},{EE201379-F597-48E8-9481-1C759E0F56D4},8/3/2006 8:31:43 AM,8/3/2006 8:31:43 AM,0,0x,(null) OnPreValidate,SERVERDEV,NT AUTHOR ...Show All
SharePoint Products and Technologies SD 2007 and Ajax-Style Interactivity
A general question to the of SharePoint Designer 2007 user community: Can SD 2007 be used to create websites with rich user experiences like that shown on the updated Southwest Airlines site ( http://www.southwest.com/ ) Look at either the Book A Flight or View or Change Your Flight widgets along the right-hand side. Is this beyond the scope of SD 2007's design capabilities I'm a business user, not a developer but is it possible given some custom Ajax development SD 2007 is meant for Customization in MOSS, though while development over MOSS platform - yes you can use AJAX Control toolkit. Follow the links below to embed AJAX in your MOSS web application. ~ http://www.devexpert.net/blog/pt/blog/Embedding-Ajax-Control-To ...Show All
Visual C++ Deletion using ADO is time consuming
Hello, everybody. Deleting a record from a .mdb DB using ADO (not ADO.NET), takes approx. 5 sec. This is a 100,000 records DB (500 B each record). Anybody has a clue, why I'm afraid the question is outside the scope of this forum. The C++ General forum deals with the VC++ 2005 IDE, libraries, setup, debugger, samples and documentation -- but not the use of all libraries and technologies. While most borderline issues are answered, and followed up, a great deal of these off topic questions are simply not given their fair attention. The reason is that many of the people here are specialized in their field, which may not be the same as that of the question. Seeing as this post has gone by unanswered, I encourage you to direc ...Show All
.NET Development Move File
how to rename and move file from one location to another. i m using rename(oldpath , newpath) function but it is giving an error "system.argumentException: Procedure call or argument is not valid can any buddy rectify Try System.IO.File.Move() instead. ...Show All
Visual Studio Express Editions isNumeric
I have been having trouble getting this to work. It is in the Visual Basic express edition. It is a miles per gallon calculator but I can't seem to figure out the isNumeric funtion. I need to make sure the input from two text boxes are are numbers.If a letter is typed a message box or the label should instruct the user to enter a number Dim mpg As Decimal Dim miles As Decimal Dim gallons As Decimal miles = Val(txtMiles.Text) gallons = Val(txtGallons.Text) If IsNumeric(miles) = False Or IsNumeric(gallons) = False Then lblMpg.Text = ( "Please Enter A Number" ) Exit Sub Else mpg = miles / gallons lblMpg.Text = FormatNumber(mpg, 1) & ( " Miles Per Gallon." ...Show All
Visual Studio Tools for Office multiline smart tags possible?
Hello, Is it possible to have a Word smart tag spanning few lines with VSTO 2005, like [client name] My regexp for that is ( s)\[( 'tag'[^\[]+ )\], it works ok on a test string, but when using it with VSTO, the tag doesn't get parsed. Still with a single line text [client name], it gets parsed OK. Is this a Word 2003 or VSTO limitation Thanks, Andrew Nosenko Hi Andrew, Thanks for the great answer! A good news is, I still can use line breaks produced with Shift-Enter (analogue of HTML's <BR> tag). That works! Cheers, Andrew ...Show All
Visual Studio 2008 (Pre-release) Share screen between xbap Page and standalone Window
We're building a standalone application using Window (not Page). However, a small subset of the application needs to be available to a larger user base via an xbap (i.e., Page) application. How can I effectively share code between the two applications I have a screen built with a DockPanel that I've copied between the two applications just to see how portable the code is. I can get it to display in either a Page or a Window. I believe using some of the techniques described in the Flexible Application template , I can determine if I'm running in an xbap or standlone for some minor behavior changes. At first I thought I could just put it in an assembly and access it from either application. However, the problem is that one is Page and ...Show All
SQL Server Can not remotely connect to instance of sql server 2000
I had a big problem on connecting sqlserver remotely from other machines on the network ..... From any computer in the network i wanna to register the instance of the sqlserver from the enterprise manager ..... the server instance doesn't appear within the available sqlserver list (the servername which equal to my machine is the only one that appear) ..... when i manualy write the servername\alias manually and i choose the connection type and then i write sqlserver username and password and then finish he give a message to me that access denied or sql server doesn't exist ... !! by the way from the local machine i registered the local instance of sqlserver successfully and successfully i access the Databases ..... To be noted: ...Show All
Visual Studio Express Editions Save layout
Hello! How can i save my layout in Form1 I am using VB 2005 Express. Form1 contains about 150 TextBoxes, 50 Labels and 1 Rich TextBox. I want to save the layout as a Word document with Boderstyle around TextBoxes and Labels. Does anyone have a code example Can't get it to work! Grateful for any help. OK, the following thread will determine how to save the form to a jpg file - which would be step 1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=434448&SiteID=1 The second step would be to create a word document with this image http://msdn2.microsoft.com/en-us/library/78whx7s6.aspx Contains all the code you need for automating creating word documents and a ...Show All
SQL Server Incorrect syntax near '?' when trying to use parameters
I must be missing something simple. I have the following code that is not too complicated. I am trying to read a session variable (referenced in the <selectparameters> section) and use it to filter my SELECT statement. The select statement runs fine and displays everything in the gridview control until I put the "WHERE PackagingItemNo = " clause in. Then I get the error message in the title. I've tried using quotes, brackets, etc. to see if there's some syntax issue I'm missing here but I'm lost. I see numerous code examples that look identical to mine. What am I missing I'm mostly an Oracle and PL/SQL type so I'm a little lost here... < asp : GridView ID ="GridView1" ...Show All
Visual Basic Please Help me in converting VB6 DataGrid usage to VB2005 DataGridView.
Hi, I am a newbie VB6 programmer looking for assistance in converting the following code into VB2005 code. No matter what I seem to do I cannot get an equivalent that will run using VB2005. I have to stay with the existing file format due to legacy issues. I would like to read and write randomly as shown. I'm also confused on how to get the data into the VB2005 DataGridView. Any help would be greatly appreciated. Thanks PaulZ --- A snippet of my VB6 code ---- Private Type DiskFileLayout dAccount As Integer dActivity As String * 10 dCurrency As Integer dDate As Date dTotal As Currency dContainers As Double dPrice As Currency dCommission As Currency dNote As String * 33 ...Show All
Smart Device Development extending smart device project in visual studio 2005
I am currently working on a project in which I have to extend visual studio 2005 and I need to create a project structure which is similar to that of the pocket pc and smartphones i.e., I need to support the flat forms with the skins and also the flat controls. This project will allow application developers to create a new type of application using custom designers and custom controls. I have not found any documentation on how I can extend the smartphone form designers. I tried using a myform class derived from windows ce form but when it was actually rendered on the design surface, it showed up as a normal windows form. So please provide me some help regarding how I can extend the windows ce form desi ...Show All
