jwellsntr's Q&A profile
Internet Explorer Development One Instance of Band Object
Is it possible I have a vertical band object that plays an mp3 file... If newwindow2 pops another window....when closed...it will also stop my mp3. I have code to stop the mp3 in my quit event. TIA It appears that they are javascript windows... If I use cancel = true....(NewWindow2 Event)...it will cancel the window. But I'd rather open it ...in the existing explorer window to avoid this new window "attaching" to the band object. Or just have one instance of my band object. ...Show All
Software Development for Windows Vista How to handle exceptions in a State Machine Worklow?
Hello, I'm trying to create a State Machine workflow, but I cannot get the exception handling working. In Sequential workflows the Visual Studio Workflow Designer has three icons in the lower left corner of the workflow where you can switch between the workflow and the "Fault Handler View". In a State Machine workflow, I'm missing these icons. I'm using the July CTP of the .NET Framework 3.0 and RC4 of the WF Extensions for Visual Studio. I tried a different way to handle exceptions, but with no luck: I added an EventDrivenActivity to my root-state (the whole state machine). On that EventDrivenActivity I right-clicked and chose "View Fault Handler". In that FaultHandlerView I placed one FaultHandlerActivity with ...Show All
Visual Studio Express Editions serial port - sending 8 bit problem
Hi, I have a problem with sending 8 bits through the serial port. I tried to sent chr(129) and I received in the other computer chr(63). when I sent chr(0) till chr(127) it work fine. from chr(128) till chr(255) some of them are fine and some of them I'm getting chr(63) I saw that if I sent 6 or 7 bits it's getting fine and the problem occur in the 8 bit sending. this is how I open the serial port:: --------------------------------------------- sp.PortName = "COM1" sp.ReadTimeout = 500 sp.DtrEnable = True sp.RtsEnable = True sp.BaudRate = 19200 sp.DataBits = 8 sp.StopBits = StopBits.One sp.Parity = Parity.None sp.Open() -------------------------------------------------------- ...Show All
Visual Studio Tools for Office Bundling Word addin with Outlook addin
I have an addin developed primarily with VSTO 2005. It has a ThisApplication module. I've got it installing and running successfully as a setup.exe. To manage toolbar artifacts in Word, where some of my Outlook addin elements are being displayed erroneously, I've developed a VSTO 2005 SE Word addin. It has a ThisAddin module. The Word addin creates two additional files, a .dll and a .dll.manifest. I've got the installer set to save everything to the same directory, and I've added the Word addin registry entries to the installer. It uses the same keyfile as the Outlook addin, and CAS is set to recognize the strongname with no consideration for version or filename. When I run these in the debugger, all is well. However, when I run t ...Show All
Visual Studio Express Editions Text box text formating
hi Everyone, i have a text in a textbox which is amount of something .i.e. 124565321. what i want is to put the commas like 124,565,321 it is just like the way excel do with the number. So please tell me how can i read char by char from the text box and append ' , ' between the char Thank you Take a look at the 'Format'-Function. You can either take a predefined format or you can create your own format Textbox1.text = Format([HereYourString],"D") This is just an example. ...Show All
SQL Server SQL Server 2005: Copying data from one db to another
I have to similar tables in two different databases. I need to copy the contents from table A in db A to table B in db B. I need both a "one time" method for doing it with the data, that already exists in A - and a "on the fly" method that can copy data whenever data in A is updated. Can anyone help Heidi, One more thing just occurred to me that I should have mentioned in my first post. There is another way to do your ad-hoc updates: Visual Studio Team Edition (or Suite) For Database Professionals can do data comparisons between two databases. HTH, Dale MCAD C#, MCSE, MCDBA ...Show All
Visual Studio Express Editions Confirm Deletion of a Record
I have a datagridview with a binding navigator with a delete button (the red X). I want a message box to appear when the user clicks on the delete button to confirm whether they in fact want to delete the record. I have the following code so far: Private Sub BindingNavigatorDeleteItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BindingNavigatorDeleteItem.Click If MsgBox( "Are you sure you want to delete selected record(s) " , MessageBoxButtons.OKCancel, "Confirm Delete" ) = Windows.Forms.DialogResult.Cancel Then End If End Sub As you can see, I do not have anything after the Then line because I can't figure out what code I need to cancel the event. Of course, th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XBox 360 Style Guide?
I was wondering if there was some sort of XBox 360 UI style guide available somewhere. At the very minimum, I was looking for information about what colors to use when creating textures to represent the gamepad buttons. I wanted to put things like, "Press (A) to Continue", or "(B) Back" in my UI screens and, short of loading up a screenshot of some game in an image editor and figuring out the various colors to use in the gradient by hand, I would like the colors to be correct. Thanks, That will definitely work for now, thanks for the link. However, it would be nice to have an official source for the information ... that way an artist could use the proper colors to create UI that fits the styleguide, but also fits ...Show All
Visual Basic How Do I Print a Text File directly form a Button
After hours wated I found out that the my.computer.printer.default printer has been rendered obsolete by microsoft. How can I print a Text File ; let's say : c:\MyTextFile.txt. ' I know this code does not work; but that's the idea i want to implement Private Sub Button7_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click Mytextfile.txt.print End Sub Thanks, Fernando Pena www.Latinsoft.net Im not sure rendered obsolete is an good description. It was never actually in any production release version of the product. It did make an appearance in some CTP/ Beta versions of the product but there were issues which caused problem ...Show All
Visual Studio Tools for Office Shimming add-in causes Excel to crash
Hi, I am developing an Excel add-in using C#/VS2005 with target platform Excel2003 (I have Excel 11.8033.8036), thus I extend IDTExtensibility2. I use ShimWizards2005 to create an unmanaged shim, and this seems to work fine. I use the Connect class as a loader for a middleware that connects Excel to a real-time back end. I encountered a rather curious problem when I tried to deploy this solution to a test machine, and after rather lengthy empirical testing, I found that; 1) If I use a Shim not mscoree, AND I show a non-modal form (Form.Show) then Excel crashes when I type in text in one of the TextBoxes of the form. 2) If I Don't use the shim OR I show a modal form (ShowDialog) before I show the non-modal form, it works fine. ...Show All
Visual Studio Express Editions How can I program to remove and install the USB device ?
Hi, I have two questions. First, I would like to program to remove the USB device. I want to remove the USB device only. I found some sample progrm to disable USB device, but I would not disable the device. Second, I would like to program to re-install the USB device without re-plug after I removed it. Could you please teach me which APIs and/or LIBs that I need Thanks ...Show All
Windows Forms windows login
Hello, is there any other means of authentication for the windows login... like inserting a compact flash or flopy. i am looking for a hardware input solution to windows login authentication. Probably by writting your own device driver you can find a solution to hardware based authentication, and I doubt that WinForms can provide any help for you. Which means your question is off-topic here. Try OSR Online's NTDEV newsgroups for questions about device drivers: http://www.osronline.com/page.cfm name=ListServer If you are starting, I suggest read the "Basics" section from OSR Online as well: http://www.osronline.com/section.cfm section=26 Regards, -chris OTP ...Show All
Visual Basic How can I send a form and its Subform (Datagrid) as a text file?
How to I print a Form and its subform as a Text file or send it to a text files then print the text file using a button Maybe using something like this Please be specific if you can. Thank you Private Sub Button2_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click 'True escribe cada linea debajo en el file the texto "test.txt"./SIN borrar el anterior ' False, prepara un nuevo archivo en cada oportunidad Dim objfile As New System.IO.StreamWriter( "c:\test.txt" , False ) 'Estoy usando este formulario para escribir al formato de texto en el archivo test.txt objfile.WriteLine( "PENA'S ACCOUNTING" ) objfile.WriteLine( "17 Canal Street" ) o ...Show All
Software Development for Windows Vista Architectu System.Transactions vs EnterpriseService
Hi, I'm a little bit confused with this new System.Transactions namespace. I was able to understand its propose, but it looks like it is the replacement for EnterpriseService (ServicedComponent) when all you want from COM+ is the transaction coordination. I'm about to start a new project and I have to decide how to architect the components. I'd like to know if is possible to use only single assemblies without all the COM+ stuffs (packages, registration, etc). My environment: .NET 2.0, Win2003, SQL 2000 and Oracle 9i. Thanks, David Hi, I thought you would also consider the bug ( or behavior ) of TransactionScope that does an unwanted promotion to distributed transaction mode while conne ...Show All
SQL Server SSIS Optimization
Hi There We have a package that simply reads a rows from a table and puts it into a flat file destination, this repeats through a for each loop. It is a very simple package. Problem is it takes 10 minutes to do a thousand rows. This is incradible slow, i have check indexes are fine, the table are only 1000 rows, but it seems to only read and write about 3 rows a second, this is crawling. Please how can we make tis faster, are there any obviously properties setting we should be checking We have started using SSIS alot around here, main problem is that all our packages seem very slow ! Whether they run in GUI debug or in a job in sql server (twice as fast but still slow). Anyone know some good resources on SSIS optimization Thanx ...Show All
