Talaro's Q&A profile
Windows Forms How do I get the active item in a listview?
I'm trying to make a method where I doubleclick on a listview item, and a button should then be added on a panel with the listview item's text Thanks for the answers. I did it this way; ListViewItem activeItem = new ListViewItem(); activeItem = listView1.SelectedItems[0]; MessageBox.Show(activeItem.Text); This only writes yout the first element in the list of selected ...Show All
Windows Forms ListView and subclassing
I have read two excellent articles on how to subclass .NET controls so that you can hook into the control’s WndProc, which is very helpful since you cannot access the WndProc directly for .NET Compact Framework controls. The links are: http://blog.opennetcf.org/ayakhnin/CategoryView.aspx category=ListView http://blogs.msdn.com/netcfteam/archive/2005/07/24/442616.aspx Sub-classing allows you to trap windows messages and provide handlers for them. I have run into a difficulty though when trying to request owner drawn messages. I have a listview control that I have sub-classed. The reason that I did this i ...Show All
Windows Forms Updating files with mage.exe doesn't work
I'm running a batch file to create a deployment with the following commands, between version's of my .exe I copy trailblz.exe into my \bin and 1 in 5.0.0.1\trailblz.exe.deploy, when I run the following batch everything appears to be fine, except when deploying, I get errors because the trailblz.exe.manfest still contains the old version of the .exe. Is it possible to update a file with the mage.exe command line utility the file I copied into the folder is now version: 5.0.2190.17640. Has anyone created a deployment plus version/patch using only the command utility If you follow the documentation you would end up with a few command like ...Show All
.NET Development How to dynamically load schema from a file and then assign to xmldocument and validate it
I am creating in memory xmldocument. Previously I were validating my file against a dtd file and then by the help of GetElementByID read my needed node. i.e. XmlDocumentType doctype = null; doctype = statementsDocument.CreateDocumentType("queries", null,statementsPath +"\\Validation.dtd", null); statementsDocument.AppendChild(doctype); nodeElem = statementsDocument.CreateElement("queries"); statementsDocument.AppendChild(nodeElem); .... Now I have created validate.xsd.I don't know how to validate through xsd file Sometime Later I want's validate from this validate.xsd then read my element by Get element ByID ...Show All
SQL Server Install Developer Edition & Express?
Hi: I have installed SQL 2005 Developer Edition and VS 2005. Do I need to also install SQL 2005 Express edition too My version of VS2005 is proffesional. I cannot seem to find SQL 2005 Developer Edition in the Server Explorer of VS2005. So I am wondering if I need to install SQL 2005 Express. Before I had SQL 2000 and MSDE installed with VS2003 and there was no problem. Thanks Thanks Blair. I will ask MS support when I am talking to them about my help files. I will post the anwser when I find it. Thanks again for your responses. ...Show All
Visual Basic Calculator
Hi. I'm new at this and am taking a class in VB.NET at the local college. The instructor has made a claim that a calculator can be programmed in VB in three lines of code. You are supposed to be able to input the numbers 0 through 9 into the label. When the operand is used the number is loaded into a variable and the second number is input until the calculate(=) button is clicked. The instructor said that it can be done, but hasn't explained how this is to be done. Does anyone have any idea how to do this Any help would be greatly appreciated. Thank you in advance. How is the operand entered I could make this happen in three lin ...Show All
Software Development for Windows Vista StateMachine Web Service
Does anyone have any examples of a state machine wrapped in a web service The Presenting WWF book briefly touches on the subject but doesn't give any substance. Jon Flanders wrote: That's mostly because the state machine chapter comes after the Web Service chapter ;-). But there isn't much to making one. Have a WebServiceReceive as the first activity inside of one of your states, and the right-click on the project node and select "Publish as Web Service". I'll post one on my blog later today. http://www.masteringbiztalk.com/ Hi Jon, were you able to create a sample project thanks ...Show All
.NET Development Disable copy paste to secure application
I'm new in programming. I want to know how can I disable copy paste option in a way that no one could copy my application. I want to secure my application that only I could copy and distribute the software I develop. None of the others could copy from the copy of original application. Ultimately, you cannot prevent a file or files from being copied and pasted to another location. However, you can develop various methods of copy protection - such as registration number encryption schemes and server-verification registration and other such methods. Thus, even if the application were copied, it would be useles ...Show All
SQL Server How do call Winzip from Execute Process Tasks?
Hi, In my ETL project, l need to extract rawdata using winzip, and the DOS command l use is c:\program files\Winzip\winzip32.exe -min -e c:\rawdata\test.zip c:\rawdata where -min for minimize and -e for extract, c:\rawdata\test.zip for source file and c:\rawdata for destination. It works fine by using DOS command. l configure the Execute Process Tasks with the following parameters, i.e. RequiredFullFileName : TRUE Executable : c:\program files\Winzip\winzip32.exe Arguments : -min -e WorkingDirectory : c:\program files\Winzip StandardInputVariable : User::gsRawFile StandardOutputVariable : User::gsDestDir Where ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Unmanaged DirectX to solve dependancies?
Hi, I'm back again! My application is now working fine and converting textures as it should, but I've just sent it to one of the texture guys to give it a run through and it crashes out with an error of "File or assembly name Microsoft.DirectX.Direct3D, or one of its dependecies, was not found." As I've come to understand it, that means that the DirectX install that they have isn't enough and that the also need to install the MDX package. Considering my app is only around 25KB (zipped) when I don't include the DevIL libraries, forcing people to download a further 4.odd MB of MDX installer is just crazy. I've tried searching for unmanaged Dir ...Show All
Windows Forms Getting My User Controls and Components into Crystal
I've created a User Control for a Code 128 barcode that works great in WebForms and WinForms but I don't know how to get it into a Crystal Report. Any suggestions OK, if not Crystal Reports, can someone point me to a resource that tells me how to create controls for any kind of printed document (i.e., Cyrstal or ActiveReports). ...Show All
Windows Forms Forms Design View
I have only just started 'messing about' with Visual Basic 2005 Express and I'm hoping this is just a dumb new starter error! I created a project following one of the user guides in the help area. It was a form with a text box and a button, nothing fancy. However, I am unable to now view the form in design view to resize it, move the button, etc. According to help, I should be able to double-click on the form name in the solution explorer but this just brings up a blank code page. Any pointers gratefully received as I don't fancy restarting the project just so to reposition a button! ;-) Thank you. ...Show All
Smart Device Development How to make setup file for a visual studio 2005 smartcab project
Dear All, I developed an application for windows mobile 5.0 based smartphone and also created smartcab(.CAB) project for installation on a device. I used visual studio 2005 .net. I want to create a setup.exe to install it on a real device. Please let me know how to create a setup.exe for the smartcab(.CAB) project. Thankx. Vs2005 only has the ability to make .CAB files. There will be a whitepaper published on how to package the .INF files and .CAB files soon. In the meantime please review http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnppcgen/html/netcfdeployment.asp and http://www.codeproject.com/netcf/PackagingAndD ...Show All
Software Development for Windows Vista Lost connection to the network
I am using a Windows XP Pro workstation at work. This workstation loses connection the network every two hours. The PC has been replaced the ethernet cable has been replaced at my end and the end at the switch. The power cable and all other cables have also been replaced. We are using novell, I think that there is a problem with the novell log in with the person who sits at my workstation during the day. The I.T. department really isn't doing much but, I do have admin privileges because I'm working help desk support for cablevision customers. If anyone has any ideas for me please respond. ...Show All
Visual Studio Express Editions Using Module
Hello, I am working on a program that uses a lot of subs and functions, so I wanted to bring those together in 1 single module file. Now I did this (see code), but I noticed that it compiles the module with my app, and it doesn't compile it to an dll as I want to. Anyone here knows how to solve this because it is important that I can 'update' the file just by replacing my module dll by a new one. Here is the code I'm using: Module modules Public Sub SetSettings() E nd Sub Public Sub GetSettings() End Sub Public Sub cfu( ByVal flag As Integer ) Select Case flag Case 0 Try My .Computer.Network.DownloadFile( ...Show All
