Answer Questions
adface 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
bostontech2 reading text from a document and displaying it
I have TextBox1 (to enter what you want to search), TextBox2 (to display the results), and Button1 (when you press it, it does the whole process thing). I was given this to go by: ================================================================== Theres a couple of steps in a possible approach here. One is to be able to read the contents of a file. If your using VB Express / 2 ...Show All
Batikit UDP.Send exception issue
Hi, This hopefully is extremely easy, but here we must have a mental block or something as we are battling a recurring Exception issue in the system Dll on this one line of simple code that sends UDP messages We only recently noticed this exeption as these were not being caught in the Application error handler in the application, but rather in the System.dll. Each time we send a UDP message we generate this exception and it is a perform ...Show All
wavebouncer Remotely enabling remote desktop with system.management problem
Please help by looking over this. I'm getting the error "System.UnauthorizedAccessException: Cannot Write to the Registry Key" I'm not sure that the path to the Terminal Server key is correct. I have admin rights and write access to the key. Thanks very much for any assistance (I'm a beginner if you can't tell..) Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ...Show All
Frank Szendzielarz Can't Make A New WorkBook In Excel From VB2005
When I try to make a new workbook from excel it doesn't work and returning the following error: System.Runtime.InteropServices.COMException was unhandled ErrorCode=-2147319784 Message="Old format or invalid type library. (Exception from HRESULT: 0x80028018 (TYPE_E_INVDATAREAD))" Source="Microsoft.Office.Interop.Excel" StackTrace: at Microsoft.Office.Interop.Excel.Workbooks.Add(O ...Show All
Noah Hambayi Config file on Class Library ??
Got a solution with 3 projects, a Web Service, a WinForms (MyUI), and a Class Library (Foo). MyUI calls methods in the DLL that access the web service. The DLL has project config settings that store the URL of the web service. I compile the solution and it compiles all 3 projects. In the DLL's bin dir it puts the foo.dll and foo.dll.config files. However, in the WinForms bin dir it puts the MyUI.exe, MyUI.exe.config, and foo.dll; it doesn't i ...Show All
MadAboutC# Where to look to find the list of all Visual Basic events...
I have a looked in books as well as on-line and I can't find a list of all the possible events for Visual Basic and Windows Forms. Thanks, Claude. Different classes have different events...you can get a list of a given class' events from MSDN, for example, here's the events for the Form class: http://msdn2.microsoft.com/en-us/library/td1s43eb(VS.80).aspx Hope that helps, Jonathan Aneja ...Show All
John Colasante Howto control one form class from another?
Hi there! Well i am writing an application, in which a splash screen appears at app startup. but the problem is that when e.g. from a SUB MAIN() i execute the lines: Sub Main() dim splash as new form1 dim mainform as new form2 splash.show main.show End Sub when this Subroutine ends the whole application ends. please tell me how can i show and close the splash screen at ...Show All
Roland86 Saving User Settings
I trying to figure out the best way to save user data / preferences for a program... For example, let's say that I want to save the personal information of my user (i.e. Name, Address, Phone Number, etc...) so that they only have to type it in once. What is the best way to do this Currently I am importing a simple text file with the information upon loading the program. If the user ever decides to change that information then the text file is ...Show All
5thCav error message when trying to run compiled programs on a particular computer
I've used VB.Net 2003 to write a number of programs, and have compiled them successfully. So far they have worked on all computers I have installed them on, except for my husband's. Oddly, they used to run on his computer also, until he reinstalled Windows XP (SP2). We've tried multiple uninstalls/reinstalls of the .Net Framework, as well as of all my programs. The error message he gets when he tries to run them is: Ap ...Show All
shb00000 IE browser help object
I am new to vb .net and am trying to create a simple widows form that will display a message each time Internet Explorer is launched. I have the form create but don't know how to save as a dll file or register it. Can anyone help me find some sample code or instrucitons that will help Thank you, ReneeC, so much for taking the time to respond to my question. You have been helpful. I have created and built the Class library which created th ...Show All
Alexxey cannot set .papersize.rawkind
Can someone please help with this http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=321014&SiteID=1 I have spent many hours on this and it seems there is no one in the other vb forumns that can help with this issue Many Thanks in advanced Ron sorted http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=321014&SiteID=1 ...Show All
storm80y Notify Icon not responding to right clicks in my windows service.
I created a windows service using the Walkthough found on msdn. It works fine, but I have two problems. 1. I created a NotifyIcon, which shows up in the System Tray fine, and if I hover over it, it shows the name of my service, but it doesn't seem to respond to right clicks. I have a contextmenustrip that is never shown. What do I need to do to make the notifyIcon respond to right clicks and pop up the menu 2. The walkthrough creates a ser ...Show All
jdkulkarni Object Oriented question
This seems like there is a really basic answer... I have a collection of objects (lets say Products) inside another object (say Order). The product object has a function called GetTax(). Inside that function it needs to reference a property of its parent object, Order. How can I access a property of a containing object In the below sample, the MyParent object is pseudo-code... Imports System.Collections.Generic Pu ...Show All
Niels Flensted Copy and paste
Ok. i have been trying to figure out how to copy and paste text in my VB programs. And it just does not want to work (copy and cut don't). any one have a sample or somthing I want to find the hilighted text and deal with it accordingly when i copy or cut. well it is a MDI parent application. and the data that could be copied is just plan text. from one of many possible texts fields. seeing as this is a data ent ...Show All
