Displaying Non-modal Forms Via Interop From COM DLLs

Jul 17, 2009

I am trying to load a VB6 program into VB .Net project via COM. I have exactly the same problem as this thread from 2005.

[URL]

View 1 Replies


ADVERTISEMENT

VS 2010 Interop And Modal Forms?

Feb 9, 2012

I have a .NET application that calls a method in a COM component to show a dialog. Unfortunately, you can't pass the .NET form to the COM component to set the owner form without a type mismatch:

_ComForm.Show vbModal, _DotNetForm

So, what that means is the form is displayed without a parent form. The problem is, if the user launches the COM form and then while the dialog is shown, clicks to another application and then returns to my application, the COM form is now behind the .NET owner form and most users won't know how to find that window. Is there any way around this?

View 5 Replies

Showing Windows Forms From DLLs?

Oct 2, 2010

I'm trying to show a Windows Form from a DLL file - it's added to the application's refrences But I can't call the Windows Form from the DLL, I tried to make a function that shows the form but when I try to call that function in my application it says: Reference to a non-shared member requires an object reference How can I show the form? I'm tried to use this method: (it's in the DLL's form)

Public Sub Open()
Dim Instance As Windows.Forms.Control = Me
Instance.Show()
End Sub

View 3 Replies

Managing Modal Forms Location

Oct 3, 2010

I've got a "Loading" form which I display as a modal form when doing lengthy processes. I'm using the below to keep the form centred within the child form performing the process. However, when minimisingmaximising the "Loading" form appears before the parent making it look a little unprofessional. Anything I can do about that (Delay it appearing or attaching it in a different way)?

[Code]...

View 1 Replies

Modal Dialog With Multiple Forms

Jul 21, 2009

Is there a way to specify what forms are Locked when opening a Modal Dialog? I want to have a specific form available even if a Modal dialog is opened. The form in question is a child form (Accessible from the Windows application bar), that is created from the main application form. The Modal Dialog should only lock the main application form, and not the secondary window. Is it possible to make a secondary form independent from the main application form?

View 1 Replies

VS 2005 : Loading Two Modal Forms?

Aug 15, 2009

I have a main form when loaded will display a login form. I want that when the main from loads, the login form and another form will be loaded side by side.How do I show two modal forms?

View 2 Replies

VS 2005 Loading Two Modal Forms

Aug 22, 2010

I have a main form when loaded will display a login form. I want that when the main from loads, the login form and another form will be loaded side by side.How do I show two modal forms?

View 19 Replies

Divide Project Into Smaller Entity (dll) Or Convert 10 Forms To 10 Dlls?

Jan 21, 2011

Let say I had a project contains 10 forms and 10 reports and typed dataset (xsd)I am trying to divide my project forms into dlls, so when the client had a problem or asks for modification in single forms, I had to build the project all over again and the exe size will be large.

in my current project, the exe size is 4.8 MB, and I am working with customers by internet and remoting, so every time I make small changes (change the back color of textbox in one form) I had to rebuild and send the whole 4.8 MB to the customer. And not forgetting the increasing size of the exe with time.I know that converting my project to class library and built it will convert it to dll, so I had to create a second project to manage it.

1 - Can I convert 3 or 4 forms / 10 forms total in my current windows application project to dll?

2- What is the best recommended method to divide the project into smaller entity.

View 19 Replies

DLL Import - DLLs Were Re-compiled As 64-bit DLLs And They Still Don't Work?

Apr 6, 2010

I am trying to understand how to interact with external DLLs written in C++ for use in my VB.NET application. I have some DLLs that a client wrote that do some math functions. Everything was working on a 32-bit machine. Because we were taxing the 32-bit machine we moved to 64-bit. Now we can't get the same functions to work. The DLLs were re-compiled as 64-bit DLLs and they still don't work. So my client wrote some dummy DLLs to see if we could figure out the problem. Here are the "signatures" of the DLL calls that I am making:[code]....Ultimately I would like to get to calling initialize_quiet and I am guessing at the format of the marshalling, const size etc.

View 3 Replies

C# - Make A Form Modal In Windows Forms?

Mar 23, 2010

I'm trying to create a child form that helps the user to enter data for a field in the parent form. I want this child form to be modal, but I don't know what I need to do to make this form modal. Perhaps there's a different type of item I need to use; if so,

View 2 Replies

Modal Windows - When Some Of The Forms Are Shown Need One Of The Buttons On The Previous Screen To Be Active

Jul 19, 2011

I have a project with several forms. I need some of them to be in a modal window. How do you set this to be true? Also, when some of the forms are shown I need one of the buttons on the previous screen to be active.

I have tried:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Form.ShowDialog()
Button.Select()
End Sub

View 4 Replies

Close A Modal Form From Who Initiated Modal One?

Feb 25, 2011

