Access Stucture From Another Form?
Apr 9, 2009
I'm trying to access my public structure in a separate module in other forms other then frmMain.
The problem I am running into when I try doing accessing the structure on another question form to update the score, I get a myPlayer not declared.[code]...
View 22 Replies
ADVERTISEMENT
Apr 12, 2009
i have a problem when I draw a rectangle the sides of the rectangle aren't the same width
I don't know what's wrong this a picture about the problem[URL].. and here is the code
Imports System.Drawing
Imports System.Drawing.Drawing2D
Public Class Form1
[Code]...
View 9 Replies
Sep 25, 2010
I would like a listbox to display a directory structure of a predefined directory in My.Settings.Directory and then be able to select a folder in that list box and click delete to delete the folder.
View 29 Replies
Apr 22, 2010
i use .NET 08 for programming; i have old vb6 application to porting and the only think that i can't convert is moving fixed structure in string using movememory and copymemory.The request is: read a line of sequenzial file, this line is a fixed string concatenation; in vb6 i use movememory to move this string to a tructure with fixed lengh. Then i need the contrary, modify a structure and then move it to a string for writing to a file, in vb6 i use copymemory.
Here a litte example:
Public Type GenType
TmpMsg As String * 1000
End Type
Public Type RxMsgVAL
[code]....
View 1 Replies
Mar 14, 2011
I'm writing an asp.net page with a simple registration form that connects to my access database and inserts the values in the table. So I have my database, my registration page, everything looks fine in my code, but there's a syntax error I can't seem to figure out. When I go on my webpage and click submit, it says : Syntax error in INSERT INTO instruction.
Here's my code:
<%@Page language="vb" explicit="true" debug="true"%>
<%@Import Namespace="System.Data"%>
<%@Import Namespace="System.Data.OleDb"%>
[CODE]...
View 5 Replies
Jun 9, 2009
I'm trying to insert data from an Access unbounds form to an Access Table using the follwoing code:
View 2 Replies
Feb 9, 2010
[code]
Imports System.Data.OleDb
Imports System.Data.SqlClient
Imports System.Configuration
[code]....
I don't know if these can connect with Access, anyway, I got ERROR on the com.Connection.Open()?
View 1 Replies
Jun 18, 2011
I have 2 forms main_frm and copying_frm. In main_frm, there is a list view that is populated with file names. The user then clicks save and all the files in the list are copied to a folder that they choose using a folder browser dialog. When this happens, I do copying_frm.ShowDialog() to display the copying_frm. The copying_frm contains a progress bar and a cancel button. I can get the progress bar to indicate how much has been copied. But that freezes up the application. To get around this, I create a new thread (called copyingThread) that copies the files. When that thread runs though, it can't access the waitingList_lvw in main_frm. For example, in the function that the copyingThread executes, if I have this line of code: MsgBox(main_frm.waitingList_lvw.Items.Count.ToString()) the result is 0. Also, I don't get any errors and no files are copied. How do I access waitingList_lvw in main_frm from a thread called copyThread that was created in copying_frm?
View 6 Replies
Jan 10, 2011
Communication between form can be done in many ways using constructor using delegates etc in .net but my question is how can i access a value that is entered into a child form from a parent form or can a two way communication is possible between windows forms.
View 1 Replies
Sep 16, 2011
How to display contents of ms access database form on a form using vb .net...in visual studio
View 7 Replies
Jun 3, 2009
What is the best way to access a value of a control within a form outside of the form class. I have a lot of functions defined in a module, one of these functions requires a series of values from controls in my main form such as the FolderBrowserDialog.SelectedPath element. I understand that these cannot be accessed in the format form.FolderBrowserDialog1.SelectedPath and that they need to be accessed using a delegate. This is the part I am stuck with.
[Code]...
View 3 Replies
Jul 20, 2010
I have designed my app for multiple gridviews. When a user double clicks a row it opens up the data in a modal form and when they commit changes the row gets updated.While they have that modal window open they can not go back to the grid.But I have a alerts/messages window always running (like outlook tasks). As soon as I open the modal window I can not access that tasks window. (Default behaviour)How can I open the modal form and still let the user access/view the tasks window while they work on the modal window.(I tried creating it in a differant thread, but got a lot of cross thread errors so decided to abandon that approach.I thought that 2 modal form can run at the same time as long as they have differant parents. But aparently the main GUI thread pauses as soon as you open a modal window on it.
View 10 Replies
Feb 28, 2009
below i have the form which i made in access, its BIG, REALLY BIGI am going to try and recreate this form using VB and MySQL, the question is how?The purpose of this form is to display all locations ready for someone to enter in information into them, normally the first field in each table has a unique name (which is set as the default value for that field), in the morning, the only field which is altered is a sign on field, which in access, the user clicks and the time is entered.
View 7 Replies
Nov 25, 2009
I have created a calendar in VB which works fine when set to the startup form, but when I use the MdiParent form as the startup form and try to display the calendar by use of a control it just shows all the buttons and labels with no values assigned to them. Its almost as if the Calendar_Load event is not working, or not accessing the methods in my CalendarClass.
View 2 Replies
Jun 20, 2012
I have two forms (fMain,fOptions)fMain is the main form with tabs created by a sub (createTabs())taking values from database fOptions is the options form where I change some numbers and values in the databasefOptions is called as ShowdialogIn fOptions I have a button (btnApply) to apply the changes to the database (it works -I've tested itI want to click on that button and refresh my tabs in fMain
View 7 Replies
Jun 30, 2009
I know you can link an Access DB to your VB project and get all the data in your form, but can you take a pre-designed VB form and import to Access, then link it to your tables once it's there? If it is possible, how would I go about doing it?
View 5 Replies
Mar 14, 2010
1. How do you load the same form?
2. This form has the datagridview, textbox, combobox, how do you save the values with tables?(The different persons will use this same blank form to manage the jobs)
View 3 Replies
Mar 31, 2009
I have 9 different classes, and 9 buttons. Each button needs to call the messagebox.show(") from each class separately
View 4 Replies
Oct 22, 2010
Is there a way that i can access a string from another form. I wrote it like "Dim Text As String" on form2 and i want to access that string fro form1 but it wont let me.
View 3 Replies
Aug 28, 2010
How can I access another form's text box in the current form in order to retrieve data from that particular text box to save its content taken as a parameter for an INSERT statement in the current form?
View 3 Replies
Apr 18, 2009
In my app, I need two separate items. I need one item to be the administration panel that can edit information being shown on a remote computer, and I also need another item that will display the information. How do I get my program to talk across a network to edit the information being shown on computer 2? I'll also need to know then how to make the installer ask which part of the program it needs to install, and then install the appropriate part.
View 1 Replies
Nov 12, 2008
I thought I knew the answer to this but it doesn't seem to be working in my app.In form1 I've declared a string. Example:
Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[code].....
View 3 Replies
Jul 17, 2010
i have 2 forms. In form1, I created a dataTable with 10 rows of data to be display in Form2. However, when in Form2, I can see all the info. But when i created an button to count the number of rows, it return 0 where there is obviously 10. I understand that in Form2, in order to count the table, i have to create a new variable for DataTable. And this variable in Form2 is actually create a new dataTable. is there a way for me to access the same dataTable that is created in Form1 in Form2?
View 3 Replies
Jun 2, 2011
Well i meant In Form1 theres an object named NUM in which i have Stored Few values Now i want to use this Object NUM in form2 so that i can display its value in Form2.. ima unable to access it in form2.
View 6 Replies
Jun 5, 2012
Developing a simple app in vbe 2010. Suddenly I have a (fatal?) warning ("Value cannot be null. Parameter name: object Type") and can no longer access the form. Problem seems to have started when I laid a timer down. Have since commented out the timer sub and call, but the warning persists. I can, strangely, run the app in debug. Have carefully inspected the all code and came fine no error.
View 3 Replies
Nov 18, 2010
Is it possible to import Access VBA form into VB?
View 3 Replies
Jan 19, 2006
I have to add an invoice how can I do it.Design of the ms access form(single form) is---------Upper Area--------[this should be inserted into invoice masterDate (suggest me)ShipMode (option button) Buyer (combo)Supplier (combo)Indentor (combo)
View 4 Replies
Feb 24, 2010
I'm creating a login form for vb.net using ms access 2003 as database. But it only checks for the username and bypasses the password. Meaning that if the username is correct and the password doesn't jive with the username, the user can still enter the system. Here is my code:
Try
Dim NoAcc As String
Dim NoAccmod2 As String
[Code]....
How do I do it so that it checks both username and password?
View 5 Replies
Mar 30, 2009
I'm trying to print an Access form when a button is clicked it's it's not working. From the guide here:
[Code]...
View 10 Replies
Mar 1, 2010
In my Project Solution I have several smaller projects, one of which is called Start Up. In this area I have a Class Module that holds my Form Immobiliser coding. This all works just fine IF I keep all my other forms in the Start Up area where the Form Immobiliser resides. If I place a form in another project area and try to access the Form Immobiliser using the following coding:-
[Code]...
View 22 Replies