Pwint's Q&A profile
Smart Device Development Invoking Beep on Pocket PC using C#
Hi, Am developing an application where i have to alert a Beep sound in a Intermec 700 series pocket pc built on Windows mobile 2003 OS. However i get a missing method exception at runtime saying "Can't find PInvoke Dll kernel32.dll". I tried using the playsound function as well. However i get some other dll cannot be invoked at runtime. I am pasting the code sample here Beep function [ DllImport ( "Kernel32.dll" )] [ return : MarshalAs ( UnmanagedType .Bool)] public static extern Boolean Beep( UInt32 frequency, UInt32 duration); Beep(750,300) PlaySound function [DllImport("winmm.dll", SetLastError = true, CallingConvention = CallingConvention.Winapi)] ...Show All
Visual Studio Please help me purchase Visual Studio (need to select the best package)
I am sorry if this is more of a technical support forum, but I really need some advice. I am a VB6 developer that is going to upgrade to VB.NET. We purchased Visual Studio 2002 enterprise (I believe that's what it is but I'm not sure lol) a long time ago but never used it. I now have been instructed that we WILL go to VB.net. and I have an application that I THINK is going to need Visual Studio 2005, but I'm not sure. (it's a driver from a vendor and the sample code looks like it was in VB 2005 ) I've tried using our VS2002 to open this vendor provided project and I get messages saying it's not a valid project. So, again, my boss says "just get the latest".. So I want to understand what the best package would be ...Show All
Visual Studio Express Editions Reading a web page...
I have been trying to read from a Web page inside of a WebBrowser control. I can read the entire page code, but can not specify certain areas of the page to read, like a text box. I would like to be able to read just the text box in my web page and have it write the context of the web page text box over to my application textBox... This is the closest I've been, but I can not get it to work at all. It will do the "if ()" event, which is just a message box, but it will not copy the web pages text box contents to my application textBox. <input name="txtName" type="text" id="txtName"> in order to get that element, I would do this: HtmlElement theTextBox = this.theWebBrowserCont ...Show All
Visual Studio Express Editions How to copy one worksheet to another WorkBook
Hi everyone, i am doing a project using the library Microsoft Excel 11.0 in C# and I am trying to copy one worksheet to another worksheet that is in a diferent Workbook. But I don’t know why it doesn’t works. So the problems is this. System.Runtime.InteropServices.COMException Exception from HRESULT: 0x800A03EC. My code is like this: System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture("en-US"); string Path = @"C:\Ejemplos excel\ejemplo 1.xls"; string savepath = "C:\\test3.xls"; Excel.Application app = new Excel.ApplicationClass(); app.UserControl = true; Excel.Workbook workBook = app.Workbooks.Open(Path, 0, t ...Show All
Windows Forms How to enable scroll bars for textbox when it is disabled?
Hi, I have a text box with Multiline property set to TRUE and with vertical scroll bars activated. Now when the text area is disabled and contains a lot of data, the scroll bar is also disabled. Hence the user isnt able to see the entire data. is there a way to fix this Hi Frank, The first method you suggested would be great.(Overiding the class). This is beacause i have a lot of such controls and hence setting the readonly ppty and doing other stuffs to make it look like disabled would be quite a lot of work.I actually tried this for a control and it worked. Incase you know how to do it, could you please help me with that ...Show All
Visual Studio Express Editions Drag and Drop from a ListBox into a TextBox
I have seen many examples where I can drag info from a text box to a textbox and drag into into a listbox, but I don't see an example on how to drag an item from a listbox into a textbox. Does anybody know if this can be easily done or point me in the right direction The MSFT drag-and-drop examples are a little over the top and hard to adapt into a real app. I reworked it to something realistic. Create a form and put a listbox and textbox on it. Set the textbox's AllowDrop property to True and add some items to the listbox. Then try this: Public Class Form1 Private dragItem As Integer Private Sub ListBox1_MouseMove(ByVal sender As Object, ByVal e As MouseEventArgs) Handles List ...Show All
Visual Studio 2008 (Pre-release) Corrupt Back Buffer?
I have a fairly complex app that suddenly has been displaying what looks like a corrupt back buffer... as if the backing store for the window is confused about it's size or something. When the app starts everything looks fine, but whenever i mouse over any control that changes state on mouse over, the whole rest of the window gets corrupted with what looks like the right image render with the wrong "width" if you know what i mean. There are no errors in the debug output while this happens... Here's what it looks like before I mouse over the button: http://i126.photobucket.com/albums/p110/xamlgeek/notcorrupt.png And here what it looks like after: http://i126.photobucket.com/albums/p110/xamlgeek/corrupt.png ...Show All
.NET Development remoting client not connecting to server
I have a remoting situation where everything works fine at our office - the remoting client connects with the remoting server, but at my client's site, it will not. We are using a workgroup here, no domain. At my client's site, on a domain managed by server2003, the client app won't connect to the server. The two workstations involved are (as far as I can determine) plain vanilla windows xp pro, with windows firewalls turned off. The logged-in users using each side are administrators on the domain. A test app that I wrote that uses genuine channels is able to connect. This is therefore a general question, what might be the problem, and how can I determine the problem This is a shrink-wrap product where I have to rebuild and ...Show All
Windows Live Developer Forums How to use the adCenter API from a JAVA application?
Hi, Does someone use the adcenter API from a JAVA application I am stuck at the first step - connection to the API - since I have no class named Administration after generating the JAVA classes from the WSDL files (using the Axis2 WSDL2Java plugin for eclipse)! I only have a AdmimistrationStub class which does not contain a method to set a ApiUserAuthHeader for instance... Any help is welcome! Thanks. Hello Ludo-R, Here is how it works on my side: AdministrationSoap _administrationService = new AdministrationLocator().getAdministrationSoap(); ((Stub) _administrationService).setHeader(NAMESPACE, "ApiUserAuthHeader", new ApiUserAuthHeader(USERNAME, PASSWORD, USERACCESSKEY)); ...Show All
Smart Device Development How can a web application call a window application?
1) Is it possible for a web application to call a window application out Somthing like a pop out window application. 2) After closing the pop out window application, the web application can read what is value that have passed in, in the window application 1. a web app calling an app on the client desktop or device, or on the webserver if you want to do something on the client desktop, you need to use an ActiveX control. on the server, yes, it's possible to call from the web app to another app, though typically not wise unless the app is designed for use in conjunction with a web server. 2. same question, on the client, or on the server what values exactly are you talking about -- user input ...Show All
Visual C# Why is there a PDB file in my projects Release folder?
This is probably a deployment question, but there doesn't seem to be a deployment section in .NET Development Forum. I thought the PDB file was only for debugging purposes, so why is there a PDB file in my bin\Release folder What are the (dis)advantages of including this file in deployment Most likely not. For sure, if you have any conditional compilation, it would not. I would *never* release a version of my product without storing matching PDBs in a safe place (i.e. a symbol server). Typically, I would not deploy the PDB file, however. If I need the symbols, I grab 'em from the symbol server... Best regards, Johan Stenberg ...Show All
Software Development for Windows Vista Connecting PushSource filter to WM ASF Writer
I'm having a bit of trouble finding out the correct way to connect up a PushSource filter, which pushes image frames down the graph, and the ASF writer filter to export a *.wmv. Trying to connect the output pin from my PushSource filter to the input pin ("video input 01") of the asf writer produces an error hr = pGraphExport->Connect(PushSourceOutPin, ASFVideoInPin); 0x80040217 which refers to CO_E_ACESINWRONGORDER I've also tried to connect them using: hr = pBuild->RenderStream(NULL, &MEDIATYPE_Video, pushSourceFilter, NULL, pASFWriter); But that doesn't work either. Do I need an intermediate filter between them or if someone has any other ideas EDIT: The media types from the output pin of the PushSource filter are: majortyp ...Show All
Windows Forms misbehaving scrollbar
hi, I'm using a DataGridView bound to a data table, and there are a couple more rows than will fit. I've set the ScrollBars property = vertical. Here is the hitch: When I am running attached to the VS2005 debugger, the scrollbar works fine in both debug and release. When detatched however (ie, just running the app alone) the scrollbar is only partially rendered -- part of it's space is "empty", showing the window behind. I can scroll by clicking in the DataGridView and using the mouse wheel, but the scrollbar is not visually updated at all. I have reviewed the DataGridView FAQ as well as the other postings on this site. Is this a known issue Anybody else seen this problem Thanks, Todd White. ...Show All
SQL Server Error while refreshing the Datasource View
This is the error im getting while refreshing the Data Source View. Microsoft.AnalysisServices.Design Object reference not set to an instance of an object. Did any one faced the same error. Thanks in Advance See reply on another post on the same matter: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=689195&SiteID=1 Edward Melomed. -- This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All
.NET Development Trouble catching exception
Hi, I am having this problem catching a exception in a try catch block as shown below try { DialogResult result; result = wizard.ShowDialog(); } catch (PackageCreationException e) { MessageBox.Show(e.Message, "Failed", MessageBoxButtons.OK, MessageBoxIcon.Warning); } now the wizard is a form which throws a PackageCreationException if it fails this works fine if it is run in the Visual Studio environment but when run as a standalone application this exception is not caught. I have been cracking my head over this. I can catch and handle exceptions fine every where else but here. Does anyone know why this happens ...Show All