I have a parent form (form1), which is calling a second form (form2) as modal.[code]...

No form2 is modal. Closing this form2 from the form itself is clear.But how can I close the form via myform2.close from form1 via an event handler?

View 6 Replies

Force Visual Styles When Using .NET Forms Interop From VB6?

Jan 4, 2011

I have created a VB.NET Class Library that exposes some COM Interop sub routines. These in turn show various forms that are contained within the Class Library. When the forms are shown from VB6 they do not inherit the visual styles of the operating system and act like VB6 controls.

I gather that this probably by design but is there some way to force/control visual styles manually in the .NET assembly? I would imagine that if I use a manifest in my VB6 app then everything will use the correct style but I would like to be able to control this myself if possible because we are using 3rd party controls in VB6 that do not require a manifest.

View 1 Replies

VB6 - Video Series Is Focused On The Interop Forms Toolkit ?

Jun 10, 2010

Visual Basic Interop Video Series This how-to video series is focused on the Interop Forms Toolkit and working with Visual Basic .NET and Visual Basic 6 together. The Interop Forms Toolkit allows Visual Basic developers to migrate their Visual Basic 6 applications over to .NET using a phased migration strategy. Instead of having to convert the entire VB6 application at once, the toolkit enables .NET Forms and User Controls to run directly in Visual Basic 6 applications so that you can build the pieces that you need over time.

Download the Code: Videos 13

You will need: Visual Studio and the Interop Forms Toolkit 2.0 in addition to Visual Basic 6.0

#1 | How Do I: Build Interop Forms? (11 minutes, 28 seconds)

View 1 Replies

.net - Form Load Event Fires Twice Using Interop Forms Toolkit?

Sep 18, 2009

I've been following a codeproject article on using the interop forms toolkit (basically a way for developers to slowly upgrade their VB6 projects to .net by allowing .net components run in VB6)

[URL]

While the .NET form is working fine in all other testing projects and environments, I've found that the Form_load event is actually firing twice once it's in executing in the VB6 runtime.Not only annoying, its forcing my initialization code to execute twice (causing all kind of problems on the second run).

If (runBefore = True) Then

View 1 Replies

Value Of Type 'Boolean' Cannot Be Converted To 'Microsoft.Vbe.Interop.Forms.ReturnBoolean'

Mar 10, 2012

Private Sub txtLatMin_Exit(ByVal Cancel As ReturnBoolean)
Dim i_SelStart As Long
Dim str_Prompt As String

[Code]....

It is flagging the error in this post title at Cancel = True

keep in mind that I am converting code from VB6 to VB.NET

View 1 Replies

Forms :: Displaying Forms Automatically On Different Monitors

Jun 13, 2012

I have created an application that uses two forms one is displayed on a touchscreen and is a basic input form, the other is displayed on a large display monitor and is basically an information form, both displays are connected to the same pc. The program works great I have just one annoyance is if the program is restarted it displays both forms on the touchscreen and I have to drag the information form onto the big display. Is there a way to specify on load that each form gets displayed maximized on a certain screen so I don't have to drag one form onto the correct screen?

View 7 Replies

Forms :: Displaying Progress Bar On Windows Forms?

Apr 2, 2010

I have a progress bar on a Windows Form which displays the number of records as they are retrieved from the database.The problem I'm having is that the entire Form.Load() method seems to run prior to the form being displayed, which means all my code updating the progress bar is gone to waste.

View 4 Replies

Non-modal Forms Cannot Be Displayed In This Host Application From An ActiveX DLL, ActiveX Control, Or Property Page?

Oct 20, 2010

How to Resolve following Error in .netNon-modal forms cannot be displayed in this host application from an ActiveX DLL, ActiveX Control, or Property Page.

View 1 Replies

Forms :: Modeless Dialog Active When Modal Dialog Displayed?

Nov 16, 2010

Is there a way to launch a Modeless Dialog that stays active even when a Modal Dialog is launched? Can I put the Modeless Dialog in a seperate Thread or something like that?

View 3 Replies

Forms :: Displaying Date As Unanswered Value

Sep 26, 2011

I have a datepicker control that displays an appointment date. This date may be nothing, but the datepicker always displays a date, understandable I suppose.There a plenty of occasions when I want a date to be null, and to display that status, how is this commonly handled in the user interface? I don't want to give up the nice functionality of the datapicker, but I need to somehow indicate that no date has yet been set.

View 3 Replies

Forms :: Displaying GIF Image That Says Please Wait

May 4, 2011

I have a .net 4 form application. On a button click event, I want to open a form that has a GIF image in a webbrowser control, that says please wait. Then it opens a second form that has a datagridview that is being populated from a SQL query. Then I just hide the wait form. The reason I have resorted to this method is that sometimes it takes a while to display the results from with datagridview depending on what the user selected previously. The issue that I am having is the wait form displays but the GIF does not show up. If I make the application wait by using the following code the GIF show up like it supposed to until the timer runs out. At that point the image stops moving but is still present.

