MDIParent - How To Call Public Function Inside Child Form
Jun 26, 2011
I am having a toolstrip in the mdi form which contains save, update delete and clear buttons. The child form is having save, update, delete and clear as public sub routines , and client form will not have any standard buttons, I will click the respective button in the parent tool window which should call the child forms function.
View 1 Replies
ADVERTISEMENT
Sep 16, 2009
i am asking about using the progress bar into the status bar to move when i load any child form inside the MDIParent form.
View 1 Replies
May 18, 2010
Just had a small doubt.Say i use something like this
vb Dim ownr as New Form1Dim Dlg as New Form2ownr.Showdlg.showdialog(ownr)
how should i call an public function of form1 in the form2 if form1 is owner of form2, and also if form1 is not the owner of form2 should i use FormName.FunctionName in both the cases.
View 3 Replies
Aug 22, 2009
Has anyone had any luck with having different window states with multiple open child forms?for example if you have a single child form opened and say it is maximized.then open a second child form as normal, the first form will then be set to normal.all the open child forms will mimic the newly opened forms state.and i believe they will mimic when making some changes to one forms state.the others will follow.i have not had luck keeping this from happening in most situations.
View 19 Replies
Dec 14, 2010
having different window states with multiple open child forms? for example if you have a single child form opened and say it is maximized. then open a second child form as normal, the first form will then be set to normal. all the open child forms will mimic the newly opened forms state. and i believe they will mimic when making some changes to one forms state. the others will follow.
View 3 Replies
Nov 20, 2010
i have a program with MDI parent and child. initially, the program will call a child e.g. ChildMain. on this child form, 2 processes are run. the 2nd is ran on a backgroundworker. the backgroundworkder in created through code. the process in the background worker is to create another childform but i'm having problem setting the MDIParent of this child form since VS is saying some sort of cross-thread issue.
[code]...
View 2 Replies
Feb 23, 2010
In VB 2008, I have a Parent form with a combo box on it. There is a child form also with a combo box on it. I want to be able to change the values on the child form based on what the user selected from the main form. The user launches the child form from a toolbar on the Parent form. The following code is run:
[Code]...
What I want to do is if the Parent's combo box has "Red", "Blue", "Green" values and the user selects "Green", the child form's combo box(With the same values) will also change to "Green". (I do not need to change the Parent form if the child form changes.) I've tried changing the Child's combobox from the combobox's change event on the Parent form, and the code runs, but nothing changes on the child form.
View 5 Replies
Feb 5, 2012
Anybody know a way to detect and set the form size in the child and MDIParent forms?
I'm having all kinds of problems from scroll bars popping up, to can't get the form to fill the parent. Pretty sure I have tried every possible combination in the forms properties 10 times.
I'm really getting tired of beating myself against this. Anybody seen a good tutorial on the finer points of MDIparent / MDI Child page size, etc.
View 1 Replies
Jun 22, 2010
In MDIParent, in my formload in MDIParent, one form is load. And i want the form when i click a button, there is another form will be loaded INSIDE the MDIParent?
View 4 Replies
Nov 22, 2011
I have a public function to call default email client.Public Function OpenEmail(ByVal EmailAddress As String, Optional ByVal Subject As String = "", Optional ByVal Body As String = "") As Boolean
[Code]...
View 1 Replies
Apr 18, 2011
I have a public function to call default email client.
Public Function OpenEmail(ByVal EmailAddress As String, Optional ByVal Subject As String = "", Optional ByVal Body As String = "") As Boolean
Dim bAns As Boolean = True
[code].....
View 6 Replies
Oct 15, 2009
If I have a Windows Application WinApp that has a public function pubFun, how can I call it from a different windows application --> WinApp.pubFun() ?
View 2 Replies
Jan 25, 2010
How can I call a function from inside another function and suspend the calling function until the called function is finished? I hope I can get some replies because I don't know how to ask the question and make sense:).
Anyway what I am trying to do in steps:
1. The user clicks button1 which triggers the click event.
2. From the click event I call a function
3. I then pop-up a form, that has instructions for the user to read.
4. After the user has read the form he will click the "Done" button and return to the calling function.
The problem is the the calling function continues to execute. I want to stop execution of the calling function until the users clicks the "Done" button on the instruction pop=up. I know I can use a msgbox but the instructions can be lengthly and does not look good in a msgbox.
I have tried the Call method with return in the "Done" button click but I can make that work. I also tried a goto statement but I can get that to work either. In the call statement I said call frmInstruction.show() and it got there but as I said the calling function continued to execute.
View 3 Replies
Jul 20, 2009
Im new in this forum. I just recently upgraded my Visual Studio 2003 to Visual Studio 2008.I have a web project which is working very well in Visual Studio 2003. But when Im trying to run the same project in Visual Studio 2008, Im getting a runtime error message.The error message is about a public function which is defined in a public module. When Im trying to call that function from different web pages of my project, the web pages are not recognising the public functions and asking me to
View 3 Replies
Mar 23, 2011
I arrive from years with Oracle plsql. Now I'm trying vb.net I created a function that return a char value, so written:
[Code]...
The question: I will create a function get_type(...) in vb.net that calls the tsql function written above... how can I call the tsql function [abc].[GET_PERSON_TYPE] in vb.net function get_type(...) function?
View 1 Replies
Oct 15, 2009
I am trying to create a little script program in VBScript and I want to call some of the functions in wtsapi32.dll, can anyone point me to some sample code on how to do this? I am assuming that the values like: WTS_EVENT_ALL, are just plain simple literal strings, and not pointer to a variable inside of wtsapi32.dll.
View 1 Replies
May 12, 2012
I have an XML file and I have a function to which this XML is passed as string. I have loaded this string in Xmldocument and I need to insert few children nodes under one node. This function returns the modified XML string. I want that whenever this function is called, new child nodes are added, currently, It adds child nodes once.Do I need to overwrite the XML file ? If so, How can I replace the node with new node ( with new child nodes added) so that It has child nodes added before the function is called again ?
My code looks something like this:
Dim doc As New XmlDocument
doc.LoadXml(applicationXml)
Dim parentNode As XmlNode = doc.GetElementsByTagName("prList").Item(0)
[code]....
View 1 Replies
Feb 24, 2009
I need to get a value from an API I made with ASHX and normally it is called from javascript but I need to call it right in ASP.NET I figured this shouldn't be a problem but I'm not sure the syntax.
View 2 Replies
Jan 24, 2012
I have as sub that is triggered from the file system watcher when the new file is created in spec. directory.I need to call some function to do something with that file. [code]
View 6 Replies
Jun 12, 2012
I have an MDI windows form setup. On load it sets the child form(frmMainData) and opens it.
I have a progress bar on my child form that I wish to show(set to visible = false in design)
I have menu strip on my parent form.
For simplicity I have just set the command against one of the menustrip options to do the following[code]...
View 3 Replies
Mar 20, 2012
I have this function
Private Sub createChildForm(ByVal winForm As Form)
'Take a form and set app as its parent form
winForm.MdiParent = Me
winForm.Show()
End Sub
When some one wants to view the "About" form, it's called like this:
createChildForm(New f_about)
But my function doesn't stop them from creating an unlimited number of about windows and I need to put that limit to one form.
For example, I will have a login screen, but I don't want them logging in over and over again in different accounts because my subroutine doesn't stop a form from being created/opened more than once.
View 3 Replies
Dec 23, 2008
The following code does create a form within a form and does place NotePad inside the child form. You have to manually start NotePad prior to execution (I work on that later) but the code does workŠ My problem is now I want to manipulate the properties of notepad i.e. focus, size, location, etc. but I cannot figure out how to reference notepad and its properties.
[Code]...
View 8 Replies
Jan 2, 2010
I'm Using VB.NEt 2005.... the Problem is...If I close Mdiparent When i've opened many MdiChild Forms All Forms Also Closed.I Want that when MdiChild Forms opened if i Press Close Button of MdiParent Form there Should be a Msg that "First Close MdiChild Forms " then Close Mdi Parent.
View 6 Replies
Dec 7, 2010
How run a program inside a MdiParent?
View 5 Replies
Nov 15, 2011
how to minimize child form inside of parent mdi form in vb.net? I change the property of "IsMdiContainer" to "True". but when i minimize parent mdi form, it is not minimize the child form.
View 2 Replies
May 25, 2012
I am trying to convert a DLL function call which has the Callback function routine called within the DLL function call.The DLL function call signature is like this:
typedef void *HANDLE;
typedef HANDLE HACQDESC;
DECLARE_HANDLE (HWND);
[code]....
how to convert this DLL call to VB.NET and also how to create the callback function and send it as parameter to this function
call.
View 15 Replies
Jun 3, 2011
I have two forms. Form A and Form B. Form A has a datagrid that is populated from a SQL Database Table query. When a button is pressed Form B is launched that allows you to add a record to the database table. I need for the datagrid to be refreshed and show the newly added record when I close form B and go back to the parent.
[Code]...
View 2 Replies
May 14, 2010
How can I disable the parent form when I call a child form?This code doesn't disable the parent form like I thought it would:
frmChild.ShowDialog()
View 2 Replies
May 19, 2010
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?
View 1 Replies
Oct 20, 2009
Could i call the child form events like (closing ,load, activate,closed) .
View 6 Replies