Answer Questions
Max Vernon How to ensure win app stops
I am developing a windows app in vb.net. This app acts like a sort of controller for different apps. It also starts new thread to monitor other apps. When it exits it is suppose to close all the apps it started. I use fom_Closing to perform clean up tasks. I have found that when I close the form application Process still keep running. When I open task manager I can see it running. Also if u want to introduce time delay between 2 tasks i ...Show All
Psilo DataGrid Cell Value ???Not Yet
Dear Team i want to capture the Pk value into a variable taken from textbox to put it in a certain Cell in a datagrid its width = 0 cause it is a forign key Dear Man I am realy thank you very much for your help....and i hope to be Patient with me ......i tried to use the code but i discuverd that i need a certain cell like a=me.datagrid1.current ...Show All
The Big Cat How I can know What is the user who start certain process?
How I can know What is the user who start certain process I want to retrive the user name who started a certain process just like what appears in the windows task manager in the user name column how I can get this thank you all Thank You I'll Try That You need to use the wmi to get the processes and owners. There is an example on the vb-tips website . ...Show All
RixVB Urgent Help: How to import dll correctly and use it in VB.Net
Hi, I am new to VB.Net 2003, and encountering a problem about how to import dll file. I created a dll file from Matlab by using the COM builder. Matlab creates a dll file, say interpUSGS.dll. Then I create a new project under VB. Under the Project menu, I click Add Reference, and browse the location of interpUSGS.dll, adding to the Project Reference. In my VB IDE, I worte the code like this: ----------------------------------------------------- ...Show All
Eytan Seidman 2005 .Net Nightmare
As a visB programmer who has been happily coding very successful applications for many years, I have been shocked at the verbose incomprehensibility of the .net framework. Where is the wonderful Basic language that has served so well for so long Is there a way to disable all the garbage in VisB 2005 in order to just write simple single thread applications in the Visual Basic language I have been unable to get even the simplest microsoft SDK exa ...Show All
Ronan_g rock paper scissors game help
Hello, I have a game I am designing and I am having problems getting my code. I have declared Wins and Losses in my global variables and am attempting to call those in a select case as show in my code. However it is not working properly, If you run the game you will see that the different message boxes do not show the correct information in them. I have a ttached the game for anyone who would like to help. How do I, at the end of my splash scree ...Show All
www.etramway.com Launch URL from Windows Service
Hi all, Anyone knows how I can launch the browser from a Windows service I tried with S ystem.Diagnostics.Process.Start(URL), but it is not working. Thanks for your reply Renee. I tried several variations but all the time I just get "The system cannot find the file specified" when I tried to launch an URL, e.g. just "http://localhost". Launching a .txt or other documents are fine. I set IE to my default brows ...Show All
Jody Crozier MemoryStream not expandable
Hi there, I am trying to read an image from a network stream as a byte() and then convert it back to an image. I am reading the image in packets and each packet is 4096 long. I am then trying to send the downloaded packets to a memory stream, which is later to be converted back to an image. I have the following code: Dim mybytearray(4096) As Byte Dim ms As System.IO.MemoryStream Do While tcpClient.Connected = Tru ...Show All
KWFANG how to concatenate 'expressionbuilder' with Bind or Eval?
I'm populating a detailsview grid from an objectdatasource control. One of the fields needs to have a string concatenated to the front of it. I just discovered the 'expressionbuilder' to grab data from the web.config file but can't seem to get the <%$ to concatenate with <%# below: Ideally, I would like the following syntax in HTML view: <asp:Image ID="Image1" runat="server" ImageUrl=' <%$ AppSettings: pkgImages %> <%# Bind("sz ...Show All
Nikolay S Filling text box with KeyUp strokes
I'm trying to get the keyboard letter values to appear in a textbox as the user types, but I get some other values that don't make sense. Here's my code: Private Sub txtRootPath_KeyUp( ByVal sender As Object , ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtRootPath.KeyUp Dim newKey As String Dim sPath As String = txtRootPath.Text & e.KeyCode.ToString lblPath.Text = Path.Combine(sPath, txtHTM ...Show All
sephiroth23 Sockets... HEEEELLPPP! :)
Hi, everybody. I'm busy porting over a Telnet server application from VB6 to VB.net. But I've hit two MAJOR hurdles. The first thing I noticed with VB.net is that there is no Winsock control. Damn. So now I've got to use the System.Net.Sockets. OK. But I also need to use Threading apparently. I've found this one hell of a learning curve and was just wondering if somebody could post an example of a simple TCP/IP server that listens on a port, acc ...Show All
huangyao2005 Converting String to double?
OK i have a plain text file in a rich text box. This plain text file contains for the most part just text, but it has several chunks of data which are apparently stored as doubles For Example this string here: 33333oH@33333oH@26/01/06 I happen to know that the date field is a date of payment, and apparently, the data before this is the amount paid. The original program i am trying to read was written in quickbasic 7. I don't k ...Show All
Alex Luetjen How to set the recordset of a classic ADODC (Data control) in .NET
rst = goLists.Facilities 'function returns an open recordset Debug.Print( CStr (rst.Collect( "ID" ))) 'this ensure the recordset is really open! me.adoData.Recordset = rst 'error message occurs here Why does this give an error message saying that I need to initialize using the new keyword (or else check for Null before setting the object) I have tried different variations of syntax, including putting this line first: Me . ...Show All
bbleech Database Connection
Hi everyone, I would like to ask whether can I put my database in different folder with my program I mean like in asp.net we can jus write a code such as "Data Source=" + Server.MapPath("Pets/Pets.mdb")); Then when the program runs, it can search for the respective database in the computer. this we do not have to specifies the whole real address of the database location. Are you writing a ASP.NET application or ...Show All
Jeremy Adamich Delay using nesting in For Next Loop
I am new to Visual Basic and am using the 2005 Express Edition. Can anyone please tell me why the following code does not produce 10 Beeps with a short delay between each one. For Int As Integer = 1 To 10 For Tim As Integer = 1 To 50 Beep() Next Tim Next Int Be careful ...Show All
