I have 3 forms: Form1, Form2 and Form99. Form1 and Form2 both call Form99.What statement(s) does Form99 use to determine which form called it (Form1 or Form2).
I have a form being called form several forms using ShowDialog().
1. Is there a way for called form to know which form called it by receiving a code or key from the calling form?
2. The calling form has a gridview. How can the called form pick up a column's value from the currently highlighted row in gridview in the calling form?
I have a form called FrmPracDetails which is built up with a List view called LvwColProc. Therefore when you click a field on the LvwColProc it takes you to another form called FrmColProcessing, here you can make changes to certain fields which are also present on FrmPracDetails. What I want to do is when you make changes on FrmColProcesing and Click the Save Button (which calls the Save function)the changes appear instantly on FrmPracDetails. Please note, FrmColProcessing will always be open next to FrmPracDetails. I have tried to put this code in the Save function present in FrmCol Processing as shown below, but it doesnt Refresh FrmPracDetails form. [code]
im making an application in vb.net (duh!) anyway i have created and coded the whole project and it performs exactly as i want it to (i dont need code help). my problem lies with the fact that my project is 2-3 parts
1.a setup form that gathers inital data about the enviroment stores this data encrypted in a config file. after inital setup this form is not displayed again. but needs to be run on both computers
2. the second form is the real application form im in the process of turning this part in to a background service anyway this form is the one that establishes the connection between two nodes it works correctly
3. the config files
anyway here is my problem i want to make this application distributional with just one file the (.exe) and have this .exe make everything else happen. it runs the setup form and creates the first config file which it does then it needs to produce a copy of just the second form and the config file to transfer to workstation #2 that will run independtly without the whole application which i cant make happen then it needs to turn both workstations application on by only starting one on either computer and invoke the other computer to start its corrosponding app also no idea how to make this happen any ideas or suggestions as to where to look to try to find my answers.im thinking i might need to make two seperate applications (a setup app, and the running app) and include them both in a project and use the setup.exe to to package them together this is a little side project that im making for my self to use to make programming a little easier so i plan on giving it out to some fellow students to test and tell me what they think so im not really worried about ease of use or complicated procedures yet but if it turns out to work and actually be of use to anyone else i would be willing to rewrite it to distribute to the masses but for now i just want it to work for me.
This is what I have..Dim frmSettings As New frmOptionsfrmSettings.ShowDialog(Me)frmSettings is a settings form that you can choose the color for background of form1(Me)
I have two forms. Form1 and Form2. The user is supposed to fill out some information in form2 which then will be used to compute some data in form1. However when I used the code, Form2.Show, within a function in form1, the form2 is diplayed but when the user fills the data and submits them using the ok button, the code does not return back to the function in Form1.
As Autodesk is going to discontinue VBA for their Inventor product in the near future I have been looking at other ways to run VB.NET in Inventor. To date it doesn't look like VSTA will be the replacement. Automation from an External VB.NET app is certainly possible, but leaves something to be desired for speed and integration. Compiled Add Ins are the Cadillac of choice but can be a royal pain to debug and develop. Autodesk now provides a lightweight VB.NET script interface called iLogic. It's main purpose is to allow extreme customization of Solid Modeling parts. The code actually resides inside the Part Model file.
i am working on Scrollable form, when i am trying to print this form with PrintForm object its printing only the showing part not all the form this the code which am using. Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Me.PrintForm1.Print(Me, PowerPacks.Printing.PrintForm.PrintOption.Scrollable) End Sub
I am having multiple forms with Find button provided. The forms i am having are Contacts.vb and Users.vb, i want to use single Find.vb form for both of these forms. I mean whether a user presses Find button from Contacts.vb or Users.vb the same form should be opened with corresponding data that is fetched from database. I tried using Find.Owner = Me from Users.vb but i don't know how can i determine from Find.vb that who is the owner. I tried to use that if owner of find form is Users.vb then fetch data from users table and if owner is Contacts.vb then fetch data from Contacts table. Unfortunately i am not able to perform this task.
I have 3 forms: Form1, Form2 and Form99. Form1 and Form2 both call Form99. What statement(s) does Form99 use to determine which form called it (Form1 or Form2).
I want to add a query on a form called Customers.So, I want to type the begining of the Customer's name, and when i push the button, on the datagridview appear all the Customers with a name like that.
I have three buttons on my main form, say Form1. Clicking any of the buttons brings up Form2 modally for input, it's a number pad. Now, depending on which button was clicked to get there, after the user enters his numbers, I need to change a specific label on Form1. In other words, btn1 clicked puts user input into lbl1 and so on... I could probably do this with a variable but wondering if there is a more elegant way.
I was having a problem with the debugger not stopping at breakpoints. After a lot of work that yielded no results, I realized that the problem was occuring in the form's load event and subs called from that event.
The problem is that it appears that the load event is not being called. Other startup forms in other projects in the solution seem to be working ok.
what could be keeping the the Load event from working?
I am building a program where for part of it the user can enter a parameter which will then query a database and populate a DataTable with the results if the number of results is greater than 1 it will call a "lookup" form to popuate a DataGridView with the DataTable, from this the user can select a row and the result is passed back to the main form or if the result is not there the "lookup" can be closed.
This works fine the first time the parameter is used to query and opens the "lookup" form and populates the DGV, but if the user returns the the main program after using the lookup form and enters a new parameter and the lookup form opens again the DataGridView is not created and populated. But i am 99% sure the DateTable is being populated as if the row count is 1 it will automatically return the single value and this is happening even after the lookup form has been used.
So it is just when the Lookup form is being used a second time the DataGridView is not being popuated or the DataTable is not being passed.
I have a VB .NET 2010 application. I added a C# project to my solution. I tried to call the form called 'main'. However, I could not figure out a way to do that. What is the best way to do that? I Goggled, and did not find anything. Actually I noticed that my Developer converted everything to VB .NET.
I've spent a while searching around and I can't find a solution to this:I have a transparent, borderless form that displays a clock. I can load this just fine, but I want the clock to be part of the desktop, so it cannot take focus, is behind other applications, and is not hidden with Win+D (similar to applications like RainMeter).
I need the solution to work with VB.Net (I'm using 2010)
I need to print part of a form as a report, I can print a full screen capture no problem, but does anyone know if I can print a particular section of a form such as a group box ?
I tryed to make a media player and i added a button to the form called "Full Srceen".[code]'so i get an error message : Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
I call .show() and .hide() on a form and then I want to determine the current state. I've been checking .visible to determine if the form is visible, but I've stumbled uppon a problem. My form is being rendered inside a SplitContainer which I collapse each time I hide the form. So, by logic once I hide the form with .hide() it is no longer visible, and since I have collapsed it's container, even if I call .show() it would still NOT be visible couse it's container is closed.
So, how can I simply check if .show() has been called rather than checking if the form is visible.
The final goal is to show() / hide() the form along with collapsing / un-collapsing the container.
P.S.: I know I could simply check the container and show the form accordingly, but my form also supports detaching from the container, so that wont work for me.
I am writing a control application for an inteface card. The complicated work of initialising communication with the card is written and working fine. However, my problem is to update the text in a dialog label on the communication interface form from a module that contains all the coding for accessing the inteface card. From the module, the interface dll returns data that describes some typical connection errors and the module then calls on Public Subs in the form to display error messages; for example:This is the Public Sub in the Module that initiates communication with the interface card:
Public Sub OpenDeviceInterface() DeviceID = 1 - My.Resources.DeviceID h = OpenDevice(DeviceID) Select Case h Case 0, 1, 2, 3
[code]....
What happens when these Public subs are called from the module is that the MSgBoxes I made to test the routine show up but the label text doesn't appear.I've tried; Refresh, on the label and the form without success...
So im makeing class, where i need to change BackColor for part of form..What i meen is, i need to change forms BackColor, but not for all form, but for, example 20px from top..
i have a form frmCLreport which is open on the show button in frmCause form. Now frmCause is child of MDI form because it will on the menu item of MDI.now my problem is that, when i click on menu frmCause will open as a child of MDI, but when we click on the show button on frmCause a new form will open name is frmCLreport. this will open on another window,but i have to call this form in same MDI form as child, is it possible?
i have a form in which i have Name, startdate, end date, total hours, hourly rate, age and the total week hours. I want to print the name of employee with startdate, end date and total hours.
The last language I programmed in was Visual Basic 6.0.In VB 6.0, if I added menu items, the menu items would reduce the size of the container.For example, if the form had a height of 1000 and I added a menu item then the inside of the form would be 1000 - menu height.In 2010, if I add a MenuStrip control and dock it to the top and then I add another control and dock it to fill, the top part of the other control appears underneath the MenuStrip.I would like to make it so that the other controls I add to the form cannot resize above the lower part of the MenuStrip.