I'm trying to develop a program structure in very broad terms. At this point, the Forms used do nothing but call other Forms and allow for their closure. After startup and initialization activities, I want the user to set up options and run the program. The program can be run again (click one button) and again with the same options, or (click another), the options can be changed for the next and subsequent runs. Clicking a third button will cause shutdown activities to be performed.
Sounds pretty simple. However, I get the options form the first time, but subsequent ShowDialog calls cause the form to pop up (I detected a Load and an Activated call) for an instant, then disappear, and the program rolls on without permitting option selection, even though the key variable NewSetup is definitely True.
Code:
Public Class RunMain
<STAThread()> _
Shared Sub Main()
I have a program in vb express 2008 which I would like to publish in a little more professional manner than provided in the standard vb express package. I would at least like to include a "Terms of Use" document the user must agree to before installing the program. I have dovnloaded and installed web developer, c# and vs 2008. Do any of these include a professional installer? If not are there any free installer packages available? I am 72 and live on a limited budget so I cannot aford an expensive package for one program.
i am trying to develop a program that will get all the processes in the task manager and from there, i'll get a specific application so that i will restart it. the problem is this:
I can call that specific application yet before restarting it i shall manipulate it's pause button before i can actually kill it,.HOw do i "click" the pause button on the called application? Can you help me with the code that i need to use?
I'm having problems with a stock program that I'm developing. It's a program that adds a quantity of products to a field called stock quantity in a table named Stocks. In the part of adding a quantity inserted by the user it's ok, it works, but it adds to all fields in the table.I need that the user may choose also the product Id of the product to add, in order to prevent the situation above.
I'm starting to work through Murach's ASP.Net 4 Web programming with vb2010.
Do I leave the 2010 studio default collection of settings from Visual Basic Development to Web Development or Web Development(Code Only) in order to follow the examples and learn to develop web pages? And are there other things I should do to set up the enviornment for persuing this.
As I need a program to develop an ebook, I wrote one. But perhaps I am re-inventing the wheel. Does such a program already exist in visual basic, that is to say is it available in the forums? If not I am willing to upload it.
I'm trying to develop a simple program which will show a form with a listbox and a button. The buttom will allow a listbox entry to be selected and close the form. The entry will them be sent to the previous open application.
For example, I could select my postcode from the listbox and have it sent to the currently selected field in my internet browser. Or the current date to my text editor.[code]...
I am expert in Modbus communication and I have designed the Modbus pre-programmed remote controls ,, Now I want to interface some Modbus RTU slave devices to my own developed application ...
I am much familiar with the Modbus RTU syntax and I've tried following to initiate the the master query but I am getting initial 3 bytes ok ,, rest of the bytes are changing the values on COM port so slave is not responding to my command ..
I want to develop Modbus RTU Master program ..I am expert in Modbus communication and I have designed the Modbus pre-programmed remote controls ,, Now I want to interface some Modbus RTU slave devices to my own developed application ... and looking for kind guidance ..I am much familiar with the Modbus RTU syntax and I've tried following to initiate the the master query but I am getting initial 3 bytes ok ,, rest of them are changing the values on COM port so slave is not responding to my command ..
****************************** Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button10.Click Dim BYTE1 As Byte = 1 Dim BYTE2 As Byte = 6
I am trying to develop a program that will allow a user to automatically log into a website with a username and password and click login, which works fine, However after clicking login i am trying to have the pragram click another button to submit a file. This is where the program bombs. This secondclick will work in a separate event but not in the same event as the login.
Is it possible to develop a program in vb.net which can find the location of vehicle in a cctv camera range?if possible ,what are the APIs and technologies used for it?can any one suggest any link or the steps involved in this process...?
For my application, I want to have one form ("Action Form") that (1) remains visible, (2) reports progress in a scrolling text box and (3) receives user input via clicks to its command buttons and menus.While the program runs, I need to show some results in different forms in two other windows (let's call them "Graphic Form" and "Accounting Form"), updating these as we run. You might call these Read-Only windows.
That's it. Can't be all that difficult, right? I did it in VB6 with no problems.However, in my .NET attempts, once I update information on either of the other forms, my Action Form loses focus and I can't get it back. It's there and it keeps updating, but its menus and buttons don't respond any more.
Is it possible to manage three (or more) Forms in this fashion. Maybe the other windows should be Frames or something instead of Forms, but I can't see how to do that.(It may be because I'm using "Sleep" to slow the updates to readability on the other forms. Maybe I should be using a timer.)
EDIT:It seems to work so long as I take care to update the Action Form last of all, after the others, so maybe this is a "Never Mind."However, if anyone has any ideas on how best to implement Read Only Windows for auxiliary displays, I'd like to hear them
Having read this page, I can't believe that VB.Net has such a terrible performance when it comes to I/O.Is this still true today? How does the .Net Framework 2.0 perform in terms of I/O (that's the version I'm targeting)?
I'm trying to convert data from a vb6 application. Using get and put I saved a structure to a file in vb6. I'm now trying to read it into a vb.net class using BinaryReader.[code]...
I am using VS2008 and VB.NET. Can someone provide or point me to info on how to add a Terms and Conditions form to an installation? The user would have to accept in order for the installation to continue or else cancel installation.
How do you convert a fraction to the lowest available fraction. If you type in 500/1000, the program will automaticly convert to 1/2. Is there any mathematical way to do this?
I'm trying to implement for the first time a library. With the event sub "client_TickPrice" I want to update a textbox. However nothing happens to my form when the "UpdateLast" sub is called from there.? The code was originally inside a Module (not a class like now), and set up as a console application. Probably there is a problem with the way I wrap my code, i.e. use of classes etc. This program is supposed to receive realtime stock/futures price data. Is it still a good way to start this code with the form, or should I make some type of console application?
Public Class Form1 Dim prog As New Program Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load prog.Main() [Code] .....
I'm trying to write a short program to for work but I'm not quite sure how to structure the code. This is what I currently have;[v I'm pity sure this is majority the wrong way to structure it as at crashes with the IF/ELSE field going up to around 50000, but it does work (if a little sluggishly) when set to 5000.[code].....
I'm using Visual Basic 2006 and i'm a newbie so excuse me if my question is not complete. I basically have a picturebox, in which i am displaying an image from a webcam. Now the user clicks on two points on the image and i need to get the distance between the two points in terms of the number of pixels. I did think of and try the pythagorean theorem, but i'm confused as to what units the answer turns out in. Is it in terms of inches? or pixels? Do i need to set the Scale Mode propety to pixels to get it in pixels? And if so, is there a way to get the number of pixels per inch? Sorry for asking so many questions but i've been reading other forums and i'm confused!
I'm in the process of moving from ADO.NET to Linq. The application is a directory search program to look people up. The users are allowed to type the search criteria into a single textbox. They can separate each term with a space, or wrap a phrase in quotes such as "park place" to indicate that it is one term.
Behind the scenes the data comes from a XML file that has about 90,000 records in it and is about 65 megs. I load the data into a DataTable and then use the .Select method with a SQL query to perform the searches. The query I pass is built from the search terms the user passed. I split the string from the textbox into an array using a regular expression that will split everything into a separate element that has a space in it. However if there are quotes around a phrase, that becomes it's own element in the array. I then end up with a single dimension array with x number of elements, which I iterate over to build a long query.
I then build the search expression below:
query = query & _ "((userid LIKE '" & tempstr & "%') OR " & _ "(nickname LIKE '" & tempstr & "%') OR " & _