Private Sub wait(ByVal interval As Integer)
Dim sw As New Stopwatch
sw.Start()
Do While sw.ElapsedMilliseconds < interval
' Allows UI to remain responsive
Application.DoEvents()
Loop
sw.Stop()
End Sub

My original intent was to use the show method to display the results form and then hide the previous form, but sometimes the previous form would close before I could display the results form.

View 2 Replies

Forms :: Displaying Objects On PropertyGrid

Mar 31, 2009

I am having a problem with objects that have other objects as properties on a property grid. Now when I display the object clsPropsFrame on the property grid, everything shows up as expected, except when I try to edit the x, y, or z of location which is of type clsPropsVec3, it ignores the change. What's strange is that when I type the vector in as a string (like "0, 16, 0"), it changes.

I have the following
'//////////////////Object Component///////////////////////////
<TypeConverter(GetType(ExpandableObjectConverter))> _
Public Class clsPropsVec3
Inherits ExpandableObjectConverter
Private refvec As TV_3DVECTOR
Public Sub New()
[Code] .....

I noticed that when I changed a component of clsPropsVec3, the property change in clsPropsFrame does not get executed. I tried making it fire of an event when a component is changed in clsPropsVec3, with the following additional
Public Property X() As Single
Get
Return refvec.x
End Get
Set(ByVal value As Single)
[Code] .....
But for some reason it ever fires off the ValueChanged event. So how can I make the sub properties of clsPropsVec3 work?

View 10 Replies

Displaying / Reading Data On Forms From Arrays

Feb 25, 2009

I am having some trouble with some data I want to display on a form. The data is in a 2-D array, call it myarray(x,y). My attempts to display it have so far not worked. Similarly, I also need to read this data from the form back into an array for further calculations.

View 3 Replies

Displaying Two Forms On Left / Right Side Of Screen

Aug 11, 2010

I would like to display 2 forms side by side. Frm1 will call Frm2. The problem is, if Frm1 is too near the edge of the computer screen, when Fr2 is shown, part of it will be outside the screen. How do I make it so that if Frm1 is near the right-side of the screen then Frm2 will show on the left-side of Frm1 and vise-versa?

View 2 Replies

Forms :: Displaying Child Windows Without Title Bar?

Feb 28, 2011

I try to create a MDI child form that should be resizable but it should not have a title bar visible. Is it possible? Or is there a better method to display child windows within a main form than displaying other forms. In this case the panel would be visually better than the form but the panel cannot be set to act as a child like a form.

View 3 Replies

Forms :: Displaying Paragraphs Of Text In A Label?

Jul 24, 2009

I want to read from a text file and display it in a label. However, when I do that, I see that there is no word wrapping. In the sense, a whole paragraph is displayed in one line and the next one in the next line and so on. Can some one please tell me how to read text from a file and make it display as it is (lines as they are)? I am using the following code right now:

Imports Microsoft.Office.Tools.Word
Imports System.Runtime.InteropServices
Imports Microsoft.Office.Interop.Word

[code]....

View 2 Replies

Forms :: Displaying Text Inside A Form?

Jun 29, 2009

actually i'm trying to write a small program for my project's presentation. i created a form with buttons, each time i click on a button, i want a text loaded from MS word document to be displayed inside the form.

i thought about dislaying the text inside a label or textbox, but the problem is that the text doesn't preserve its state, i mean colors and fonts which are defined in the MS word document, it just displays everything in black color, small size..etc, even if i change the properties of the label in color or font, thoses changes will be applied to the whole text.

is there any control who can display the text loaded from a MS word coument with its colors and fonts which are already defined in the word document, or there any solution to do this ?

View 3 Replies

Forms :: How To Stop WebBrowser From Displaying Pictures

Jun 6, 2011

I want the web browser to run much quicker: To acheive this I would like to disable the vb webbrowser from displaying pictures. I could not find a property to do this, within the vb browser settings + I would rather not have to fiddle with computer's registry files.

View 3 Replies

Forms :: WebBrowser In Form Not Displaying PDF Output In Win 7

Oct 24, 2010

Just moved a .NET 2.0 App from VS2005 to VS2010 and noticed that now when a window containing a WebBrowser tries to retrieve a pdf it thows out an error (unknown file type System.Byte[]). This would usually indicate that Acrobat Reader has not been installed - but open up IE9 and enter the link into the address bar and the PDF displays in the browser without any incident!

Should point out that the app created in VS2005 and installed on Win 7 (actually Server 2008 R2 in 'Workstation Mode') has the same issue.. All works fine in XP and below... Do seem to remember this on a Vista box, but put that down to Acrobat not being installed!

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved