Create A VB Application That Allows Engineers To Sign Out Equipment?
Jun 5, 2011
I'm a fairly new programmer so you'll have to bear with me on this. Basically, I have a database with 3 tables, Engineers, Equipment and Signouts. I want to create a VB application that allows engineers to sign out equipment. I have all of the forms setup the way I want, and have followed a tutorial online for how to connect to the database with the MySQL .NET Connector. I have 3 forms, and have a class with all of my global variables in it. All I have managed to thus far, is define connStr as a global variable, and use it to run a connection test when the main form starts up.
My next job is to query for information about an engineer based on their ID. I have a text input box, and a button to click, and then way to display the retreived information on the next page. I have setup variables for the returned values to be put against, so they can be displayed on the form.
My question is, when the button is clicked, how do I make the application query the database based on the ID, and then use the information it returns (Engineers ID, Name and Telephone Number) to assign those values to the variables? Also, on a side note, instead of using forms, I want to use panels, is there a sub routine similar to form_load for using panels when they are shown/hidden?
Im importing text from a .txt file using streamreader and when it reads in a � sign it converts it to the square symbol for a unknown character! If i put in a $ sign it imports it correctly!
In our VB .NET application, we use "c0" and "c2" format strings to display currency values all over the place.
Recently, users have had issues where these currency values don't show up correctly with a $ sign, but with some weird symbol, ¤. Through wikipedia, I found out it's the generic currency symbol: http://en.wikipedia.org/wiki/Currency_(typography)
I've seen the problem happen on my machine ONCE, and haven't been able to recreate it since. It went away when I restarted the application. In fact, as soon as I saw the problem, I started another instance of the application but $ signs showed up fine in that second instance.
I had decided to make my academic project in digital signer ,so i surf net for it and got a sample. its main aims is ti sign only one pdf..so i decided to make the application to sign all pdf which r there in a folder,i had done all the changes, i but i come accross an error which i am not able to solve.
I've been having some trouble wrapping my head around how to link the 4 tables I have together. I'm creating a database to store all of our equipment in. The four tables are Equipment, Service (Stores dates that a piece of equipment has been worked on), Invoice (Stores invoice and warranty dates) and Peripheral table (Stores a unique ID for each type of peripheral we have in the database. Monitor (1), mouse (2), keyboard (3) etc)
I have an application that receives incoming data from a Radio Equipment through a hardware modem. How can I replace the hardware modem? Could I use the PC Sound Card in place of the modem?
I making an "sign in" application for checking email address with username and password as input.As output it will show me msgbox with content "Your email and password are correct!" or Not.There is a code:
Code: Imports System.Net.Mail Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click[code].....
I making an "sign in" application for checking email address with username and password as input.As output it will show me msgbox with content "Your email and password are correct!" or Not.
I making an "sign in" application for checking email address with username and password from textboxes,and receiving message do username and password are correct or not.There is a code & image:
Imports System.Net.Mail Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'Declare variables
Hello I want to create a windows form application program that can create games something like Gamemaker or Klik & Play (butt less advanced) with D&D "Drag and Drop" events and actions.
I understand this is possible but I am not sure where to start. I want to either buy or create an application that captures a resource from another application so that I can fire off another application. In other words, I want to start an application (which I did not write) that is database driven so the form has a number of text boxes. When someone keys something into that field I want to be able to validate the value, outside of the original application. For instance, if the program asks for a zipcode and it doesn't validate the zipcode, I'd like to trap for that and write something that would validate it. At this point I don't think I'd have to send anything back to the textbox/resource.
I use the code below to get driver file sign info, it works well
Imports System.Security.Cryptography.X509Certificates Dim cert As X509Certificate2 = New X509Certificate2("C:WindowsSystem32drivers cpip.sys") MessageBox.Show(cert.Subject)
But if want to get EXE file signed info like
Dim cert As X509Certificate2 = New X509Certificate2("C:WindowsSystem32winlogon.exe")
MessageBox.Show(cert.Subject)
the error occured "Cannot find the requested object"
I want to digitally sign my exe. I have a .p12 file as digital certificate.I used signtool.exe for signing the exe. After signing the exe the properties > digital Signature tab is showing the right name but when I am doing double click on exe then the "open file-Security warning" window is still showing unknown publisher.How can I show right name of publisher in "open file-Security Warning" window.
I recently upgraded to VB 2010 Express (from 2008), and I have a problem using the debugger. When I move the mouse pointer over an array variable, I only can get the value for the current index, and not values for all indices, as I did in 2008. For example, if I move the pointer to classSize(i), I see the value for the current value of index i, but I do not see the plus sign which would display a drop-down list showing values of all elements in the array.
I checked for options (Tools > Options > Debugging > General), but did not see an option related to DataTips.
I am trying to get OpenSSL.net to 1) create a key pair to use for CA signing and 2) create and sign certificates using this CA. I have managed to create an RSA/SHA1 X509CertificateAuthority, and have created a X509Request and keys, but I am running into problems actually signing the request.
'create the request and request key Dim rsa As OpenSSL.Crypto.RSA = New OpenSSL.Crypto.RSA() rsa.GenerateKeys(1024, 65569, Nothing, Nothing)
[code]....
I am getting an OpenSslException on the line noted above, with the message error:0606B06E:digital envelope routines:EVP_SignFinal:wrong public key type error:0D0C3006:asn1 encoding routines:ASN1_item_sign:EVP lib
I got this nice piece of code from someone on this forum which only allows user to input numbers or backspace i need to modify it to allow the - sign so user can input a negative number Can someone share with me the code to modify this
If Not Char.IsDigit(e.KeyChar) Then e.Handled = True If e.KeyChar = Chr(8) Then e.Handled = False 'allow Backspace
I'm building three web applications in .NET that will all share a users database and login information. Lets pretend that application 1 is the "parent" application and applications "A" and "B" are the "child" applications. All users have to be logged into application 1 to have access to applications A and B.
Authorization, Authentication, and MachineKey sections of all web configs are present and work correctly.
I have the correct web.config settings in all applications to achieve Single Sign On except one problem remains: what do I put in the "loginUrl" attribute of the forms tag in Applications A and B.
Assume that the url for the login to application 1 is [URL] How can I get applications A and B to send the user back to application 1 for authentication using only settings in web.config?
i had decided to make my academic project in digital signer ,so i surf net for it and got a sample. its main aims is ti sign only one pdf..so i decided to make the application to sign all pdf which r there in a folder,i had done all the changes, i but i come accross an error which i am not able to solve,
I would like to know how I would separate the $ from number. I am reading data from a text file. the last column has a contain $12.00. I am able to split the five columns into an array. But also want to be able to remove the dollar sign.
I am trimming some strings but I am unable to do anything about the strings containing plus signs. For example if I have this string with a telephone number
Dim str As String = "+46765124246" And try str.replace("+46", "0") Nothing changes in the string.
I am using web browser control to login to gmail account. After successful login, i want the browser automatically sign out. How can i do that? I tried this:
Private sub webbrowser1_DocumentCompleted (Byval sender as system.object)Dim element as html elementfor each element in webbrowser1.document.links if element.getattribute("href").contains("logout") then 'log out code goes here
I am fairly new to VB.NET so I research alot when I run into bugs. Problem is I cannot find a solution to this, or anything remotely dealing with it. I am developing software to connect to a remote mysql server, run a query, and come back with a dataset. I have run this query against the server through a mysql prompt and have received a result successfully. But when i try to run this query from my app, I get an object reference error.
Through debugging I have found that the @ character used for variables in sql strings, is causing the problem in my code, but i cannot find a way to pass this query to the server without visual studio throwing errors. Every answer to the use of variables that I have found, suggests specifically stipulating the variable values in my code, which I do not want to do.
I have one datagridview and there some field are there for money dataType. But if user want to add (-) keyword then it should be display like -$10. if again user will click on (-) keyword then it should be remove i.e $10 .