Answer Questions
annefa Get key of Listviewitem
Could anyone tell me, how i can get the key of a listviewitem Code: dim a as new collection a.items.add ("mykey", "my test string") 'Element with index 0 has key "mykey" msgbox (some_function_to_get_key_by_index(a, 0)) 'should output "mykey" now /Code So, what i need is the function to get the key when passing the index number. Can anyone help me Ok, i found out myself. So, for everyone also ...Show All
SpokaneDude Works in SP1 but not in SP2
My company has an ActiveX control on its CUSTOMER ONLY website that captures customers' pc information, such as OS, all hardwares and all the software installed. In another word, everything is captured. Customers will have to log into the website and allow the ActiveX control to be installed and run. It will automatically send the data back to the server and the server will save it into the database. This worked well in Windows XP Service Pac ...Show All
gugu Problem with my DATABASE
Ok i been studing this for a couple of days now and im gettin somewhere im finally able to make a connect what i did was i had to go in the sql manager and Enable the TCP Protocol also i had to use the data source manage and use the Connection string to connect when i connect now i get this is points to this bold part of my code If conn.State = ConnectionState.Open Then conn.Close() End If ConnectionString = &q ...Show All
Fairfield Additional files (readme.txt) in deployment
In Net 2003 there was a step in Deployment to indicate which additional (miscellaneous) project files were to be copied into the application path. Readme.txt files were shown as an example. How is this accomplished in Net 2005 If I have text files in the project that are notes for development only and text files that are needed by the user, NET 2003 enabled the selection of which ones to inc ...Show All
scubagrig Getting the directory "OpenFileDialog"
Hello I use "OpenFileDialog" and I chose a file. How can I get just the directory (file directory that I chose it) Thanks for assistance Use the GetDirectoryName method to extract of the directoryname of the filename property of the openfiledialog control. Dim sdirectory As String = System.IO.Path.GetDirectoryName(OpenFileDialog1.FileName) ...Show All
Tash Robinson cominication port
Dear MS Users I have a question about creation port between two computer to send and recieve data , how it is possible with VB or VB.Net . If we are talking communications between two computers using the RS232 communications port then the following thread System.IO.Ports.SerialPort class may be what you need to look at http://msdn2.microsoft.com/en-us/library/system.io.ports.serialport.aspx if its in the .NET framework ...Show All
BrandonHeidepriem overwriting in a text file
Hi! I have the following problem - I have a text file called Settings.txt in this form: some data... [path]c:\mypath\blahblah\ some more data... Now, I have to overwrite this text file so that it can contain another path. Simple, but complicated :) Of course, the path I need to insert is inserted from the application, and it's a string. Anyway, the result should be something like this: some data... [path]c:\new ...Show All
FranklinIssac Q: Installing a keyboard hook
This is actually one question, although a bit compound. Let me explain what I'm trying to do... I'm trying to write a program that will monitor all keys pressed by the user and save them to a text file for later review. I'm a complete novice here, but I know I need to use some form of hook to monitor the keypress event and return the value of the pressed key. Every example and tutorial I can find on hooks is for VB6, a different language, ...Show All
Zoheb Sait Transaction locking locks whole table!
Hi, I'm having a problem with transaction locking. I need to BeginTransaction, read each line from a file and insert it to a table, then either Rollback or Commit the txn if all the inserts work. This is how I'm declaring the BeginTransaction... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xConn = New SqlConnection("server=XXX;database=XXX;user id=xxx;password=xxx") xConn.Open() xConn.BeginTransaction(IsolationLevel.ReadCommitted) ~~~~~~~~ ...Show All
atoenne deploying .swf file
my application has these 2 procedures: 1. Private Sub btnHelp_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Help.ShowHelp(Me, "..\CYM HELP.chm") End Sub 2. Private Sub frmLogin_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim pro A ...Show All
Michael Koltachev - MSFT Open an excel file with 'auto_open' macro
I have a Visual Basic application that opens a specified excel file upon clicking a command button. This works fine using the following code: Private Sub cmdCurrent_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdCurrent.Click Dim pi As System.Diagnostics.ProcessStartInfo pi = New System.Diagnostics.ProcessStartInfo() & ...Show All
NoSuchThingAs2 OleDbDataAdapter does not update
Hi, I am having a a problem geting a data adapter to update a recordset. This is the steps. I added a connection and an data adapter to a form. The data source is a Access table. The table has 8 columns. I selected 2 of them and added a criteria to limit the number of rows selected. I then generate a dataset. In my code I call the .Fill method to populate the dataset. I iterate through ...Show All
RajPratapReddy Deploying by CD to Win98 with ClickOnce
As the title says, when I run the install of the ClickOnce CD, which includes Net Framework 2.0, on a Windows 98 system, the installation fails in the Net Framework part. The only clue I can find in the log is "Process exited with a code 1603." Would Net Framework care about Unicode during its install It seems that would be more of a factor in the application. ...Show All
Ankit Nagpal Add New Data Source for My SQL doesn't work
I have tried also installing and using the ODBC driver version 3.51 and the My SQL driver 3.1.8. None of these work. What do I have to do to add a new MY SQL data source Michael Sir, I have apologized if my frustration came through on being given the incorrect information over and over again. I must also point out that I had just joined the forum and did not realize at first that it was a public forum on the Internet I though ...Show All
Kiwi Samurai Coder Hiding MDI Maximize/Minimize Buttons
I have an MDI app, where all child windows are opened maximized. I don't want the users to have the ability to minimize or maximize them etc. Can anyone tell me how to disable the mid maximize/minimize buttons on the command bar that are created when the childform is maximized I can't work it out of the life of me, but it cant be that hard! Cheers Mc That didn't seem to work either :( or im a nub ( ...Show All
